IRC logs for #openttd on OFTC at 2023-12-15
            
00:03:33 *** greeter has quit IRC (Ping timeout: 480 seconds)
00:03:47 *** greeter has joined #openttd
00:18:45 *** wallabra has quit IRC (Ping timeout: 480 seconds)
00:21:25 <peter1138> At least regression works, everything must be fine right :D
00:25:31 <peter1138> Adding day/month/year stuff to the economy-date stuff seems wrong.
00:26:33 <peter1138> (I guess compatibility)
00:26:36 <talltyler> Why?
00:26:44 <peter1138> ((Although you mispelled it compatability))
00:27:03 <talltyler> Oops
00:28:16 *** wallabra has joined #openttd
00:29:39 <peter1138> Something about your API changes is wrong.
00:29:46 <peter1138> (But I'm assuming we know that :D)
00:31:28 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185016238263517204/image.png?ex=658e135f&is=657b9e5f&hm=403ddcc34631efd3d919c8c0b55bc647381dda06cdc0eba0de213ab343f207bd&
00:31:28 <_glx_> looks like you need a rebase first (the GUI is weird)
00:33:56 <peter1138> [squirrel] Failed to compile 'compat_13.nut'
00:34:56 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700
00:35:48 <peter1138> dbg: [script] [18] [S] Your script made an error: the index 'GSDate' does not exist
00:35:57 <peter1138> dbg: [script] [18] [S] *FUNCTION [main()] /home/petern/src/openttd/build/game/compat_13.nut line [13]
00:36:14 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588
00:36:22 <talltyler> Rebased
00:37:34 <talltyler> Are you getting the script to load, or is that from the OpenTTD crash log?
00:37:45 <_glx_> ok yeah it's the compatibility scripts, and some incorrect handling of that
00:37:53 <talltyler> I assumed ๐Ÿ™‚
00:38:15 <_glx_> engine is deleted but we don't check and assume compatibility scripts are always fine
00:38:18 <peter1138> There's no error handling in case of compatibility failing.
00:38:22 <_glx_> I'll fix
00:38:27 <peter1138> Already got one ;)
00:38:31 <_glx_> ah ok
00:39:00 <talltyler> What does โ€œEngine is deletedโ€ mean?
00:42:32 <_glx_> ScriptInstance::Died() is called when there's an error, which deletes this->engine
00:43:17 <_glx_> so the this->engine->LoadScript(main_script) happening after, without any safety check, crashes
00:43:30 <_glx_> because this->engine is nullptr
00:44:28 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589
00:45:31 <peter1138> Hmm, the comment could be placed better.
00:46:33 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589
00:46:49 <peter1138> There we go. It's not obvious when it applies.
00:46:51 <peter1138> ...
00:46:52 <peter1138> *now
00:47:31 <_glx_> could also use this->IsDead()
00:52:06 <peter1138> Oh instead of checking for nullptr. Hmm.
00:52:30 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589#pullrequestreview-1782975635
00:52:48 <_glx_> I'm fine with both
00:52:50 <peter1138> No, IsDead() does not work.
00:53:03 <peter1138> Wait, it does.
00:53:13 <_glx_> Died() sets is_dead
00:53:14 <peter1138> My test didn't die, the exception was because squirrel just uses exceptions :D
00:56:03 <peter1138> Yeah, IsDead() works when you break the correct comaptibility script :)
00:56:11 <peter1138> I think that's clearer than == nullptr, tbh.
00:56:41 <DorpsGek> [OpenTTD/OpenTTD] PeterN dismissed a review for pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589#pullrequestreview-1782975635
00:56:44 <peter1138> Sorry :)
00:56:45 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589
00:57:04 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589#pullrequestreview-1782978572
00:57:32 <_glx_> yeah the call itself documents what we are testing for
00:59:13 *** Tirili has quit IRC (Quit: Leaving)
00:59:56 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185023402981982228/image.png?ex=658e1a0b&is=657ba50b&hm=369978aaaa8be9355996bf1337163647035e7f744a119457f91acd8446ab97cd&
00:59:56 <_glx_> when not crashing it's more helpful ๐Ÿ™‚
01:00:36 <_glx_> (yeah I still use the not rebased code)
01:02:25 <talltyler> More helpful yes
01:02:41 <talltyler> Still not sure what Iโ€™m missing, but it helps eliminate other possibilities
01:02:55 <talltyler> It fails to load the compat file altogether?
01:05:06 <_glx_> GSDate::DATE_INVALID and GSDate::IsValidDate are from 1.4
01:06:09 <_glx_> but the problem here is GSDate itself which doesn't exist at all
01:06:26 <_glx_> in the PR
01:07:02 <talltyler> Hmm, Iโ€™m not sure I understand
01:07:17 <talltyler> Even though I removed it, I need a placeholder for the GS to find?
01:08:56 <_glx_> I think you can do ` GSDate <- GSDateEconomy;` (at least seems to work in my test)
01:11:36 <_glx_> `GSDate.DATE_INVALID <- GSDateEconomy.DATE_INVALID;` says redefine DATE_INVALID slot of GSDate table
01:11:51 <_glx_> but the table doesn't exist
01:13:43 <talltyler> Oh interesting, I can just rename the whole class in the compat file?
01:15:52 <_glx_> it's not a rename, you just create a new GSDate table, and the content is the other table
01:17:12 <talltyler> Ah let me try that
01:21:56 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185028939953995797/image.png?ex=658e1f34&is=657baa34&hm=281c91ea095a1930cc63a5cfec67418bf0e7405a4e0bb39e78cced21fb318297&
01:21:56 <_glx_> tested with bee reward, the values seem to decrease correctly when I fast forward
01:23:19 <peter1138> Surprised nothing has reinitialized windows at that point.
01:23:25 <peter1138> (That would fix the bevels)
01:23:48 <_glx_> nah I'm on the broken GUI version
01:23:58 <peter1138> Yes, that's what I mean.
01:24:16 <_glx_> and I know what to not click ๐Ÿ™‚
01:24:20 <peter1138> It unbreaks if there's a window reinitialization.
01:24:40 <peter1138> "set newgrf_developer_tools 1" will do it :)
01:24:45 <peter1138> iirc
01:25:40 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11589: Fix: Crash if squirrel compatibility scripts cannot be parsed. https://github.com/OpenTTD/OpenTTD/pull/11589
01:25:51 <talltyler> Ah, I got a hard crash after fast-forwarding for a bit
01:25:51 <_glx_> using font command too
01:26:06 <talltyler> https://cdn.discordapp.com/attachments/1008473233844097104/1185029990513914018/crash20231215012500.json.log?ex=658e202e&is=657bab2e&hm=9c22031d307588257fe5ca4e71b372db906d3d5469189afb8392d068a785ba55&
01:27:18 <_glx_> starting an AI it seems
01:27:36 <_glx_> "openttd 7FF79F1F12EC Squirrel::LoadScript + 28 (C:\\Users\\tyler\\Documents\\GitHub\\OpenTTD\\src\\script\\squirrel.cpp:733)",
01:28:08 <peter1138> AI compat this time? ;)
01:28:13 <_glx_> oh it's the same bug
01:28:21 <_glx_> yeah
01:28:42 <talltyler> I should rebase?
01:29:17 <talltyler> Oh, I didn't fix AI ๐Ÿ˜›
01:29:47 <_glx_> but yeah a rebase would prevent further crashes in this area
01:30:10 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700
01:30:34 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588
01:31:01 <talltyler> Okay, let's wait for the fixed version to build, then I will test both GS and AI to ensure they work
01:31:10 <talltyler> GS was working perfectly though ๐Ÿ˜„
01:31:38 <peter1138> Nice, we should merge the perfectly working GS as well ;)
01:32:22 <_glx_> GS I used to test were not perfectly working (but not because of dates)
01:32:43 <talltyler> RenewedVillageGrowth is quite a nice GS
01:32:55 <_glx_> most GS don't like the enforced string format
01:35:13 <_glx_> many authors (and the doc is not very good on this point probably) often don't understand STRINGx stuff
01:36:38 <talltyler> It works! \o/
01:36:54 <talltyler> Thank you Peter and _glx_ for your help โค๏ธ
01:37:10 <_glx_> thanks for the bug finding ๐Ÿ™‚
01:37:18 <talltyler> Any time ๐Ÿ˜›
01:38:21 <_glx_> 3 script bugs fixed today
01:38:24 <_glx_> not bad
01:39:20 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588
01:39:27 <talltyler> (forgot a line in the changelog ๐Ÿ™‚ )
01:39:39 <talltyler> Now it's time to watch Godzilla and not look at code until tomorrow ๐Ÿ˜„
01:55:53 <_glx_> you forgot ai_changelog too ๐Ÿ˜‰
02:21:27 <talltyler> Ah, thanks. I will do that tomorrow.
02:24:42 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#pullrequestreview-1783025673
02:45:02 *** Wormnest has quit IRC (Quit: Leaving)
03:53:29 *** debdog has joined #openttd
03:56:55 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:00:54 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#issuecomment-1857237110
04:59:56 *** keikoz has joined #openttd
06:42:24 <DorpsGek> [OpenTTD/OpenTTD] Mixu78 opened issue #11590: [Bug]: Debug() redirection to TCP does not work when running as dedicated server https://github.com/OpenTTD/OpenTTD/issues/11590
07:55:00 <andythenorth> well
07:55:18 <locosage> is there som command to see what newgrfs are loaded on the server?
07:56:05 <locosage> with exact file names
08:07:20 *** wpiwpi has joined #openttd
08:07:20 <wpiwpi> isn't the new ship pathfinder basically the same thing as https://factorio.com/blog/post/fff-317 ?
08:10:40 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
08:32:08 <merni> does seem to be quite similar yeah
08:33:33 <merni> nice that they also thought of the same solution
08:51:13 *** urdh has quit IRC (Quit: Boom!)
09:00:07 *** urdh has joined #openttd
09:58:42 <Rubidium> locosage: fromt the server, or from the client? If it's the latter then definitely not, and I wouldn't be that inclined to even implement that as it could leak (private) path information
10:01:50 <locosage> from anything
10:03:00 <locosage> from client there is rcon anyway
10:07:06 <Rubidium> I would consider rcon "from the server"
10:23:29 <xarick> holy smokes, Path of Exile Content.ggpk is already 40 GB in size
10:24:46 <xarick> 38,4 GB (41ย 277ย 144ย 072 bytes)
10:44:05 <peter1138> And I worry about a few MB of audio files ;D
10:44:56 <peter1138> Encrypted rcon channel yet?
11:00:33 <Rubidium> yeah, quad rot64 ;D
11:01:48 <LordAro> @calc 4*64/26
11:01:48 <DorpsGek> LordAro: 9.846153846153847
11:01:59 <LordAro> had to check :p
11:02:50 <Rubidium> well, it works on bytes not on letters ;D
11:02:51 <peter1138> But what are you checking?
11:11:44 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700#issuecomment-1857702375
11:15:05 <truebrain> peter1138: Encrypted admin port is in JGRPP .. copy/paste?
11:15:59 <peter1138> LOL. Of course it is.
11:16:26 <peter1138> openttd:// openttds:// :D
11:16:40 <xarick> how do I get the coordinates of the first valid tile for each map corner? ๐Ÿ˜ฎ
11:17:04 <peter1138> `ci/woodpecker/pr/woodpecker Pipeline was successful` whoop :D
11:20:15 <peter1138> 1, 1 -> GetMapSizeX() - 2, GetMapSizeY() - 2
11:20:50 <peter1138> Assuming freeform_edges, and who plays without that.
11:21:20 <peter1138> (If it's not freeform_edges, then 0, 0 (but the max is the same))
11:21:34 <xarick> i found it
11:22:46 <xarick> https://github.com/SamuXarick/LuDiAI-AfterFix/blob/fae674b9084c075eb8a1161a30d6a3be072d6dee/RoadPathfinder.nut#L73-L79
11:26:45 <peter1138> That's wrong.
11:26:56 <xarick> oh no
11:27:34 <peter1138> The max cordinate is always 2 less, it does not depend on freeform edges.
11:27:38 <peter1138> +_o
11:27:40 <peter1138> -_
11:27:42 <peter1138> FFS :D
11:33:52 <xarick> I'm hinking whether I had considered the impossibility to build roads on the first edge coordinate, but i guess I didn't
11:34:02 <_jgr_> truebrain: The admin port is unchanged in my branch, it should only be used from the same box anyway
11:34:19 <truebrain> owh, what port was it? You encrypted one of them ๐Ÿ˜›
11:36:43 <_jgr_> It's rcon and non-company password packets
11:37:28 <_jgr_> In the usual game socket
11:37:44 <xarick> with freeform, we can place roads at tile 1, 1 and 1022, 1022
11:43:21 <xarick> okay, without freeform edges, we're only able to build roads at tile 1, 1 and 1021, 1021
11:43:31 <xarick> what did I do in the code?
11:44:41 *** gelignite has joined #openttd
11:45:28 <peter1138> You asked for valid tiles.
11:46:17 <peter1138> Valid tiles go from without freeform edges, valid tiles go from 0, 0 to 1022, 1022. With freeform edges, valid tiles go from 1, 1 to 1022, 1022.
11:47:25 <peter1138> However, without freeform edges, you can't do anything to the edge tiles.
11:47:29 <peter1138> They are valid tiles that you can't change.
11:48:03 <peter1138> So your algorithm is fine for what you want, but it isn't the same as valid tiles.
11:48:47 <xarick> this should be what I wanted :p
11:48:47 <xarick> ` this._min_x = max(1, min(source_x, goal_x) - this._search_range);
11:48:47 <xarick> this._min_y = max(1, min(source_y, goal_y) - this._search_range);`
11:49:04 <xarick> and that min_freeform is useless, kinda
11:52:37 <xarick> local max_freeform = (AIMap.IsValidTile(0) ? 0 : 1) == 0 ? 3 : 2; must simplify this
11:55:31 <xarick> local max_freeform = AIMap.IsValidTile(0) ? 2 : 3;
11:56:20 *** ahyangyi has quit IRC (Quit: User went offline on Discord a while ago)
12:03:31 <xarick> alright, fixed locally
12:06:38 *** thelounge345 has quit IRC (Ping timeout: 480 seconds)
12:09:29 <xarick> dang
12:09:32 <xarick> it's 3 : 2
12:12:26 <xarick> if the tile 0 is valid, that means freeform is disabled, and if freeform is disabled, i have 1 less coordinate to place roads at the bottom corner, which means I wanna subtract 3 to MaxSizeX.
12:19:58 *** thelounge345 has joined #openttd
12:24:22 *** jinks has quit IRC (Quit: ZNC - http://znc.in)
12:24:41 *** jinks has joined #openttd
12:29:33 <xarick> is it possible for GS's to have access to fast forward button?
12:29:51 <xarick> I was looking for precise control of it
12:34:07 <peter1138> "Fast-forward until 1995"
12:37:31 <LordAro> is this where xarick finally discovers null video drivers and the tick count?
12:52:14 <peter1138> Unlikely, he can't see the signs :)
13:00:21 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11591: Fix: Make compact picker windows expand to fill if necessary. https://github.com/OpenTTD/OpenTTD/pull/11591
13:09:10 <DorpsGek> [OpenTTD/team] tsaqibfs opened issue #469: [id_ID] Translator access request https://github.com/OpenTTD/team/issues/469
13:12:11 <DorpsGek> [OpenTTD/team] tsaqibfs commented on issue #469: [id_ID] Translator access request https://github.com/OpenTTD/team/issues/469
13:18:07 <_glx_> another winner of the "glx will ignore the translator access request"
13:18:35 <LordAro> lol
13:19:35 <_glx_> hmm maybe the bot could handle that
13:20:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592
13:20:52 <peter1138> Did you delete it or did they realise?
13:22:10 <_glx_> I did nothing
13:22:25 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592
13:26:02 <peter1138> Hmm, RouterOS upgrade time?
13:35:12 <peter1138> Although I admire a home router having MPLS... I've never found a use for it :)
13:48:38 *** nielsm has joined #openttd
13:54:32 <LordAro> not trying hard enough
13:59:51 <xarick> wow 11592
14:04:23 <xarick> I think you made a mistake, not sure
14:05:06 <xarick> at ai_core.cpp line 330, WC_SCRIPT_LIST is not the same as WC_SCRIPT_DEBUG, unless you really mean that
14:06:30 <_glx_> make a review
14:06:34 <_glx_> easier to follow
14:06:35 *** nielsm has quit IRC (Ping timeout: 480 seconds)
14:07:13 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick commented on pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592#pullrequestreview-1784130395
14:07:46 <_glx_> but to me it looks like old code was wrong
14:08:07 <_glx_> ah no
14:08:26 <_glx_> yeah the change is incorrect
14:08:46 <xarick> i don't know how to use the review feature
14:08:56 <xarick> i commented, it says it's posted, but then it's not
14:09:16 <_glx_> it is
14:09:56 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185222213473935440/image.png?ex=658ed334&is=657c5e34&hm=ec6deb6b9c5f2999b65bdffc112d68dbe2ac71e0c0a028f8914d3ac45c8f3e3e&
14:10:22 <xarick> oh, nice!
14:10:52 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592
14:10:58 <_glx_> ah vcpkg fixed the breakpad issue
14:11:40 <peter1138> I guess I had search for WC_SCRIPT_DEBUG and saw the "0, 1" looked the same to my old eyes...
14:11:46 <peter1138> +ed
14:12:59 <_glx_> otherwise the setdirty following invalidate would have been useless ๐Ÿ™‚
14:15:15 *** thelounge345 has quit IRC (Read error: Connection reset by peer)
14:15:34 *** thelounge345 has joined #openttd
14:17:43 <peter1138> Many windows update state when painting.
14:17:53 <peter1138> (That is something to fix another day...)
14:19:32 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700
14:19:50 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10700: Codechange: Split dates and timers into Economy and Calendar time https://github.com/OpenTTD/OpenTTD/pull/10700#issuecomment-1857960552
14:25:41 <_glx_> <https://github.com/OpenTTD/grfcodec/blob/master/src/messages.cpp#L116> <-- that looks very wrong
14:26:14 <_glx_> most likely using the wrong function
14:26:43 *** gelignite has quit IRC (Quit: Stay safe!)
14:28:47 <peter1138> Nice
14:32:53 <_glx_> ah no, it's correct, it's the stupid coding style
14:33:47 <peter1138> It is... isn't it.
14:34:00 <_glx_> I forgot to look at the parenthesis colours
14:35:06 <peter1138> Anything worth a new release? :D
14:36:05 <_glx_> I'd like to get rid of all this va_list stuff
14:36:35 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185228919335567380/Unnamed_2050-01-011.png?ex=658ed972&is=657c6472&hm=c0a5a9c3e8ee3726c5499b2e4a5dbf52a3acad85e4b1c94bdd239b4bb4e92af3&
14:36:35 <xarick> suddenly the list is filled with 0's ... what am I doing wrong
14:37:20 <_glx_> if a 0 is in the list, you somehow put it there
14:37:47 <xarick> distance = 0, it's incorrect, but why
14:38:09 <xarick> the lower the nosie, the higher shuld the distance be
14:45:03 <xarick> https://gist.github.com/SamuXarick/fa053d2920d14b51958d950e6f65b54c
14:48:45 <xarick> not enough distances were tested, maybe?
14:49:12 <xarick> map is small, 64x64, only 64+64 distances are tested
14:50:03 <xarick> seems to be it
14:51:22 <xarick> i'd rather have it say 128 than 0
14:52:19 <xarick> wait... no, 128 would also be incorrect
14:52:57 <xarick> it's just impossible to reach those low noise levels due to map size
14:57:26 <xarick> that 0 must come from somewhere
14:57:48 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #11581: Add: Improve World Generation GUI tooltips https://github.com/OpenTTD/OpenTTD/pull/11581
14:59:35 <xarick> shouldn't the script crash if I'm trying to retrieve a non-existant item from a list? https://gist.github.com/SamuXarick/fa053d2920d14b51958d950e6f65b54c#file-getairportnoiselevelfordistance-nut-L30
15:00:55 <xarick> because I'm pretty sure, those lists didn't even got a noise that low to be added
15:01:12 <xarick> so yeah, the 2nd part of the code is where stuff fails
15:12:22 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185237925789704222/image.png?ex=658ee1d6&is=657c6cd6&hm=3cea5410c614b2508bc94ed01d092cec8d4ad4cb2b3d98d27432ff0c6bfe50dc&
15:12:22 <xarick> confirmed!
15:13:32 <xarick> why u no crash? I expected a crash
15:13:48 <xarick> when using noise_levels.GetValue(noise) on a noise that doesn't exist in the list
15:15:24 <xarick> instead, I get a 0
15:28:50 <xarick> `for (local distance = 0; noise_levels.Count() != _noisiest_airport_noise; distance++) {`
15:28:50 <xarick> smart fix ๐Ÿ™‚
15:29:44 <xarick> it's possibly wrong, maybe
15:30:22 <xarick> yep, noise 1 ๐Ÿ˜ฆ
15:32:32 <xarick> noise 1 is that special noise that is always the minimum garanteed
15:36:04 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185243890396168303/image.png?ex=658ee764&is=657c7264&hm=f3829670c8c1045610548c81be0b3c90b0873f1df316eee92083472888e71b79&
15:36:04 <xarick> problem solved!
15:44:32 *** Wormnest has joined #openttd
16:06:06 *** Flygon has joined #openttd
16:13:32 *** esselfe has quit IRC (Ping timeout: 480 seconds)
17:16:30 *** Hanicef has joined #openttd
17:25:01 <_glx_> <https://github.com/OpenTTD/grfcodec/compare/master...glx22:grfcodec:clang-warnings> <-- only one warning left (performing pointer subtraction with a null pointer may have undefined behavior [-Wnull-pointer-subtraction])
17:26:59 <DorpsGek> [OpenTTD/grfcodec] glx22 opened pull request #30: Codechange: Silence clang warnings about va_start https://github.com/OpenTTD/grfcodec/pull/30
17:29:13 <_glx_> I tried to convert mysprintf from variadic function to variadic template, but it means moving it to header and then that implies to drag more stuff to the header
17:30:19 <_glx_> yeah now gcc is not happy
17:31:58 <DorpsGek> [OpenTTD/grfcodec] glx22 updated pull request #30: Codechange: Silence clang warnings about va_start https://github.com/OpenTTD/grfcodec/pull/30
17:37:15 <peter1138[d]> Fun
17:37:21 <peter1138[d]> Fmt ๐Ÿ™‚
17:38:43 <_glx_> Fmt could work, but they nforenum uses custom control codes
17:41:53 *** HerzogDeXtEr has joined #openttd
17:46:28 *** Wolf01 has joined #openttd
17:46:58 <Wolf01> Heh, some train love on FFF
17:47:38 <Wolf01> Factorio transport tycoon :P
17:56:47 <xarick> peter1138[d]: Now the debug needs word-wrap or a horizontal scrollbar ๐Ÿ™‚
17:56:55 <xarick> debug window
17:58:23 <_glx_> word-wrap might be easy, but usually the result is not very easy to read
18:07:12 <_glx_> oh indeed word-wrap is super easy to do
18:08:59 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185282371055005797/image.png?ex=658f0b3a&is=657c963a&hm=36415e2fa2e46496fbe944a2af53034d12351ebcef1497a7b337a469fd5d52dc&
18:10:14 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185282688060493854/image.png?ex=658f0b86&is=657c9686&hm=da7c28ab457273e43c8052bf8a84525494ad350afad32d320334a798d02c9764&
18:10:28 <xarick> ^_^
18:11:06 <peter1138> Scroll position probably needs more work than that.
18:11:39 <_glx_> yeah scrolling is hard
18:13:26 <_glx_> because the text is drawn in the box and the excedent is just croped
18:13:44 <peter1138> It's not hard, just tedious.
18:14:03 <peter1138> Textfile window does it.
18:16:39 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185284301940605058/image.png?ex=658f0d07&is=657c9807&hm=2473dcc5487b0922cadf56b5673cb0f95dc40c490fee1e5f84204eb845c7c378&
18:16:39 <xarick> meanwhile, I'm benchmarking my functions
18:18:45 <xarick> dont even know if they produce the same results
18:19:05 <xarick> but they should
18:27:17 <xarick> oh, right... they order the tiles differently, nevermind, can't compare the order. But I can still compare if they both have added the same tiles.
18:32:16 <_glx_> scroll position might be expensive too if the script outputs very often
18:35:50 <_glx_> oh I think we have a bug in TextfileWindow
18:37:19 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185289505079578725/image.png?ex=658f11df&is=657c9cdf&hm=ce894ea468244947485fa976aa059f225d2f03a05e4e100681b85ae83badb447&
18:37:19 <_glx_> before enabling "Wrap text"
18:37:39 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185289589187940382/image.png?ex=658f11f3&is=657c9cf3&hm=81ea4d3367b3ea1bbc2ce5b166c58c00eb8edb3806b090343866dfd34c0c9cd1&
18:37:39 <_glx_> after enabling "Wrap text"
18:38:03 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1185289686722297932/image.png?ex=658f120a&is=657c9d0a&hm=f0223f086590a641edb66c4c1822cfd0e9d9b6cc3b6dc269bc828306d3edbcf3&
18:38:03 <_glx_> After a small resizing of the window
18:38:15 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/0e6038f0e5f754237e34b9260214f1ff6b250809
18:38:16 <DorpsGek> - Update: Translations from eints (by translators)
18:38:29 <_glx_> looks like some refreshing is missing
18:38:36 <peter1138> Interesting. It did work :)
18:41:55 <peter1138> Hmm, when ReflowContent() is called, this->lines is empty.
18:42:16 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185290749437280417/image.png?ex=658f1308&is=657c9e08&hm=dc1319614aca6baa3687866bd8ac6e38bfce23d2868067712c6882e410f59f95&
18:42:16 <xarick> oops! different numbers
18:42:52 <_glx_> but this->line is filled on window creation
18:43:18 <peter1138> It's filled when resizing, but not when toggling WRAPTEXT. Huh./
18:51:11 <peter1138> Okay, it's invalidating the text file window, which causes it to reload the file.
18:52:24 <peter1138> I wonder what broke this.
18:52:38 <peter1138> I'm pretty sure it never used to clear and reload the file.
18:53:28 <_glx_> yeah and it loads the text after the reinit and reflow
18:53:38 <_glx_> and never calls reflow again
18:55:27 <peter1138> I think it may be due to the document/manuals stuff.
18:56:07 <_glx_> https://github.com/OpenTTD/OpenTTD/commit/41de0d46f358cc5c08d67fdafcb2ee830ccc236e#diff-97e2f420fe156f1b9a64d9fec620a2510af5b4f8ae4e332a33f8191960f93c3d
18:56:10 <_glx_> it is
18:56:33 <_glx_> changes in LoadTextfile
19:00:49 <_glx_> introduced a ReInit
19:02:41 *** fiddeldibu[m] has quit IRC (Quit: Client limit exceeded: 20000)
19:11:52 <peter1138> malloc_consolidate(): invalid chunk size
19:11:53 <peter1138> Oops :)
19:18:40 *** frosch123 has joined #openttd
19:18:40 <frosch123> andythenorth: fun fact: in factorio you can now assign liveries to stations, and trains will use the livery of their current destination
19:18:49 <peter1138> :o
19:19:01 <peter1138> JGRPP probably already has it.
19:19:39 <frosch123> next thing would be livery groups for stations?
19:29:48 *** Tirili has joined #openttd
19:35:14 <peter1138> livery industry flat docks
19:39:13 <andythenorth> I thought you had a patch for that?
19:53:59 <peter1138> Usually.
20:00:54 *** ufo-piloot_ has quit IRC ()
20:34:16 <xarick> don't you guys get scared you're doing too many changes at once? how would you test things properly?
20:42:44 <andythenorth> yolo swag
20:47:43 <talltyler> No comment ๐Ÿ˜›
20:47:55 <locosage> with your change piss off enough people so they thoroughly comb through looking for errors
20:49:50 <talltyler> Or Andy complains enough about CargoDist being broken that we investigate if it really is
20:50:06 <talltyler> (It was)
20:50:23 <locosage> isn't it even more broken now? xD
21:17:24 <andythenorth> it's perfect in my build
21:17:47 <DorpsGek> [OpenTTD/grfcodec] rubidium42 approved pull request #30: Codechange: Silence clang warnings about va_start https://github.com/OpenTTD/grfcodec/pull/30#pullrequestreview-1784942377
21:21:30 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11591: Fix: Make compact picker windows expand to fill if necessary. https://github.com/OpenTTD/OpenTTD/pull/11591#pullrequestreview-1784946430
21:24:52 *** kuhnovic has quit IRC (Quit: User went offline on Discord a while ago)
21:32:23 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592#pullrequestreview-1784948125
21:32:49 <Rubidium> oops
21:35:00 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 dismissed a review for pull request #11592: Add: [Script] Allow multiple script debug windows. https://github.com/OpenTTD/OpenTTD/pull/11592#pullrequestreview-1784948125
21:45:55 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#issuecomment-1858526277
22:12:38 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588
22:20:38 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#issuecomment-1858560284
22:21:30 <xarick> too confusing imo
22:23:05 *** moll has quit IRC (Ping timeout: 480 seconds)
22:25:54 <xarick> it's a massive project
22:29:31 <xarick> maybe it's just too much for me to deal with atm
22:29:42 <xarick> but economy date, calendar date... hmm :\
22:46:10 *** Hanicef has quit IRC (Quit: leaving)
23:00:00 *** keikoz has quit IRC (Ping timeout: 480 seconds)
23:00:54 <Eddi|zuHause> well, this whole daylength thing has been brewing for like 20 years now
23:16:56 <talltyler> 20 economy years? ๐Ÿ˜›
23:17:28 <talltyler> Itโ€™s not confusing to me because Iโ€™ve been putting part-time-job-hours into it for almost a year now
23:18:12 <talltyler> We are in the final stretch though, after months and months of fixing tech debt and preparing
23:19:10 <Eddi|zuHause> yes, and half a dozen examples of "how not to do it" that came before you.
23:20:42 <talltyler> At least two of those were mine
23:20:50 <talltyler> Maybe three, I canโ€™t remember honestly
23:21:07 <talltyler> I did โ€œgroundhog yearโ€ and โ€œtechnology timeโ€
23:21:22 <talltyler> The latter of which is the mirror-image of my current approach
23:47:07 <xarick> is this piece of code gonna work as I think? `(_noisiest_airport_width > _noisiest_airport_height ? w : h) = abs(_noisiest_airport_width - _noisiest_airport_height);`
23:50:07 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1185368211642920960/image.png?ex=658f5b2c&is=657ce62c&hm=fbe007d370c186b10b9d6c33bc354f927c9174cd9f5e6ccc2574256b96229df5&
23:50:20 <xarick> nop
23:52:56 <DorpsGek> [OpenTTD/grfcodec] glx22 commented on pull request #30: Codechange: Silence clang warnings about va_start https://github.com/OpenTTD/grfcodec/pull/30#issuecomment-1858618003
23:53:11 <xarick> > ` if (_noisiest_airport_width != _noisiest_airport_height) {
23:53:11 <xarick> > local diff = abs(_noisiest_airport_width - _noisiest_airport_height);
23:53:11 <xarick> > if (_noisiest_airport_width > _noisiest_airport_height) {
23:53:11 <xarick> > w = diff;
23:53:11 <xarick> > } else {
23:53:12 <xarick> > h = diff;
23:53:12 <xarick> > }
23:53:14 <xarick> > }`
23:53:16 <xarick> the uglyness!
23:53:26 <_glx_> of course it won't work
23:53:57 <xarick> how do I make it prettier? smarter!
23:54:26 <_glx_> you can't, only ways is this one
23:57:00 <xarick> > ` local diff = abs(_noisiest_airport_width - _noisiest_airport_height);
23:57:00 <xarick> > if (diff) {
23:57:00 <xarick> > if (_noisiest_airport_width > _noisiest_airport_height) {
23:57:00 <xarick> > w = diff;
23:57:00 <xarick> > } else {
23:57:02 <xarick> > h = diff;
23:57:02 <xarick> > }
23:57:04 <xarick> > }`
23:57:04 <xarick> > slightly more smarter