Times are UTC Toggle Colours
10:25:06 *** andythenorth has joined #openttd 11:20:06 *** Gustavo6046 has quit IRC 12:04:46 *** Eddi|zuHause2 has joined #openttd 12:10:36 *** Eddi|zuHause has quit IRC 13:30:58 <andythenorth> meh 13:33:22 <andythenorth> looking at simple pathfinders, there's a lot of handling of e.g. x and y components, and signs of deltas 13:33:36 * andythenorth was hoping for a way to it by summing simple integers 13:34:04 <andythenorth> seems like it should be possible to do it using array accessors, not if statements 13:34:19 <andythenorth> every time I write an if statement for anything, I feel like a kitten dies 13:34:51 *** glx has joined #openttd 13:34:51 *** ChanServ sets mode: +v glx 13:35:15 * andythenorth pencil and paper 13:37:48 <andythenorth> hmm might have found a neat way 13:37:55 <andythenorth> using limits 13:58:37 <andythenorth> oh lol 13:58:44 <andythenorth> GS doesn't have squirrel array.find 13:59:18 <andythenorth> is this some desync thing? 13:59:29 <andythenorth> assembling programming primitives is getting boring :) 14:00:25 <andythenorth> I guess I can use GSList, which seems more feature complete 14:00:52 <andythenorth> I guess I'm using the wrong version of squirrel docs eh? https://developer.electricimp.com/squirrel/array/find 14:02:10 <andythenorth> guess I need these http://squirrel-lang.org/doc/squirrel2.html#d0e1367 14:11:07 <andythenorth> ok so I never bothered to learn how x and y relate to N / E / S / W in the OpenTTD map 14:11:28 <andythenorth> I have 8 directions numbered 0..7 14:11:51 <andythenorth> and I have x,y vectors in the form [0, 1], [-1, -1] etc 14:12:04 <andythenorth> but I don't know which vectors map to which direction :D 14:13:04 <andythenorth> ok [1, 1] seems to go due south 14:29:29 *** ioangogo has quit IRC 14:31:07 *** WormnestAndroid has joined #openttd 14:31:34 *** ioangogo has joined #openttd 14:33:11 *** wisbascii is now known as wiscii 14:37:39 <_dp_> andythenorth, x goes NE->SW, y goes NW->SE 14:37:49 <andythenorth> yes :) 14:37:57 <andythenorth> I tested by building in each direction :P 14:38:17 <andythenorth> I should know the compass directions from grf stuff, but I never bothered learning 14:38:34 <_dp_> you can just check tile coordinates with ? tool if you forget 14:40:42 <andythenorth> lol 14:40:47 <andythenorth> never thought of that :D 14:41:02 <andythenorth> first I read openttd docs, then I wrote GS to figure it out 14:56:27 <andythenorth> meh 14:56:37 <andythenorth> chances I can compare two arrays in squirrel directly? 14:56:46 <andythenorth> guess I write my own compare function 15:02:19 <andythenorth> ugh squirrel 15:02:32 <andythenorth> local vars declared in an 'if' statement are local to that statement? 15:03:37 <andythenorth> how the fuck is this supposed to work :( 15:04:02 <andythenorth> can I please go back to nfo? 15:05:05 <andythenorth> someone please send lolz 15:05:17 <andythenorth> I want to conditionally set the value of a var 15:05:30 <andythenorth> but I can't set it for reuse outside the conditional block 15:06:15 <andythenorth> this is braindead crippled 15:06:43 <andythenorth> ok I'll delegate it to a function 15:06:45 <andythenorth> and return 15:09:36 *** supermop_work has joined #openttd 16:04:10 <supermop_work> YO 16:24:44 *** Wormnest has joined #openttd 16:32:17 *** frosch123 has joined #openttd 16:51:38 <glx> andythenorth: openttd is stuck with squirrel 2 (squirrel 3 is not f