IRC logs for #openttd on OFTC at 2023-05-01
            
00:15:31 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
00:19:35 <DorpsGek> [OpenTTD/grfcodec] glx22 opened pull request #21: Fix #2: Add missing props, variables, features, ... https://github.com/OpenTTD/grfcodec/pull/21
00:19:53 <glx[d]> I don't want to do that again
00:22:42 *** Soni has quit IRC (Ping timeout: 480 seconds)
02:03:39 *** Wormnest has quit IRC (Quit: Leaving)
02:04:32 <DorpsGek> [OpenTTD/OpenTTD] ozraelised started discussion #10750: when first creating loading bay the goods(whatever the bay is suppose to load) is not showing up until vehicle doing the second trip https://github.com/OpenTTD/OpenTTD/discussions/10750
02:11:54 *** D-HUND has joined #openttd
02:15:26 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:17:45 *** D-HUND is now known as debdog
02:34:43 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on discussion #10750: when first creating loading bay the goods(whatever the bay is suppose to load) is not showing up until vehicle doing the second trip https://github.com/OpenTTD/OpenTTD/discussions/10750
02:42:15 *** Soni has joined #openttd
02:49:50 <DorpsGek> [OpenTTD/OpenTTD] ozraelised commented on discussion #10750: when first creating loading bay the goods(whatever the bay is suppose to load) is not showing up until vehicle doing the second trip https://github.com/OpenTTD/OpenTTD/discussions/10750
02:56:39 *** Soni has quit IRC (Ping timeout: 480 seconds)
03:01:06 <DorpsGek> [OpenTTD/OpenTTD] Eddi-z commented on discussion #10750: when first creating loading bay the goods(whatever the bay is suppose to load) is not showing up until vehicle doing the second trip https://github.com/OpenTTD/OpenTTD/discussions/10750
03:14:40 <DorpsGek> [OpenTTD/OpenTTD] ozraelised commented on discussion #10750: when first creating loading bay the goods(whatever the bay is suppose to load) is not showing up until vehicle doing the second trip https://github.com/OpenTTD/OpenTTD/discussions/10750
03:27:28 *** Soni has joined #openttd
03:34:39 *** TROILUS9 has joined #openttd
03:41:43 *** TROILUS has quit IRC (Ping timeout: 480 seconds)
03:41:43 *** TROILUS9 is now known as TROILUS
03:56:48 *** keikoz has joined #openttd
04:10:26 *** axet has joined #openttd
06:43:33 <TrueBrain> lol, okay, so the layouter is mostly working, but it turns out, it takes RTL very seriously .. it also renders things from bottom to top πŸ™‚ That seems less ideal πŸ˜›
07:02:09 *** WormnestAndroid has quit IRC (Read error: No route to host)
07:06:29 *** WormnestAndroid has joined #openttd
07:36:38 <FLHerne> you should make it render front-to-back instead, for VR support :p
07:38:42 <andythenorth> a few action 0s adds a lot of grf filesize
07:38:44 <andythenorth> bit rude
07:44:45 <Eddi|zuHause> that depends on how they are coded...
07:46:01 <Eddi|zuHause> like, if their value is set by action 6s
07:48:50 <petern> You need a lot of action 0s to add a lot of grf filesize.
07:49:49 <Eddi|zuHause> and i need to go
08:00:43 <TrueBrain> right, multi-line support works ... it just doesn't break sentences yet πŸ˜›
08:06:01 <andythenorth> wow grf is now 22 MB
08:07:16 *** HerzogDeXtEr has joined #openttd
08:07:26 <TrueBrain> such size
08:07:39 <pickpacket> andythenorth: firs?
08:13:35 <FLHerne> andythenorth: I love the random wagons
08:14:06 <FLHerne> tbh, at this point I might switch to Horse, or try to
08:14:50 <FLHerne> needs a "realisticβ„’ names" parameter so I can lie to myself more easily :p
08:14:59 <andythenorth> fork πŸ˜›
08:15:18 <andythenorth> new lang file? πŸ˜›
08:15:53 <andythenorth> wagons might be done in a week or 2
08:15:54 <FLHerne> Yeah, should be easy enough
08:17:01 <FLHerne> The wagons and diesel roster are great, the steamies still felt a bit placeholderish last time I played, but might be unfair as that was ages ago
08:17:48 <FLHerne> unfortunately fixing my boats is taking up all my free time IRL :-(
08:18:22 <TrueBrain> that moment you spend 20 minutes figuring out you used `resize` instead of `reserver`.. if you need be, I will be in the corner crying now.
08:22:17 <pickpacket> TrueBrain: just 20 minutes though. That’s not too bad
08:27:21 <andythenorth> I rebuilt my dev environment for 8 hours because I don't know how to `env` properly
08:41:03 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
09:21:51 <petern> 22MB instead of what?
09:22:10 <petern> I'm not sure why adding random variations makes it so much larger, unless it's including the sprites multiple times.
09:22:34 <petern> But reusing action 1 should be within NML's abilities.
09:24:40 <petern> Hmm, should I add a inner-widget-'layouter'?
09:25:19 <andythenorth> 22MB instead of 21 MB
09:25:20 <petern> The Rect helpers are okay for things like an icon and some text, but can get a bit unwieldy when you have multiples.
09:25:28 <petern> Oh. Shock.
09:25:38 <petern> Shut up stomach, you do not need food yet.
09:25:54 <petern> It's expecting another huge burger like I had last night.
09:25:58 <andythenorth> might be that I've got a load of duplicate junk for each vehicle
09:26:01 <andythenorth> I will look later
09:26:09 * andythenorth making a magic variant nester
09:26:26 <andythenorth> because clicking + buttons for several levels is what Horse has been missing πŸ˜›
09:34:11 <petern> <https://user-images.githubusercontent.com/67662046/233214213-6b2ef48f-d37f-451c-b131-30c176564609.png>
09:34:36 <petern> All very fancy, but if you're redesigning the "New Game" window and adding a scrollbar, I think you're doing it wrong πŸ˜„
09:40:40 <petern> Hmm, I have an idea involving this JSON library that Truebrain adds.
09:42:13 <TrueBrain> that scrollbar is ... weird
09:42:21 <andythenorth> zorg?
09:42:31 <TrueBrain> petern: oh-oh .... GUI in JSON? πŸ˜›
09:43:56 <andythenorth> grf in JSON?
09:50:56 <TrueBrain> wauw, editing in RTL is .. wauw
09:50:57 <TrueBrain> I hope their keyboards make that easier ..
09:51:47 <TrueBrain> at least the behaviour I now give with ICU is the same as with uniscribe .. but .. I wouldn't have guessed this is normal πŸ˜„
09:51:48 <petern> Nah, storing NewGRF scan data in JSON so we can reload it later. Then do things like you did on the server to categorize things, but locally, to give a better UX.
09:52:02 <TrueBrain> sounds like an excellent plan
09:52:14 <TrueBrain> if I need to PR the JSON library addition as a separate PR, let me know πŸ™‚
09:52:51 <petern> I haven't looked but I'm hoping I can just cherry-pick that so it will be the same either way.
09:53:01 <petern> To avoid the "adding things that aren't used yet" situation.
09:53:06 <TrueBrain> I didn't put it in its own commit; I am lazy like that πŸ˜›
09:53:10 <petern> Oh right.
09:53:22 <TrueBrain> but just cherry-pick my survey PR, and off you go πŸ˜›
09:53:25 <TrueBrain> we will figure it out later πŸ˜„
09:53:29 <petern> Well it is a draft anyway.
09:53:48 <TrueBrain> I will see if I can make it a bit prettier when I am done battling multi-line
09:53:55 <TrueBrain> I think I am really close .. not sure yet
09:54:42 <petern> We could add a NewGRF voting system, except it's only local. Just to troll πŸ˜„
09:54:52 <TrueBrain> hahahahahaha
09:54:53 <TrueBrain> πŸ˜„
10:28:07 <TrueBrain> hmm .. multi-line for English works fine, but it crashes for Arabic .. what did I do for a silly thing πŸ˜„
10:32:35 *** gelignite has joined #openttd
10:37:45 <TrueBrain> okay, that works too
10:37:50 <TrueBrain> I just break at different places than Windows
10:40:00 <TrueBrain> okay, the console in arabic is weird πŸ˜„ There are rules for things like `[]` in regards to LTR and RTL
10:40:19 <TrueBrain> so when you type `[` it is RTL, so rendered as `]`. But when you type `]` next, it becomes LTR, so it reads `[]`
10:40:21 <TrueBrain> so weird πŸ˜›
10:40:39 *** nielsm has joined #openttd
10:41:01 <TrueBrain> what is a good place to test overflow multiline text with? One I can resize?
10:41:43 <glx[d]> Settings ?
10:43:24 <TrueBrain> not many descriptions are translated
10:43:25 <TrueBrain> sad
10:44:17 <glx[d]> Abase or zbase in main menu should print a multiline about missing sprites
10:44:28 <TrueBrain> yeah, but can't resize that window πŸ™‚
10:44:48 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
10:45:25 <TrueBrain> well, lunch first .. I also see that clustering is acting weird πŸ˜› Curious ...
10:53:28 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672#issuecomment-1529570418
10:59:47 <michi_cc[d]> TrueBrain: Unfortunately there aren't many resizable windows that have a high chance of the wanted text. Industry/vehicle/town NewGRF/GS text is one, but unfortunately usually not translated.
11:00:05 <michi_cc[d]> Lot's of multi-line text in news (like subsidies), just not resizable.
11:00:20 <michi_cc[d]> I think I mostly tested this by varying font size to get different breaking points.
11:00:49 <petern> That's at least easier now πŸ™‚
11:05:45 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672
11:10:48 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672#pullrequestreview-1407520600
11:11:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672#pullrequestreview-1407520881
11:13:46 <petern> I've gone from MS Build only compiling one source file at one time to seemingly trying to compile them all together...
11:13:51 <petern> This is not useful :/
11:14:38 <TrueBrain> michi_cc[d]: Tnx. Guess we will get bug-reports if I did it wrong .. in like .. never? So it is fine πŸ˜„
11:15:08 <petern> ` "cmake.parallelJobs": 1,` didn't help
11:27:33 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672
11:32:34 <glx[d]> petern: Tried with ninja ?
11:32:57 <petern> Nope, how do I do that?
11:35:43 <glx[d]> `cmake -G ninja ...`
11:36:19 <glx[d]> It's the default for MSVC in open folder mode
11:39:29 <glx[d]> So `"cmake.generator": "ninja"` for you I think
11:40:54 <petern> Is it this? https://ninja-build.org/
11:41:06 *** gelignite has quit IRC (Quit: Stay safe!)
11:41:32 <glx[d]> Yes
11:42:20 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10725: Codechange: [CMake] Switch GRF generation from NFO to NML https://github.com/OpenTTD/OpenTTD/pull/10725#issuecomment-1529611410
11:42:49 <petern> Okay. Not sure where it needs to be installed for CMake to see it. The documents go on to how to build ninja itself, but not install it.
11:43:03 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10585: Fix #10574 -- revert the change and don't list unavailable road types to game script. https://github.com/OpenTTD/OpenTTD/pull/10585#issuecomment-1529611701
11:44:44 <glx[d]> It's installed by MSVC for me
11:44:58 <glx[d]> Like cmake
11:46:25 <TrueBrain> lol .. all was working well, till a single run needed to be split over more than 2 lines πŸ˜„
11:46:46 <TrueBrain> not actually sure how uniscribe handles that correctly .. it is a bit annoying πŸ˜„
11:48:17 <petern> Okay, I told cmake where ninja lives but then it doesn't know what compilers are installed. I don't think this is helping πŸ™‚
11:48:29 <petern> No idea how you get VS Code to install ninja itself.
11:49:16 <petern> Oh, you use MSVC, not VSCode.
11:51:27 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102562930744102912/image.png
11:51:27 <TrueBrain> michi_cc[d]: I found a bug in the Uniscribe .. shall I just ignore it? It can cause an overflow every so tiny πŸ˜›
11:52:13 <glx[d]> Could be the font lying about sizes
11:52:23 <TrueBrain> no, it works with my layouter
11:52:31 <TrueBrain> could be a bug in mine πŸ˜›
11:54:09 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102563608556212234/image.png
11:54:09 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102563608778526831/image.png
11:54:12 <TrueBrain> I think I got it .....
11:56:07 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10739: Codechange: remove need for stredup/free from GRFConfig/GRFFile https://github.com/OpenTTD/OpenTTD/pull/10739#pullrequestreview-1407539728
11:56:48 *** Quantum has joined #openttd
11:56:48 <Quantum> Hi, I'm not sure this is the right place to ask but I'm going to try anyways: does anybody know where I can find the default bitmap font used in openttd? Tried looking through the OpenGFX repository and only found these sprites: https://github.com/OpenTTD/OpenGFX/blob/master/sprites/png/gui/fonts.png. The font is there, but the individual sprites also contain the shadows, and I'm not sure how to get the letters only. I'm specifically
11:56:48 <Quantum> so the one used throughout the UI.
11:56:48 <Quantum> (I already asked in Discord channel #openttd-help but no one answered, so I figured this might be a better place to ask)
11:57:35 <TrueBrain> the horizontal scrollbar in a changelog is totally broken with RTL btw; on all platforms πŸ™‚
11:57:41 <michi_cc[d]> TrueBrain: Which window is this? (And what font/size?)
11:57:58 <TrueBrain> Settings, DejaVu Sans Bold, and on every I think
11:58:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #10674: Change: Split Game options into General, Graphics, and Sound tabs. https://github.com/OpenTTD/OpenTTD/pull/10674
11:58:50 <TrueBrain> only with RTL btw
12:00:35 <TrueBrain> other than that, my local version seems identical to the uniscribe result πŸ˜„
12:00:56 <TrueBrain> he says when the game crashes
12:00:57 <TrueBrain> haha
12:02:13 <glx[d]> Font sprites always include the shadow, even in original TTD Quantum
12:02:14 <petern> Ship it anyway.
12:02:30 <michi_cc[d]> Can you make a bigger screenshot? I can't see any problem in the Settings window, so it might actually be a font thingy.
12:03:03 <glx[d]> But the shadow is not the same colour (even if it looks the same in the image)
12:03:04 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102565854153019392/image.png
12:03:36 <petern> Quantum: Hmm, the connecting lines are missing
12:03:45 <petern> Oops, wrong reply to :/
12:04:26 <glx[d]> Quantum: just edit the palette to change the pink colors
12:04:56 <Quantum> glx[d]: Thanks, I thought about that but I couldn't see the difference, even with the color picker
12:05:21 <petern> It's a paletted image, the palette index is different.
12:05:50 <Quantum> glx[d]: Ok thanks, I will try now
12:05:52 <petern> indices 0, 1 and 2 are used for fonts.
12:07:18 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
12:07:39 <TrueBrain> okay ... that PR should work fine. Now to clean it up πŸ˜„
12:07:54 <TrueBrain> owh, right, custom sprites support .. I forgot
12:10:54 <TrueBrain> michi_cc[d]: do I read the uniscribe correct that it uses the `?` character to shape the string with those custom sprites, but replaces the `?` (and the advancing) after the fact?
12:11:16 <TrueBrain> I guess strictly seen that could mean it would go over `max_width`, but I doubt that is an actual issue πŸ™‚
12:12:58 <TrueBrain> well, no, it should remain in the `max_width`; there are no consequence of doing it like that I think
12:13:39 <michi_cc[d]> It should use whatever the font uses for the .undef glyph (which probably is often a ?). And `max_width` is not a problem as the shaping is done before any line breaking is done.
12:14:35 <michi_cc[d]> We re-shape after a line break to get the first and last glyph shape correct, but the normal run width is known before the line breaking.
12:14:53 <TrueBrain> yeah, as you can read, I realized that too πŸ™‚
12:15:04 <TrueBrain> so it is fine to use `?` for shaping first, replacing it later
12:15:05 <TrueBrain> great
12:21:07 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102570398102585377/image.png
12:21:17 <TrueBrain> just their location is weird sometimes .. let's see if Uniscribe has that too πŸ˜›
12:21:35 <TrueBrain> it does
12:21:36 <TrueBrain> pfew πŸ™‚
12:21:58 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
12:25:13 <TrueBrain> michi_cc[d]: I am considering moving the ICU implementation to `os/unix/`; good idea, bad idea?
12:25:22 <TrueBrain> (strictly seen ICU is ofc also available for MacOS and Windows ...)
12:27:11 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10746: Codechange: Convert date macros to functions https://github.com/OpenTTD/OpenTTD/pull/10746
12:28:10 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10746: Codechange: Don't use macros for DAYS_TILL and friends https://github.com/OpenTTD/OpenTTD/pull/10746#pullrequestreview-1407557457
12:28:29 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10746: Codechange: Don't use macros for DAYS_TILL and friends https://github.com/OpenTTD/OpenTTD/pull/10746#pullrequestreview-1407557627
12:28:55 <TallTyler> Today I try to leave the rabbit hole alone πŸ˜›
12:29:13 <Eddi|zuHause> conclusion: the outside world still exists
12:32:40 <petern> Terrible.
12:34:08 <michi_cc[d]> TrueBrain: Okay, you found a bug in the Uniscribe code (and maybe CoreText, too, didn't check that yet). When line breaking, the space after "selected" is not chopped off, which you don't notice on normal LTR text as the anchor position is left. But on an RTL layout with LTR text, the anchor is of course the right side, so the space is wrongly output.
12:35:47 <michi_cc[d]> The code chops off whitespace after the braking point, which is correct for a LTR base, just incorrect for an RTL base.
12:36:07 <TrueBrain> RTL is just annoying πŸ˜› (when you are used to LTR)
12:38:44 <michi_cc[d]> Okay, CoreText should be okay, any run chopping is handled internally there.
12:44:31 <michi_cc[d]> TrueBrain: I think that is okay as this really is the intended platform for ICU.
12:44:49 <TrueBrain> I keep going back and forth about it in my head πŸ˜›
12:44:56 <TrueBrain> as you could use ICU for Windows just fine ..
12:49:54 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #10751: Fix #10741: Rail station platforms left partially reserved after train crash https://github.com/OpenTTD/OpenTTD/pull/10751
12:51:02 <glx[d]> TrueBrain: but why enduring the pain of building ICU on windows ?
12:51:15 <TrueBrain> with vcpkg it is actually pretty easy
12:51:45 <glx[d]> yeah compared to when we provided the libs it's easier
12:51:53 <TrueBrain> ` HarfBuzz depends on ICU to function; HarfBuzz will be disabled`
12:51:58 <TrueBrain> that works too πŸ˜„
12:52:35 <petern> It's also possible to use FreeType on Windows still, if you're mad.
12:52:58 <petern> Although maybe you were for this anyway, hmm.
12:53:59 <glx[d]> replacing `const char16_t chars[]` with `const char16_t *chars` to make CodeQL happy would be a possible option
12:54:10 <michi_cc[d]> span?
12:54:20 <TrueBrain> `Without HarfBuzz and ICU i18n the game will not be able to render right-to-left languages correctly` <- good text?
12:54:51 <glx[d]> looks fine
12:55:28 <michi_cc[d]> There are LTR languages that require shaping as well, though. Some asian stuff and anything that only has decomposed accents.
12:56:11 <glx[d]> but RTL is the most obvious
12:56:24 <michi_cc[d]> Ah, tamil it was. We have it and it requires shaping as well.
12:56:31 <michi_cc[d]> And is still LTR.
13:01:56 <TrueBrain> well, this only took 2 days .. the Uniscribe implementation was very helpful
13:04:12 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
13:04:42 <TrueBrain> ready for review πŸ˜„
13:05:39 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
13:06:00 <TrueBrain> time to test if this now works with a recent vcpkg ICU πŸ™‚
13:07:49 <TrueBrain> as in the end, that is what started all this πŸ˜›
13:17:28 <glx[d]> oh no you add another seprintf πŸ˜‰
13:19:13 <TrueBrain> yes; consistency above anything else πŸ™‚
13:19:25 <TrueBrain> and no, I am not going to fix those all πŸ˜›
13:22:03 <glx[d]> I think there's a PR for the crashlog ones
13:26:42 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747#pullrequestreview-1407595772
13:27:39 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747#pullrequestreview-1407596478
13:42:13 <DorpsGek> [OpenTTD/OpenTTD] michicc opened pull request #10752: Fix: [Win32] Wrong multi-line text layout due to incorrect whitespace https://github.com/OpenTTD/OpenTTD/pull/10752
13:45:49 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
13:46:00 *** WormnestAndroid has joined #openttd
13:52:34 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747#pullrequestreview-1407616265
13:53:45 <petern> Hmm, of course std::vector doesn't work with forward declared types. Bah.
13:58:12 *** WormnestAndroid has quit IRC (Remote host closed the connection)
13:58:17 *** WormnestAndroid has joined #openttd
14:06:17 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #10752: Fix: [Win32] Wrong multi-line text layout due to incorrect whitespace https://github.com/OpenTTD/OpenTTD/pull/10752#pullrequestreview-1407634425
14:07:13 <TrueBrain> right, building for releases works fine too πŸ˜„
14:07:37 <TrueBrain> new Game Options is pretty πŸ™‚
14:08:48 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
14:08:48 *** WormnestAndroid has quit IRC (Remote host closed the connection)
14:09:49 *** WormnestAndroid has joined #openttd
14:09:54 <petern> Not sure about pretty, but less cluttered I think.
14:10:40 <TrueBrain> much more modern πŸ˜›
14:10:42 <TrueBrain> scary πŸ˜„
14:10:54 <TrueBrain> okay, did some more comparing between Windows and Linux, can't really find a difference πŸ™‚
14:11:09 <TrueBrain> could use some other Linux fanboys testing it out πŸ™‚
14:11:21 <TrueBrain> but then again .. nobody complained it was broken to start with, so *shrug* πŸ˜›
14:13:23 <TrueBrain> https://cdn.discordapp.com/attachments/1008473233844097104/1102598649449553980/image.png
14:13:23 <TrueBrain> that looks wrong .. not my PR btw πŸ˜›
14:13:30 <TrueBrain> guess it is related to my scaling πŸ˜„
14:13:40 *** WormnestAndroid has quit IRC (Remote host closed the connection)
14:13:51 <TrueBrain> no, even looks wrong at 1x
14:13:55 <petern> No, it's OpenGFX.
14:14:03 <TrueBrain> okay
14:14:26 <petern> <https://github.com/OpenTTD/OpenGFX/issues/83>
14:14:47 <TrueBrain> when is andythenorth going to fix this? πŸ˜›
14:17:27 *** WormnestAndroid has joined #openttd
14:23:28 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #10748: Codechange: C-style strings + stredup + free -> std::string https://github.com/OpenTTD/OpenTTD/pull/10748
14:24:36 <petern> Of course making this is a separate struct so I can forward declare everything means I need to new/delete it. Argh.
14:27:10 <Rubidium_> std::unique_ptr?
14:32:04 <DorpsGek> [OpenTTD/OpenTTD] michicc merged pull request #10752: Fix: [Win32] Wrong multi-line text layout due to incorrect whitespace https://github.com/OpenTTD/OpenTTD/pull/10752
14:37:49 <DorpsGek> [OpenTTD/OpenTTD] michicc commented on pull request #10672: Change: Remove limit of objects, stations and roadstops per NewGRF. https://github.com/OpenTTD/OpenTTD/pull/10672#pullrequestreview-1407668886
14:40:30 *** HerzogDeXtEr has joined #openttd
14:47:09 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler opened pull request #10753: Codechange: Move calendar date functions inside TimerGameCalendar https://github.com/OpenTTD/OpenTTD/pull/10753
14:47:40 <TallTyler> Successfully avoided the worst of the rabbitholes πŸ™‚
14:54:44 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #10739: Codechange: remove need for stredup/free from GRFConfig/GRFFile https://github.com/OpenTTD/OpenTTD/pull/10739
14:55:10 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10753: Codechange: Move calendar date functions inside TimerGameCalendar https://github.com/OpenTTD/OpenTTD/pull/10753
14:56:25 <TallTyler> Ugh, messed up the rebase
15:05:23 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10753: Codechange: Move calendar date functions inside TimerGameCalendar https://github.com/OpenTTD/OpenTTD/pull/10753
15:11:13 *** Wolf01 has joined #openttd
15:16:05 *** frosch has quit IRC (Quit: User went offline on Discord a while ago)
15:23:01 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102616173218111590/image.png
15:23:01 <andythenorth> going well
15:23:18 <andythenorth> lol 24 hours trying to write an automated group tree thing
15:29:52 <andythenorth> more what I was trying to achieve
15:29:54 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102617904597434429/image.png
15:30:00 <andythenorth> give or take 'CABBAGE"
15:31:11 <petern> Is that deep enough?
15:31:19 <andythenorth> in levels, or height?
15:34:41 <andythenorth> hmm can't figure out a way to have a group comprised of 2 subgroups
15:36:06 <petern> What do you mean?
15:36:35 <andythenorth> the ones with "Mixed Colours"
15:36:38 <andythenorth> could be grouped
15:36:53 <andythenorth> but the parent would be the parent of the entire tree
15:37:40 <andythenorth> unless I miss something... πŸ˜›
15:38:20 <petern> You just need to make one of the mixed colours be parent of the others.
15:38:30 <andythenorth> it is
15:38:38 <andythenorth> but it's also the parent of non-mixed group
15:38:55 <petern> It's not, they have CABBAGE as their parent.
15:39:01 <andythenorth> nah that's just a string
15:39:52 <petern> Well of course.
15:40:13 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102620501098111067/image.png
15:40:13 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102620501370736700/image.png
15:40:13 <andythenorth> I renamed in game πŸ˜›
15:40:56 <andythenorth> I'd need one intermediary to create the mixed group on
15:41:01 <andythenorth> to act as parent for the whole tree
15:41:52 <andythenorth> lol just superset the 'mixed'?
15:42:03 <andythenorth> so you get a vehicle which is a random choice from 'mixed'? πŸ˜›
15:42:28 <andythenorth> oh wait, that's not even stupid
15:42:45 <andythenorth> one of the 3 'mixed' is basically that already
15:44:49 <andythenorth> anyway this is fine, just curious how I could do it differently πŸ˜›
15:47:41 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102622382126006424/image.png
15:47:41 <andythenorth> less cabbage
15:48:03 <andythenorth> think I preferred the "SIMON" version πŸ˜›
15:55:48 *** Artea has quit IRC (Quit: ZNC 1.6.2 - http://znc.in)
15:55:50 *** Artea has joined #openttd
15:59:06 <DorpsGek> [OpenTTD/grfcodec] rubidium42 commented on pull request #21: Fix #2: Add missing props, variables, features, ... https://github.com/OpenTTD/grfcodec/pull/21#pullrequestreview-1407770351
16:02:12 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10753: Codechange: Move calendar date functions inside TimerGameCalendar https://github.com/OpenTTD/OpenTTD/pull/10753
16:06:17 <Rubidium_> TallTyler: about 10519, have you tried rebasing it against current master? Is that going "just fine", or is that going to add a second instance of AddLine(const std::string &)?
16:07:02 <Rubidium_> (not that you necessarily need to push that rebased version if everything goes fine, just a check to prevent knowingly creating something that doesn't build in master by merging this)
16:12:59 <TallTyler> Ah, yeah, it does need a manual rebase. It understood the implementation but added a duplicate declaration in the header. Let me just make sure it still builds and works, then I'll push.
16:22:19 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10519: Feature: Filter engine build menu by name and NewGRF extra text https://github.com/OpenTTD/OpenTTD/pull/10519
16:24:53 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #10519: Feature: Filter engine build menu by name and NewGRF extra text https://github.com/OpenTTD/OpenTTD/pull/10519#pullrequestreview-1407798660
16:27:06 <andythenorth> wonder if I can recurse variant_group ids
16:27:12 <andythenorth> can A be parent of B which is parent A?
16:28:40 <petern> Nope, variants can't be top-level engines.
16:29:57 <TallTyler> Huh, CodeQL failed to run properly on #10753?
16:30:29 <TallTyler> ```Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Failure invoking /opt/hostedtoolcache/CodeQL/2.13.0-20230414/x64/codeql/cpp/tools/autobuild.sh with arguments .```
16:37:45 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102634978468171836/image.png
16:37:45 <andythenorth> confusing enough? πŸ˜›
16:39:54 <EmperorJake> Getting there
16:40:00 <Rubidium_> TallTyler: look earlier in the log, e.g. #2384 complains about undefined references
16:40:46 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102635737364582420/image.png
16:41:04 <andythenorth> I need to give all the colours names, like a Dulux catalogue
16:41:14 <andythenorth> or paints from Citadel / Games Workshop
16:42:10 <andythenorth> eh
16:42:21 <andythenorth> for the 'Mixed' ones should the default be most random or least random?
16:42:46 <andythenorth> probably most random
16:58:08 <andythenorth> hmm
16:58:24 <andythenorth> unbuildable vehicles to act as category parents? πŸ˜›
16:58:26 <andythenorth> nah, just annoying
16:58:27 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler updated pull request #10753: Codechange: Move calendar date functions inside TimerGameCalendar https://github.com/OpenTTD/OpenTTD/pull/10753
16:58:50 <TallTyler> No idea what's wrong there, but found a few little mistakes. Maybe one of them is the cause. 🀷
17:02:20 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #10519: Feature: Filter engine build menu by name and NewGRF extra text https://github.com/OpenTTD/OpenTTD/pull/10519
17:02:23 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed pull request #8984: Feature: build vehicle name filter https://github.com/OpenTTD/OpenTTD/pull/8984
17:02:57 <andythenorth> ach need to do some fancy buy menu graphics
17:03:06 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102641357601906778/image.png
17:03:41 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102641507917377656/image.png
17:03:41 <andythenorth> the main thing, if you don't open the variant tree, and just build, you get this
17:04:05 <andythenorth> I need to also figure out a parameter option for 'no random' πŸ˜›
17:04:20 <andythenorth> which means action [something] on the variant_group action 0 prop
17:04:33 <andythenorth> as the group parents will be missing πŸ˜›
18:08:04 <TrueBrain> tnx to those that are sending surveys; much appreciated πŸ™‚
18:08:13 <TrueBrain> I need a few more if possible, but at least I now have some data to work with πŸ™‚
18:08:27 <TrueBrain> guess most work will be done after release .. as without data it is hard to make analysis πŸ˜„
18:15:17 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #10754: Change: Move gamelog functions into a gamelog class. https://github.com/OpenTTD/OpenTTD/pull/10754
18:36:04 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:37:26 *** WormnestAndroid has joined #openttd
18:39:29 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/4cceaae8dcd8fbed871e18e2c281150cfcb0deaa
18:39:30 <DorpsGek> - Update: Translations from eints (by translators)
18:42:56 <TrueBrain> a commit full of newlines
18:42:57 <TrueBrain> NOM NOM NOM
18:43:07 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #10754: Change: Move gamelog functions into a gamelog class. https://github.com/OpenTTD/OpenTTD/pull/10754
18:43:26 <petern> Heh, yeah, eints like to format them that way.
18:55:32 <DorpsGek> [OpenTTD/grfcodec] glx22 commented on pull request #21: Fix #2: Add missing props, variables, features, ... https://github.com/OpenTTD/grfcodec/pull/21#pullrequestreview-1407955401
19:14:07 <michi_cc[d]> TrueBrain: I want to approve #10747, but it has is sad and has conflicts.
19:16:28 <TrueBrain> who did that?! πŸ˜›
19:17:23 <TrueBrain> there, solved πŸ™‚
19:17:24 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
19:18:39 <DorpsGek> [OpenTTD/OpenTTD] michicc approved pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747#pullrequestreview-1407980565
19:19:40 <TrueBrain> tnx πŸ˜„ That was quick πŸ™‚
19:29:48 <andythenorth> do we have a var for sprite context? e.g. purchase list, depot etc?
19:29:52 <andythenorth> I thought we did, but I can't find it
19:31:19 <andythenorth> can I test for vehicle cargo type being 0xFF?
19:32:49 <andythenorth> ach nvm, I'll just put it in storage
19:33:12 *** gelignite has joined #openttd
19:42:34 <petern> context is the cargo id in the action 3.
19:46:06 *** geli has joined #openttd
19:46:06 *** gelignite has quit IRC (Read error: Connection reset by peer)
19:49:29 <petern> Thanks to git history, I've just been reminded that we used to have "global" cargo IDs.
19:52:13 *** geli has quit IRC (Quit: Stay safe!)
19:53:56 <glx[d]> TrueBrain: I think I just sent one, but the debug window on windows is fast to close
19:54:15 <TrueBrain> so don't quit the game, but go back to the main menu πŸ™‚
19:54:17 <TrueBrain> also sends a survey πŸ˜‰
19:55:22 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on issue #6666: Town name list in Arabic https://github.com/OpenTTD/OpenTTD/issues/6666
19:56:47 <TrueBrain> glx[d]: I did receive 2 surveys, one at 2152 and one at 2156 (it is now 2156)
19:57:27 <glx[d]> I saw no lines in debug log when returning to menu
19:57:39 <TrueBrain> net=1 shows them
19:57:42 <TrueBrain> nothing shows with -d0
19:58:24 <glx[d]> -d0 shows failed requests πŸ˜‰
19:58:43 <glx[d]> that was after loading and returning to menu again
19:59:07 <glx[d]> code 429 is the timeout between requests I guess
19:59:12 <TrueBrain> yup
19:59:14 <TrueBrain> 1 per minute
19:59:26 <glx[d]> so that means it worked πŸ˜‰
19:59:33 *** nielsm has quit IRC (Ping timeout: 480 seconds)
19:59:56 <TrueBrain> feels like a long time between surveys, but when ever I actually think about it, I realise it is fine πŸ™‚
20:00:21 <glx[d]> yeah 1 per minute is more than enough
20:01:47 <glx[d]> you're most likely testing stuff and not really playing if you need to send reports more than once per minute
20:02:06 <TrueBrain> even if you are playing, I don't actually care if your playtime is <1 min
20:06:02 *** axet has quit IRC (Quit: Leaving.)
20:13:18 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102689225788370985/image.png
20:13:18 <andythenorth> lol the complexity hiding here
20:13:33 <andythenorth> can't even
20:13:50 <Eddi|zuHause> <andythenorth> do we have a var for sprite context? e.g. purchase list, depot etc? <-- extra callback info (1 or 2, not sure)
20:15:20 <andythenorth> funny how things are hard to find in docs sometimes
20:18:01 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain merged pull request #10747: Feature: [Linux] RTL support with modern versions of ICU https://github.com/OpenTTD/OpenTTD/pull/10747
20:18:04 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain closed issue #6922: Replace ICU ParagraphLayout with something else? https://github.com/OpenTTD/OpenTTD/issues/6922
20:18:07 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain closed issue #6666: Town name list in Arabic https://github.com/OpenTTD/OpenTTD/issues/6666
20:21:00 <andythenorth> https://newgrf-specs.tt-wiki.net/wiki/NML:Vehicles#Sprites_in_GUI
20:21:08 <andythenorth> extra_callback_info1
20:21:19 <andythenorth> I've already stuff it into a register now πŸ˜›
20:21:21 <andythenorth> oof
20:23:03 <petern> It's like everyone ignores the purchase list functionality of action 3.
20:23:05 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:23:30 <Eddi|zuHause> these are slightly different use cases
20:23:36 *** WormnestAndroid has joined #openttd
20:23:51 <Eddi|zuHause> extra_callback_info1 was mainly intended for things like vehicle list
20:24:17 <petern> vehicle list should never need a different sprite from viewport.
20:24:44 <Eddi|zuHause> then you have never looked at CETS :p
20:24:58 <andythenorth> petern: there's not much can be done with action 3 in nml?
20:25:25 <Eddi|zuHause> but say, you have animated rods on an engine. you might want to animate them only in the viewport, not in the vehicle list
20:25:40 <petern> In action 3 you use cargo ID 0xFF for purchase-list stuff.
20:26:04 <andythenorth> I think nml uses that for `purchase` variant of callbacks
20:26:06 <Eddi|zuHause> nml supports that with "purchase" callbacks
20:26:12 <andythenorth> haven't checked, but that's my assumption
20:26:41 <andythenorth> using `purchase` is my current solution but eh
20:26:44 <petern> That is also for purchase variant of sprites...
20:27:02 <Eddi|zuHause> also an example, say you have a closed wagon with loading states, the viewport could draw them closed while moving, but the vehicle list open and show the cargo
20:27:36 <andythenorth> nice idea πŸ™‚
20:28:04 <petern> I suppose everyone just uses a single action 3 cargo and uses varactions instead these days.
20:28:21 <petern> Like perl, many ways to skin a cat.
20:28:29 <Eddi|zuHause> anyway, the main purpose of the "purchase" callbacks is that many variables cannot be accessed, so you need different decision chains
20:29:33 <Eddi|zuHause> and even then, you can still have different sprites in purchase list and prototype offer windows with extra_callback_info1
20:32:05 <Eddi|zuHause> (my idea there would be that the prototype offer has less width restrictions)
20:32:06 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:32:07 *** WormnestAndroid has joined #openttd
20:32:12 <petern> Jesus Christ MS Build/Cmake/VS Code.
20:32:18 <petern> Stop after the first blood compile error!
20:32:18 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
20:32:36 <Eddi|zuHause> i would imagine there's a setting for that
20:33:36 *** WormnestAndroid has joined #openttd
20:33:49 <andythenorth> hmm the Horse buy menu eh
20:33:56 <andythenorth> it's the #1 train grf apparently
20:34:01 <andythenorth> but the buy menu is hectic
20:34:24 <Eddi|zuHause> just means the other grfs are probably worse :p
20:37:51 *** gnomechomsky has joined #openttd
20:37:51 <gnomechomsky> Guys anyone know how to edit settings_sl_compat.h?
20:37:54 <gnomechomsky> do things need to be in order ?
20:38:36 <TrueBrain> yes; it converts the old savegame that needed to be in order to the new that no longer cares
20:39:01 <gnomechomsky> I'm trying to add a new boolean setting
20:39:15 <TrueBrain> that has no need to be in `_compat.h` files
20:39:15 <gnomechomsky> https://github.com/OpenTTD/OpenTTD/issues/10311
20:39:21 <TrueBrain> those are only for compatibility with old savegames πŸ™‚
20:40:10 <gnomechomsky> ah, so far I'm adding things to settings_gui.cpp, settings_type.h, and world_settings.ini
20:40:17 <andythenorth> wonder if {small} works in buy menu πŸ˜›
20:40:22 <gnomechomsky> And later I'll do the strings
20:41:03 <andythenorth> wait, what now, I never saw this https://newgrf-specs.tt-wiki.net/wiki/NML:Add_font_glyphs
20:41:09 <andythenorth> so I could fix the quote marks?
20:41:12 <andythenorth> per-grf?
20:43:28 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102696818829181060/image.png
20:43:28 <andythenorth> tiny font works in buy menu, not sure it's helping πŸ˜„
20:48:57 *** lobstarooo has joined #openttd
20:49:02 *** lobstarooo has quit IRC ()
20:49:48 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
20:49:48 <petern> Probably illegal.
20:49:56 <petern> Try it with truetype fonts.
20:50:50 *** WormnestAndroid has joined #openttd
20:51:23 <petern> Font glyphs is how the default sprite font is extended in openttd.grf, not sure why that would be surprising πŸ™‚
20:55:49 <TrueBrain> meh; can't build binaries for the survey, as I added a new lib .. and it uses the CI files from master .. so that fails πŸ˜„
20:56:00 <petern> I've fixed my concurrency issue by increasing the limit from 1 to 2.
20:56:07 <TrueBrain> guess tomorrow I will make a branch on upstream with those CI files changes; that way I can build them πŸ™‚
20:56:13 <TrueBrain> petern: lol
20:56:22 <petern> Seems like 1 means it doesn't append a parameter, so it defaults to lots? Dunno.
20:56:47 <petern> Hmm, how do I make ++ work on a enum type again...
21:01:18 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102701304284971198/image.png
21:01:18 <andythenorth> small font in warnings also πŸ˜„
21:01:20 <andythenorth> lol etc
21:03:43 <DorpsGek> [OpenTTD/grfcodec] rubidium42 approved pull request #21: Fix #2: Add missing props, variables, features, ... https://github.com/OpenTTD/grfcodec/pull/21#pullrequestreview-1408115697
21:05:17 <andythenorth> watching a YT video where someone has discord open πŸ˜›
21:05:24 <andythenorth> confusing sound effects
21:06:30 *** Wormnest has joined #openttd
21:08:38 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102703148960862338/image.png
21:08:38 <andythenorth> move the dice to layers? πŸ˜›
21:08:48 <andythenorth> currently they're composited in the graphics generator
21:08:57 *** _aD has joined #openttd
21:14:19 <Eddi|zuHause> <andythenorth> wait, what now, I never saw this https://newgrf-specs.tt-wiki.net/wiki/NML:Add_font_glyphs <-- i've done superscript and subscript numbers with that
21:15:28 <Eddi|zuHause> superscript meaning ΒΉΒ²Β³
21:15:41 <Eddi|zuHause> etc
21:15:49 <blathijs> Hey cool, harfbuzz support for RTL text. Nice if we can have that back in Debian again :-)
21:16:53 <blathijs> Thanks, TrueBrain!
21:16:58 *** Flygon has quit IRC (Remote host closed the connection)
21:17:31 <TrueBrain> Took a few years, but finallllyyyyy πŸ˜„
21:22:44 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:24:55 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi opened pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:25:19 <Eddi|zuHause> someone thanked TrueBrain? the world must be ending
21:27:11 <petern> "See #10311" hmm
21:27:21 <petern> Add: Added. Yeah?
21:27:28 <petern> Added: Add?
21:28:59 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:29:54 <TallTyler> Uh, whatever you did to add those commits, you don't want that
21:31:00 <glx[d]> andythenorth: if you change font inside a string, at least restore it at the end
21:31:01 <gnomechomsky> TallTyler: I did a pull with git config pull.rebase true. What should I have done instead?
21:31:05 <andythenorth> πŸ˜›
21:31:12 <gnomechomsky> And how best should I revert?
21:32:17 <petern> Rebase on top of master.
21:32:34 <gnomechomsky> I can just force the branch back I guess
21:33:03 <glx[d]> you can use `git reflog` and `git reset`
21:33:49 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:33:51 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:34:29 <gnomechomsky> I just set the branch back to my commit and then force pushed. looks like it worked
21:35:21 <gnomechomsky> I'm going to try again
21:35:36 <glx[d]> it's fine
21:36:33 <glx[d]> of course you still need to rebase, but take your time πŸ™‚
21:37:01 <Eddi|zuHause> i think everyone does that the wrong way once :p
21:37:20 <glx[d]> well the rebase is even optional as there's no conflicts
21:38:39 <gnomechomsky> hmm it doesn't like my whitespace.
21:39:43 <glx[d]> it doesn't like the trailing whitespaces at end of lines
21:40:15 <Eddi|zuHause> you can probably configure your editor to remove those automatically
21:42:39 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755#pullrequestreview-1408148188
21:44:22 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:47:48 <gnomechomsky> TallTyler: I see your comment about the save load version. What do I do with ```from = SLV_COMPETITOR_CROSSINGS``` in world_settings.ini?
21:50:19 <gnomechomsky> Sorry, I skipped over the PR temlpate assuming it was from github and not the openttd developers. Maybe it should be mentioned in CONTRIBUTING.md
21:50:32 <gnomechomsky> I'm used to gitlab
21:51:08 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102713847590174800/image.png
21:51:08 <andythenorth> petern: mode 2?
21:52:50 <gnomechomsky> gnomechomsky: It seems from is optional, so I'll get rid of it
21:56:30 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:57:46 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755
21:58:18 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi commented on pull request #10755: Add #10311: Added a setting to prevent level crossings with competitors. https://github.com/OpenTTD/OpenTTD/pull/10755#pullrequestreview-1408162986
22:00:18 <petern> Oh do settings just work without a savegame bump these days?
22:02:29 <DorpsGek> [OpenTTD/OpenTTD] mrmbernardi updated pull request #10755: Feature: Setting to disallow level crossings with competitors https://github.com/OpenTTD/OpenTTD/pull/10755
22:03:07 <andythenorth> we probably have some mechanism for plurals eh?
22:03:34 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1102716974544457799/image.png
22:03:34 <andythenorth> currently this involves strings for "Acid Tanker" and "Acid Tankers"
22:04:50 <andythenorth> hmm I'd have to fuck around putting some values on the text stack for plurals?
22:04:58 <andythenorth> might just concatenate 's' and move on πŸ˜›
22:05:25 <TrueBrain> petern: Savegames now have headers, so you can add (and remove) entries freely πŸ˜„
22:06:19 <TrueBrain> Or at least .. that is how it should work. Hasn't been tested a lot.. as we don't add many things lately :p
22:08:20 <Eddi|zuHause> andythenorth: builtin plurals only work if a string parameter is an actual number
22:08:43 <glx[d]> yeah plural needs a number
22:13:13 <andythenorth> will just manually add them πŸ™‚
22:18:52 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:21:28 <petern> Acid Tanker's
22:23:21 <andythenorth> greengrocers acid tanker
22:40:27 <andythenorth> oof sleep
22:47:55 <petern> Oh not again
22:59:55 *** WormnestAndroid has quit IRC (Remote host closed the connection)
23:08:51 *** WormnestAndroid has joined #openttd
23:21:16 <DorpsGek> [OpenTTD/grfcodec] glx22 merged pull request #21: Fix #2: Add missing props, variables, features, ... https://github.com/OpenTTD/grfcodec/pull/21
23:21:21 <DorpsGek> [OpenTTD/grfcodec] glx22 closed issue #2: 16 cargo industry properties missing https://github.com/OpenTTD/grfcodec/issues/2
23:53:10 <DorpsGek> [OpenTTD/OpenTTD] inferiorhumanorgans commented on pull request #9391: Fix #9386: use variant instead of unique_ptr to prevent compilers failing on the code generation https://github.com/OpenTTD/OpenTTD/pull/9391#issuecomment-1530601961