IRC logs for #openttd on OFTC at 2023-12-21
            
00:04:34 <DorpsGek> [OpenTTD/OpenTTD] J0anJosep commented on pull request #10691: Change: Add Depots and DepotIDs for airports with hangars. https://github.com/OpenTTD/OpenTTD/pull/10691#pullrequestreview-1791912872
00:46:42 *** esselfe has quit IRC (Remote host closed the connection)
00:48:21 *** esselfe has joined #openttd
02:07:38 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #10691: Change: Add Depots and DepotIDs for airports with hangars. https://github.com/OpenTTD/OpenTTD/pull/10691#pullrequestreview-1792002631
02:35:28 *** Tirili has joined #openttd
02:54:38 *** Wormnest has quit IRC (Quit: Leaving)
03:47:18 *** D-HUND has joined #openttd
03:50:31 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:37:54 *** keikoz has joined #openttd
04:39:51 *** Tirili has quit IRC (Quit: Leaving)
04:41:45 *** Tirili has joined #openttd
06:20:56 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:30:36 *** tokai|noir has joined #openttd
07:30:36 *** ChanServ sets mode: +v tokai|noir
07:37:21 *** tokai has quit IRC (Ping timeout: 480 seconds)
08:46:51 *** nielsm has joined #openttd
08:58:58 *** Tirili has quit IRC (Quit: Leaving)
09:23:24 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1187324433602445322/image.png?ex=6596790c&is=6584040c&hm=cac40c633a8db1c148ebe779a143c2f160b6bdc99b542b10cce34affffe3ce0a&
09:23:24 <andythenorth> goes it add a column for 'has statue'?
09:23:47 <peter1138> Who's?
09:23:49 <andythenorth> hmm does GS storybook have sortable tables yet?
09:24:04 <andythenorth> peter1138: current compay, I asssumed
09:24:16 <andythenorth> such a great mechanic this one
09:24:29 <peter1138> Whose?
09:24:33 <peter1138> FFS.
09:25:39 <andythenorth> think I preferred who's
09:25:59 <andythenorth> I think it's also grammatically correct, if the question is "Who's built a statue?"
09:55:49 <peter1138> Seems cold.
10:04:29 <reldred> whomst
10:24:31 <peter1138> Hmm, do I need all these user authorization checks...
10:36:55 <Eddi|zuHause> there will always be an unauthorized remote execution hiding
10:38:08 <peter1138> Alright, FTTP is available here now.
10:40:53 *** asymptotically2 has quit IRC (Remote host closed the connection)
10:41:21 <Eddi|zuHause> fibre to the porch? :p
10:42:05 <peter1138> We go with premises, presumably it might not be a home.
10:43:50 *** asymptotically2 has joined #openttd
10:44:01 <peter1138> I can keep my current 80/20 on FTTP for Β£0 extra. Generous ;)
10:47:23 <Eddi|zuHause> the last time we got a speed upgrade, it got 5€ cheaper
10:47:56 <xarick> oh, horizontal bar
10:48:09 <Eddi|zuHause> it got from 16/1 to 50/10
10:48:12 <xarick> very nice
10:49:07 <Eddi|zuHause> i haven't felt the need for anything faster since then
10:57:35 <xarick> found a little problem
10:57:47 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1187348185342021724/image.png?ex=65968f2b&is=65841a2b&hm=63b4270be5f4a788ac444cf46d76b1a6eb0074c0bc8911680b200f94a0fb6f7c&
10:57:47 <xarick> Text begins over the border
11:35:40 *** keikoz has joined #openttd
11:49:22 <Eddi|zuHause> literally unplayable.
11:50:15 <Eddi|zuHause> but really, that should be a github issue
11:59:57 <_glx_> Strange I didn't had the issue (or didn't notice it)
12:03:22 <_glx_> At least I don't think adding the scrollbar caused it
12:19:17 <peter1138> If it's scrolled to the right slighty, that'll do it :)
12:19:29 <peter1138> Widgets are clipped to the whole widget, not to just inside the bevel.
12:19:37 <peter1138> (See the recent picker sprite change :))
12:19:57 <peter1138> Definitely totally unplayable though.
12:20:30 <peter1138> Which reminds me, at least one of the scrollable windows uses frametext clipping, which is HUGE and looks a bit odd.
12:20:39 <peter1138> Goals or Storybook, I think.
12:43:16 <_glx_> Ah yes, could be the change from implicit tr.left to -hscroll
12:44:16 <_glx_> I admit I mostly looked on right side when testing
12:50:59 <_glx_> Oh it's even visible in the screenshot in PR description
12:51:17 <talltyler> Oops, bad reviewer πŸ™‚
12:51:31 <talltyler> Needs padding calculated on the left, maybe?
12:51:40 <_glx_> But it didn't bother me as the scrollbar is to see what's on the right
12:55:36 <_glx_> I partly copied drawing from TextfileWindow IIRC, but didn't really check left side their either
12:56:04 <_glx_> *there
13:00:33 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake opened pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612
13:02:02 <emperorjake> I had this idea a long time ago. I finally made it a PR. https://www.tt-forums.net/viewtopic.php?p=923262
13:02:27 <talltyler> Huh, I had no idea that was even a thing
13:02:46 <emperorjake> Unfortunately, the randomise button is well beyond my coding abilities yet, but I hope to see it happen someday
13:08:38 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866214953
13:15:16 <peter1138> Well.
13:15:35 <peter1138> FillDrawPixel now takes a Rect, so setting up the clipping area is easier.
13:16:10 <peter1138> Is it possible to switch from one performance monitor to another and will it not count the time taken twice?
13:17:11 <peter1138> Hmm, actually that would not work as I'd need to start using accumulators. Bums.
13:25:06 <xarick> erm... glx, found another issue, maybe, need to verify in 13.4
13:25:27 <xarick> scrolling up a page of text
13:25:47 <xarick> seems to skip some lines
13:26:21 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866238335
13:29:19 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866244139
13:29:57 <xarick> oh, 13.4 doesn't have AsyncMode yet 😦
13:31:22 <peter1138> emperorjake, there are ways to force DOSBox to do pixel-perfect scaling, btw :)
13:31:45 <peter1138> I have dosbox-staging, but there's also another modernised version that does it.
13:32:04 <emperorjake> I'm just using an in-browser version
13:32:12 <peter1138> Oh.
13:33:32 <emperorjake> The first one I tried claimed to be TTD but it was actually an old version of OpenTTD
13:33:55 <peter1138> Hehe
13:39:41 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866262697
13:41:03 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866265166
13:49:12 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11612: Change: remove sorting weights when generating a company colour https://github.com/OpenTTD/OpenTTD/pull/11612#issuecomment-1866283404
13:54:53 <peter1138> I found a bug! The company league table isn't updated when a new company starts.
13:54:56 <peter1138> ^ In TTD!
13:55:45 <emperorjake> I noticed that too actually
13:59:24 <xarick> that's intended, I suppose
13:59:52 <xarick> nevermind, I missed the sarcasm
14:01:17 <peter1138> What sarcasm?
14:01:42 <xarick> I thought you were referring to the custom league tables
14:04:00 *** Flygon has quit IRC (Read error: Connection reset by peer)
14:04:23 <peter1138> I keep mistyping category as cargo.
14:04:38 <peter1138> This will end up with me trying to explain to my boss what a cargotype is.
14:08:49 <xarick> I'm too dumb at this...
14:08:49 <xarick> ` local version = GSController.GetVersion();
14:08:49 <xarick> local revision_number = (version & (1 << (19 - 1))) >> 0; // 0-18 revision number (0 == revision is unknown)
14:08:49 <xarick> local is_a_release = (version & (1 << (20 - 1))) >> 19; // 19 (1 == release version, 0 == not a release version)
14:08:49 <xarick> local minor_version = (version & (1 << (24 - 1))) >> 20; // 20-23 (minor version)
14:08:50 <xarick> local major_version = ((version & (1 << (32 - 1))) >> 24) - 16; // 24-31 (major version + 16)`
14:08:50 <xarick> https://docs.openttd.org/gs-api/classGSController#a73ada389f61bae64e65ad81126f280f8
14:09:11 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1187396354192982147/image.png?ex=6596bc07&is=65844707&hm=c1ef9cb5867e7d5f321b02eb51f0ecf84edde2918d52ef813f990c7acffa09d0&
14:12:23 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1187397156672372796/image.png?ex=6596bcc6&is=658447c6&hm=1335a5e345347be1f8982f89cee84384d03af39db201deec0f7db8f4b44852a4&
14:12:23 <xarick> ah, suddenly, I got it
14:13:15 <xarick> parenthesis is my weakness
14:15:10 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake dismissed a review for pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605#pullrequestreview-1788975396
14:15:13 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake updated pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605
14:16:02 <_glx_> Main question is why all these -1 in your bitshifting ?
14:21:02 <xarick> isn't this how it's done?
14:21:18 <peter1138> No.
14:21:43 <xarick> major_version = ((version & ((1 << 32) - 1)) >> 24) - 16;
14:21:48 <xarick> with correct parenthesis
14:21:48 <peter1138> Yes.
14:21:57 <peter1138> That is NOT the same as (1 << (32 - 1))
14:23:20 <emperorjake> oops
14:23:29 <talltyler> emperorjake: Wrong branch? πŸ™‚
14:24:32 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake updated pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605
14:25:01 <peter1138> I just found I'd been committing a load of stuff to main instead of a branch :D
14:25:10 <peter1138> No biggy, it's only my local main, but still.
14:27:13 <emperorjake> Hm, I didn't know that would affect an existing PR, still a bit new to this stuff πŸ˜…
14:36:49 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake updated pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605
14:37:11 <talltyler> Heheh you’re making a mess πŸ˜›
14:37:30 <talltyler> Try an interactive rebase to drop all the commits after the one you want
14:37:58 <talltyler> `git rebase -i head~4` should be enough (goes back four commits)
14:38:43 <talltyler> To update with changes from master, you’ll want to rebase, not merge
14:39:38 <talltyler> Assuming you set your remotes following the instructions in CONTRIBUTING.md, it’s `git fetch upstream` and then `git rebase upstream/master`
14:57:57 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake updated pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605
15:01:33 <emperorjake> Well I tried
15:01:39 <xarick> I wanna see if I can extract more performance from AreTilesQueued
15:08:13 <xarick> instead of checking 1 tile at a time, I'd like it to jump right to the tile that matters, or just skip the entire side
15:08:23 <xarick> if none matters
15:22:37 <talltyler> Did you click update on the PR? You’ll have to `git pull` those to your conputer before you can rebase them away
15:24:47 <emperorjake> It's past 2am and I need sleep
15:24:52 <emperorjake> <a:thisisfine:1065477838549033031>
15:29:16 <talltyler> Oh yeah go sleep
15:31:18 <andythenorth> Hmm
15:32:05 <andythenorth> I know there’s money cheat, but would we consider uncapping starting money? Watching one of my kids play
15:32:41 <merni> there's a cap on starting money?
15:32:46 <merni> that sounds stupid
15:34:34 <merni> wait, where do you even set the value of starting money?
15:44:20 *** Wormnest has joined #openttd
15:48:48 <andythenorth> you can't?
15:49:24 <peter1138> You can the max loan, which is almost the same thing.
15:49:53 <peter1138> Capped at Β£2,000,000,000.
15:50:18 <andythenorth> child hates borrowing money
15:50:22 <andythenorth> doesn't like paying interest
15:50:59 <peter1138> Do we have government bailouts follows by selling off to foreign TOCs?
15:51:11 <andythenorth> actual problem he has is FIRS not generating enough of some industry types πŸ˜›
15:51:14 <peter1138> Hmm, 1000/115?
15:51:20 <andythenorth> and he won't use scenario editor to place them
15:51:24 <andythenorth> or use money cheat
15:51:35 <peter1138> Could I host andythenorth's MBP with 1000/115 internet?
15:51:40 <andythenorth> maybe
15:51:42 <peter1138> Such asymmetric though :(
15:57:13 <Eddi|zuHause> peter1138: i'm sorta wondering why chinese TOCs haven't bought into it yet.
15:57:58 <Eddi|zuHause> at least as far as i've seen, only major european TOCs have carved into each others markets
16:19:44 <talltyler> You can set loan interest rate, right? We could add a 0% interest rate option pretty easily to the existing setting
16:22:10 *** Hanicef has joined #openttd
16:24:04 <andythenorth> fair point, not a bad idea
16:24:16 <andythenorth> it's currently capped 2% - 4% range
16:24:29 <andythenorth> goes it throw out arbitrary range?
16:24:45 <andythenorth> commercial interest in the UK right now is about 14% on business lending πŸ˜›
16:27:30 <DorpsGek> [OpenTTD/OpenTTD] twpol updated pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342
16:28:34 <Eddi|zuHause> talltyler: you first need to change the hardcoded 1% difference between income and cost inflation
16:29:09 <Eddi|zuHause> (which actually makes 2% harder than 4%)
16:29:32 <DorpsGek> [OpenTTD/OpenTTD] twpol commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#pullrequestreview-1793303537
16:32:25 <andythenorth> just delete inflation πŸ˜›
16:34:06 <xarick> how does that work with breakdowns?
16:34:44 <wensimehrp> *Open No Ressha De Ikou*
16:42:30 <talltyler> Yeah, allowing any percent of loan interest seems like a cheap way to allow more gameplay styles
16:43:04 <DorpsGek> [OpenTTD/OpenTTD] twpol commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#pullrequestreview-1793327432
16:43:10 <talltyler> Both free loan as well as a more brutal economy where the interest really eats you. You know, for Balance
16:45:12 <frosch123> town-authority-action "spread inflation panik": raise inflation by 50% for 3 months
16:45:19 <locosage> lol, was thinking of extending loan interest just yesterday
16:45:42 <locosage> also, I too hate borrowing money
16:46:01 <locosage> because that's the thing I have to do at the start of every game and always full loan
16:46:02 <talltyler> Heh, I’m away for the holidays but will happily review if you want to take the lead on making a PR
16:46:10 <locosage> except on citymania where server borrows for you :p
16:47:31 <Timberwolf> Would be nice to expose the rates and maximum allowed loan to GS.
16:47:53 <frosch123> they are
16:48:03 <frosch123> GS can read and modify all game settings
16:48:26 <Timberwolf> Oh! I've obviously missed that.
16:48:27 <talltyler> And we have https://github.com/OpenTTD/OpenTTD/pull/11224 awaiting review for even more granular control
16:49:00 <frosch123> Timberwolf: yeah, it's kind of hidden: you have to search for "settings", not for "inflation" πŸ™‚
16:49:13 <locosage> frosch123: except settings aren't stable so it only works until someone changes something
16:50:03 <frosch123> true
16:50:40 <_glx_> exactly like GUI stuff
16:50:56 <_glx_> it can change between versions
16:52:45 <locosage> well, tutorial gs is probably the only one relying on gui stuff
16:53:27 <locosage> mp gui like story book/goals/league table is stable
16:54:12 <_glx_> yeah by GUI I mean highlighting and stuff
16:59:07 <peter1138> Interest/Inflation would be nice if GS could independently control them.
17:01:16 <peter1138> Correction, sounds like it might be nice, but is probably terrible in practice.
17:01:58 <andythenorth> πŸ™‚
17:02:17 <peter1138> Pay "the bank" to fix your interest rate for 5 years.
17:07:28 <xarick> `if (_openttd_version.major_version >= 14) local async = GSAsyncMode(true);`
17:07:28 <xarick> How can I make this work as intended for both 13.4 and current master? 13.4 doesn't have a GSAsyncMode function. For that part, this works the script won't crash. But then on master, I don't get the Async running in true mode 😦
17:08:52 *** maverickfischer has joined #openttd
17:08:54 <xarick> also tried `local async = GSAsyncMode(_openttd_version.major_version >= 14);` but crashes on 13.4
17:10:47 <andythenorth> hmm related to the 'why?' of free money....and also a discussion in discord #opentttd
17:11:12 <andythenorth> wonder if we could have a pre-game-start mode, where player can optionally generate more industries, or otherwise modify the map
17:11:40 <andythenorth> map gen usually requires 30 or 40 attempts to get a viable map with the more complex versions of FIRS
17:12:05 <andythenorth> I sometimes save an ok map and change .scn and manually edit, then change back to .sav
17:12:15 <andythenorth> I tried explaining this to a 13 year old and he just looked baffled
17:15:43 <_jgr_> xarick: Move the declaration of the local outside of the if
17:15:45 <andythenorth> oh
17:16:04 <andythenorth> hmm my idea above....not trolling here, that's actually one of the better cases for a GS
17:16:14 <andythenorth> there's nearly enough UI controls to do it
17:16:18 <peter1138> 17:11 < andythenorth> wonder if we could have a pre-game-start mode, where player can optionally generate more industries, or otherwise modify the map
17:16:24 <peter1138> That's called "scenario editor"
17:16:37 <andythenorth> GS can pause, use deity mode for money, and ask player questions, and allow player to choose a tile
17:16:44 <andythenorth> just a bit...clunky
17:16:49 <peter1138> Now, switching between normal mode and scenario mode might be a thing?
17:16:54 <andythenorth> maybe yes, also
17:16:57 <peter1138> (without reloading)
17:17:37 <andythenorth> none of the 'more sandbox' or 'more trainset' features ever seem to go wrong πŸ™‚
17:18:43 <DorpsGek> [OpenTTD/OpenTTD] twpol updated pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342
17:18:54 <DorpsGek> [OpenTTD/OpenTTD] twpol commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#issuecomment-1866673272
17:22:09 <xarick> is that separation gonna be for AIs too?
17:23:34 <xarick> i hope ships get it working nicely
17:23:54 <xarick> they tend to climb into each other
17:25:35 <DorpsGek> [OpenTTD/OpenTTD] twpol commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#issuecomment-1866681019
17:35:56 <DorpsGek> [OpenTTD/OpenTTD] twpol commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#pullrequestreview-1793413703
17:41:21 <locosage> andythenorth: I think I got pretty consistent steeltown generation with just some mapgen tweaks on citymania server
17:43:19 <locosage> <https://pastebin.com/GHcBJ58K>
17:56:59 <merni> frosch123: New disaster: "Liz Truss"
18:00:37 <andythenorth> locosage: most of my maps contain port industries in tiny lakes
18:00:43 <andythenorth> or jinx town names
18:01:17 <andythenorth> my GS tries to fix most of the FIRS-specific problems by adding missing industries, but it can't fix the ports
18:01:37 <locosage> that's not something I was concerned about...
18:01:48 <locosage> though lakes are usually decent coz I'm using custom terragen
18:02:13 <andythenorth> maybe I should just write a circular tile search in grf
18:02:19 <andythenorth> and count water tiles
18:02:47 <locosage> doesn't need to be circular if you want count anyway
18:02:48 <andythenorth> or maybe it would be enough to walk out in 8 compass directions
18:03:08 <locosage> can do random sampling xD
18:03:10 <andythenorth> if it can go 64 tiles of water in any compass direction, it's probbaly big enough
18:03:27 <andythenorth> what happened to the GS pylon placement library? πŸ˜›
18:03:34 <andythenorth> it would be much faster now with async
18:03:40 <locosage> well, pattern sampling would be more realistic approach in grf
18:03:53 <locosage> idk, I didn't touch pylons since
18:04:34 <locosage> nor do I plan to :p
18:06:04 <locosage> didn't even bother doing pylons for citymania yet
18:06:24 <locosage> maybe for next steeltown event....
18:07:06 <locosage> power lines as tram type xD
18:17:54 *** thelounge345 has quit IRC (Quit: The Lounge - https://thelounge.chat)
18:39:33 <peter1138> Hmm.
18:44:06 <locosage> can action 2 read grf parameters?
18:44:17 <locosage> without having smth like action6 before I mean
18:46:15 <peter1138> No.
18:46:15 <locosage> oh, there is var7f
18:46:42 <peter1138> Oh, whoops.
18:46:47 <peter1138> I was looking at GetGlobalVariable.
18:47:00 <peter1138> 7F. Yup.
18:47:07 <peter1138> About 4 lines before the GetGlobalVariable call :)
18:47:57 <peter1138> Okay. MP3 decoding. Soxr resampling. 32-FP mixing. What else?
18:52:37 <andythenorth> doppler effect on train running sounds?
18:53:42 <peter1138> Stereo positioning?
18:54:01 <peter1138> I'm sure I did that once but... doubt I have the patch for it.
18:56:35 <_zephyris> Zoom level volume decrease, or is that done now?
18:57:05 <peter1138> It's not been changed.
18:58:27 <andythenorth> I thought stereo positioning happened already? πŸ™‚
18:58:31 <peter1138> i.e. it has always done that. but when we added zoom in levels we made x2 and x4 be the same volume as x1.
18:58:35 <Rubidium> sound focus around the mouse pointer?
18:58:51 <andythenorth> hmm
18:58:51 <peter1138> andythenorth, panning from left to right is there, but that's not stereo positioning.
18:59:00 <andythenorth> oh yes I see πŸ™‚
18:59:23 <alfagamma7> andythenorth: Would be nice
18:59:27 <peter1138> Stereo positioning needs to delay samples per channel by x-amount depending on pan.
19:00:10 <peter1138> Doppler is funny because there is never a time when a sound is passing you.
19:01:43 <Rubidium> what about realistic sound? When you're zoomed out far, then the train starting is much farther away, so it should be delayed (much) more than when you are zoomed in :D
19:02:47 <Rubidium> zoom out a lot, and bomb some trees... you'll hear the boom (quite silently) in say 3 seconds
19:05:10 <Eddi|zuHause> am i misremembering or do we already make sounds more silent in zoom out?
19:05:42 <peter1138> No, it is there.
19:06:23 <peter1138> Rubidium, ah, simply change the samples per period to delay sounds :)
19:06:38 <peter1138> Hmm, my MP3 decoding is not right.
19:07:49 <peter1138> The very short 'bip' sound has some noise at the end. Hmm.
19:26:54 <peter1138> Hmm, maybe decode the file to see if it's embedded incorrectly. Probably not.
19:27:58 <peter1138> Yeah, that's fine.
19:31:32 <andythenorth> hmm signals on bridges?
19:32:05 <peter1138> Illegal.
19:32:22 <Eddi|zuHause> there are no bridges
19:32:53 <Eddi|zuHause> (which is the majority of the problem)
19:33:41 <andythenorth> Flat Bridge Variants?
19:33:56 <Eddi|zuHause> not solving any problems.
19:35:51 <Eddi|zuHause> there are two main problems with (sane) signals on bridges (and, in passing, tunnels): storage and UI.
19:40:03 <talltyler> And technical problems are usually easier to solve than user experience problems, in my experience
19:40:56 <Eddi|zuHause> the technical problem is mostly philosophical: as in, do we actually WANT that solution
19:41:28 <Eddi|zuHause> (like, stacked tiles, off-map storage, ...)
19:44:36 <andythenorth> it's easier just to raise land over sea
19:45:06 <andythenorth> nobody should be needing a bridge longer than 4 tiles anyway
19:45:08 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1187480898304741457/image.png?ex=65970ac4&is=658495c4&hm=a76946fe53257215606eaae659e50d8097617d34230c5dfcfbe55e35acb5e1e9&
19:45:19 <andythenorth> if I replaced that with tunnels, it would be fine
19:45:52 <andythenorth> also if players would just stick to 'one train per line' per TTD
19:45:57 <andythenorth> bridges could be any length
19:47:47 <peter1138> The NewGRF bridges PR adds off-map storage for bridges.
19:47:56 <peter1138> But the way that is looked up is a bit weird.
19:49:16 <andythenorth> it's a bad idea, but signals on bridgehead tiles would be somewhat useful πŸ˜›
19:49:21 <andythenorth> terrible idea though
19:49:44 <andythenorth> hmmm modular bridges πŸ˜›
19:56:54 <peter1138> I think "give bridges off-map storage" and then "store all bridge signals off map" is possible. And doesn't special-case the bridge heads.
19:57:09 <peter1138> "Why can we only have signals on bridge heads!? This is literally unplayable.
19:57:11 <peter1138> "
19:57:40 <andythenorth> pitchforks
19:59:47 <peter1138> Okay, there's noise even with my earlier patch. Hmm
20:00:02 <Eddi|zuHause> one imaginary scenario i have: a bridge head with a junction, a bridge middle with a signal, and a bridge head with a station tile on it
20:01:47 <andythenorth> hmm Horse engine progression
20:01:58 <andythenorth> nah nvm πŸ˜›
20:02:26 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1187485250717233282/image.png?ex=65970ed2&is=658499d2&hm=7fa81f05623f6b5a516a0b645130553b1a123913bb3dde3643ae2e48a7dd12b6&
20:02:26 <andythenorth> /me back to building optimised networks
20:03:03 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1187485407731007538/image.png?ex=65970ef7&is=658499f7&hm=07d788e6127dae64d1c82e0f1308b0311961fb83ac0b4d76a3a6957097d4e8de&
20:03:03 <andythenorth> "town issues"
20:04:38 <peter1138> Eddi|zuHause, bridge head sub tiles then.
20:05:04 <peter1138> I mean, that's not actually stupid.
20:05:05 <andythenorth> 'fund new buildings' does nothing if popn is 0 πŸ˜„
20:05:09 <peter1138> New Map Array?
20:05:47 <andythenorth> curved tunnels?
20:05:50 <peter1138> Hmm, that map layers patch... I think that was ... a bit old by now.
20:05:55 <peter1138> Smatz's?
20:06:22 <andythenorth> hmm
20:06:31 <andythenorth> ok so layers
20:07:02 <andythenorth> but some of the tiles actually contain cargo for primaries, in countable quantities πŸ˜›
20:07:29 <andythenorth> so you could mine stuff
20:07:34 <andythenorth> then maybe craft it
20:09:06 <peter1138> OpenTTDCraft?
20:09:39 <andythenorth> I think so
20:11:02 <Eddi|zuHause> and UFOs are the new creepers?
20:11:52 <andythenorth> biters
20:15:50 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:18:16 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1187489233485705216/image.png?ex=65971287&is=65849d87&hm=5a78afb1288acfab980cc276ed73ff178a4e6d6e20e041b018f0c8d904141d66&
20:18:16 <andythenorth> such optimum
20:18:28 <andythenorth> one day I'll learn to play properly
20:18:48 <_jgr_> If you're having fun, then it's proper πŸ™‚
20:21:45 <andythenorth> I do wish flat junctions were easier to build sometimes πŸ˜›
20:23:06 <LordAro> https://en.wikipedia.org/wiki/War_Thunder#Documents_leaks new favourite wikipedia page (section)
20:24:13 <andythenorth> "oops"
20:25:37 *** Wolf01 has joined #openttd
20:27:45 <peter1138> Hmm, maybe 5 frames is too short for an mp3 file...
20:34:00 *** kuhnovic has quit IRC (Quit: User went offline on Discord a while ago)
21:01:28 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11600: Change: Scale sprites to requested highest resolution level. https://github.com/OpenTTD/OpenTTD/pull/11600
21:06:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11600: Change: Scale sprites to requested highest resolution level. https://github.com/OpenTTD/OpenTTD/pull/11600#issuecomment-1866931276
21:09:34 <xarick> Is this a refactoring question? https://gist.github.com/SamuXarick/8adba1b11dc8e12c212f16265ca0915a
21:12:35 <peter1138> Hmm, next step, convert 32bpp sprites to 8bpp even with 32bpp blitters? heh
21:13:14 <locosage> what for?
21:13:26 <peter1138> No use at all.
21:13:34 <locosage> I do it for 32bpp recolours but it's probably better to just implement LUT
21:15:10 <locosage> though iirc there was some recoloring thing in newgrf format that only 8bpp-simple supported
21:16:07 <locosage> custom "transparent" recolour or smth
21:16:30 <peter1138> Yes, you can provide a recolour sprite.
21:16:43 <locosage> smth smth glass roofs on stations smth
21:17:11 <peter1138> Used by BM_TRANSPARENT mode, e.g. to make the newspaper viewport monochrome.
21:17:49 <peter1138> Maybe we can use the RGB to palette look up to support that :D
21:18:09 <peter1138> Could be slow but...
21:18:44 <locosage> actually, even without transparent mode, adding recolour to 32bpp sprite doesn't work iirc
21:18:55 <locosage> having 32 to 8bpp can fix that
21:19:37 <peter1138> The transparent mode only draws the "transparent" overlay, no solid pixels.
21:19:51 <peter1138> To do that, you just draw another solid layer on top.
21:21:17 <peter1138> BM_TRANSPARENT does not do anything with the source pixels other than checking it's not 0.
21:21:34 <peter1138> Basically a mask of where to apply the remap.
21:22:28 <peter1138> Now, given that probably the only NewGRF that does use this is MB's newstats...
21:22:58 <peter1138> I like the fact we left it as a TODO :)
21:23:05 <peter1138> 15+ years ago
21:23:33 <locosage> yeah, and I stumbled on that TODO like 10 years ago
21:23:36 <locosage> don't remember much xD
21:34:31 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1187508422472630342/image.png?ex=65972466&is=6584af66&hm=7c9e63821f7f95ba219113495ffebdf669329ed1e746916c263a047f417a9680&
21:34:31 <peter1138[d]> Works.
21:34:45 <peter1138[d]> It didn't work for a bit, and that's because I forgot to actually apply the remap.
21:35:04 <peter1138[d]> So it was doing a palette lookup and replacing it with... the same colour.
21:35:18 <peter1138[d]> Not exactly the same but close enough that I couldn't notice it.
21:35:26 <peter1138[d]> Right, now to find newstats...
21:36:45 <peter1138> Heh, there's an grf parameter for "no green glass"
21:40:06 <xarick> is that using AI for upscaling?
21:41:51 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1187510270495555718/image.png?ex=6597261f&is=6584b11f&hm=88f0b3a51632ff31b240306a40f7b6a1309bcad77e6a25451fbe3b8780ae0843&
21:41:51 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1187510271032447107/image.png?ex=6597261f&is=6584b11f&hm=2647808332c494d1e625de83f5011271a6fbccb61c81597054081d5c50792899&
21:42:02 <peter1138[d]> No, it's OpenGFX2 Hi Def
21:42:26 <peter1138[d]> Oh, and some of it was the "real 32bpp" graphics stuff.
21:42:34 <peter1138[d]> So... it almost works. Weird blue pixels.
21:42:49 <peter1138[d]> Perhaps I should compare with 8bpp mode πŸ™‚
21:43:35 <peter1138[d]> Okay, that's the same.
21:52:36 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1187512974110363678/image.png?ex=659728a3&is=6584b3a3&hm=d7af78510518cbe05717ed591207a5abbb6604d1893d6693d6ce21fd1752249e&
21:52:36 <xarick> Worst case scenario. 64x4096 dimensions
21:52:43 <xarick> reduced it to 51 ticks
21:53:13 <wensimehrp> What's this gs for?
21:53:47 <xarick> it was for expanding a town and placing airports for noise, but I got distracted
21:54:05 <xarick> I was attempting to overflow town_noise
21:55:50 <xarick> I found that airports were constraining town expansion at some point, so I went to creating a way to optimally place airports but it would require scanning very large portions of the map, very slow searching
21:56:18 <xarick> ended up here, optimizing the search instead
21:57:44 <xarick> I think I didn't lose track of my goal
21:58:11 *** thelounge345 has joined #openttd
21:59:34 *** thelounge345 has quit IRC ()
22:00:52 <peter1138> Okay, not sure how the modify the SSE blitter. Probably "don't bother trying to write SSE code"
22:02:48 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #11602: Feature: Convert 32bpp-only sprites to 8bpp for 8bpp blitters. https://github.com/OpenTTD/OpenTTD/pull/11602
22:04:55 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11602: Feature: Convert 32bpp-only sprites to 8bpp for 8bpp blitters. https://github.com/OpenTTD/OpenTTD/pull/11602#issuecomment-1866987962
22:05:02 <peter1138> Oof, they came out large.
22:06:55 <peter1138> This tells me I need to move the 32bpp-to-palette lookup somewhere a bit more generic.
22:21:45 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:28:50 *** Hanicef has quit IRC (Quit: leaving)
22:31:16 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #11602: Feature: Convert 32bpp-only sprites to 8bpp for 8bpp blitters. https://github.com/OpenTTD/OpenTTD/pull/11602#pullrequestreview-1793747322
22:45:36 <andythenorth> one day I'll make a grf
22:45:53 <andythenorth> when did I last make a grf?
22:49:51 <Eddi|zuHause> at this point, would it really hurt so much to declare 8bpp deprecated and not bother with conversion?
22:57:01 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:58:43 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#issuecomment-1867030617
22:59:03 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #8342: Feature #8095: Allow automatically separating vehicles in shared orders https://github.com/OpenTTD/OpenTTD/pull/8342#pullrequestreview-1793736090
23:09:16 <xarick> 8342 - is it breakdown friendly?
23:09:29 <xarick> and can AIs use it?
23:29:43 <Eddi|zuHause> i'm having little faith in autoseparation
23:33:15 *** Flygon has joined #openttd
23:40:27 <emperorjake> It has its limits but it's still an incredibly useful feature that I can't live without
23:40:37 <emperorjake> it would be wonderful to see it in vanilla
23:54:54 <FLHerne> yeah
23:55:20 <FLHerne> it's not trustworthy for fragile rail networks, but no-one wants to hand-timetable every city bus route
23:58:37 <Eddi|zuHause> the worst part about timetabling is redoing everything after replacing