IRC logs for #openttd on OFTC at 2025-12-18
            
00:00:25 *** WormnestAndroid has joined #openttd
00:02:16 <DorpsGek> [OpenTTD/OpenGFX2] 2TallTyler approved pull request #228: Add building stages, ground tiles and details for more temperate 4x houses https://github.com/OpenTTD/OpenGFX2/pull/228#pullrequestreview-3590102326
00:03:32 <kaji_kaede> xarick: I'm not familiar with the specifics. But there's only really one sensible answer to why regardless: it performs better.
00:05:27 <DorpsGek> [OpenTTD/OpenGFX2] 2TallTyler approved pull request #227: Fix: Incorrect grass shading for 4x zoom arctic snow transition https://github.com/OpenTTD/OpenGFX2/pull/227#pullrequestreview-3590107845
00:06:38 *** Wormnest has joined #openttd
00:06:58 <DorpsGek> [OpenTTD/OpenGFX2] 2TallTyler approved pull request #226: Remove: Settings NewGRF https://github.com/OpenTTD/OpenGFX2/pull/226#pullrequestreview-3590110245
00:18:10 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
00:23:01 <talltyler> Do we want a Steam news post for RC2, or shall I just wait for RC3?
00:29:32 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #9832: Change: Vanilla industry tiles have 8/8 acceptance by default https://github.com/OpenTTD/OpenTTD/pull/9832
00:31:39 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #14635: Feature: Scale cargo payment decay rate https://github.com/OpenTTD/OpenTTD/pull/14635
00:33:04 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #13265: Change: Convert Magic Bulldozer to settings https://github.com/OpenTTD/OpenTTD/pull/13265
01:01:47 *** tokai has joined #openttd
01:01:47 *** ChanServ sets mode: +v tokai
01:08:46 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
02:56:18 *** Wormnest has quit IRC (Quit: Leaving)
03:52:46 *** Flygon has quit IRC (Remote host closed the connection)
04:43:27 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/53178d05490ad3a06c968bb0dbe37fa06c8974c8
04:43:28 <DorpsGek> - Update: Translations from eints (by translators)
04:54:44 *** Zathras_11 has joined #openttd
04:58:16 *** Zathras_7 has quit IRC (Ping timeout: 480 seconds)
06:00:07 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on pull request #14635: Feature: Scale cargo payment decay rate https://github.com/OpenTTD/OpenTTD/pull/14635#pullrequestreview-3590909381
07:27:21 <_zephyris> talltyler: I'd do one, but mostly because it'd look odd to scroll back and have RC2 missing!
08:19:08 *** toktik is now known as Guest33846
08:19:11 *** toktik has joined #openttd
08:24:23 *** Guest33846 has quit IRC (Ping timeout: 480 seconds)
08:25:01 *** felix_ has joined #openttd
08:28:09 *** felix has quit IRC (Ping timeout: 480 seconds)
09:06:10 <peter1138> talltyler, please do one, yes :)
09:56:54 <DorpsGek> [OpenTTD/OpenGFX2] zephyris merged pull request #227: Fix: Incorrect grass shading for 4x zoom arctic snow transition https://github.com/OpenTTD/OpenGFX2/pull/227
09:57:00 <DorpsGek> [OpenTTD/OpenGFX2] zephyris closed issue #224: 4x zoom arctic snow slopes are slightly different colour https://github.com/OpenTTD/OpenGFX2/issues/224
09:59:38 <DorpsGek> [OpenTTD/OpenGFX2] zephyris merged pull request #228: Add building stages, ground tiles and details for more temperate 4x houses https://github.com/OpenTTD/OpenGFX2/pull/228
09:59:41 <DorpsGek> [OpenTTD/OpenGFX2] zephyris closed issue #210: The lights on the `Cinema` building on `OpenGFX2 High Def v0.7` look a little odd. https://github.com/OpenTTD/OpenGFX2/issues/210
10:31:54 *** Jake has joined #openttd
10:32:31 *** Jake is now known as Guest33851
10:34:19 *** SigHunter has quit IRC ()
10:38:01 *** Guest33851 has quit IRC (Quit: Page closed)
10:40:53 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #14805: Codefix: [Script] Retarget iterators on list swap https://github.com/OpenTTD/OpenTTD/pull/14805
10:41:47 *** SigHunter has joined #openttd
10:44:18 <xarick> erm actually...
10:44:59 <xarick> 14805 will conflict when 14930 is merged
10:45:04 <xarick> or vice versa
10:49:21 <peter1138> Brilliant Jira, the only way I can close a ticket is to mark it as Completed.
10:49:54 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick approved pull request #14930: Codechange: [Script] Replace map of sets with set of pairs for per value storage https://github.com/OpenTTD/OpenTTD/pull/14930#pullrequestreview-3592122841
10:54:35 *** jinks has quit IRC (Ping timeout: 480 seconds)
10:57:38 *** Borg has joined #openttd
10:57:41 <Borg> howdy
10:58:16 <Borg> anyone interested in some LinkGraph DrawLine() math oddity and 32bit overflow?
11:00:54 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451167334315069551/image.png?ex=69453065&is=6943dee5&hm=b7c5c79447e397c4801883310839803a8edd8b4fd96c5c9c4b408ced3f88bee8&
11:00:54 <xarick> wow.... where!!
11:01:25 <Borg> I noticed that in master, you do int64_t cast... with is not beuno imo..
11:02:19 <xarick> windows 95 style errors
11:02:28 <xarick> error! error!
11:04:21 *** jinks has joined #openttd
11:04:40 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451168282320179364/image.png?ex=69453147&is=6943dfc7&hm=1cca53530374c66109e642badd12e72bfec0fd304a0b4f05034be2734dfa9d1b&
11:04:40 <xarick> ah found them
11:05:36 <xarick> doesn't look like a me problem
11:09:25 <LordAro> looks like github having problems
11:17:32 <Borg> holy moly
11:17:39 <Borg> now DrawLineGeneric() is stable!!!!
11:18:45 <Borg> - int frac_sq = width * width * (dx * dx + dy * dy);
11:18:46 <Borg> + int frac_sq = width * ((dy > dx) ? dy + (dx>>1) : dx + (dy>>1));
11:18:46 <Borg> - if (frac_test * frac_test < frac_sq) {
11:18:46 <Borg> + if (frac_test < frac_sq) {
11:18:52 <Borg> aproxymation works very well
11:19:36 <Borg> I suggest to test this. instead doing pseudo sqrt w/ int64_t casting
11:20:27 <peter1138> Can you explain which problem you are solving?
11:21:36 <_jgr_> Borg, you should look at the code in master, this has most likely been resolved there already
11:22:43 <Borg> _jgr_: I did
11:22:45 <Borg> and you do this
11:23:21 <Borg> int64_t frac_sq = ((int64_t) width) * ((int64_t) width) * (((int64_t) dx) * ((int64_t) dx) + ((int64_t) dy) * ((int64_t) dy));
11:23:29 <Borg> like fucking w00t? :) you noticed that there is 32bit overflow
11:23:36 <Borg> so yeah.. lets throw 64bit on it ;D
11:24:21 <Borg> peter1138: I noticed that linkgraph lines width is not stable.. sometimes they are fatter and sometimes they are thiner... so I decided to take a look at it :)
11:27:17 <peter1138> And does that problem exist in master?
11:28:21 <Borg> peter1138: no, due to 64bit math.. question is.. will there be overflow on 8192x8192 maps there too?
11:29:09 <Borg> nope.. there will be no overflow
11:29:22 <Borg> so if you are ok with it :) then ok
11:29:34 <peter1138> When you increase the available space by 4 billion, usually not.
11:30:16 <peter1138> increase/multiply
11:32:05 <peter1138> 99.2% of players are using a 64 bit build, so using 64 bit types isn't really a problem.
11:36:13 <Borg> okey ;) Ill keep my fix, seems more elegant
11:39:30 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451177049346539540/image.png?ex=69453972&is=6943e7f2&hm=f63279c188a4d965369efd4f2b9400088f1bc2b82e366db4f74ab8186a954eb1&
11:39:30 <xarick> I'm bored, shall I bench?
11:46:36 <xarick> gonna start with ValuateTests, about 120ish seconds each
11:48:45 <peter1138> Yes, obfuscating the algorithm to avoid a cast is definitley... "more elegant".
11:49:32 <Borg> its not abfuscating.. I just do aproximation..
11:49:50 <Borg> you kinda also, because not doing sqrt for peformance reasons.. common trick
11:52:17 <_glx_> Not using sqrt is not because performance, it's because float
11:56:37 <Borg> indeed
11:57:47 <peter1138> Also if you are using sqrt you need to square something at some point, and that could be your overflow.
11:58:49 <Borg> thats not problem using floats..
12:02:20 <Rubidium> Borg: you're worried about performance, right? It looks like the multiply version is actually taking fewer cycles, instructions and micro-ops based on llvm-mca: https://godbolt.org/z/da9baYdEP
12:03:28 <peter1138> Less branches which is better for pipelining.
12:04:41 <Borg> Rubidium: assuming we run 64bit OS right?
12:04:54 <Borg> on 32bit.. I suspect my version should be slighty faster?
12:07:42 <Borg> Rubidium: still, interesting :) and indeed if targeting 64bit, its better to keep your version then
12:08:36 <Borg> Rubidium: oh wait. you used wrong code
12:08:42 <Borg> let me try it w/ 64bit
12:10:11 <peter1138> Compilation is basicallly the same on x86-64. With -m32 it's a bit longer of course.
12:10:14 <Borg> yeah result is the same
12:10:28 <Borg> it just switched registers to 64bit
12:13:41 <Borg> heh
12:13:50 <Borg> its funny.. they include 6502.. but no x86 32bit
12:16:36 <ahyangyi> Says something about the (un)popularity of x86-32 now
12:16:47 <ahyangyi> Anyways there is actually a x86-32 msvc
12:17:14 <ahyangyi> And NVC++ too
12:18:16 <Borg> yeah. okey. nevermind...
12:18:26 <ahyangyi> Oh
12:18:34 <ahyangyi> Actually you can just use the x86-64 gcc/clang
12:18:37 <ahyangyi> and pass `-m32`
12:18:44 <Borg> oh..
12:19:13 <jfkuayue> My family bought a x86-32 all-in-one computer in 2012
12:19:27 <jfkuayue> Used it till 2018
12:19:47 <jfkuayue> 4.00 GB memory (2.74 GB available)
12:20:08 <Borg> my CPU is 64bit capable.. OS isnt [;
12:20:25 <Borg> anyway.. case closed... interesting hints
12:20:46 <Borg> I need to keep that in mind
12:23:25 <talltyler> RC2 Steam announcement posted: https://store.steampowered.com/news/app/1536610/view/517481543704249266
12:24:54 <talltyler> I also realized forgot to update the thumbnail of the RC1 and RC2 posts before publishing (separate from the image in the actual post), so I've updated those. It'll probably take a bit to refresh on Steam from showing the beta3 thumbnails, but I have fixed it 🙂
12:33:53 <ahyangyi> jfkuayue: Somehow the memory price today isn't much cheaper than that of 2015, after the recent price spike
12:34:23 <ahyangyi> hike*
12:34:27 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451190878285856778/image.png?ex=69454653&is=6943f4d3&hm=72da73132a1618f607801a58b19beb74905b57f437a40d1d1607b171336079a2&
12:34:27 <xarick> meh 😐
12:34:45 <ahyangyi> lower is better right?
12:34:49 <xarick> yes
12:35:21 <ahyangyi> Nice
12:36:14 <_glx_> Most likely the effect of SetValue change
12:50:20 *** Flygon has joined #openttd
13:14:53 *** SigHunter_ has joined #openttd
13:17:21 *** SigHunter has quit IRC (Ping timeout: 480 seconds)
13:29:34 *** Wormnest has joined #openttd
13:31:26 <audigex> xarick: what are you actually doing? Optimising build times?
13:31:51 <audigex> I've seen you post in here about performance-looking stuff for a while but haven't really tried to follow the conversation
13:32:07 <andythenorth> optimising Squirrel suspension of valuate, last I checked
13:32:17 <andythenorth> I may have lost the thread
13:40:19 <_glx_> Not related to suspension actually, but about more about global performance of ScriptList
13:46:27 *** MinchinWeb[m] has quit IRC (Read error: Connection reset by peer)
13:46:43 *** MinchinWeb[m] has joined #openttd
13:52:12 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451210446081228830/image.png?ex=6945588c&is=6944070c&hm=6cf0d8fdc8391cb98a55fdaeede1c6b2fec4e22e34621f7a7f18ad810cf6d8ea&
13:53:33 <xarick> I expected greater variance here
13:53:48 <xarick> but i used random items
13:54:01 <xarick> nullifies all the optimization efforts
13:58:48 <ahyangyi> So, collect traces from various popular AI instead?
14:03:07 *** orange_above_50 has joined #openttd
14:04:02 <orange_above_50> Hey, what's the correct usage of the server authorized_key command? I'm trying rcon <password> authorized_key add admin client:5 but it's just printing help. I've also tried some variations.
14:04:32 <orange_above_50> i'm trying to add a client to the admin list basically
14:10:03 *** orange_above_50 has quit IRC (Quit: Page closed)
14:40:06 <_glx_> As with all rcon, the full command must be quoted (but too late)
14:44:48 *** Smedles_ has joined #openttd
14:47:27 *** Smedles has quit IRC (Ping timeout: 480 seconds)
14:53:28 *** Smedles has joined #openttd
14:55:09 <DorpsGek> [OpenTTD/OpenTTD] jonaskremecek157-gif commented on issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
14:56:37 *** Smedles_ has quit IRC (Ping timeout: 480 seconds)
15:11:14 <DorpsGek> [OpenTTD/OpenTTD] Rito13 commented on pull request #7851: [WIP] Change: add support for next/previous railtype global hotkeys https://github.com/OpenTTD/OpenTTD/pull/7851#pullrequestreview-3593186268
15:12:57 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
15:15:22 <mmtunligit> how the hell did you manage to decode that ask in the first place
15:16:45 <talltyler> I guessed
15:17:10 <talltyler> rito12_51026: I suspect #7851 is fair game to adopt if you feel like it 😉
15:19:06 <LordAro> talltyler: you may be pleased to know that 722 has been my work desktop background for at least a year now
15:19:15 <LordAro> (i've just noticed your GH tag line description thing)
15:19:30 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #14635: Feature: Scale cargo payment decay rate https://github.com/OpenTTD/OpenTTD/pull/14635
15:19:41 <talltyler> Heheh
15:20:11 *** openttd has joined #openttd
15:20:11 <talltyler> https://cdn.discordapp.com/attachments/1008473233844097104/1451232586146910290/TransportTycoon.jpg?ex=69456d2b&is=69441bab&hm=f78f00585d2ee065e07120ffcc1fe9fcce22d6fc88930fe297509ccf36b3114e&
15:20:11 <talltyler> This is my desktop background 😄
15:20:22 <LordAro> :D
15:20:24 *** openttd has quit IRC ()
15:22:02 <DorpsGek> [OpenTTD/OpenTTD] jonaskremecek157-gif commented on issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
15:25:02 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
15:31:08 <ahyangyi> Huge boats 😮
15:31:33 <ahyangyi> I keep thinking even the biggest ship should fit 1x1 tile for some reason 😛
15:37:27 <DorpsGek> [OpenTTD/OpenTTD] ldpl commented on pull request #14635: Feature: Scale cargo payment decay rate https://github.com/OpenTTD/OpenTTD/pull/14635#issuecomment-3670889322
15:38:41 <rito12_51026> https://cdn.discordapp.com/attachments/1008473233844097104/1451237242776588288/Zrzut_ekranu_z_2025-12-18_16-36-21.png?ex=69457181&is=69442001&hm=e10d15ca070edf7d313f9419fcc8631bc353c9920b132336bd38d168282d940d&
15:38:41 <rito12_51026> talltyler: 7185 new commits since it was last updated
15:47:38 <rito12_51026> Can I use
15:47:38 <rito12_51026> enum EnumName : int {
15:47:38 <rito12_51026> }
15:49:48 <rito12_51026> Can I use
15:49:48 <rito12_51026> ```c++
15:49:48 <rito12_51026> enum class EnumName : int {
15:49:48 <rito12_51026> A = -4,
15:49:48 <rito12_51026> B,
15:49:50 <rito12_51026> C,
15:49:50 <rito12_51026> D,
15:49:52 <rito12_51026> }
15:49:52 <rito12_51026> instead of
15:49:54 <rito12_51026> ```c++
15:49:54 <rito12_51026> enum class EnumName : int {
15:49:56 <rito12_51026> A = -1,
15:49:56 <rito12_51026> B = -2,
15:49:58 <rito12_51026> C = -3,
15:49:58 <rito12_51026> D = -4,
15:50:00 <rito12_51026> }
15:50:00 <rito12_51026> ?
15:50:18 <_jgr_> Those two are not equivalent
15:51:58 <ahyangyi> What happens if you add an E some day
15:52:04 <rito12_51026> ```c++
15:52:04 <rito12_51026> enum class EnumName : int {
15:52:04 <rito12_51026> D = -4,
15:52:04 <rito12_51026> C,
15:52:04 <rito12_51026> B,
15:52:06 <rito12_51026> A,
15:52:06 <rito12_51026> }
15:52:08 <rito12_51026> And this?
15:52:25 <LordAro> sounds like you need to have think about what those values actually are
15:52:38 <LordAro> because it doesn't seem like they're behaving in an very enum-ish way
15:52:51 <ahyangyi> Anyways, I like the last one
15:52:57 <ahyangyi> look at how I smiled at it:
15:52:58 <ahyangyi> 🙃
15:53:53 <_jgr_> If they need to have specific values I would suggest explicitly setting them
16:08:20 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14933: Fix #14932: Increase internal badge index size to avoid overflowing BadgeIDs. https://github.com/OpenTTD/OpenTTD/pull/14933#pullrequestreview-3593760098
16:08:56 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451244854343372880/image.png?ex=69457898&is=69442718&hm=d8d90cc7abb64ddd43acd67dc17407fc8c1fbdca9357c11bfa431e10f3788f53&
16:16:25 <ahyangyi> _jgr_: I assumed this set of constraints:
16:16:25 <ahyangyi> * specific values don't matter
16:16:25 <ahyangyi> * as long as it's negative
16:16:25 <ahyangyi> * and old values don't change
16:16:25 <ahyangyi> Though I would still prefer explicitly setting the values as long as C++ doesn't have a "iota=-1" syntax
16:29:32 <DorpsGek> [OpenTTD/OpenTTD] jonaskremecek157-gif commented on issue #14928: [Bug]: no train in editor https://github.com/OpenTTD/OpenTTD/issues/14928
16:57:36 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on pull request #9161: Feature: NewGRF Bridges without overriding https://github.com/OpenTTD/OpenTTD/pull/9161#issuecomment-3671223885
17:01:30 <DorpsGek> [OpenTTD/OpenGFX] zephyris opened issue #104: Missing bridge deck overlays from extra newgrf https://github.com/OpenTTD/OpenGFX/issues/104
17:05:18 <xarick> oops, i just found a bad conflict resolution from 2.6 on
17:33:08 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #14930: Codechange: [Script] Replace map of sets with set of pairs for per value storage https://github.com/OpenTTD/OpenTTD/pull/14930#pullrequestreview-3594134451
17:36:35 *** Wolf01 has joined #openttd
17:38:37 <DorpsGek> [OpenTTD/OpenTTD] Rito13 updated pull request #14886: Codefix: Make CTMN enum an enum. https://github.com/OpenTTD/OpenTTD/pull/14886
17:42:52 <andythenorth> important news: I finished refactoring Iron Horse
17:42:57 <andythenorth> such important
17:55:21 <audigex> andythenorth: Citizens celebrate
18:05:13 <_glx_> until next refactor
18:19:55 <talltyler> _zephyris: OpenGFX2 v0.8.1 is now shipped with the `testing` and `nightly` branches on Steam!
18:19:55 <talltyler> It'll start being shipped automatically with the `default` branch once we release 15.0. 😄
18:29:17 <_zephyris> Oooh!
18:29:23 <_zephyris> Well done!
18:29:31 <_zephyris> How painful was the upload?
18:30:40 <talltyler> Pretty easy with truebrain's expert guidance! 🙂
18:30:56 <talltyler> We'll get you set up in the new year so you can see you for yourself 😄
18:35:53 <_zephyris> Great 🙂
18:36:00 <_zephyris> Thank you!
18:46:22 <andythenorth> Horse 4 needs 15.0 so I should get on and finish it eh
18:55:43 <talltyler> _zephyris: In the new year I'd like to update the Steam store assets to show OpenGFX2, and also change to Steam's new size requirements (larger images than when we created the store page originally). I'd love your help if you're interested. 🙂
18:56:22 <_zephyris> On my todo list too 😉
18:56:37 <_zephyris> Very happy to help
18:56:51 <talltyler> Excellent 🙂
18:58:44 <_zephyris> Is this current?https://partner.steamgames.com/doc/store/assets/standard
19:02:22 <_zephyris> https://cdn.discordapp.com/attachments/1008473233844097104/1451288501432746097/image.png?ex=6945a13e&is=69444fbe&hm=d53452abd7e562e3f1f73c3bf2caab4852a7b4061c1efb55ee4f8ddd67b90346&
19:02:22 <_zephyris> Oh, and clean install of testing works as expected
19:03:39 <talltyler> Yes, that's the current specs it wants
19:03:40 <_glx_> I can see it too 🙂
19:38:54 *** Compu has joined #openttd
19:39:23 *** Compu has quit IRC ()
19:43:27 <xarick> 14930 merge merge merge!
20:12:44 <andythenorth> well
20:26:02 *** Borg has quit IRC (Quit: leaving)
20:59:02 *** Borg has joined #openttd
20:59:05 <Borg> toskete! ;D
20:59:21 <Borg> anyway.. im hittng weird issue.. related to _current_company
20:59:30 <Borg> in logs nothing interesting..
20:59:57 <Borg> some info in 2010.. and then 2016 AI related and 2023.. town related
21:00:34 <Borg> im trying to differentiated industry location build based whatever its map generating.. random spawn by game (or GS) or user
21:00:49 <Borg> I use GS to preseed and then regenerate industries for a time..
21:01:29 <Borg> and acording to documentation... ci2 (0x18) of Callback 0x28 provides info whats going on.. 0 map gen, 1 random, 2 user build, 3 user prospect
21:01:54 <Borg> and.. when I do GSIndustryType::BuildIndustry().. I have 3 in ci2
21:02:27 <Borg> I did RTFS.. and only checks there is _current_company == OWNER_DEITY
21:02:31 <Borg> so. I should get 1
21:03:54 <Borg> hmmm that stuff was seriously rewriten...
21:05:06 <andythenorth> I thought we added a value for GS building
21:05:11 <andythenorth> grf wiki doesn't have it
21:06:07 <Borg> hmmm
21:06:52 <Borg> I dont see anything special in IACT_ definition
21:06:54 <Borg> in master
21:08:13 <_glx_> it's IACT_RANDOMCREATION for GS
21:08:40 <Borg> yeah.. it should.. so bug on 1.8.0 probably..
21:08:54 <Borg> but I dont see anything interesting in master regarding _current_company
21:12:54 <Borg> hmm actually the code for secondary industries is same
21:13:36 <Borg> ret = CreateNewIndustryHelper(tile, it, flags, indspec, layout, random_var8f, random_initial_bits, _current_company, _current_company == OWNER_DEITY ? IACT_RANDOMCREATION : IACT_USERCREATION, &ind);
21:13:57 <Borg> so.. maybe GS issue..
21:14:02 <Borg> okey, time to do Debug Build
21:16:32 <_glx_> GS might be impersonating a company using GSCompanyMode
21:16:49 <_glx_> in this case it acts like a user
21:18:18 <Borg> yeah I know it.. I dont use GSCompanyMode at all
21:18:28 <Borg> anyway. building debug version now.. lets see whats going on
21:24:04 <_glx_> there's https://github.com/OpenTTD/OpenTTD/commit/58014427800685a4fbaf7b7a242841a78e4ae70c
21:26:08 <Borg> grr.. value of _current_company is valid.. 0x12
21:26:12 <Borg> now im puzzled
21:27:23 <Borg> oh thx!
21:27:26 <Borg> lets see :)
21:28:08 <Borg> hmm but this fix is only for RawIndustries right?
21:28:33 <_glx_> the bug was introduced with https://github.com/OpenTTD/OpenTTD/commit/082699482118e2a00f5c873d8820fad0e05a7ec2
21:30:02 <_glx_> because of `Backup<CompanyByte> cur_company(_current_company, OWNER_TOWN, FILE_LINE);` before the ternary `_current_company` is always OWNER_TOWN
21:31:02 <Rubidium> _glx_: in #14930 I saw that a lot of the sorter functions were going to become even more similar, so I tried to reduce the duplication ending up with https://github.com/glx22/OpenTTD/compare/scriptlist_values...rubidium42:script-list
21:31:48 <_glx_> yeah I just copy pasted ByItem sorters into ByValue
21:31:49 <Rubidium> that is of course way outside the scope of your PR, but another reduction in the number of lines
21:32:12 <Borg> _glx_: indeed!! thanks
21:32:15 <Borg> just confirmed that
21:32:20 <Borg> in helper I get wrong values
21:32:29 <Borg> _current_company=15 creation_type=3
21:32:30 <Borg> :D
21:32:35 <Borg> okey :) time for backporting
21:34:51 <DorpsGek> [OpenTTD/OpenTTD] glx22 merged pull request #14930: Codechange: [Script] Replace map of sets with set of pairs for per value storage https://github.com/OpenTTD/OpenTTD/pull/14930
21:36:54 <xarick> oh no... a const_iterator
21:37:10 <xarick> typename Range::const_iterator iter; //
21:40:04 <Borg> _glx_: it workz! :) thanks a lot for the find
21:40:47 <Borg> _current_owner is wrong.. but this is not exposed to grf itself.. so I dont care..
21:41:02 <Borg> okey. wrong wording.. really
21:41:08 <Borg> not sure if its wrong.. its OWNER_TOWN
21:41:14 <Borg> so I guess it needs to be like that
21:41:18 <Borg> anyway! case closed!!
21:41:22 <Borg> appreciated
21:45:17 <_glx_> I like the idea Rubidium, but there's a little mistake in constructor simplification commit
21:45:43 <_glx_> default value for `has_no_more_items` should be `true`
21:46:13 <_glx_> to replicate the effect of calling `End()` in the old constructors
21:53:15 <xarick> `template <bool ASCENDING, typename Range, auto CollectionProjection, auto ItemProjection>` oh, so that's how it's done
21:53:32 <xarick> Tfunc1 Tfunc2 ?
21:57:53 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #14937: Codechange: [Script] Reduce code duplication for list sorters https://github.com/OpenTTD/OpenTTD/pull/14937
22:03:32 <xarick> gonna test!
22:05:30 *** Borg has quit IRC (Quit: good nite)
22:12:56 <xarick> i have an itch against const_iterator :(
22:13:14 <xarick> gonna have to duplicate my bplustree stuff
22:13:24 <xarick> to account for it
22:27:46 <LordAro> ask mr copilot how to do it without fully duplicating everything
22:52:43 <xarick> initial tests show a bit of a regression
22:53:15 <xarick> 463 secs to 478 in one of the tests, but i better repeat
22:53:28 <xarick> with rubidium's deduplication code
22:55:28 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:12:15 <xarick> 467 on openttd master gca1c0007b6
23:12:15 <xarick> 480 on openttd rubidium script-list
23:12:50 <xarick> i blame garbage collection
23:12:57 <xarick> it's unpredictable
23:19:17 <_glx_> might be the projections
23:20:29 <_glx_> but ~15s more just due to that feels weird
23:33:38 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1451356765860925440/image.png?ex=6945e0d1&is=69448f51&hm=68f4e2a62ef2d24ff9c8c3627ec2316f5e2ba3279fea3e56b8542813d4914e28&
23:34:05 <xarick> gotta go sleep, tc
23:36:24 *** Zathras_7 has joined #openttd
23:37:56 *** hexdogg has joined #openttd
23:39:46 *** Zathras_11 has quit IRC (Ping timeout: 480 seconds)
23:40:27 <DorpsGek> [OpenTTD/OpenTTD] zephyris closed issue #14923: [Bug]: Steam install of OpenTTD includes graphics with missing sprites https://github.com/OpenTTD/OpenTTD/issues/14923
23:40:35 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on issue #14923: [Bug]: Steam install of OpenTTD includes graphics with missing sprites https://github.com/OpenTTD/OpenTTD/issues/14923
23:46:58 *** hexdogg has quit IRC (Quit: dogstop)