IRC logs for #openttd on OFTC at 2023-07-18
            
00:09:46 <DorpsGek> [OpenTTD/OpenTTD] sheepo99 commented on pull request #9118: Change: New English capitalization https://github.com/OpenTTD/OpenTTD/pull/9118#issuecomment-1639061999
00:42:49 *** Flygon has joined #openttd
01:00:23 <FLHerne> oof
01:00:40 <FLHerne> not wrong though
01:26:34 <talltyler> Yes šŸ˜¦
01:33:46 *** Kitrana has joined #openttd
01:34:21 *** Kitrana2 has joined #openttd
01:35:57 *** Kitrana1 has quit IRC (Ping timeout: 480 seconds)
01:41:49 *** Kitrana has quit IRC (Ping timeout: 480 seconds)
02:05:46 *** Wormnest has quit IRC (Quit: Leaving)
02:24:10 *** debdog has joined #openttd
02:27:33 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
03:45:21 *** peter1138 has quit IRC (Remote host closed the connection)
03:45:21 *** _jgr_ has quit IRC (Remote host closed the connection)
03:45:21 *** merni has quit IRC (Remote host closed the connection)
03:45:21 *** shrekshellraiser has quit IRC (Remote host closed the connection)
03:45:21 *** justanortherner has quit IRC (Remote host closed the connection)
03:45:21 *** michi_cc[d] has quit IRC (Remote host closed the connection)
03:45:21 *** alfagamma_0007 has quit IRC (Remote host closed the connection)
03:45:21 *** jfs has quit IRC (Remote host closed the connection)
03:45:21 *** kamnet has quit IRC (Remote host closed the connection)
03:45:21 *** ahyangyi has quit IRC (Remote host closed the connection)
03:45:21 *** truebrain has quit IRC (Remote host closed the connection)
03:45:21 *** andythenorth has quit IRC (Remote host closed the connection)
03:45:21 *** talltyler has quit IRC (Remote host closed the connection)
03:45:21 *** _glx_ has quit IRC (Remote host closed the connection)
03:45:21 *** squirejames has quit IRC (Remote host closed the connection)
03:45:21 *** frosch123[d] has quit IRC (Remote host closed the connection)
03:45:21 *** brickblock19280 has quit IRC (Remote host closed the connection)
03:45:21 *** DorpsGek_v has quit IRC (Remote host closed the connection)
03:45:29 *** DorpsGek_v has joined #openttd
04:06:34 *** keikoz has joined #openttd
04:23:48 *** felix has quit IRC ()
04:24:05 *** felix has joined #openttd
05:01:58 <DorpsGek> [OpenTTD/OpenTTD] EmeryCool21 opened issue #11146: [Crash]: https://github.com/OpenTTD/OpenTTD/issues/11146
05:03:38 <dwfreed> TrueBrain: interesting thing I just noticed: every restart of the bridge is at 03:45 UTC; it's not every day, just every few days (interval varies)
05:04:35 <dwfreed> last 5 dates (MM-DD): 07-04, 07-10, 07-13, 07-16, 07-18
05:05:44 <DorpsGek> [OpenTTD/OpenTTD] James103 commented on issue #11146: [Crash]: https://github.com/OpenTTD/OpenTTD/issues/11146
07:09:52 *** truebrain has joined #openttd
07:09:52 <truebrain> dwfreed: yeah, it is correlated to when Discord disconnects the bot. It didn't use to do it this often, and now it does. Bit odd, and annoying.
07:10:39 <dwfreed> I have a friend who runs some discord bots; he used to complain all the time about the disconnects
07:12:10 <truebrain> it is also the library I use; it is a fine library, but it is a lot of code around the API
07:12:15 <truebrain> hard to see what actually is going on
07:13:55 <truebrain> so I can't even rule out I am forgetting to do something, causing the problems šŸ˜›
07:25:40 <dwfreed> heh
07:37:59 *** peter1138 has joined #openttd
07:37:59 <peter1138> I have a Discord bot, I wonder if it disconnects...
07:40:11 <peter1138> Oh, apparently I never logged connections.
08:00:12 <dwfreed> lol
08:01:06 <dwfreed> basically discord and/or CloudFlare periodically restarts the server or proxy hosting the websocket connection
08:03:59 <truebrain> because of memleaks, I am sure šŸ˜›
08:04:30 <dwfreed> pretty sure the discord backend is erlang
08:05:20 <dwfreed> elixir, actually, but that's also just erlang with extra steps
08:10:33 <peter1138> Such guilds
08:14:56 *** pickpacket has quit IRC (Ping timeout: 480 seconds)
08:18:58 <peter1138> Meh, ordered a new cassette just in case :/
09:07:42 *** pickpacket has joined #openttd
10:03:09 <LordAro> peter1138: just in case what?
10:13:25 <DorpsGek> [OpenTTD/team] glx22 commented on issue #438: [fr_FR] Translator access request https://github.com/OpenTTD/team/issues/438
10:15:42 <peter1138> I may have left the chain on too long again...
10:16:12 <peter1138> I say "may" as if there is some chance I haven't... which is not the case šŸ˜„
10:17:01 <peter1138> Strava says 5,143km, which is a bit much.
11:09:51 <Eddi|zuHause> oil change ever 10.000km?
11:46:56 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #11145: Add: [Script] GSIndustry.GetConstructionDate() method https://github.com/OpenTTD/OpenTTD/pull/11145#issuecomment-1640064033
11:55:06 *** ahyangyi has joined #openttd
11:55:06 <ahyangyi> peter1138: just in cassette
12:19:33 *** pickpacket has quit IRC (Ping timeout: 480 seconds)
12:40:08 <peter1138> Strava's component tracker is a bit poor. You can't properly back-date changes.
12:42:58 *** andythenorth has joined #openttd
12:42:58 <andythenorth> was it lunch?
12:42:59 <andythenorth> I am hungry
13:01:32 *** belajalilija has joined #openttd
13:01:32 <belajalilija> Hi hungry, Iā€™m dad
13:03:15 *** nielsm has joined #openttd
13:17:41 <andythenorth> Pie
13:17:47 <andythenorth> ok I think it was lunch
13:17:53 <andythenorth> I will make it cheese on toast
14:09:17 <peter1138> I had lunch, and then some, again.
14:09:26 <peter1138> stupid exercise makes hungry
14:13:56 <LordAro> oh yeah, lunch
14:13:58 <LordAro> i should do that
15:19:44 *** Wormnest has joined #openttd
15:27:27 *** gelignite has joined #openttd
16:21:15 *** kamnet has joined #openttd
16:21:15 <kamnet> andythenorth: It is lunch here now. I got a cherry turnover, and cheese sticks, and a roast beef sandwich. Thanks for the suggestion. šŸ˜„
16:26:13 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
16:32:19 *** Smedles_ has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:32:36 *** Smedles has joined #openttd
16:44:34 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
16:49:56 *** Wormnest has joined #openttd
16:58:59 <peter1138> Snacking on radish & spring onion, I know how to live.
17:00:16 <kamnet> That sounds delightful! šŸ™‚
17:01:27 *** HerzogDeXtEr has joined #openttd
17:23:37 *** gelignite has quit IRC (Quit: Stay safe!)
17:42:38 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
18:17:37 <andythenorth> I am having a beer
18:17:47 <andythenorth> other drink choices are available, do not feel obliged
18:20:15 *** Wormnest has joined #openttd
18:23:44 <andythenorth> my local repo misses gs_changelog
18:26:42 <andythenorth> oh also GH misses it
18:26:59 *** Wolf01 has joined #openttd
18:27:59 <peter1138> game_changelog i guess?
18:30:47 <andythenorth> thanks
18:30:52 <andythenorth> how do we edit the PR template?
18:35:21 <peter1138> .github/PULL_REQUEST_TEMPLATE.md I suppose?
18:41:03 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/335c7ddac7bfb868b55348f0c7b7c26f802f3435
18:41:04 <DorpsGek> - Update: Translations from eints (by translators)
18:43:28 <DorpsGek> [OpenTTD/OpenTTD] andythenorth opened pull request #11147: Doc: (fix) 'game_changelog.hpp' not 'gs_changelog.hpp' in GH PR template https://github.com/OpenTTD/OpenTTD/pull/11147
18:47:37 <DorpsGek> [OpenTTD/OpenTTD] andythenorth updated pull request #11145: Add: [Script] GSIndustry.GetConstructionDate() method https://github.com/OpenTTD/OpenTTD/pull/11145
18:49:20 <DorpsGek> [OpenTTD/OpenTTD] andythenorth updated pull request #11145: Add: [Script] GSIndustry.GetConstructionDate() method https://github.com/OpenTTD/OpenTTD/pull/11145
18:55:15 *** gelignite has joined #openttd
18:57:53 <DorpsGek> [OpenTTD/nml] stormcone opened issue #299: The builtin {cargo|rail|road|tram}type functions do not work if the corresponding tables are defined by the user https://github.com/OpenTTD/nml/issues/299
19:01:34 <LordAro> peter1138: i don't know if you've been following the TdF, but holy crap that time trial
19:03:37 <peter1138> Nope, not at all
19:14:28 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
19:15:26 <LordAro> well, today's stage was excellent
19:33:15 *** pickpacket has joined #openttd
19:35:37 <andythenorth> what shall we do today brain?
19:35:39 *** gelignite has quit IRC (Quit: Stay safe!)
19:35:51 <peter1138> Same as we do every day?
19:42:07 <Rubidium> ah yes, procrastinate :D
19:49:07 <andythenorth> think of ways to make GS story book buttons responsive? šŸ˜„
19:49:10 <andythenorth> probably not possible
19:50:35 *** Wormnest has joined #openttd
20:09:52 <peter1138> Responsive?
20:10:05 <peter1138> Like "bootstrap" response, or.. responding to input responsive...
20:10:44 <andythenorth> the latter šŸ˜›
20:11:02 <andythenorth> an event queue handled on a multi-tick sleep is not ideal for UI šŸ™‚
20:11:06 <peter1138> Presumably the buttons do things already, otherwise there is no point in buttons...
20:11:30 <andythenorth> they emit an event
20:11:52 <andythenorth> the main GS loop then handles the event...eventually
20:12:15 <peter1138> So you mean less latency when responding.
20:13:49 <peter1138> Hmm, I set up branch protection so that nothing can be out of date. But that means everything must be rebased (or merged) to the last merge into main. Which is... fine but slow :p
20:14:02 <peter1138> Nowhere near as slow as OpenTTD's CI, but still.
20:14:09 <andythenorth> yes less latency when responding
20:14:13 <andythenorth> I think it's asking for magic
20:14:30 <peter1138> Okay. Sometimes you need to assume that nobody knows what you are talking about... because generally we don't :p
20:15:36 *** michi_cc[d] has joined #openttd
20:15:37 <michi_cc[d]> Is the problem slowness in general or is it sloweness because you do some sleep or something?
20:19:17 <andythenorth> probably both
20:19:26 <andythenorth> it's conventional to sleep in GS main loop
20:19:32 <peter1138> Presumably the main GS loop is busy doing something else it shouldn't do like controlling industry production :p
20:19:50 <andythenorth> it can be ok handling the first button click
20:20:04 <andythenorth> but any subsequent clicks, there can still be handlers for the previous click(s) blocking
20:20:17 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:20:39 <michi_cc[d]> Oh, and because I remember you talking about timing script stuff, have you find the GSController::GetTick and GSController::GetOpsTillSuspend calls?
20:21:29 <andythenorth> no
20:21:33 <andythenorth> also SetCommandDelay()
20:21:56 <michi_cc[d]> andythenorth: So the problem is that handling the event can take a large number of game ticks and it takes comparatively long until the script is back in the game loop?
20:22:35 <michi_cc[d]> Or are you doing a Sleep with a value >> 1?
20:22:59 <andythenorth> conventional sleep in GS is `GSController.Sleep(max(1, 5 * 74 - ticks_used))`
20:23:07 <andythenorth> I'm doing `GSController.Sleep(5);`
20:23:19 <andythenorth> I've tried removing the sleep, but that seemed to lag the main game loop
20:23:30 <andythenorth> but it's hard to diagnose GS performance reliably
20:28:39 <peter1138> Does checking the event queue every tick cause a big slowdown?
20:30:27 <andythenorth> ok so I should write a test GS with different cases
20:30:30 <andythenorth> and some timing info
20:30:46 <andythenorth> I'm not in any way expecting this one to be fixable, but it's interesting
20:32:29 <michi_cc[d]> Well, if it is simply that you event handling takes a long time, there's nothing really to fix (except to just allow more script opcodes). If it is the Sleep itself, there's things that could be done.
20:32:57 <peter1138> 5*74 - ticks_used seems to be suggesting you try to delay for 5 game days... 10 seconds. So not surprising it'll be slow.
20:34:52 <andythenorth> nah that's just the default, I mostly tested button things without a sleep
20:35:37 <andythenorth> I'll make a clean test later this week
20:39:04 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1130961958091358258/Screen_Recording_2023-01-21_at_23.03.27.mov
20:39:04 <andythenorth> this was with no sleep, it predates async for the tile clearing, I suspect it would be fine with async
20:41:56 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1130962676059754506/Screen_Recording_2023-01-21_at_13.06.45.mov
20:41:56 <andythenorth> same for this one, might be ok with async
20:44:36 *** nielsm has joined #openttd
20:45:18 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
20:47:30 <michi_cc[d]> andythenorth: Some completely untested ideas again: https://github.com/OpenTTD/OpenTTD/compare/master...michicc:OpenTTD:pr/gs_event_sleep
20:47:48 <michi_cc[d]> Sleep function that resumes if the event queue is not empty.
20:49:54 <andythenorth> oh that's clever
20:50:16 <andythenorth> I wonder how other UIs handle 'button was clicked many times'
20:58:04 *** Wormnest has joined #openttd
20:58:42 *** _glx_ has joined #openttd
20:58:42 <_glx_> doesn't mean it will resume in the event handling part
21:00:11 <andythenorth> I would expect that any commands that need issued should use async
21:00:25 <andythenorth> although this might cause surprising results, or latency seeing results
21:01:06 <andythenorth> in a GUI application, we might modally lock for long-running tasks, with a sand timer or spinning wheel
21:01:12 <andythenorth> that won't work here
21:02:19 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:02:56 <peter1138> It's not really async is it. Fire & forget...
21:05:39 <andythenorth> GSFughetAboutIt
21:09:58 <peter1138> Where was I?
21:10:13 <peter1138> So many branches and I've not worked on much lately.
21:10:23 <peter1138> Hmm, font selector.
21:10:26 <peter1138> Cargo fixes.
21:10:30 <andythenorth> GSFontChoice
21:10:30 <peter1138> GUI fixes.
21:10:49 <peter1138> Can GS draw sprites yet?
21:11:22 <andythenorth> hmm
21:11:26 <andythenorth> I didn't find a way
21:11:33 <andythenorth> we could do GSDraw
21:11:36 <andythenorth> and then lines
21:11:47 <andythenorth> pixels are just lines 1px long šŸ˜›
21:11:56 <peter1138> GSPlot69
21:15:08 <andythenorth> plot70?
21:15:45 <andythenorth> GSLot49.Cry(bool pynchon)
21:16:13 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
21:16:27 <peter1138> I never had access to the Graphics Extension ROM. All those juicy patterns and fills available...
21:19:53 *** Wormnest has joined #openttd
21:21:36 <andythenorth> can't remember what the Archimedes painting thing was
21:21:39 <andythenorth> maybe Pro Artisan
21:25:23 <_glx_> yeah async in GS world is fire and forget
22:04:38 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:06:14 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #11148: NRT: Change: Do not allow mixing road/tram types in powered road type list https://github.com/OpenTTD/OpenTTD/pull/11148
22:09:02 <peter1138> Hmm, yeah.
22:12:33 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
22:13:35 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:51:05 *** Wormnest has joined #openttd
23:00:04 <DorpsGek> [OpenTTD/OpenTTD] Lord-Cinders commented on issue #11055: [Bug]: "Game Load Failed" error message is shorter than other two-line messages https://github.com/OpenTTD/OpenTTD/issues/11055
23:08:11 *** tokai has joined #openttd
23:08:11 *** ChanServ sets mode: +v tokai
23:15:02 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
23:45:35 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:52:40 *** Hello has joined #openttd
23:52:57 <Hello> Hello
23:53:07 *** Hello has quit IRC (Remote host closed the connection)