IRC logs for #openttd on OFTC at 2024-12-12
⏴ go to previous day
01:44:48 *** greeter has quit IRC (Remote host closed the connection)
01:51:01 *** greeter has joined #openttd
02:35:23 *** Wormnest has quit IRC (Quit: Leaving)
03:00:05 *** herms has quit IRC (Quit: bye)
03:25:00 *** gnu_jj_ has joined #openttd
03:28:34 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:49:01 *** debdog has quit IRC (Ping timeout: 480 seconds)
06:20:26 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:13:04 *** nielsm has quit IRC (Ping timeout: 480 seconds)
08:08:47 *** kuka_lie has joined #openttd
08:49:51 *** SigHunter has joined #openttd
09:17:20 <andythenorth> I merged some FIRS PRs
09:25:40 <peter1138> Hmm, I wonder if I could/should move user badge-display configuration to settings.
09:49:31 *** blathijs has quit IRC (Ping timeout: 480 seconds)
12:20:18 *** kuka_lie has quit IRC (Ping timeout: 480 seconds)
12:33:33 *** kuka_lie has joined #openttd
12:59:03 <johnfranklin> andythenorth: Thank you very much!
13:00:42 <andythenorth> I don't know if I'm going to write Github Actions to validate these or not
13:01:07 <andythenorth> can't really keep accepting translation PRs without some automated QA
13:01:38 <johnfranklin> Oh, but why other languages are closed…
13:01:46 <andythenorth> outdated file format
13:15:22 <_glx_> andythenorth: I think the easiest action you can do is just to run Makefile, if file is properly formatted it should be fine
13:15:37 <andythenorth> yup, otherwise the build just fails
13:15:54 <andythenorth> I could add more asserts in the compile for recurring issues
13:17:16 <andythenorth> I guess if there were some translators who wanted to help...I'd be more likely to do it
13:17:33 <andythenorth> grf translation is a bit of a `$someone` thing right not
14:51:32 <soylent_cow[m]> I have a general question about city/town growth. How come some towns keep on growing into hundreds of thousands, and others stop at like 15000, even though things are being transported, and there seems to be enough space to expand?
15:06:58 <truebrain> okay, it took longer than I want to admit before I realised why I didn't like that TODO 😛 My brain was faster than my thoughts, or something? 😛
15:12:01 <truebrain> sorry orudge; I haven't actually checked the csv file before 😛
15:28:26 *** nielsm has quit IRC (Ping timeout: 480 seconds)
15:33:05 *** blathijs has joined #openttd
15:33:05 *** ChanServ sets mode: +o blathijs
16:26:02 <xarick> got a crash just standing in the main menu
16:26:45 <xarick> not a master build, but... probably would occur there as welll
16:49:46 <peter1138> Oh, because CargoArray is naughty
16:50:08 <andythenorth> is it not on Santa's list?
16:50:47 <peter1138> Change `CargoArray capacities; ///< Current added capacities per cargo ID in the consist.` to `CargoArray capacities{}; ///< Current added capacities per cargo ID in the consist.`
17:17:28 <johnfranklin> I cannot understand the core of xkcd 722
17:23:55 <Rubidium> johnfranklin: maybe explainxkcd 722 helps?
17:48:20 <talltyler> LordAro: My Discord and GitHub bios are just that raw link lol
18:14:55 *** gelignite has joined #openttd
18:24:13 <johnfranklin> My favorite is sudo make me a sandwich
18:29:54 <wensimehrp> Target a not found
19:20:41 *** gelignite has joined #openttd
20:08:57 *** Wormnest has joined #openttd
20:26:03 *** gelignite has quit IRC (Quit: Stay safe!)
20:50:58 <peter1138> `assert(v->cargo_cap >= v->cargo.RemainingCount());`
20:51:02 <peter1138> Well, I've broken something 😄
21:18:17 *** michi_cc has joined #openttd
21:18:17 <michi_cc> peter1138: That might not be new at all, I've seen that assert in the past on one of my long-running test savegames already. I've always just assumed I'd managed to break that specific save though 🤷
21:18:50 <peter1138> No, this is a super experimental patching.
21:19:13 <michi_cc> Okay, then there's a different way to get that assert, too 🙂
21:27:57 <andythenorth> wensimehrp: still want FIRS title translatable?
21:33:16 <peter1138> Alright, it's because the refit masks were all broken.
21:45:54 <andythenorth> ach FIRS portugese translation is full of broken strings
21:46:04 <andythenorth> PR merging regret
21:47:29 <peter1138> Ok, how do I remove GS from a game again?
21:47:36 <andythenorth> from a running game?
21:47:39 <andythenorth> just crash the GS
21:48:07 <peter1138> I want to catch an exception, except GS uses exceptions for normal operation. (Bad GS)
21:49:08 <andythenorth> squirrel is lolz
21:49:33 <peter1138> By "catch" I mean trap in a debugger 🙂
21:50:07 <andythenorth> ach I so hate yak-shaving translations
21:50:21 <andythenorth> remember when we had a web based translator? 😛
21:50:24 <_jgr_> There's no reasonable way to do it in vanilla, your best bet is to just remove the corresponding GS from your openttd dir
21:50:32 <andythenorth> it was unmaintained, and unwise, but eh
21:52:02 <andythenorth> maybe I write some diff script that just automates this
21:52:12 <andythenorth> maybe GPT will do it 😛
21:53:09 *** kuka_lie has quit IRC (Quit: leaving)
21:53:15 <_jgr_> Round-tripping through the scenario editor might work for getting rid of a GS, thinking about it
21:53:47 <_jgr_> andythenorth: Having a script for reformatting, reordering, removing dead strings, etc does make life a lot easier once you've got it working
21:54:03 <andythenorth> I have one that can remove, but I have to manually feed it
21:54:18 *** ChanServ sets mode: +v tokai
21:54:26 <andythenorth> it's probably only 6 lines of python to compare all the strings against english.toml
21:56:16 <andythenorth> anyway, I'm not adding any more translations until someone helps 😛
21:56:27 <andythenorth> I'll merge wensimehrp's final change, then that's it
21:57:14 <andythenorth> wensimehrp: pull simplified_chinese.toml
21:57:23 <andythenorth> I've just cleaned up dead strings
21:57:32 <wensimehrp> Oof I'm not at home yet
21:58:06 <_jgr_> andythenorth: Have you checked whether this compound string for the GRF name works as expected?
21:58:55 <_jgr_> The spec and the OpenTTD code does not suggest that trying to do text stack operations here is going to work
22:00:26 <andythenorth> hmm maybe it was cached
22:00:30 <andythenorth> assuming that's the string
22:01:11 <andythenorth> I wasn't sure action 14 would support this, but it appeared to work
22:02:36 <andythenorth> ah `make install` would have been better than `make`
22:02:50 <peter1138> Alright, let's see how slow this is...
22:05:01 <_jgr_> Hmm, seems my python is not new enough to have tomllib
22:05:16 <_glx_> _jgr_: in this case nml parses and use the formatted string directly
22:05:29 <andythenorth> it's in standard from py 3.11
22:05:43 <peter1138> Hmm, if anything it's actually a little faster which is unexpected.
22:06:16 <andythenorth> yes still works 🙂
22:08:50 <peter1138> Alright, anyone have a busy FIRS 5 game?
22:10:12 <peter1138> Not faster, just a bug that slowly makes the game faster 😄
22:18:19 <_jgr_> What part of the code are you looking at for this?
22:25:20 <peter1138> Well, myMy messed up cargo refit masks
22:25:52 <peter1138> Well, my messed up cargo refit masks and a bad test made auto-refit think it failed, instead of not actually trying to refit. When auto-refit fails it just stops the vehicle.
22:26:00 <peter1138> Super mega performance gains...
22:26:11 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:26:27 <peter1138> With that fixed, the performance is... basically not much different.
22:26:58 <peter1138> andythenorth: do you have a testing game of FIRS 5 or anything? Or do we leave that sort of thing to players?
22:52:52 *** Flygon has quit IRC (Read error: Connection reset by peer)
22:55:56 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:02:25 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
23:06:25 <squirejames> Ooh you could call it FIRS-T
23:16:28 *** nielsm has quit IRC (Ping timeout: 480 seconds)
23:35:26 <peter1138> Hmm, how do you print out the contents of a script list?
continue to next day ⏵