IRC logs for #openttd on OFTC at 2023-10-06
            
00:18:10 <DorpsGek> [OpenTTD/OpenTTD] Lamrr opened issue #11353: [Bug]: incorrect resolution set with multiple monitors https://github.com/OpenTTD/OpenTTD/issues/11353
00:33:46 *** joey[m]1 has joined #openttd
01:03:15 *** talltyler has joined #openttd
01:03:15 <talltyler> Full screen mode is a never-ending source of bugs, it seems
01:09:28 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #11353: [Bug]: incorrect resolution set with multiple monitors https://github.com/OpenTTD/OpenTTD/issues/11353
01:11:32 <_glx_> looking at the code there's clearly something wrong, but full screen and multiple monitors is rarely a good choice
01:33:04 <DorpsGek> [OpenTTD/OpenTTD] Lamrr commented on issue #11353: [Bug]: incorrect resolution set with multiple monitors https://github.com/OpenTTD/OpenTTD/issues/11353
01:34:58 *** Xaroth9 has quit IRC (Ping timeout: 480 seconds)
01:41:53 *** vista_narvas[m] has joined #openttd
02:24:22 *** D-HUND has joined #openttd
02:27:42 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:30:08 *** Xaroth9 has joined #openttd
02:40:26 *** jeremy[m]1 has joined #openttd
02:48:11 *** Wormnest has quit IRC (Quit: Leaving)
02:49:04 *** D-HUND is now known as debdog
03:05:42 *** soylent_cow[m] has joined #openttd
03:16:30 *** pm has joined #openttd
03:17:03 *** pm is now known as Guest2330
03:22:51 *** Guest2216 has quit IRC (Ping timeout: 480 seconds)
03:22:57 *** pikaHeiki has joined #openttd
03:43:26 *** keikoz has joined #openttd
03:45:18 *** blikjeham[m] has joined #openttd
03:47:26 *** muffindrake has quit IRC (Quit: muffindrake)
04:00:22 *** Flygon has quit IRC (Remote host closed the connection)
04:01:36 *** Flygon has joined #openttd
04:22:10 *** marchnex has joined #openttd
04:31:28 *** FelixActually[m] has joined #openttd
05:02:46 *** marchnex has quit IRC (Quit: Page closed)
05:26:31 *** keikoz has quit IRC (Ping timeout: 480 seconds)
05:30:52 *** freu[m] has joined #openttd
05:38:44 *** CornsMcGowan[m] has joined #openttd
05:48:33 *** igor[m] has joined #openttd
06:37:46 <peter1138> That might just be a general SDL / X11 / Wayland thing rather than us.
06:42:58 *** georgevb has joined #openttd
06:42:58 <georgevb> georgevb: I've tested OpenTTD with this patch and found, that not everything goes as intended
06:42:58 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1159742576950255708/image.png?ex=65322171&is=651fac71&hm=c26e7b2084b1fdd6646369694a4873ddd6a5167972b4f9ff3fe57a40641f6488&
06:43:44 <georgevb> I can choose the same car for autoreplace. I expect this was not intended
06:43:57 <georgevb> Both cars and engines are affected
06:47:56 <georgevb> As for the initial issue, it wirks as intended:
06:48:03 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1159743858767302744/image.png?ex=653222a2&is=651fada2&hm=666eb5c526dfa8804b7a3cd5db0ab1527876e12ace00616a06b3e5e1bad222dc&
06:49:58 <georgevb> As you can see, TE3 locomotives were producsed by three locomotive plants, and you can buy production of any separately.
06:52:26 <peter1138> That is nothing to do with that patch. Autoreplace to the same model has been allowed for 4 years. https://github.com/OpenTTD/OpenTTD/pull/7729
06:56:24 <peter1138> Anyway, we have already merged the change :)
07:12:59 *** emperorjake has joined #openttd
07:12:59 <emperorjake> peter1138: if that's the case, why is it greyed out?
07:13:03 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1159750151204782111/image.png?ex=6532287f&is=651fb37f&hm=d6991910044a06d20c337e408c2149302bc342ca69029d2328ea5709cb9504fb&
07:27:57 <emperorjake> it seems to only work with vanilla vehicles?
07:31:52 <emperorjake> Wait actually it works with NewGRF vehicles too when I start a new game
07:43:24 <alfagamma7> Hmm
08:31:53 <emperorjake> in any case, it was merged early this year so it's not nearly that old
08:57:44 <peter1138> Ah okay, I went by the date of the first comment :)
08:57:57 *** thelounge34 has quit IRC (Quit: The Lounge - https://thelounge.chat)
08:59:01 *** thelounge34 has joined #openttd
09:05:41 <emperorjake> should I make a bug report?
09:07:11 <peter1138> About?
09:09:12 <peter1138> Greyed out in that list, means you've hidden it from the purchase list.
09:09:38 <peter1138> (Or it's an unavailable variant parent, but that isn't the case here)
09:11:12 <emperorjake> You can only replace a vehicle with itself if you start a new game. It's greyed out if you load an older save from before it was added.
09:12:47 <peter1138> Hmm.
09:15:02 <peter1138> Ah, my mistake, it's always shaded if it's the currently selected engine on the left side.
09:15:22 <peter1138> (There's multiple ways things are marked shaded, not just variants)
09:22:46 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1159782794298396734/image.png?ex=653246e5&is=651fd1e5&hm=776f6a037bccbc05ed1060b5cf77c5f8175fe24253c5768eb8ecda2490ee84d0&
09:22:46 <emperorjake> It's not shaded if I start a new game (latest nightly)
09:23:39 <emperorjake> https://cdn.discordapp.com/attachments/1008473233844097104/1159783016718147634/image.png?ex=6532471a&is=651fd21a&hm=ef79066f9d96e9b7ca7a6276516f944cf572f8fc6fad9384cc54c5b76effcb9d&
09:23:39 <emperorjake> An older save running in the same version
09:24:03 <georgevb> peter1138: It does not work this way
09:24:05 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1159783128982880346/image.png?ex=65324735&is=651fd235&hm=028f38527dc38b885227a44ec12351984f984455f8508216adc499d65a90dff8&
09:24:40 <georgevb> As you can see I can't autoreplace engine
09:25:44 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1159783539705905224/image.png?ex=65324797&is=651fd297&hm=d23d5b584c6dd96c6d97f2f1a8e54bd89d565f4028097158d1816e2651344998&
09:26:15 <georgevb> But I can autoreplace the other one (that does not have subgroups
09:27:37 <georgevb> In fact I can, but only if build it the last
09:27:41 <georgevb> https://cdn.discordapp.com/attachments/1008473233844097104/1159784031324483644/image.png?ex=6532480c&is=651fd30c&hm=3889ce3c2cd131568c49b97345cb7fbd45383bfe744cf93260e912a139950b20&
09:27:53 <peter1138> Ok, #7729 is incomplete, it allows the autoreplace of same vehicles once the autoreplace is setup. But it doesn't modify the UI to allow autoreplace of same vehicles.
09:28:02 *** Guest2330 has quit IRC (Remote host closed the connection)
09:28:50 <peter1138> Then there is a second issue that the autoreplace UI doesn't shade the selected vehicle properly for some reason -- and that should be fix to allow #7729 to work properly.
09:29:44 <peter1138> This flag is not stored in the savegame, so I'm not sure why it appears differently on new game than on5 not loaded game.
09:29:48 <peter1138> ... -not
09:29:54 <peter1138> -5 too :)
09:30:19 <peter1138> I guess the testing of 7729 was done on a new game and it appeared to work :)
09:33:21 <peter1138> Think I've found something
10:24:27 <peter1138> Well, either way, it's nothing to do with the variants fix :)
10:38:30 *** virtualrandomnumber has joined #openttd
10:38:50 *** virtualrandomnumber has quit IRC ()
11:11:50 *** thelounge34 has quit IRC (Ping timeout: 480 seconds)
11:25:04 *** keikoz has joined #openttd
11:27:00 *** thelounge34 has joined #openttd
12:06:01 <merni> phew
12:29:43 *** Anonymous has joined #openttd
12:29:51 <peter1138> Ah ha
12:29:56 *** Anonymous has left #openttd
12:31:54 <peter1138> It's not "new game" vs "load game" it depends on whether you have built that engine during this session or not.
12:32:16 <peter1138> autoreplace_gui.cpp:123 is clearing the shade if you have bought the engine.
12:34:29 <peter1138> That tells me that autoreplace_gui.cpp:179 is wrong, as that shades it based on the engine ID, not the display engine ID.
12:34:57 <peter1138> However, given 7729, we can just remove the that line.
12:37:13 <emperorjake> ahh that makes sense
12:44:44 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
12:47:34 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11354: Fix #10220: Don't shade the currently selected engine in autoreplace window. https://github.com/OpenTTD/OpenTTD/pull/11354
12:48:16 <peter1138> And oops, one of my database tables was set up to use the wrong sequence.
12:53:44 *** nielsm has joined #openttd
14:49:05 <peter1138> Oops, fixed some code because `x => Notify...` is not the same as `x => x.Notify...`.
14:49:41 <Eddi|zuHause> weird how things suddenly work if you do them properly.
14:51:43 <peter1138> Thanks for you contribution.
14:52:12 <Eddi|zuHause> that is my special power.
14:58:12 <andythenorth> well
14:58:18 <andythenorth> was it lunch?
14:58:37 <Eddi|zuHause> what are the main indicators for lunch?
14:59:10 <andythenorth> peter1138: is the main indicator for lunch
14:59:15 <andythenorth> it's quite subjective
14:59:43 <peter1138> Several times.
15:03:20 *** HerzogDeXtEr has joined #openttd
15:25:33 *** gelignite has joined #openttd
15:28:34 <andythenorth> my AWS bill arrived 😦
15:29:11 <andythenorth> has increased
15:42:40 <peter1138> Millions?
15:43:51 <peter1138> Do I need an RB5009?
15:44:08 <peter1138> Maybe it can run an OpenTTD container.
15:45:00 <andythenorth> £1.09 this month
15:50:18 *** Wormnest has joined #openttd
15:58:33 <LordAro> peter1138: i'd imagine it probably could
15:59:32 *** gelignite has quit IRC (Quit: Stay safe!)
16:06:53 <andythenorth> guess what would be cheaper than AWS?
16:07:29 <frosch123> your MBP
16:08:37 <andythenorth> yes, if I compare the cost amortised over 2385 months, the MBP is cheaper
16:09:26 <frosch123> lol, i actually did not know how expensive they are
16:09:58 <andythenorth> mine costs £3.50 a day
16:10:00 <LordAro> lol
16:10:37 <frosch123> i think my sister bought a notebook that expensive in 1999
16:10:55 <frosch123> with docking station and stuff
16:11:00 <frosch123> was quite expensive back then
16:11:37 <frosch123> well, now i learned that ottd infra is actually not that expensive compared to running it on a MBP
16:11:54 <andythenorth> if you already have the MBP it's free
16:12:13 <frosch123> how long do they last? a year?
16:13:30 <alfagamma7> I probably will eventually need to pay for hosting and stuff if I intend to make my website more suitable
16:13:33 <alfagamma7> or not
16:13:35 <alfagamma7> Idk
16:14:55 <andythenorth> frosch123: fortunately Apple have a very slow CPU development pipeline
16:15:03 <andythenorth> so they last 2 years
16:27:51 <NGC3982> hello
16:29:15 *** ahyangyi has joined #openttd
16:29:15 <ahyangyi> Hi
17:19:17 <andythenorth> worked around the nml constraint https://github.com/andythenorth/chips/commit/1b45b1d6e0031200a5f02eefe43374697dcc20d9
17:23:52 <andythenorth> took me a week to think of that 😛
17:23:56 <andythenorth> even though FIRS does it
17:24:24 *** esselfe has quit IRC (Remote host closed the connection)
17:24:57 <alfagamma7> I will bookmark this
17:25:06 <alfagamma7> Or probably just use nfo
17:25:32 <alfagamma7> Good luck to me figuring how nfo works though
17:28:04 <andythenorth> don't use nfo for stations
17:28:17 *** esselfe has joined #openttd
17:28:34 <peter1138> Why not?
17:36:37 <andythenorth> same as all the other features, it's slightly worse in nfo than nml
17:36:55 <alfagamma7> Just a question though: Why isn't road routing a thing in nfo in case of stations?
17:37:16 <andythenorth> wa.....it
17:37:18 <peter1138> Just a question though: What even does that mean?
17:37:39 <andythenorth> we what now road routing?
17:37:45 <peter1138> Never heard of it.
17:38:04 <andythenorth> there's a bit of reserved spec for road bits on stations, is that what is meant?
17:38:15 <alfagamma7> https://cdn.discordapp.com/attachments/1008473233844097104/1159907488133550090/Screenshot_2023-10-06-23-08-01-51.jpg?ex=6532bb07&is=65204607&hm=eaf2953da43cb017be197be33cb89ecef16491cab6a98afcab1c34e78b4ad33c&
17:38:30 <alfagamma7> Refering to this written in wiki
17:38:38 <alfagamma7> I was just curious
17:38:55 <peter1138> If it's written in a Wiki, can you not just link the Wiki instead of a picture?
17:39:17 <peter1138> But the simple matter is: Road vehicles can't travel on rail stations.
17:39:23 <alfagamma7> Eh me dum dum at times
17:40:07 <frosch123> it's written there because a ttdp developer started work on it 15 years ago, without published result
17:40:10 <merni> "This property is not yet implemented" tells you all you need to know
17:40:16 <peter1138> ^ This.
17:40:57 <peter1138> Well, frosch123's this :D
17:41:00 <alfagamma7> Maybe the usecases are not there much
17:41:04 <andythenorth> can we please just delete it?
17:41:23 <andythenorth> vestigal bits of spec can be preserved by wayback machine 😛
17:41:48 <peter1138> andythenorth, it's a Wiki...
17:42:12 *** gelignite has joined #openttd
17:43:06 <andythenorth> I don't even know what we're talking about https://newgrf-specs.tt-wiki.net/wiki/Action0/Stations
17:46:04 <merni> andythenorth: Need to change this table too https://newgrf-specs.tt-wiki.net/wiki/Action0/Stations#Properties
17:48:18 <frosch123> https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Bridges <- want more food?
17:51:45 <andythenorth> strikes me that should just be 'not implemented' for the whole page?
17:55:12 <andythenorth> done
17:59:08 <andythenorth> anyway object classes span grfs?
17:59:15 <merni> nice thing about a wiki is it preserves history in case someone is really interested in archaeology of the ideas of ttdpatch developers
17:59:29 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1159912830770888755/image.png?ex=6532c000&is=65204b00&hm=1aff535ec74813ed57b3f85ad761b8a9a72571504697d336a0baa67a2490c658&
17:59:29 <andythenorth> so I could insert 'station' objects to this?
18:01:05 <frosch123> within a class the objects will be sorted by grf loading order
18:01:25 <andythenorth> that's fine
18:01:54 <frosch123> but yes, sharing classes was the original intention 🙂
18:02:07 <frosch123> i think there is even a standardized label schema wiki page
18:02:12 <frosch123> which obviously noone uses
18:02:22 <andythenorth> "until now"
18:02:35 <frosch123> https://newgrf-specs.tt-wiki.net/wiki/ObjectLabels <- look, "recommendations"
18:02:57 <andythenorth> is there a standard?
18:03:18 <frosch123> one?
18:04:17 <frosch123> i like items 6 and 7 in the second section
18:21:12 <andythenorth> so to make an object appear in two classes, just duplicate the ID?
18:21:39 <peter1138> Objects can only have one class.
18:22:20 <andythenorth> so many spare IDs now
19:02:48 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11354: Fix #10220: Don't shade the currently selected engine in autoreplace window. https://github.com/OpenTTD/OpenTTD/pull/11354#pullrequestreview-1662639684
19:30:28 *** Wolf01 has joined #openttd
19:49:33 * andythenorth needs to learn how objects work
19:49:41 <andythenorth> something about views and sizes
19:54:28 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:09:29 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11354: Fix #10220: Don't shade the currently selected engine in autoreplace window. https://github.com/OpenTTD/OpenTTD/pull/11354
20:45:04 *** virtualrandomnumber has joined #openttd
20:45:28 *** virtualrandomnumber has quit IRC (Remote host closed the connection)
21:10:41 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:27:14 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
21:27:29 *** Smedles has joined #openttd
21:31:08 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:35:38 *** jinks has quit IRC (Quit: ZNC - http://znc.in)
21:35:57 *** jinks has joined #openttd
21:48:21 *** gelignite has quit IRC (Read error: Connection reset by peer)
22:10:01 *** gelignite has joined #openttd
22:10:16 <peter1138> 1 file changed, 17 insertions(+), 94 deletions(-)
22:10:22 <peter1138> :Not bad:
22:13:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11355: Codechange: Use std::vector in fallback layouter, and shorten accessors. https://github.com/OpenTTD/OpenTTD/pull/11355
22:20:12 *** tokai|noir has joined #openttd
22:20:12 *** ChanServ sets mode: +v tokai|noir
22:27:09 *** tokai has quit IRC (Ping timeout: 480 seconds)
22:34:43 *** Flygon has joined #openttd