IRC logs for #openttd on OFTC at 2024-12-04
            
01:02:40 *** gelignite has quit IRC (Quit: Stay safe!)
01:21:02 *** Wormnest has joined #openttd
01:46:18 *** Wormnest has quit IRC (Quit: Leaving)
02:04:30 *** herms has quit IRC (Quit: bye)
02:05:53 *** herms has joined #openttd
02:14:54 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:33:08 *** tokai|noir has joined #openttd
02:33:09 *** ChanServ sets mode: +v tokai|noir
02:39:56 *** tokai has quit IRC (Ping timeout: 480 seconds)
03:14:30 *** gnu_jj has joined #openttd
03:54:28 *** D-HUND has joined #openttd
03:58:01 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:57:57 *** greeter has quit IRC (Remote host closed the connection)
05:01:03 *** greeter has joined #openttd
05:12:21 *** keikoz has joined #openttd
05:57:24 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:32:04 *** speeder_ has joined #openttd
06:39:36 *** speeder has quit IRC (Ping timeout: 480 seconds)
06:49:43 <andythenorth> coffee?
07:00:14 *** XYZ_ has joined #openttd
07:00:34 *** XYZ has quit IRC (Read error: Connection reset by peer)
07:08:56 *** XYZ_ has quit IRC (Ping timeout: 480 seconds)
07:19:43 *** XYZ has joined #openttd
07:22:01 <kuhnovic> About time
07:46:58 *** XYZ_ has joined #openttd
07:46:59 *** XYZ has quit IRC (Read error: Connection reset by peer)
08:26:35 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13148: Codechange: Use unique_ptr throughout instead of new raw pointer for company news data. https://github.com/OpenTTD/OpenTTD/pull/13148#pullrequestreview-2477650185
08:38:16 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13145: Fix: String parameter not set when determining width of smallmap contour labels. https://github.com/OpenTTD/OpenTTD/pull/13145#pullrequestreview-2477688952
08:45:51 *** nielsm has joined #openttd
08:47:48 <dih> greetings to thee
08:54:35 <johnfranklin> Is โ€œhippy bath dayโ€ aussie accent?
09:04:15 <merni> Sounds vaguely like it
09:12:51 <peter1138> Nah, it's just a sillyism.
09:14:13 *** reldred has joined #openttd
09:14:13 <reldred> Itโ€™s a bad joke. Hippies only bathe once a year at most, birthdays come once a year at most as well ๐Ÿ˜›
09:15:04 <Heiki> https://github.com/OpenTTD/OpenTTD/pull/12741 added some new strings to english.txt a couple of days ago, but they still havenโ€™t shown up in the translator; is something broken somewhere?
09:37:45 *** XYZ has joined #openttd
09:37:45 *** XYZ_ has quit IRC (Read error: Connection reset by peer)
09:39:28 *** XYZ_ has joined #openttd
09:39:29 *** XYZ has quit IRC (Read error: Connection reset by peer)
09:45:19 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)
09:46:35 *** mindlesstux has joined #openttd
09:47:19 *** XYZ_ has quit IRC (Read error: No route to host)
09:58:57 *** clark_l has joined #openttd
09:58:57 <clark_l> Hello.
09:58:57 <clark_l> I'm trying to understand the save game format and the docs/savgame_format.md is helping.
09:58:57 <clark_l> I've got stuck trying to understand processing CH_TABLE, particularly at the 'INDY' chunk.
09:58:57 <clark_l> I can find the chunk (first 4 bytes) and chunk type (next byte).
09:58:57 <clark_l> The bit I'm particularly stuck with is understanding GAMMA. The pseudo code doesn't seem to make sense in my head.
09:58:59 <clark_l> The next byte in my example returns 129 and that is >127. Would that suggest I need to use two bytes? I'm just confused.
10:04:11 *** XYZ has joined #openttd
10:21:06 <dih> what value are you expecting?
10:24:02 <clark_l> dih: To be honest, I'm not sure.
10:24:02 <clark_l> The documentation says that the value held is the length of the header plus 1.
10:24:02 <clark_l> However, the documentation also suggests that for values <=127 it uses 1 byte.
10:39:25 <_jgr_> The gamma format is just a way to encode an integer using a variable number of bytes
10:40:06 <_jgr_> The way it's encoded is separate from what the integer happens to mean
10:41:05 <_jgr_> So, you should decode it into an integer first, the compare with/subtract one afterwards
10:47:51 <truebrain> https://github.com/TrueBrain/OpenTTD-savegame-reader/blob/34158fe5250f48306ef02fb6044031b501bf85a9/savegame_reader/binreader.py#L40
10:47:51 <truebrain> For a Python reference implementation
10:47:51 <truebrain> https://github.com/TrueBrain/OpenTTD-savegame-reader/blob/34158fe5250f48306ef02fb6044031b501bf85a9/webapp/xz-rust/src/lib.rs#L77
10:47:51 <truebrain> For a Rust reference implementation
10:50:58 <truebrain> Heiki: Somewhat. It was 60 days ago since we last told GitHub to really keep running the sync, so it stopped again. I pressed the resume button, so it will run again in a few hours, for the next 60 days. Then this repeats again.
10:51:23 <truebrain> Long response to say: tnx for the poke ๐Ÿ™‚
10:51:48 <Heiki> Haha, I see
10:55:32 <peter1138> I think if we were doing it now we'd just use a straight 32 bit value. And then curse when we needed 64 bit for some reason...
10:57:40 <xarick> oh no, Windows updates
10:57:46 <xarick> it's the 24H2
10:57:56 <xarick> inb4 bricked system
10:58:23 <truebrain> https://news.ycombinator.com/item?id=42314700
10:58:23 <truebrain> For absolutely no reason other than someone posting the link, we are #2 on HN ๐Ÿ˜›
11:13:28 <LordAro> \o/
11:14:52 <xarick> that was fast
11:15:04 <xarick> 15 minutes to update from 23h2 to 24h2
11:22:29 <DorpsGek> [OpenTTD/OpenTTD] telk5093 commented on discussion #11793: Prevent griefing https://github.com/OpenTTD/OpenTTD/discussions/11793
11:31:42 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313830084422926396/Unnamed_1935-01-0111.png?ex=67518f1d&is=67503d9d&hm=34e6dd7c12d07ac410b63fd5d27267507b255ae96e1136686c55cd7acbbc7802&
11:31:42 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313830084851007558/Unnamed_1935-01-0110.png?ex=67518f1e&is=67503d9e&hm=f21c5ed918fb92a5ae31ad4b00a39152015a3bd278ad0ae9bb00bfb4ddae4a85&
11:31:42 <xarick> omg I did it!
11:32:07 <xarick> woah!! I'm so happy
11:39:40 <xarick> can't believe it was so easy
11:40:17 <xarick> DistanceSquare > 51 and everything falls into place
11:40:25 <xarick> not 50
11:40:40 <xarick> and DistanceMax remains at > 6
11:50:08 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313834723759620096/image.png?ex=67519370&is=675041f0&hm=067ed08b854c4681d2fbda59012f5b0cad6ec7136bae9bcf34862e36da164921&
11:50:08 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313834724078125106/image.png?ex=67519370&is=675041f0&hm=268397fecd3cef083a134967af6ee31bf9cab56e0471c9c2cd95678e3be94373&
11:50:08 <xarick> I still have divergences. This finally proves that the queueing is not foolproof
11:51:47 <peter1138> Probably the tile loop in between can update the desert/tropic state.
11:52:20 <peter1138> Well, not probably, definitely. That's why it's there.
11:54:01 <peter1138> It seems you are building a list of tiles to process, which is then out of date when you come to process it.
11:55:01 <xarick> gonna experiment Direction instead of DiagDirection, see it it helps
11:58:04 <xarick> nope ๐Ÿ˜ฆ
11:58:23 <xarick> hmm, must think
12:03:12 <xarick> wondering if I could implement this circle thing into TileArea
12:04:12 <xarick> CircularTileIterator lol
12:09:18 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13144: Codechange: Algorithmic generation of desert and rainforest https://github.com/OpenTTD/OpenTTD/pull/13144
12:09:30 <xarick> just updating from 50 to 51
12:09:58 <xarick> now I'm looking into solving this
12:10:27 <xarick> gonna figure a way to observe what's really happening in that queue
12:13:44 <xarick> emplace_front doesn't exist?
12:15:58 <peter1138> Not in a vector.
12:16:08 <peter1138> You can do vector.emplace(vector.front(), ...)
12:16:23 <peter1138> But it's "slow" because it has to move every existing element.
12:18:21 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13145: Fix: String parameter not set when determining width of smallmap contour labels. https://github.com/OpenTTD/OpenTTD/pull/13145
12:18:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13148: Codechange: Use unique_ptr throughout instead of new raw pointer for company news data. https://github.com/OpenTTD/OpenTTD/pull/13148
12:23:21 <xarick> trying to add the neighbour of the neighbour, lol
12:25:14 <xarick> i wanted to avoid a brute force check
12:25:28 <xarick> but
12:35:23 *** keikoz has joined #openttd
12:43:23 *** Flygon has quit IRC (Read error: Connection reset by peer)
12:59:46 <peter1138> Jesus what a ... rabbit hole I've dug myself into.
13:06:41 <merni> Was there a rabbit at the end?
13:07:15 <peter1138> What do you mean "end"?
13:09:42 <merni> ๐Ÿ˜† fair
13:22:31 <xarick> 4417219 us barelly faster
13:22:45 <xarick> well, it's still 0,6 less seconds
13:36:46 *** nielsm has quit IRC (Ping timeout: 480 seconds)
13:40:37 <andythenorth> Watership Down
13:43:33 <johnfranklin> Hmm, is rabbit hole in English a metaphor
13:44:14 <andythenorth> Yes
13:45:47 <johnfranklin> Then openttd is an endless rabbit hole for me ๐Ÿ˜›
13:46:04 <andythenorth> It comes from Alice
13:47:58 <peter1138> Alice? The the fuck is Alice?
13:48:03 <peter1138> Oh great.
13:48:06 <peter1138> I still can't write words.
13:48:52 <andythenorth> Stop trying? ๐Ÿ˜€
13:48:59 <andythenorth> Emoji only?
13:49:33 <johnfranklin> Today is Oliver Twist
13:50:00 <johnfranklin> (It is translated into โ€œLonely Child in the city of fogโ€ in Chinese)
13:51:12 <_glx_> the title telling the full story ๐Ÿ™‚
13:52:01 <andythenorth> Was it lunch?
13:52:20 <andythenorth> Chicken saltimbocca?
13:54:17 <johnfranklin> I ate some expensive sushi and raw salmon, as birthday lunch
13:54:41 <peter1138> Birthday Hangover cures?
13:55:00 <johnfranklin> I donโ€™t drink.
13:55:33 *** kuka_lie has joined #openttd
13:55:40 <andythenorth> Did I finish FIRS yet?
13:58:38 <peter1138> FIRS 6?
14:02:51 <andythenorth> Need to release FIRS 4 and 5 :p
14:03:42 <merni> Isn't skipping version numbers all the rage
14:13:01 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13141: Codechange: Update minimum CMake version to 3.16 for all parts. https://github.com/OpenTTD/OpenTTD/pull/13141
14:16:03 <andythenorth> FIRS 4 was done, but Iโ€™ve changed classes, so eh ๐Ÿ™‚
14:30:08 <LordAro> today i am bisecting git
14:30:25 <LordAro> not bisecting with git, bisecting git
14:33:09 <andythenorth> Lawks
14:42:07 <peter1138> Larks
14:58:08 <xarick> my 4k video playback is stuttering after the windows update to 24h2 ๐Ÿ˜ฆ
14:58:15 <xarick> thx
15:08:25 <kuhnovic> Anyone using an ultrawide monitor here? I want to get one but I can't decide between 34 and 38 inch hehe
15:12:09 <LordAro> some bisect scripting later: https://github.com/git/git/commit/9ab89a2439064720cc790c4477b8e981832c43f5
15:18:50 <peter1138> kuhnovic: I have 2 ร— 32", partner has 1 ร— 34" UW
15:19:15 <peter1138> The 34" is obviously not as much space, but it is a big chunk of screen.
15:20:29 <kuhnovic> 2 x 32 is also pretty sweet, but I just really want that single screen experience
15:42:41 <peter1138> > Your script made an error: parameter 2 has an invalid type 'null' ; expected: 'integer'
15:42:42 <peter1138> Oops
16:28:01 <peter1138> LordAro: Something about merges
16:55:18 <LordAro> peter1138: can confirm
17:23:05 *** gelignite has joined #openttd
17:45:16 <DorpsGek> [OpenTTD/wiki-data] brianpefisk opened issue #42: Compiling on Windows using MSYS2 page is out of date https://github.com/OpenTTD/wiki-data/issues/42
17:50:01 <peter1138> If only there was a way to edit Wiki pages.
17:51:29 <peter1138> I don't have close rights there, so I'll leave the comment to someone else.
17:56:24 *** Wormnest has joined #openttd
18:04:14 <peter1138> Oh, that null was nothing I changed.
18:06:18 *** virtualrandomnumber has joined #openttd
18:06:56 *** virtualrandomnumber has quit IRC ()
18:20:45 <xarick> when I think of static functions https://youtube.com/shorts/5hs1KQgl0kw?si=3EeSeqHeP-6LG05s
18:25:03 <DorpsGek> [OpenTTD/wiki-data] brianpefisk commented on issue #42: Compiling on Windows using MSYS2 page is out of date https://github.com/OpenTTD/wiki-data/issues/42
18:25:46 *** spy0016158 has joined #openttd
18:25:46 <spy0016158> brianpefiskviaGitHub: I've solved the issue and added a comment
18:26:25 <DorpsGek> [OpenTTD/wiki-data] LordAro closed issue #42: Compiling on Windows using MSYS2 page is out of date https://github.com/OpenTTD/wiki-data/issues/42
18:26:28 <DorpsGek> [OpenTTD/wiki-data] LordAro commented on issue #42: Compiling on Windows using MSYS2 page is out of date https://github.com/OpenTTD/wiki-data/issues/42
18:29:56 <spy0016158> LordAroviaGitHub: do I have the authority to update the wiki?? I'm new here
18:31:58 <LordAro> anyone with a github account does :)
18:31:59 <LordAro> it's a wiki :)
18:32:39 <spy0016158> LordAro: OK I'll have a go tomorrow.
18:32:45 <LordAro> \o/
18:33:26 <LordAro> pretty much all of those wiki pages should probably just be deleted and replaced with a link to COMPILING.md
18:34:10 <LordAro> though that's not a walkthrough like the wikipages are tbf
18:37:05 <peter1138> Those are mostly ancient pages, hence Archive in the path.
18:42:15 <kuka_lie> i use them if i compile openttd to like debian (has version 12)
19:58:13 *** Wolf01 has joined #openttd
20:03:05 <peter1138> Hmm, this is just growing.
20:42:06 <andythenorth> hmm
20:42:15 <andythenorth> my life is all branches and stacked PRs ๐Ÿ˜›
20:42:28 <andythenorth> I've forgotten what shipping is ๐Ÿ˜›
20:44:22 <peter1138> Hmm, de-inlining saved a bit but not much.
20:44:37 <peter1138> And now there'll be function calls all over the place.
20:56:52 <andythenorth> naptime?
21:23:31 *** kuka_lie has quit IRC (Quit: leaving)
21:24:29 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313979264952963162/image.png?ex=67521a0d&is=6750c88d&hm=8d045ec5066122ce8156e9eef44032624fdc4b0656c79050af785dd02d3b7cea&
21:24:29 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1313979265372655759/image.png?ex=67521a0d&is=6750c88d&hm=137dbf3c651a36e696b24149a6fc161edca8a14b604f41a10df403e849c4d90c&
21:24:29 <xarick> interesting difference
21:30:37 <xarick> the height of the tile in the void matters... and I'm skipping it in my algorithm because it's not inside the map
21:31:45 *** Extrems has quit IRC (Quit: ZNC 1.7.5 - https://znc.in)
21:31:51 *** Extrems has joined #openttd
21:33:04 <xarick> what can I do about it? This is in phase 1
21:44:09 *** gelignite has quit IRC (Quit: Stay safe!)
21:45:19 <peter1138> Hmm, what's my churn rate...
22:13:29 <peter1138> Quite high. And my count of active instances goes negative, which is... alarming.
22:16:25 *** Flygon has joined #openttd
22:27:24 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:44:14 *** m_ has joined #openttd
22:44:23 *** m_ has quit IRC ()
22:56:47 <xarick> i am bored, and did this
22:56:47 <xarick> <https://gist.github.com/SamuXarick/664fd11ffcda712372ad0a5c5d368990>
22:56:52 <xarick> PR?
22:56:54 <xarick> :p
23:05:45 <xarick> I'm disappointed with myself
23:07:27 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:43:09 <xarick> from 1.9 seconds to 3.9 ๐Ÿ˜ฆ
23:47:07 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13144: Codechange: Algorithmic generation of desert and rainforest https://github.com/OpenTTD/OpenTTD/pull/13144
23:47:18 <xarick> no change, just fixing the trailing whitespace