Search found 14 matches

by whitewater
Tue Apr 09, 2013 1:23 pm
Forum: Games and Creations
Topic: trAInsported
Replies: 210
Views: 117455

Re: trAInsported: Alpha testers needed

substitute541 wrote:I think we need multiple servers... The hall o' fame is full of Pathfinding AIs, and the probability-using AIs get left behind.
What's wrong with writing a pathfinder?
by whitewater
Tue Apr 09, 2013 1:32 am
Forum: Games and Creations
Topic: trAInsported
Replies: 210
Views: 117455

Re: trAInsported: Alpha testers needed

Do the hard-work diff now and then just diff each one against the other when it's uploaded? Not exactly good practice, but if somebody really wanted to attack your Raspberry-Pi-turned-trAInsported-server-also-web-server there are probably better ways to go about it. Edit: Also is it possible to do s...
by whitewater
Sat Mar 30, 2013 7:42 pm
Forum: Games and Creations
Topic: trAInsported
Replies: 210
Views: 117455

Re: trAInsported: Alpha testers needed

Well, you can use ai.blocked() to notice and resolve this solution. The easiest way would be to return a random direction in ai.blocked() and then try to find a new way at the next junction. That's sort of what my test AI does. Having done so, I can now reliably(?) cause a pileup of sorts by follow...
by whitewater
Sat Mar 30, 2013 8:47 am
Forum: Games and Creations
Topic: trAInsported
Replies: 210
Views: 117455

Re: trAInsported: Alpha testers needed

My trains often get stuck in 'traffic jams', where they all pile up and none of them can seem to resolve a way out of it. Is there any generic solution to that so I can avoid posting my code and my shame on here?

Like so:
0AZpR97.jpg
0AZpR97.jpg (290.8 KiB) Viewed 403 times
by whitewater
Fri Jun 24, 2011 2:36 pm
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

Aw.

I could replace all calls, but now its completely pointless. Oh well. (And I've done updates, but nobody seems to care, so I stopped posting.) Also, don't all computers arguably 'need it' since power of 2 images will be faster pretty much always (afaik)?
by whitewater
Fri Jun 24, 2011 4:47 am
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

It sounds like I'm just talking to myself at this point, but for those who care I've done a few updates (fixed bugs, etc), but the real reason for my post is this which should function as a drop in replacement for Image and Framebuffer, but I don't know my way around Love2d all that well, so I need ...
by whitewater
Wed Jun 22, 2011 10:53 pm
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

Fixed a bunch of bugs dealing with recursive tables, and one silly one.
by whitewater
Wed Jun 22, 2011 9:00 pm
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

Updated

Now supports recursive tables (eg t.loop = t), I forgot to mention that I added support for functions without upvalues, is still mostly unoptimized until I can work out any bugs I may or may not find.

Oh! And it now serializes to a function deserialize, returning the table.
by whitewater
Wed Jun 22, 2011 8:43 pm
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

That is because of this line: buffer[ size ] = serializeValue( data, "_" ) size is still 1 at that point. It boils down to: buffer[ 1 ] = serializeValue( data, "_" ) which is NOT what you want. A simple way of fixing this would, if I am correct, be this: local final = serializeV...
by whitewater
Wed Jun 22, 2011 8:06 pm
Forum: Libraries and Tools
Topic: Serial- A serialization library (Who would have guessed?)
Replies: 16
Views: 12049

Re: Serial- A serialization library (Who would have guessed?

Okay, so I've been working on it some more. It no longer recurses into serialize, but instead has the method inside, and some optimization, but that isn't the point. I've also done some work on being able to serialize recursive tables, but thats later. Whenever it serializes a table with a table ins...