Config
Log for #openttd on 23rd June 2020:
Times are UTC Toggle Colours
00:38:33  *** iSoSyS has quit IRC
00:45:27  *** Wormnest has quit IRC
01:34:54  *** Wormnest has joined #openttd
02:05:17  *** Wormnest has quit IRC
02:19:57  *** debdog has joined #openttd
02:23:25  *** D-HUND has quit IRC
02:51:54  *** Flygon has joined #openttd
02:59:33  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8224: Cleanup: Remove redundant implementation of TakeScreenshot https://git.io/Jfxcf
03:00:15  *** glx has quit IRC
03:02:02  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8224: Cleanup: Remove redundant implementation of TakeScreenshot https://git.io/JfxcI
04:30:31  *** snail_UES_ has quit IRC
05:04:20  *** keoz has joined #openttd
05:19:06  *** consolidated has quit IRC
05:58:41  *** andythenorth has joined #openttd
06:05:47  *** sla_ro|master has joined #openttd
06:51:39  <andythenorth> yo
07:30:15  *** WormnestAndroid has quit IRC
07:30:37  *** WormnestAndroid has joined #openttd
07:31:21  *** keoz has quit IRC
07:45:42  *** Progman has joined #openttd
07:52:31  *** iSoSyS has joined #openttd
08:07:29  *** b_jonas has quit IRC
08:36:02  *** gelignite has joined #openttd
09:18:38  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8234: Trees GUI improvements https://git.io/Jfx2b
11:08:41  *** iSoSyS has quit IRC
11:08:45  *** zwamkat has joined #openttd
11:55:45  *** snail_UES_ has joined #openttd
12:22:57  *** arikover has joined #openttd
12:24:41  *** gelignite has quit IRC
12:32:37  *** keoz has joined #openttd
13:08:51  <supermop_Home> why did i go running when it is 80 out and 73% humidity right before a meeting
13:21:25  *** zwamkat is now known as there_is_no_zwamkat
13:31:15  <Flygon> I question HOW you can exercise in 80c.
13:31:42  <LordAro> Flygon: freedom units
13:35:55  *** nielsm has joined #openttd
13:45:04  *** there_is_no_zwamkat is now known as zwamkat
13:47:51  *** zwamkat has quit IRC
14:19:58  <FLHerne> Nonono
14:20:06  <FLHerne> It's actually 80 Kelvin
14:20:31  <FLHerne> Which is a problem, because giant puffy jackets aren't formal meeting attire
14:21:09  <DorpsGek_III> [OpenTTD/OpenTTD] abmyii opened pull request #8235: Fix for 'Huge screenshot' warning being shown incorrectly https://git.io/JfxQt
14:23:17  <DorpsGek_III> [OpenTTD/OpenTTD] James103 commented on pull request #8235: Fix for 'Huge screenshot' warning being shown incorrectly https://git.io/JfxQc
14:26:16  <supermop_Home> impressive humidity for 80 kelvin
14:30:39  <DorpsGek_III> [OpenTTD/OpenTTD] abmyii commented on pull request #8235: Fix for 'Huge screenshot' warning being shown incorrectly https://git.io/JfxQM
14:32:47  <DorpsGek_III> [OpenTTD/OpenTTD] abmyii updated pull request #8235: Fix for 'Huge screenshot' warning being shown incorrectly https://git.io/JfxQt
15:18:10  <dP> why Backup<> always require .Restore() instead of just doing the job as raii pattern?
15:18:38  <nielsm> no idea either
15:19:29  <dP> it actually even does the job but whines in a console for some reason
15:20:28  <nielsm> hm yesterday when I looked at ther code it seemed SetPIP() would work on NWID_HORIZONTAL and NWID_VERTICAL containers, but apparently it doesn't
15:27:16  <dP> comment is hilarious: "We cannot assert here, as missing restoration is 'normal' when exceptions are thrown."
15:27:30  <dP> it's our intended use but we're not happy about it so let's just spam console
15:31:25  <supermop_Home> FLHerne my formal meeting attire is mostly just my underwear
15:34:32  *** Wormnest has joined #openttd
15:34:50  <LordAro> dP: explicit is better than implicit?
15:34:53  <LordAro> dunno though
15:35:25  <LordAro> it'll predate C++, and could well have just be "converted" without significantly thinking about it / before RAII became popular
15:35:32  <LordAro> OTTD in C++*
15:36:19  <dP> LordAro, explicit to a point of spamming comments to the console?
15:37:30  <LordAro> spamming the console does seem unnecessary
15:38:55  <dP> also forces a bunch of .restores everywhere throughout the code
15:40:19  <nielsm> the question is, is there ever any time you would _not_ want to call Restore()?
15:40:29  <nielsm> when is it correct to not call restore?
15:40:45  <dP> nielsm, it calls it anyway
15:40:46  <nielsm> if never, then don't bonk the programmer for making a "mistake" the computer could fix
15:41:01  <nielsm> "you forgot to say the magic word"
15:41:23  <LordAro> i'd rather some sort of "context manager" for it, rather than RAII i think
15:41:44  <LordAro> otherwise you'd just end up with the inverse problem - the backup would be "left" too long and would affect unintended things
15:41:46  <dP> LordAro, raii is a context manager in c++
15:41:58  <LordAro> i mean an explicit one
15:42:12  <LordAro> OrderBackup([&](){ ... });
15:42:30  <nielsm> ew
15:42:42  <LordAro> rather than just OrderBackup foo; do stuff; ..?? ..
15:43:01  <dP> LordAro, if only c++ lambdas weren't that awful
15:43:13  <dP> LordAro, also you can just {Backup<>; ... }
15:43:25  <LordAro> true, but syntax is just syntax
15:43:35  <LordAro> dP: that's my point, the {} would inevitably be forgotten
15:43:51  <dP> LordAro, Backup can also be forgotten :p
15:43:51  <LordAro> it's just as manual as having to .Restore(), but is even less clear what's happening
15:44:14  <LordAro> the bugs would be even more subtle
15:44:35  *** glx has joined #openttd
15:44:35  *** ChanServ sets mode: +v glx
15:49:12  *** Flygon has quit IRC
15:58:19  <dP> was googling for raii usage examples until I realized that it's pointless talking best practices when imlementing a thing whose only purpose is handling freaking globals
16:06:03  *** HerzogDeXtEr has joined #openttd
16:10:31  <dP> why tf is this upvoted like crazy on reddit? https://www.reddit.com/r/openttd/comments/he01wr/today_is_not_the_only_day_you_can_upvote_this/
16:10:52  <LordAro> you must be new to reddit
16:11:09  <dP> yeah, kind of...
16:29:10  <nielsm> hm I wonder why I didn't also apply ScaleGUITrad to PIP spacing back when I first did that "fix scaling" patch
16:29:32  <nielsm> because I distinctly remember considering, probably trying it, then rejecting it
16:36:41  *** supermop_Home has quit IRC
16:45:30  *** Speeder_ has quit IRC
16:47:35  *** supermop_Home has joined #openttd
16:58:01  <andythenorth> yo
17:12:46  <FLHerne> nielsm: In your 'after' screenshots of the tree GUI, the tree sprites overhang the edges of their buttons in an unpleasant way?
17:13:00  <FLHerne> Smarter layout is nice though :-)
17:17:00  <nielsm> look at the window titles above
17:17:04  <nielsm> the right one is before
17:18:25  *** Speeder has joined #openttd
17:19:14  <FLHerne> I see, sorry
17:19:20  <FLHerne> Nice work then :D
17:19:45  <nielsm> actually I'm fighting some more sizing problems with it
17:32:04  *** Wolf01 has joined #openttd
17:41:12  *** frosch123 has joined #openttd
17:52:49  *** b_jonas has joined #openttd
18:19:39  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh updated pull request #8234: Trees GUI improvements https://git.io/JfxU1
18:21:17  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8234: Trees GUI improvements https://git.io/JfpeH
18:52:50  <Wolf01> NAS died :( Luckily I had a backup of photos and documents
19:09:16  <andythenorth> oof
19:09:47  <frosch123> i only hear about nas when they die
19:09:55  * andythenorth should make dinner
19:09:56  <frosch123> or fail
19:10:12  <andythenorth> also beer
19:10:38  <frosch123> it takes some time to make beer
19:12:03  <Wolf01> Or you can get instant beer
19:25:40  <andythenorth> I got instant beer
19:25:47  <andythenorth> it comes in a bottle
19:29:06  <frosch123> can you 3d-print it?
19:30:27  <andythenorth> I didn't try
19:30:29  <andythenorth> inconclusive
19:36:17  <nielsm> hmm, I wonder if I could abuse the autorail tool graphics for tree painting
19:54:53  <DorpsGek_III> [OpenTTD/OpenTTD] abmyii opened pull request #8236: Fix #7772: Show destination on mouseover when vehicle stopped (and not in depot) https://git.io/JfpUS
20:01:23  *** frosch123 has quit IRC
20:06:29  <nielsm> does nothing yet: https://0x0.st/i43C.png
20:07:09  *** sla_ro|master has quit IRC
20:21:32  *** virtualrandomnumber has joined #openttd
20:29:56  *** gelignite has joined #openttd
20:31:47  <dP> is it possible to make orders that change destination mid-route?
20:32:10  <dP> e.g. head to one station for 10 days and turn to another after that
20:34:52  <nielsm> not in vanilla at least
20:35:14  <nielsm> maybe it'd be possible to have a conditional order that tests days since departure
20:35:42  <nielsm> you'd still have to pass through a waypoints the train can route towards before it tests the conditional order
20:36:47  <dP> what happens if conditional order is timetabled?
20:38:07  <nielsm> don't think you can do that
20:38:27  <dP> I can but no idea what it does
20:38:55  <b_jonas> dP: no, but you can use a go via order usually
20:39:11  <b_jonas> to give an intermediate station where the train need not stop
20:39:17  <b_jonas> make it go non-stop via
20:39:19  <dP> well, I kinda wanted it for airplanes...
20:39:42  <b_jonas> dP: did someone lobby for a no-fly zone?
20:40:00  <dP> nah, just for lulz
20:52:05  *** nielsm has quit IRC
21:07:08  *** virtualrandomnumber has quit IRC
21:30:13  *** HerzogDeXtEr has quit IRC
21:31:08  <andythenorth> is today the day to learn GS?
21:32:12  <FLHerne> No, today is the day to spend ages trying to bisect a failing test, only to find that the Python devs made backwards-incompatible API changes in a patch release
21:32:34  <FLHerne> (again)
21:32:55  <andythenorth> that sounds...
21:32:59  <andythenorth> ..lame
21:34:22  <FLHerne> To be fair, the previous behaviour was obviously broken
21:35:25  <FLHerne> But we had a workaround, which goes horribly wrong if the behaviour stops being obviously broken :p
21:39:32  <dP> I tried to refactor town growth code but gave up, that shit's hopeless...
21:41:57  <andythenorth> do it in GS
21:42:34  <dP> andythenorth, that shit's even more hopeless :p
21:53:36  *** Wolf01 has quit IRC
22:16:23  *** andythenorth has left #openttd
22:36:40  *** keoz has quit IRC
23:16:37  *** gelignite has quit IRC
23:54:50  *** Wormnest has quit IRC
23:57:20  *** WormnestAndroid has quit IRC

Powered by YARRSTE version: svn-trunk