IRC logs for #openttd on OFTC at 2021-06-24
            
00:16:11 *** tokai|noir has joined #openttd
00:16:11 *** ChanServ sets mode: +v tokai|noir
00:23:05 *** tokai has quit IRC (Ping timeout: 480 seconds)
01:14:11 *** Wuzzy has quit IRC (Quit: Wuzzy)
01:46:09 *** tokai has joined #openttd
01:46:09 *** ChanServ sets mode: +v tokai
01:52:44 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
02:33:07 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
02:38:02 *** WormnestAndroid has joined #openttd
02:59:44 *** D-HUND has joined #openttd
03:03:07 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:12:55 *** tokai|noir has joined #openttd
03:12:55 *** ChanServ sets mode: +v tokai|noir
03:20:09 *** tokai has quit IRC (Ping timeout: 480 seconds)
03:22:59 *** glx has quit IRC ()
03:53:10 *** Supersonic[m] has joined #openttd
04:15:01 *** tokai has joined #openttd
04:15:01 *** ChanServ sets mode: +v tokai
04:21:50 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
05:30:46 *** Flygon has joined #openttd
05:37:34 *** nielsm has joined #openttd
06:02:49 *** sla_ro|master has joined #openttd
06:05:38 *** nielsm has quit IRC (Ping timeout: 480 seconds)
06:30:59 *** snail_UES_ has quit IRC (Quit: snail_UES_)
07:05:19 *** tokai|noir has joined #openttd
07:05:19 *** ChanServ sets mode: +v tokai|noir
07:12:15 *** tokai has quit IRC (Ping timeout: 480 seconds)
07:42:38 *** Speedy` has joined #openttd
07:45:36 *** HerzogDeXtEr has joined #openttd
08:13:27 *** iSoSyS has joined #openttd
08:34:12 *** iSoSyS has quit IRC ()
09:21:50 *** WormnestAndroid has quit IRC (Remote host closed the connection)
09:22:02 *** WormnestAndroid has joined #openttd
09:52:53 *** Samu has joined #openttd
09:59:08 <Samu> hi
10:32:38 <Samu> wow, radeon drivers failed to installl
10:38:32 *** D-HUND is now known as debdog
10:42:31 *** Samu_ has joined #openttd
10:43:14 <Samu_> ok, they installed now
10:43:27 <Samu_> after a black screen
10:43:39 <Samu_> got me scared for a while
10:43:43 *** Samu has quit IRC (Ping timeout: 480 seconds)
10:44:50 *** Samu_ has quit IRC ()
10:45:07 *** Samu has joined #openttd
11:24:56 *** tokai has joined #openttd
11:24:56 *** ChanServ sets mode: +v tokai
11:29:26 *** Wuzzy has joined #openttd
11:31:39 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
12:15:39 *** glx has joined #openttd
12:15:39 *** ChanServ sets mode: +v glx
13:05:06 <DorpsGek> [OpenTTD/OpenTTD] glx22 opened pull request #9397: Feature: Persistant rotation of numbered autosave after restart https://git.io/JndWW
13:13:18 *** tokai|noir has joined #openttd
13:13:18 *** ChanServ sets mode: +v tokai|noir
13:20:08 *** tokai has quit IRC (Ping timeout: 480 seconds)
13:20:38 *** snail_UES_ has joined #openttd
13:25:37 *** andythenorth has joined #openttd
13:47:19 *** nielsm has joined #openttd
14:23:42 *** andythenorth has quit IRC (Quit: andythenorth)
14:28:24 *** tokai has joined #openttd
14:28:24 *** ChanServ sets mode: +v tokai
14:31:24 *** andythenorth has joined #openttd
14:35:07 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
14:42:31 *** jottyfan has joined #openttd
15:01:06 <Samu> funny, i just discovered squirrel doesn't require "," to separate arguments
15:01:19 <Samu> a space is enough
15:03:49 <Samu> https://github.com/SamuXarick/LuDiAI-AfterFix/blob/master/BuildManager.nut#L238
15:04:36 <Samu> (tile, cargoType, 1, 1 radius); it works, even though I intended (tile, cargoType, 1, 1, radius);
15:10:22 *** sla_ro|master has quit IRC ()
15:10:53 <LordAro> there's nothing that's actually ambiguous, that i can think of
15:11:29 <LordAro> string literals are a bit clearer, i suppose
15:11:43 <LordAro> "string with spaces in" "another string"
15:11:55 <LordAro> difficult to see at a glance which parameter is which
15:12:11 <glx> I think it's unintended, but the squirrel doc is so unclear :)
15:19:15 <glx> code seems to expect ',' https://github.com/OpenTTD/OpenTTD/blob/37116a7575c1dd96ae93c11ffbae64358d59d4aa/src/3rdparty/squirrel/squirrel/sqcompiler.cpp#L776-L793
15:19:33 <glx> I think your code compiles, but doesn't do what you expect
15:20:43 <LordAro> that's also possible :)
15:22:32 <glx> and maybe it just fails at runtime
15:23:08 <Samu> no, doesn't seem to fail
15:23:36 <glx> as I understand it, it's 4 args instead of 5
15:25:04 <Samu> i didn't verify as of recently, but i think it's doing what I expect
15:25:13 <Samu> the function takes 5
15:25:54 <Samu> https://docs.openttd.org/ai-api/classAITile.html#adbb5e7fafc552884f84e9d7da0936337
15:28:17 <Samu> anyway, I added a comma for my next version, just in case
15:35:30 *** Gustavo6046 has quit IRC (Ping timeout: 480 seconds)
15:35:44 *** Gustavo6046 has joined #openttd
16:03:21 <andythenorth> accessing town var 0x41 from nml?
16:03:36 <andythenorth> it's a word
16:03:38 <andythenorth> var[0x41, 0, 0xFFFF] ?
16:03:41 <andythenorth> or var[0x41, 0, 0xFFFFFFFF]
16:03:47 <andythenorth> or do I need to shift left?
16:03:50 * andythenorth has NFI
16:04:15 *** Progman has joined #openttd
16:16:22 <TrueBrain> I hope yuo don't expect us to know :(
16:16:26 <TrueBrain> sorry ;P
16:18:31 <TrueBrain> wauw, the amount of typos in those 2 lines .. incredible
16:18:35 <TrueBrain> well done TrueBrain, well done
16:19:48 <andythenorth> GG WP
16:19:56 <andythenorth> you kind of should know :P
16:20:02 <andythenorth> it's basic nfo
16:20:12 <andythenorth> maybe we could learn together
16:20:14 <TrueBrain> no, it is NML :P
16:20:23 <andythenorth> it's a var, a shift, a mask
16:20:32 <andythenorth> I have learnt and forgotten about 15 times
16:20:54 <TrueBrain> for these things I tend to look in existing code when doing a project :D
16:21:00 <andythenorth> this is what I did
16:21:07 <andythenorth> I used it multiple places before
16:21:14 <andythenorth> but for differently sized vars
16:21:20 <andythenorth> also sometimes there are surprises
16:21:32 <glx> ok, indeed squirrel seems to not enforce ',' in args, that's weird
16:21:33 <andythenorth> when vars have complicated packing of multiple values into a dword etc
16:21:43 <andythenorth> lol grf etc
16:21:57 <andythenorth> the whole idea that vars are incredibly expensive
16:22:04 <andythenorth> so we must pack lots of complexity into them
16:22:05 <TrueBrain> I instead am going to breed bees in Minecraft, k? :)
16:22:13 <andythenorth> pfffff
16:22:16 <TrueBrain> andythenorth: TTDp lurking in the back there :D
16:22:20 <andythenorth> no shit :)
16:22:35 <andythenorth> I have picked up some actual grf for the first time in a week, and this scares you off :P
16:22:52 <andythenorth> I broke my brain too much recently for grf, needed a week of doing literal nothing
16:23:14 * andythenorth checks the sitrep
16:23:27 <andythenorth> frosch is still the only one who dares add anything to grf spec yes/no?
16:24:29 * andythenorth wants a 'town has been founded' cb for industry to handle, returning [nothing], it's just for setting up town registers with values
16:24:48 <andythenorth> I suspect it's two lines of code in OpenTTD
16:25:42 <andythenorth> looks like this andythenorth contrib. added a similar callback once before https://github.com/OpenTTD/OpenTTD/commit/16b310d8ce2f7688b62fb8b09829baf71af4aab0
16:25:47 <andythenorth> maybe they know how to do it?
16:25:50 <andythenorth> anyone know if they're active?
16:26:48 <andythenorth> problem is there's no entity in the grf to make a general callback to
16:27:28 <andythenorth> not so simple eh?
16:28:18 <andythenorth> TrueBrain do your bees live here? https://media.discordapp.net/attachments/337701432230805505/857658336736182303/unknown.png?width=2052&height=1267
16:28:34 <TrueBrain> bsssttt
16:32:42 *** jottyfan has quit IRC (Quit: jottyfan)
16:33:29 <andythenorth> hmm STORE_PERM during location checks eh
16:33:31 <andythenorth> BROKEN
16:33:38 <andythenorth> PEBKAC
16:54:49 <glx> haha https://github.com/OpenTTD/OpenTTD/blob/37116a7575c1dd96ae93c11ffbae64358d59d4aa/regression/regression/main.nut#L1705 <-- regression script also skip some ','
16:55:03 <glx> I really think it's a squirrel bug to allow that
16:55:27 <andythenorth> lol
16:55:31 * andythenorth forgot how scopes work
16:55:34 <andythenorth> silly me
17:00:03 *** gelignite has joined #openttd
17:07:34 <DorpsGek> [OpenTTD/nml] andythenorth opened pull request #223: Add: town var 0x41 'town_index' https://git.io/JnFYN
17:07:43 <andythenorth> glx any chance? :)
17:41:37 <DorpsGek> [OpenTTD/OpenTTD] glx22 opened pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFcs
17:42:42 <Samu> wow glx :(
17:43:17 <Samu> that's probably gonna trigger the old AIs
17:43:28 <Samu> that currenly work, to stop working
17:43:30 <glx> yeah it's the main issue
17:44:06 <Samu> unmaintaned working old AIs
17:45:46 <glx> I think missing ',' are an exception, but who knows
17:46:15 <glx> even regression AI was a victim :)
17:47:38 <glx> but I blame squirrel for allowing it
17:48:12 *** andythenorth_ has joined #openttd
17:55:36 *** andythenorth has quit IRC (Ping timeout: 481 seconds)
17:58:25 *** Wolf01 has joined #openttd
17:58:38 *** andythenorth_ has quit IRC (Quit: andythenorth_)
17:59:24 <Wolf01> Did I scare him?
17:59:31 *** andythenorth has joined #openttd
17:59:59 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFlX
18:00:15 <LordAro> scared macOS's network stack, more like
18:01:37 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFl5
18:02:35 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFlx
18:04:20 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
18:11:24 *** andythenorth has quit IRC (Quit: andythenorth)
18:15:06 *** andythenorth has joined #openttd
18:15:53 *** andythenorth has quit IRC ()
18:17:23 *** andythenorth has joined #openttd
18:17:55 *** sla_ro|master has joined #openttd
18:29:00 *** andythenorth has quit IRC (Quit: andythenorth)
18:38:08 *** tokai|noir has joined #openttd
18:38:08 *** ChanServ sets mode: +v tokai|noir
18:45:10 *** tokai has quit IRC (Ping timeout: 480 seconds)
18:56:37 *** andythenorth has joined #openttd
18:59:22 * andythenorth bounces up and down like a bouncy thing
18:59:27 <andythenorth> anyone can approve? https://github.com/OpenTTD/nml/pull/223
19:05:03 *** Eddi|zuHause2 is now known as Eddi|zuHause
19:12:13 *** Wormnest has joined #openttd
19:16:27 <peter1138> I have warm goats cheese so no, I can't.
19:20:42 *** andythenorth has quit IRC (Quit: andythenorth)
19:21:40 *** andythenorth has joined #openttd
19:22:44 <andythenorth> I had halloumi
19:22:49 <andythenorth> went ok
19:23:04 <peter1138> Nice.
19:25:14 <andythenorth> no chips though
19:30:25 * andythenorth has forgotten how modulo works
19:31:19 <andythenorth> seems that x % 0 and x % 1 might be unwise choices
19:31:22 <peter1138> You want to know how it works, or what the result is?
19:31:45 <peter1138> When you divide by 1, what's the remainder?
19:31:49 <andythenorth> 0
19:31:58 <peter1138> When you divide by 0... well...
19:32:06 <andythenorth> debates about infinity
19:32:20 <andythenorth> I want 3 town 'types', based on the town index
19:32:37 <andythenorth> town_index % n would seem to be the thing
19:32:51 <andythenorth> but I think I need to do more
19:33:50 <andythenorth> town_index % 3, the result will be 0, 1, or 2
19:34:03 <andythenorth> assuming integers
19:34:07 <andythenorth> ok
19:35:02 <peter1138> is a town index ever non-integer?
19:37:45 <andythenorth> hope not
19:37:52 <andythenorth> overlapping towns?
19:37:54 <andythenorth> exurbs?
19:39:42 <andythenorth> errr
19:39:46 <andythenorth> this kinda works surprisingly well
19:39:53 <andythenorth> mining towns get mines and quarries
19:39:59 <andythenorth> farming towns get.... farms
19:43:47 <andythenorth> doesn't change the look of the map very much though
19:45:46 *** tokai has joined #openttd
19:45:46 *** ChanServ sets mode: +v tokai
19:52:06 <peter1138> NewGRF rocks
19:52:30 <andythenorth> PBI quarries
19:52:35 *** tokai|noir has quit IRC (Ping timeout: 481 seconds)
19:52:51 *** Beer has joined #openttd
19:55:09 <andythenorth> hmm
19:55:18 <andythenorth> goes it a newgrf var for number of towns?
19:55:37 <andythenorth> looked like a pool, I couldn't figure out how to get the size of the pool
19:56:00 <andythenorth> read the index of the last item in the pool? :P
20:09:26 <Rubidium> andythenorth: GetNumItems?
20:09:55 <peter1138> More desyncable vars ;)
20:10:13 <Rubidium> e.g. Town::GetNumItems
20:11:04 <andythenorth> desyncs are so mysterious
20:11:21 <Rubidium> yeah, that would potentially be desyncable
20:12:16 <andythenorth> I don't want to ask why right?
20:12:25 <andythenorth> or rather...nobody will enjoy explaining? :P
20:14:52 <Rubidium> the number of towns can change without notifying industries or houses that the number of towns changed, so their caches do not get reset
20:15:34 <andythenorth> caching I understand :)
20:15:36 <andythenorth> ok
20:16:56 *** orudge has joined #openttd
20:16:56 *** ChanServ sets mode: +o orudge
20:17:54 <andythenorth> well
20:18:11 <andythenorth> I am limiting industries to something like mod(6) of the town index
20:18:20 <andythenorth> so maps with less than 6 towns are....in trouble :)
20:18:27 * andythenorth is going to ignore that for now
20:20:10 <TrueBrain> I will prepare a tt-forums reply indicate that it is absurd a NewGRF doesn't work on my 1 town map of 4kx4k
20:20:11 <TrueBrain> unplayable
20:20:12 <TrueBrain> :P
20:20:28 <TrueBrain> I am joking of course; you can't make all settings on the spectrum playable :)
20:20:39 *** orudge` has quit IRC (Ping timeout: 480 seconds)
20:21:45 <andythenorth> I only read forums very selectively now
20:21:52 <andythenorth> I read the Unsinkable Sam thread (nobody replies)
20:21:58 <TrueBrain> you are such a smart cookie :)
20:21:58 <andythenorth> and a post Erato wrote
20:22:10 <andythenorth> the rest is .... trash at this point :)
20:22:34 <andythenorth> anyway, need to break some eggs for this omelette
20:22:49 * andythenorth has gameplay ideas
20:32:52 *** gelignite has quit IRC (Quit: Stay safe!)
20:54:39 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFF1
21:10:22 *** Samu has quit IRC (Quit: Leaving)
21:14:11 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #9398: Fix: [Squirrel] Enforce comma usage in function calls https://git.io/JnFAm
21:20:23 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:26:41 *** andythenorth has quit IRC (Quit: andythenorth)
21:36:46 *** Beer has quit IRC (Quit: Leaving)
21:36:56 *** Beer has joined #openttd
22:02:30 *** sla_ro|master has quit IRC ()
22:15:41 *** Progman has quit IRC (Remote host closed the connection)
22:31:24 *** Wormnest has quit IRC (Quit: Leaving)
22:33:35 *** Gustavo6046_ has joined #openttd
22:36:20 *** Gustavo6046 has quit IRC (Ping timeout: 480 seconds)
22:36:20 *** Gustavo6046_ is now known as Gustavo6046
22:42:08 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:48:57 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
22:49:41 *** WormnestAndroid has joined #openttd
23:19:17 *** Gustavo6046 has quit IRC (Ping timeout: 480 seconds)
23:45:03 *** tokai|noir has joined #openttd
23:45:03 *** ChanServ sets mode: +v tokai|noir
23:48:59 *** Wuzzy has quit IRC (Quit: Wuzzy)
23:49:30 *** Gustavo6046 has joined #openttd
23:51:39 *** tokai has quit IRC (Ping timeout: 480 seconds)
23:53:27 *** tokai has joined #openttd
23:53:27 *** ChanServ sets mode: +v tokai