Jump to content


ben657's Content

There have been 48 items by ben657 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#138821 [System_Stats] What Are The Computers Clocked At?

Posted by ben657 on 08 August 2013 - 05:51 AM in Ask a Pro

I'm not completely certain, but I'm pretty sure they match the games tick speed. So assuming no server lag or anything, it'd be 20 ticks per second

EDIT: no actually that would be ridiculously slow... Ignore that, I have no idea :P



#64289 GIFTS!

Posted by ben657 on 26 December 2012 - 12:22 AM in General

View PostSammich Lord, on 26 December 2012 - 12:19 AM, said:

View Postben657, on 26 December 2012 - 12:18 AM, said:

View PostSammich Lord, on 26 December 2012 - 12:13 AM, said:

Everybody gets damn clothes! When are people going to learn that geek only sit in their basement with only the dim light of their computer monitor shimmering onto their nude body?

Well in my case, the shirt said "The cake is a lie" so it's not too bad!
From the online Minecraft store thingy?

No idea, haven't seen that one, this is just navy blue with that on the front in scribbled black writing, think its meant to be the original portal reference rather than minecraft :)



#64287 GIFTS!

Posted by ben657 on 26 December 2012 - 12:18 AM in General

View PostSammich Lord, on 26 December 2012 - 12:13 AM, said:

Everybody gets damn clothes! When are people going to learn that geek only sit in their basement with only the dim light of their computer monitor shimmering onto their nude body?

Well in my case, the shirt said "The cake is a lie" so it's not too bad!



#64281 GIFTS!

Posted by ben657 on 26 December 2012 - 12:12 AM in General

New Graphics card, motherboard, CPU and RAM for my PC and some clothes :D



#61565 Ludum Dare 25

Posted by ben657 on 19 December 2012 - 09:22 AM in General

Oh, didn't realise anyone had commented on this :D

Didn't get anything finished this time round, cold + no sleep + party on the friday night != good coding conditions :P



#60367 Ludum Dare 25

Posted by ben657 on 16 December 2012 - 01:09 PM in General

Hey, this weekend is the time of the 25th ludum dare game programming challenge, where you are tasked with creating a game in 48hrs based on a theme. ("You are the villain" this time).

http://www.ludumdare.com/compo/

Considering the amount of programmers around here, I was just wondering if anybody else decided to compete?

Personally I've gotten a bad start to my entry, but I'm hoping to get a lot done tomorrow ready for hand in time!



#57301 Why do you hack?

Posted by ben657 on 07 December 2012 - 08:44 AM in General

Hmm, never thought about it as a learning excersise, I guess I can understand that one.

I suppose my only gripe really is that people often take it upon themselves to point out that they have "hacked" a system in an incredibly obnoxious way, usually in a way that degrades the aforementioned system, whether it works well or not.

Idk, maybe it's more of a silent majority sort of thing where I've only had experience with those more obnoxious "hackers".



#57187 Why do you hack?

Posted by ben657 on 06 December 2012 - 08:59 PM in General

Hello!

Whilst browsing the forums and playing on various CC servers, it seems that a worryingly large amount of people are obsessed with "hacking" (in the loosest sense of the word, given that we're playing minecraft) peoples programs and computers. I mean I can understand it to a certain extent in real life, there is actually something to gain from it generally, whether information, money, or even blackmail of sorts. I can even understand it in CC if someone says "This program is completely secure, you can't break it" that's basically a challenge to prove them wrong.

But why when somebody releases a perfectly innocent program, no claims of super-security or general awesomeness, do you go and say "Hacked it straight away, needs more security". No it doesn't, it needs people like you to realise that it's just a game and hacking a program doesn't really matter... especially if you aren't even on a server with the person using it to annoy them by hacking!

/rant

tl;dr Why do you hack CC programs?



#55695 [CC: 1.48] CCLan 1.2, lan cables!

Posted by ben657 on 01 December 2012 - 06:38 AM in Peripherals and Turtle Upgrades

Having problems downloading this, not sure if it's adf.ly or your end, but adf.ly just asks me to enable cookies on my browser (which they are). Tried in chrome and IE to no avail.



#53121 [WIP]Best Program Evaaa!

Posted by ben657 on 24 November 2012 - 08:28 AM in Programs

NEEDS REDNET, TURTLES AND COLOUR MONITOR SUPPORT!!!!!!11!!11!2!!1!1!!1!



#52977 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 23 November 2012 - 09:30 PM in Programs

Updated! see update section.



#50713 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 17 November 2012 - 12:10 PM in Programs

View Postjunithorn, on 17 November 2012 - 08:39 AM, said:

Using a monitor on top just like your picture, advanced computer, advanced monitors :)/>

Hmm, still works fine for me... Well I'm planning on doing some work on it tomorrow, so I'll make sure to have a good poke around that part of the code and see if I can come up with anything.

Is anyone else having a problem?



#50586 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 17 November 2012 - 08:31 AM in Programs

View Postjunithorn, on 17 November 2012 - 07:50 AM, said:

Hello, this looks really cool and I'd love to try it out but I seem to be getting a "attempt to index ? (a nil value)"

at line 24

halp?

Hmm, very odd... When does it happen? Are you trying on a monitor or just a pc?

I'm not on my computer right now, but I'll have a proper look soon once I'm on.



#50357 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 16 November 2012 - 10:21 AM in Programs

View PostCranium, on 16 November 2012 - 08:39 AM, said:

This is really neat. I like the basic concept behind it. It usually is the most simplistic things that make us happy.

View Postanonimo182, on 16 November 2012 - 09:41 AM, said:

Nice program! Is just so random...

View PostShnupbups100, on 16 November 2012 - 10:14 AM, said:

And I was one of the first to know that they could dig now.... I was one of the guys on that server when you did it!

Haha thanks all! :P/> by the way, shnupbups, if you see ikk on the server, could you ask him to delete my player file from the world? I can't log in due to me getting an error when i spawn :/



#50322 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 16 November 2012 - 07:51 AM in Programs

View PostLeo Verto, on 16 November 2012 - 07:41 AM, said:

Nice program, going to try it out.
I like your idea of running this on a monitor and pretending it was a real ant farm.
Thanks, It's just me messing about really, but I thought it'd be nice for a screensaver when i'm not online on the server I play :P/>



#50308 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 16 November 2012 - 06:42 AM in Programs

View PostKaoS, on 16 November 2012 - 06:34 AM, said:

-snip-

TL;DR great idea man, keep working at it

Thanks! Like you, I've always loved looking at turning randomness into some sort of pattern, and simple little AI's like this are great fun to make!
Your program sounds pretty cool, I'll definitely take a look through it :P/>



#50299 [wip/fun] Ant Farm [v0.2]

Posted by ben657 on 16 November 2012 - 05:58 AM in Programs

Hello!

Recently I've been wanting to try out some basic game AI programming, but I've had no formal education in anything like that, so I decided what better way to give it a try than in computer craft?

Update:
The ants now prefer to dig tunnels, this gives a much nicer look to the program.
Once a certain percentage of the screen is tunnel, it will reset.

Pics:
Spoiler

Code:
Spoiler
Or a pastebin link for an easier to read version: http://pastebin.com/kpimQphs

All it does at the moment, is create two ants, which will wander around their farm, and dig up trails as they go along.
But this is only the very first step, i'm planning on having a nest with breeding and food mechanics, as well as maybe some predators.

Also, I'm looking on suggestions on what would be a nice way to interact with the farm? My main idea is to have red stone inputs which will allow you to add ants and such manually.

I suppose this could also be a good example of using basic objects, as the ants are all the same, but run different code for each of them.

Next up:
Some form of breeding to introduce new ants



#38649 Basic file IO - Learn how to save data!

Posted by ben657 on 10 October 2012 - 11:15 AM in Tutorials

View Postsidekick_, on 07 October 2012 - 04:57 PM, said:

Hmm. Mine works on a single pc. Where do the files save when making a file because mine isnt creating one :X

Really? They should be in the folder you named in the file path during the tutorial. In game, load up the pc, do "ls" (no quotes), see of there's a new folder and do "cd thatfoldersname", then ls again to see if your files there.



#36413 Basic file IO - Learn how to save data!

Posted by ben657 on 02 October 2012 - 07:04 PM in Tutorials

View Postauser, on 30 September 2012 - 04:58 PM, said:

How would you suggest extending this to a key=value store? (ini?)

Very possible!
http://www.computerc...le-configs-v10/
Something I did a little while ago, all the codes there for it :(/>



#36406 Basic file IO - Learn how to save data!

Posted by ben657 on 02 October 2012 - 06:46 PM in Tutorials

View Postleftcatcher, on 01 October 2012 - 10:44 AM, said:

Just a few questions:

Does this program create more than one dispName and realName folder? Or does it just overwrite the previous one? Like, for example, I create the "leftcatcher" dispName and Blah for realName, and then I create "ben675" for dispName, and Blahblah for realName. Would there then be two folders in the "saves" section? One for each dispName? Or will the "leftcatcher" folder have been overwritten?

Could I get it to basically activate off a login? For example, on startup the computer will show a menu(Which I can set up easily) which says "Login" or "Create Account". We select the latter here and it starts up the program. It then ask for a Username, (which replaces the dispName here), and then asks for a Password (Replacing realName). It then basically just creates the file around he Username in the same way your program does around the dispName, and puts the Password into the file. Then, basically, in the "Login" section, it would ask for your Username and you would enter it, and it would access the file containing that username and make the Password = requiredPassword so that way you have to enter it to log in. Basically, what your program does but with a bit more added onto the ending. If your code here does in fact have the ability to create numerous folders, then it is entirely possible to have this and actually make use of it instead of it just being a one time thing. :<

Sounds like a good way of going about it :(/>
And yeah this code will work perfectly for that. Reason being, it makes a folder named saves, and in there are FILES not folders, with data in them, rather than more folders and files. But in short, yes. It'll work fine :D/>



#34147 Basic file IO - Learn how to save data!

Posted by ben657 on 25 September 2012 - 03:13 PM in Tutorials

View PostMtdj2, on 25 September 2012 - 02:26 PM, said:

You could instead of the loop use;
tFile = file.readAll()
and acsess the first line like:
print(tFile[1])
Hope I helped... Well, I think I did.

Oh that's how that works? honestly I've never used it, just sorta assumed it gives you the whole file as one string :P/>
Will add that into the OP ;)/>



#33759 [Event] Castle War?

Posted by ben657 on 23 September 2012 - 10:16 PM in General

Firstly, this seems like an excellent idea!

Secondly, about your problem with stopping players placing blocks. Not so long ago, I did a fair amount of programming for my old bukkit server, writing plugins, and I was just thinking I could probably come up with something to sort that problem.

Also, I might be able to automate the system a little, with players being able to queue up for a game and get sent there, and the arena being fixed at the start of each game.

So the offers there, I'd love to help get this idea going! Just PM me if you'd like more info :P/>



#33685 Basic file IO - Learn how to save data!

Posted by ben657 on 23 September 2012 - 06:14 PM in Tutorials

View PostSariaz, on 23 September 2012 - 07:22 AM, said:

and so based of this I'm assuming that if i wanted more data id just do more write lines with the data or would it be like the write function and add to current line and if it dosnt is there anyway to append on to a previously written line besides reading it from file apending to it then rewriting old line?

Yeah, like with printing to the console, writeLine puts a line break at the end, and you can use file.Write to just append onto the current position. Hope that helps :P/>



#32951 Config API - Easily make user editable configs! [V1.0]

Posted by ben657 on 20 September 2012 - 05:57 PM in APIs and Utilities

View Postviluon, on 20 September 2012 - 11:34 AM, said:

cool! Great idea but im having this problem:
API config is already beign loaded
parrallel:22: login.als:35:  attempt to index ? (a nil value)
my code:
Spoiler

By the looks of it, you put the API in the rom/Apis folder right? If so, you don't need to call os.LoadApi(), it auto loads anything in that folder so it's trying to load something already in memory. Hope this helps :)/>



#32884 Computer Crafts Ultimate door lock

Posted by ben657 on 20 September 2012 - 07:20 AM in General

Hmm... I think when I've got some time after college, I'll write something up so I can put all your locks in functions and pick a random one to run, just to showcase them, then keep actual copies in spoilers for your names :)/>