β΄ go to previous day00:00:02 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)00:01:58 *** HerzogDeXtEr has joined #openttd00:11:00 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13551: Codechange: Use GetString() with argument parameters in simple cases. https://github.com/OpenTTD/OpenTTD/pull/1355100:14:46 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #13550: Fix #12925: Prevent cost estimates for settings changes https://github.com/OpenTTD/OpenTTD/pull/13550#pullrequestreview-261647821101:28:44 <_glx_> I did https://github.com/OpenTTD/OpenTTD/compare/master...glx22:OpenTTD:save_instance, the main goal is to support save/load of the "new" ScriptDate but save/load for ScriptList can be a nice thing too02:47:34 *** ttoocs has joined #openttd02:54:39 *** Wormnest has quit IRC (Quit: Leaving)02:59:31 *** ttoocs has quit IRC (Remote host closed the connection)03:32:38 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13363: Codechange: do not use MallocT for newgrf commons https://github.com/OpenTTD/OpenTTD/pull/1336303:32:41 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13364: Codechange: use std::vector/span for DrawTileSprites over malloc-ed table https://github.com/OpenTTD/OpenTTD/pull/1336403:32:44 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13497: Codechange: make all pool item indices strongly typed https://github.com/OpenTTD/OpenTTD/pull/1349703:32:47 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13538: Codechange: add support for std::variant in EndianBuffer https://github.com/OpenTTD/OpenTTD/pull/1353803:32:50 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13331: Codechange: use std::vector over ReallocT for dirty blocks https://github.com/OpenTTD/OpenTTD/pull/1333103:32:53 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13361: Codechange: use std::string as backing for textbuf https://github.com/OpenTTD/OpenTTD/pull/1336103:32:56 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/1331503:32:59 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13521: Codechange: make CompanyID a PoolID https://github.com/OpenTTD/OpenTTD/pull/1352103:33:02 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13510: Codechange: use std::variant for NewsReference https://github.com/OpenTTD/OpenTTD/pull/1351003:36:27 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13550: Fix #12925: Prevent cost estimates for settings changes https://github.com/OpenTTD/OpenTTD/pull/1355003:36:30 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 closed issue #12925: [Bug]: Shift clicking arrow buttons in AI Settings shows cost estimation message https://github.com/OpenTTD/OpenTTD/issues/1292503:36:33 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 closed issue #12925: [Bug]: Shift clicking arrow buttons in AI Settings shows cost estimation message https://github.com/OpenTTD/OpenTTD/issues/1292503:37:43 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13553: Codechange: Use EnumBitSet for PauseMode. https://github.com/OpenTTD/OpenTTD/pull/13553#pullrequestreview-261668776503:48:16 *** debdog has joined #openttd03:51:39 *** D-HUND has quit IRC (Ping timeout: 480 seconds)04:43:00 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/3518d7e0f1c23bc27f68b6047a5967d94f9719e704:43:01 <DorpsGek> - Update: Translations from eints (by translators)05:11:13 *** keikoz has joined #openttd05:20:32 *** akimoto has joined #openttd05:29:32 *** akimoto has quit IRC (Remote host closed the connection)06:12:14 *** keikoz has quit IRC (Ping timeout: 480 seconds)07:28:14 *** felix_ has quit IRC (Quit: No Ping reply in 180 seconds.)07:29:26 *** felix has joined #openttd07:35:25 *** Flygon has joined #openttd08:10:37 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)08:24:47 <DorpsGek> [OpenTTD/team] catherineewu commented on issue #614: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/61408:30:08 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13553: Codechange: Use EnumBitSet for PauseMode. https://github.com/OpenTTD/OpenTTD/pull/1355308:30:47 <peter1138> > warning: There are too many unreachable loose objects; run 'git prune' to remove them.08:30:50 <peter1138> heh heh08:41:36 <DorpsGek> [OpenTTD/team] WenSimEHRP commented on issue #614: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/61408:54:03 <DorpsGek> [OpenTTD/team] catherineewu opened issue #618: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/61809:02:33 <LordAro> Rubidium: couldn't sleep?09:06:28 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #13364: Codechange: use std::vector/span for DrawTileSprites over malloc-ed table https://github.com/OpenTTD/OpenTTD/pull/13364#pullrequestreview-261714356909:13:39 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#issuecomment-265869183709:17:17 <peter1138> Engine itself is far larger than the data we actually save.09:18:27 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#issuecomment-265870227209:21:54 * peter1138 ponders.09:41:32 <LordAro> peter1138: steady now09:43:51 <andythenorth> too early for ponders09:44:05 <andythenorth> needs more coffee10:05:06 <andythenorth> wonder if I could teach GPT to write my commit messages10:05:10 <andythenorth> I make so many mistakes in them10:05:48 *** mindlesstux has quit IRC (Quit: The Lounge - https://thelounge.chat)10:06:38 *** mindlesstux has joined #openttd10:09:20 <peter1138> Well. Turns out I have a patch for it.10:39:00 <DorpsGek> [OpenTTD/OpenTTD] enveeed opened pull request #13554: Fix: NewGRF vehicles display loading sprites when not actually loading or unloading https://github.com/OpenTTD/OpenTTD/pull/1355410:47:42 *** Borg has joined #openttd10:47:46 <Borg> hoi :)10:48:05 <Borg> after long battle w/ Cargo Rating calculation. I settled up w/ linear algoritm :)10:48:08 <Borg> works well11:58:23 <peter1138> Is it lunch?12:02:30 <peter1138> And there are no letters in the mailbox.12:04:53 <DorpsGek> [OpenTTD/OpenTTD] EmperorJake commented on pull request #13554: Fix: NewGRF vehicles display loading sprites when not actually loading or unloading https://github.com/OpenTTD/OpenTTD/pull/13554#issuecomment-265916139812:17:39 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 dismissed a review for pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/152#pullrequestreview-261511102212:17:42 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 updated pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/15212:19:42 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 commented on pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/152#issuecomment-265919486612:21:35 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain commented on pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/152#issuecomment-265919929112:21:40 <DorpsGek> [OpenTTD/team] frosch123 commented on issue #618: [zh_CN] Translator access request https://github.com/OpenTTD/team/issues/61812:21:41 <andythenorth> probably is lunch12:28:10 <xarick> how do I define a const value in squirrel12:28:26 <xarick> i wanna make a VT_END12:29:29 <xarick> GSVehicle.VT_END doesn't exist, but I wanted to12:31:05 <xarick> `GSVehicle.VT_END <- max(GSVehicle.VT_RAIL, GSVehicle.VT_ROAD, GSVehicle.VT_WATER, GSVehicle.VT_AIR) + 1;`12:31:29 <xarick> what will happen if VT_END is added to the API in a future version?12:31:31 <andythenorth> is tuna from a can lunch?12:31:50 <xarick> what will my version of VT_END do?12:33:14 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13554: Fix: NewGRF vehicles display loading sprites when not actually loading or unloading https://github.com/OpenTTD/OpenTTD/pull/13554#issuecomment-265922153212:45:48 <peter1138> Pom te pom.12:46:50 <andythenorth> hmm side quest on my side quest12:46:54 <andythenorth> validating strings13:37:40 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1339953713472868454/image.png?ex=67b098a4&is=67af4724&hm=dc3f7c19823dc39b1deb20cf8de5a06b979ba853b35a10da5ca265b35601789e&13:37:40 <xarick> what the hell is a IDENTIFIER13:38:23 <xarick> is it not identified13:39:40 <xarick> how do i make a const13:41:20 <yiffgirl> any input on #13515 ? the version with only arrays is ready to be pushed, I just don't know if it's wanted13:41:27 <_glx_> doesn't seem to hard to do13:43:49 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1339955258344083588/image.png?ex=67b09a14&is=67af4894&hm=5d93ef83ec580d2395d4c199b4dfbaeb7062eab2eff620633649adac5ecdf617&13:43:49 <xarick> π¦13:46:23 <xarick> ah, got it, must be outside the class13:46:52 <xarick> somewhere in the void13:49:16 <_glx_> if you want it in a class use `static name = value;`13:49:39 <_glx_> that's how we define them13:50:45 <xarick> i see, thank you13:50:54 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1339957041225011220/image.png?ex=67b09bbd&is=67af4a3d&hm=eaa8e6a7669d3d7146afc2dda6e177db6822a5e561ce9a902d3d3d630b8e78ac&13:51:00 <_glx_> it's all in the doc13:57:47 <xarick> forgot what was the behaviour of creating an array of arrays in squirrel13:58:06 <andythenorth> declare array13:58:11 <andythenorth> add items13:58:11 <xarick> vehicle_list = array(GSCompany.COMPANY_LAST, array(CommonStats.VT_END));13:58:46 <andythenorth> just try not to think about Squirrel too much π13:58:54 <andythenorth> it triggers "but why?" constantly13:59:43 <xarick> i dont know if the 2nd array becomes the same for all companies, or separate13:59:50 <xarick> gonna test14:00:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN requested changes for pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261785581314:04:41 <xarick> nop, they all point to the same array t.t14:06:01 <yiffgirl> peter1138[d]: thank you for looking. I assume this means you're not interested in the version I have that uses `std::array`s everywhere instead of vectors?14:06:31 <_glx_> you multiple steps14:09:17 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261790022514:09:31 <andythenorth> you're calling array each time, no?14:09:41 <andythenorth> so surely that instances a new array each time?14:09:42 <peter1138> yiffgirl, I review what I can see.14:09:51 <andythenorth> if you'd used an assigment, then it would shared14:10:34 <andythenorth> I don't really understand your code, or squirrel π14:10:37 <_glx_> ```vehicle_list = array();14:10:37 <_glx_> for(local i = 0; i < GSCompany.COMPANY_LAST; i++) vehicle_list.append(array(CommonStats.VT_END));``` should work I think14:11:42 <_glx_> with `array(size, value)` there's a single value used for all elements14:11:54 <LordAro> yiffgirl: if you don't need a vector, don't use it14:13:45 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261790891314:14:42 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1339963032075505795/image.png?ex=67b0a152&is=67af4fd2&hm=b6357754434f5da610fcb0b0478a03426a7c1d2e725bb870a8fa206cf64e1a17&14:14:42 <xarick> nice, it works14:15:35 <xarick> oh wait...14:15:39 <xarick> something's wrong14:15:47 <_glx_> skip the value line 1014:16:50 <xarick> line 31 should assert, there should be no list there14:18:15 <xarick> yeah, must do glx's method14:18:32 <_glx_> BTW line 11 does nothing14:18:50 <xarick> line 11 is for debug testing14:23:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261793987114:27:33 <xarick> i need to think how I wanna use this14:29:27 *** concerrox has quit IRC (Quit: User went offline on Discord a while ago)14:33:48 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#issuecomment-265949158914:34:11 <peter1138> yiffgirl, lots to get one with but it's all simple stuff :)14:35:54 <peter1138> Urgh, trying to model-bind a list to an object that contains list.14:36:02 <peter1138> ASP MVC why so annoying :S14:45:54 <LordAro> So this afternoon I've been dealing with an issue that has only appeared after upgrading our gitlab-runner's host OSes to 24H214:46:51 <LordAro> But everything's dockerised, why should that have any impact? And why is only this one very small test having issues rather than every other part of the build/test system14:47:53 <LordAro> I've just nailed the problem down to an uninitialised out parameter14:48:52 <LordAro> Good ol' uninitialised memory - always been there, just waiting silently14:55:07 *** Borg has quit IRC (Quit: leaving)15:01:50 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13364: Codechange: use std::vector/span for DrawTileSprites over malloc-ed table https://github.com/OpenTTD/OpenTTD/pull/1336415:19:03 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261808580515:24:47 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #13555: Codechange: use span size over terminator object https://github.com/OpenTTD/OpenTTD/pull/1355515:28:21 *** Wormnest has joined #openttd15:41:06 <peter1138> Another stash to remove :p15:41:26 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/1331515:41:39 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#issuecomment-265965916615:41:41 <peter1138> (My version didn't solve the malloc stuff nicely, which is why it didn't go anywhere.)15:43:19 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#issuecomment-265966272115:47:55 <peter1138> Hmm, why is everything being sluggish...15:48:05 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261816556415:50:22 <Rubidium> too many unreachable objects in your git repo?15:51:07 <peter1138> I don't think that affects Firefox.15:51:43 <andythenorth> I know it's a cheap shot but FF is default sluggish π15:52:31 <peter1138> There's no Safari for non-toy OSes.15:53:03 <andythenorth> well15:53:09 <andythenorth> aren't they all Webkit?15:53:22 <merni> nah15:53:26 <peter1138> > It is now possible to get Safari for Windows and Linux; see how15:53:35 <andythenorth> Chrome only manages 'fast' by suspending tabs and using [all the RAM you have]15:53:40 <peter1138> > Step 1, install Firefox15:54:01 <peter1138> Safari Firefox theme. lolz15:54:12 <peter1138> Chrome can fuck right off.15:54:13 <andythenorth> get the Opera browser that has mindfulness built in15:55:08 <merni> andythenorth: Chrome uses Blink which was forked from Webkit over ten years ago; Firefox's Gecko is directly descended from Netscape15:55:40 <talltyler> I like Brave for its adblocking, I doubt itβs anything amazing in terms of speed15:56:13 <peter1138> Brave has its stupid Crypto-scam bullshit, and is still built on top of Chrome, so that can also fuck off.15:56:51 <xarick> π15:59:53 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261820614516:02:21 *** keikoz has joined #openttd16:04:37 <talltyler> I opted out of the crypto-scam, but yeah π16:07:18 *** kuka_lie has joined #openttd16:08:32 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261822968916:11:11 <xarick> manipulating lists still kind of slow16:18:29 <andythenorth> peter1138[d]: have you tried Lynx?16:20:19 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias updated pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/1351516:21:14 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261825895516:21:24 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261825925816:22:41 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261826202916:22:51 <peter1138> Please have a read of CODINGSTYLE.md16:24:49 *** kuka_lie has quit IRC (Quit: leaving)16:25:04 *** kuka_lie has joined #openttd16:25:53 *** gelignite has joined #openttd16:26:20 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias updated pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/1351516:26:26 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias commented on pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/13515#pullrequestreview-261827180116:28:59 *** kuka_lie has quit IRC ()16:29:13 *** kuka_lie has joined #openttd16:36:14 <yiffgirl> peter1138: i'm terribly sorry! i had a look, but i'm not sure which rules i broke?16:39:30 <peter1138> LIterally I suppose that's one way.16:40:11 <peter1138> Our style is quite picky about where `{` should be.16:40:20 <peter1138> e.g. `if () {`, `for () {`16:42:12 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/1331516:42:20 <yiffgirl> oh oops, i see it.16:43:12 <peter1138> I mean, I can take over if you'd like.16:43:43 <peter1138> Where are my biscuits?16:44:12 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias updated pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/1351516:47:28 <yiffgirl> it's funny. i used to use pretty much this brace style until i used some opinionated tool or something that would always set braces to be on their own line, and then even after i stopped using it i never went back to my original style16:48:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#pullrequestreview-261819414416:48:54 <peter1138> Bloody damning developers.16:48:56 <peter1138> ...16:48:59 <peter1138> DEMANDING16:51:40 <LordAro> that's pretty damning16:53:37 <andythenorth> I think I ated them16:53:54 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/1331516:55:36 <xarick> @param x x.16:55:36 <xarick> you don't say?16:58:07 <yiffgirl> param x_x16:58:44 <yiffgirl> maybe "x component of coordinate to check" would be better?17:03:19 <xarick> `if (s < 0 != t < 0 && s != 0 && t != 0) {` this looks.... weird17:03:29 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13363: Codechange: do not use MallocT for newgrf commons https://github.com/OpenTTD/OpenTTD/pull/1336317:03:32 <DorpsGek> [OpenTTD/OpenTTD] glx22 opened pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/1355617:04:03 <LordAro> xarick: you're not wrong17:04:15 <LordAro> i'd have kept the parens around the `<`17:05:14 <peter1138> Well.17:05:15 <DorpsGek> [OpenTTD/OpenTTD] glx22 updated pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/1355617:06:02 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/13315#pullrequestreview-261837322917:06:17 <LordAro> (or better, use some variables with actual names)17:07:13 <xarick> I noticed tree_cmd.cpp is where codestyle goes out of the window17:08:18 <peter1138> Well.17:11:45 *** HerzogDeXtEr has joined #openttd17:19:15 <yiffgirl> you're right; i don't remember exactly where i originally read that triangle code but it was an unreadable mess there too, with a bunch of unneeded checks for degenerate triangles that actually made it worse17:19:22 <Rubidium> let me guess... you got a stash for that? :D17:21:06 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13557: Codechange: Use variable storage for GrfProps with cargo-type groups. https://github.com/OpenTTD/OpenTTD/pull/1355717:21:45 <peter1138> I believe the triangle code was external code. Remember to check the licence conditions...17:22:17 *** Wolf01 has joined #openttd17:23:10 <xarick> those blobs look like circles17:23:46 <xarick> hmm17:23:48 <xarick> nevermind17:23:53 <peter1138> It depends on the randomness.17:24:29 <xarick> remember the circle formula I had?17:25:19 <peter1138> If we wanted a regular circle it would be much simpler than this PR :)17:25:30 <xarick> yeh17:25:33 <xarick> okay my bad17:35:16 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13315: Codechange: simplify management of temporary Engine in saveload https://github.com/OpenTTD/OpenTTD/pull/1331517:37:57 <DorpsGek> [OpenTTD/OpenTTD] glx22 updated pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/1355617:44:20 <yiffgirl> went through my history, found it17:54:05 <peter1138> https://github.com/OpenTTD/OpenTTD/commit/a8006578bbb9b746b4be8a8fb8bd2fbae473e2e817:54:24 <peter1138> Hmm, I should probably try compiling it.17:58:31 <peter1138> And then try running it.17:58:46 <LordAro> pfft.17:59:14 <peter1138> Amazing, it seems to work.18:00:14 <peter1138> Well, other than it needs to be rebased because it has the all-vehicles-are-unavailable bug :-)18:01:59 <yiffgirl> so the s and t stuff comes from stackoverflow; apparently it's barycentric coordinates18:01:59 <yiffgirl> no idea why s and t specifically though. i can't find anywhere else that uses those names for them18:02:22 <yiffgirl> peter1138: oh wow. that's so much better than what i did.18:02:50 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1340020441594593386/image.png?ex=67b0d6c9&is=67af8549&hm=0416fda1912b66c783bd0474f8d6f84d7bb19c956b3ba61be42f85787554fc5f&18:02:50 <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1340020442110496889/image.png?ex=67b0d6c9&is=67af8549&hm=b65a9829afdecad83a55b461148d69617802524409c55b39d5589c39d60bf23e&18:03:27 <yiffgirl> https://stackoverflow.com/questions/2049582/how-to-determine-if-a-point-is-in-a-2d-triangle#204959318:03:27 <yiffgirl> a few answers down18:03:29 <LordAro> peter1138[d]: extra space at the start of some functions :p18:03:30 <peter1138> First one is master, with the attack of the diamond trees.18:03:43 <peter1138> Hmm, odd.18:04:52 <peter1138> Well, fixed now with the next commit but... it's not in the PR, so...18:05:11 <peter1138> yiffgirl, I have practice...18:05:59 <peter1138> I decided to go "fill an existing span" route, because it completely avoids the vector-or-array question.18:09:09 <yiffgirl> peter1138: do i pull this commit somehow or copy it by hand?18:09:09 <yiffgirl> or is this just your pr now [honestly i wouldn't be opposed]18:11:08 <peter1138> Sometimes I can push to the source of a PR, but I think I can't on this one.18:13:30 <yiffgirl> hm, i've got the "allow edits by maintainers" button checked18:14:28 <peter1138> I can try if you're happy for me to.18:18:42 <xarick> CompanyScope is ruining my lists18:19:41 <yiffgirl> peter1138: absolutely!18:20:45 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/1351518:20:54 <peter1138> Looks like it works.18:27:29 <DorpsGek> [OpenTTD/OpenTTD] Moth-Tolias updated pull request #13515: Change: Improved tree placement at worldgen https://github.com/OpenTTD/OpenTTD/pull/1351518:27:53 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13557: Codechange: Use variable storage for GrfProps with cargo-type groups. https://github.com/OpenTTD/OpenTTD/pull/13557#pullrequestreview-261853689918:29:40 <peter1138> WTF is a vertic :D18:30:22 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13557: Codechange: Use variable storage for GrfProps with cargo-type groups. https://github.com/OpenTTD/OpenTTD/pull/1355718:30:34 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/13556#pullrequestreview-261854030518:30:35 <yiffgirl> an advertising agency, apparently18:31:57 <peter1138> I have prune'd and gc'd.18:32:47 <Rubidium> I hope that didn't prune your stashes18:33:21 <xarick> std::ranges:accumulate does it exist?18:33:45 <Rubidium> peter1138: did you have a branch/stash for CommandFlags?18:34:18 <peter1138> Yeah.18:34:19 <peter1138> xarick, sadly not :(18:34:31 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13510: Codechange: use std::variant for NewsReference https://github.com/OpenTTD/OpenTTD/pull/1351018:34:35 <xarick> line 257 needs fixing, i think18:35:55 <xarick> line 310, needs a space after `if`18:36:26 <peter1138> xarick, you know where to comment.18:38:50 <yiffgirl> xarick: i can probably whip up a visualizer to help me come up with better names, but not tonight, my brain is fried.18:47:11 <DorpsGek> [OpenTTD/OpenTTD] merni-ns opened pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/1355818:47:46 <xarick> lol18:47:49 <xarick> don't be woke18:48:09 <merni> it's also stupid18:49:09 *** tokai has joined #openttd18:49:09 *** ChanServ sets mode: +v tokai18:49:47 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/13556#pullrequestreview-261857572618:52:00 <yiffgirl> xarick: why not? you can't sleep all the time.18:52:29 <xarick> stupid america prograganda, they see problems where they don't exist18:53:16 <merni> firstly, I am not american18:53:58 <merni> https://cdn.discordapp.com/attachments/1008473233844097104/1340033311115841586/324449099-496ce565-89bd-41a0-bebe-9535c8a332a3.png?ex=67b0e2c5&is=67af9145&hm=b6293e8d358c754612424992a4f161007086c2571d83a0035c9365ce67176e57&18:53:58 <merni> secondly, anything which insists on describing this as "African" is just flat out wrong18:54:52 <talltyler> https://youtu.be/z8wrqe72YG418:55:30 <merni> ?18:56:01 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)18:56:01 <merni> my point is why is the game making a decision about the geographical origin of a face based on absolutely no reason18:56:05 <johnfranklin> I think I noticed this when I firstly played it18:56:09 <talltyler> Doesnβt make sense unless youβve seen the film Mean Girls π18:56:21 <talltyler> I fully support your PR, definitely on the right track18:59:28 <talltyler> You could do the gender buttons next π18:59:49 <merni> Hmm, indeed19:00:05 <merni> It feels like the gender option are less likely to be reused for other purposes19:00:05 <talltyler> Although I think _zephyris showed that male and female noses are interchangeable19:00:37 <merni> Plus they have effects on other parts of the face19:00:45 <merni> eg. women get earrings19:00:47 <merni> men get ties19:01:03 <_jgr_> It'd probably make sense to move away from packing everything into a 32 bit field, that'd give you a bit more room for more options19:01:07 <yiffgirl> newgrf faces spec when19:01:10 <merni> talltyler: well, yes... they're just noses? π19:01:20 <_zephyris> It's all hamstring by original graphics compatibility, newgrf faces.19:01:27 <belajalilija> xarick: https://tenor.com/view/norf-fc-engerland-liverpool-chippies-based-gif-2027293119:01:30 <belajalilija> DAMN WOKES19:02:10 <_zephyris> White women have one of the four men's options, white women use 4/8 of the men's options19:02:56 <_zephyris> I think that means the men or women's clothes would work on all chins though19:03:20 <_zephyris> It's a convoluted mess, much like many aspects of the base set.19:10:26 <_zephyris> Ugh, made so many mistakes writing that out!19:12:59 <peter1138> 18:53 < merni> secondly, anything which insists on describing this as "African" is just flat out wrong19:13:18 <peter1138> merni, it's not really out fault if someone is drawing something different from intended.19:13:53 <merni> But we don't need to have such narrow intentions19:14:47 <peter1138> No, I just don't think that's a valid argument to use.19:15:18 <merni> π€·19:15:44 <yiffgirl> desire paths and all that19:18:28 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain approved pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/152#pullrequestreview-261862287419:18:42 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain merged pull request #152: Change: Remove newgrf/50470500. https://github.com/OpenTTD/BaNaNaS/pull/15219:18:58 <truebrain> okay, I think I pressed all the right buttons19:19:13 <truebrain> frosch123: do you send a mail back, or do you want me to do so? (or did you do already? π )19:19:41 <frosch123> I am offline already19:20:05 <yiffgirl> git commit -m "Cleanup: space after if"19:20:05 <yiffgirl> C:\Users\Susan\Documents\src\OpenTTD\.git\hooks\check-message.py:6: SyntaxWarning: invalid escape sequence '\d'19:20:05 <yiffgirl> ISSUE = "#\d+"19:20:05 <yiffgirl> [BlobTreeGen 5199b90260] Cleanup: space after if19:20:05 <yiffgirl> 1 file changed, 1 insertion(+), 1 deletion(-)19:20:06 <yiffgirl> hmm19:20:06 <yiffgirl> also, i had to change the shebang on the hooks from python3 to just python to get it to work at all. which sounds like obvious user error on my part but i've never had python2 on this laptop19:20:11 <frosch123> But we can just highlight emperorjake here19:20:22 <truebrain> fair enough!19:20:23 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/13558#issuecomment-266009458219:21:45 <peter1138> I just rely on hooks running on the CI.19:22:15 <peter1138> Argh, getting a string out of a template argument might not be possible :(19:22:17 <peter1138> Silly macros.19:22:30 <merni> peter1138: added one :)19:23:25 <peter1138> Hmm. I'm not keen on "Skin colour" 1 / 2.19:23:53 <merni> What would you suggest?19:23:55 <peter1138> Although I guess "Eye colour" is similar.19:24:05 <peter1138> I dunno, I haven't thought of that yet :p19:24:15 *** Wormnest has quit IRC (Ping timeout: 480 seconds)19:24:17 <yiffgirl> "skin colour: yes"19:24:37 <merni> fyi the IRC side can't see discord edits :p19:24:51 <yiffgirl> oh, good to know19:25:26 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/13558#pullrequestreview-261863682519:26:04 <truebrain> Don't show me random newlines, they trigger me! ffs π19:26:22 <merni> Oh oops19:26:28 <merni> you are indeed right19:26:31 <yiffgirl> @ everyone on irc: my message above is in jest, not a serious suggestion for what the gui should look like.19:26:37 <truebrain> I know! THAT IS THE WORST PART! π19:26:59 <yiffgirl> [i think numbers are fine.]19:29:28 <DorpsGek> [OpenTTD/OpenTTD] merni-ns updated pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/1355819:29:39 <merni> there19:30:04 <truebrain> much better (OCD-wise)19:31:16 <merni> I noticed another potential trigger :p19:32:39 <peter1138> We should have a compilation flag to enable 'woke' features, -DWOKE.19:32:49 <peter1138> If it's not set, the game will refuse to compile.19:33:34 <andythenorth> Iron Woke19:33:38 <andythenorth> Unwokable Sam19:33:40 <merni> if it's not set, electric trains are banned19:33:53 <merni> only diesel19:34:09 <yiffgirl> oh, a friend of mine made a joke like this recently, let me see if i can find it19:34:12 <merni> and all buses become cars19:38:25 <yiffgirl> yiffgirl: https://chitter.xyz/@roxy/11392510416940944119:43:27 <peter1138> Doesn't go far enough :)19:43:35 <peter1138> What's for dinner?19:44:10 <belajalilija> yiffgirl: im going to put this forward as a serious suggestion19:44:16 <belajalilija> a binary choice if you will19:44:19 <belajalilija> 0 for white19:44:22 <belajalilija> 1 for black19:44:43 <merni> well, my PR is just that except with 1 and 219:46:20 <peter1138> What about Gender: 1 / 2.19:46:34 <yiffgirl> peter1138: there's another one she made in the replies, arguably funnier, but i don't want to spam this channel with links19:47:10 <yiffgirl> peter1138: the famous anime19:47:10 <belajalilija> peter1138: gender "yes/no"19:47:16 <merni> peter1138: I don't think that makes sense19:47:23 <belajalilija> gender = will be male19:47:38 <merni> Could have a "Switch gender" button without displaying any current status though19:47:39 <belajalilija> and no gender = female19:47:53 <belajalilija> because we all have nipples19:49:23 <Rubidium> just have 4 (base) appearances, and the NewGRF developer can decide whether it's genders, skin colours, ages, or whatever19:49:46 <merni> Huh that actually makes a lot of sense19:49:55 <merni> What would that option be called though19:50:09 <yiffgirl> body type?19:50:09 <peter1138> Right. "Variation:" 1, 2, 3, 419:50:16 <merni> It has nothing to do with body19:50:17 <peter1138> Variety Distribution :p19:50:25 <merni> Variation might work?19:50:47 <yiffgirl> agree, variation19:50:49 <merni> gah now I have to pick this up again tomorrow :p19:51:15 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/13558#issuecomment-266014516919:53:07 <DorpsGek> [OpenTTD/OpenTTD] merni-ns commented on pull request #13558: Fix #12555: Use generic numbers instead of racial terms for face ethnicity/skin colour https://github.com/OpenTTD/OpenTTD/pull/13558#issuecomment-266014789019:53:09 <peter1138> > pointer to subobject of string literal is not allowed in a template argument19:53:18 <peter1138> Damn.19:55:00 <johnfranklin> Whatβs the difference about options of different boss gender and skin colour?19:55:09 <yiffgirl> merni-nsviaGitHub: leaves the door open to adding more variations in the inevitable newfaces spec, too.19:55:18 <johnfranklin> Earrings and?19:56:08 <merni> yiffgirl: that will need a pretty complete rewrite of the entire faces code, anyway, so doesn't exactly matter :p19:56:12 <andythenorth> on the one hand, we could just lego-ish faces19:56:27 <andythenorth> on the other, unicode emoji spec probably "solved" all the terms and definitions19:56:49 <merni> emoji are a lot tinier than our company faces19:56:52 <peter1138> Remove faces, use cats (like the Discord bot)19:57:08 <merni> which discord bot?19:57:26 <peter1138> The one that uses cats...19:57:32 <belajalilija> :mmangry:: :mmhappytrans::mmhappy2::mmhappy::mmmenace:<a:mmplop:1333994971585581196>:mmsmoke::mmsad::mmreally::mmpog::mmblush::mmbruh::mmcool::mmcoolgay::mmcringe::mmbuff:19:57:38 <belajalilija> have all faces be based on this emoji19:57:49 <johnfranklin> I want the peter1139 cat backβ¦19:57:54 <merni> peter1138: very helpful :p19:58:02 <peter1138> Such nitro...19:58:03 <andythenorth> https://tenor.com/view/thomas-thomas-the-tank-engine-fat-controller-sir-topham-hatt-confusion-gif-2133377719:58:11 <andythenorth> only one face needed19:58:16 <andythenorth> some copyright issues19:58:17 <merni> Oh you mean the user icons19:58:25 <belajalilija> peter1138: i love it19:58:27 <merni> I have discord on compact mode so I don't see those π19:58:27 <peter1138> Of course I mean that.19:58:53 <belajalilija> merni: condolences19:58:55 <peter1138> Did I miss dinner time?19:58:57 <merni> didn't even realise irc users had cat icons until now19:59:08 <merni> I am missing zzzz time20:00:25 <peter1138> Yes, you must stay up to refactor faces.20:00:35 <peter1138> You are committed now.20:11:20 *** mnhebi has joined #openttd20:11:20 <mnhebi> commits are people!?20:17:41 <belajalilija> https://tenor.com/view/soylentgreen-people-cannibalism-soylent-food-gif-548693620:18:03 <talltyler> Not for your PR, but wondering aloud: I wonder how hard it would be to un-share sprites between the new "variations" you propose. Then GRF authors could really go nuts and do four totally different styles, if they chose.20:22:31 <frosch123> There are ways to reassign and duplicate spriteids20:22:47 <frosch123> Coast sprites are an example20:23:55 <frosch123> Problem are the changing categories like ties and earrings20:28:38 <peter1138> Right, the complexity of faces is not really anything to do with sharing/splitting sprites.20:32:53 <xarick> should neutral stations be included in GSStationList if vehicles are using them?20:34:40 <xarick> probably yes, but I suspect doing the extra check might be costing performance20:38:13 <_glx_> how do you use oilrigs ?20:38:46 <DorpsGek> [OpenTTD/OpenTTD] glx22 updated pull request #13556: Add: [Script] Framework for loading/saving selected ScriptObject https://github.com/OpenTTD/OpenTTD/pull/1355620:39:10 <xarick> passengers going from oilrig to oilrig20:48:51 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13559: Codechange: Set CommandTraits with templates instead of macros. https://github.com/OpenTTD/OpenTTD/pull/1355920:56:51 *** Wormnest has joined #openttd21:01:22 <andythenorth> hmm what should I rename ModelTypeFactory to?21:01:33 <andythenorth> it makes...whatever we actually call vehicles21:01:37 <andythenorth> things that appear in the buy menu21:01:41 <andythenorth> that aren't Vehicles21:01:43 <andythenorth> but are vehicles21:02:02 <andythenorth> ModelVariants maybe21:02:05 <peter1138> Figures it would fail :S21:07:07 <_glx_> looks like it doesn't like `{}` as template arg21:07:41 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13559: Codechange: Set CommandTraits with templates instead of macros. https://github.com/OpenTTD/OpenTTD/pull/1355921:07:47 <peter1138> Yeah.21:08:04 <peter1138> I expected the StringLiteral bit to fail, tbh :)21:08:49 <peter1138> It is, sadly a bit repetitive :(21:10:55 <peter1138> Well, if I'll need to wrap everything in `CommandFlags{}`, then using the macro version and wrapping in `CommandFlags({})` is not much different.21:12:25 <_glx_> except you add wrapping only inside the macro21:13:00 <peter1138> What do you mean?21:13:04 <peter1138> MacOS is happy now, at least.21:13:51 <_glx_> oh with wrapping you mean the full initializer list21:14:10 <_glx_> yeah that would touch everything21:14:19 <peter1138> This touches everything too.21:14:36 <peter1138> I have done it with the macro version already, but I remembered I had this traits patch.21:15:11 <_glx_> at least without the macro it's explicit21:15:32 <_glx_> but also very verbose21:15:41 <peter1138> The duplicate CMD_xxx is annoying, and the "Cmdxxx", Cmdxxx, is too.21:15:42 <peter1138> Yeah21:16:09 <peter1138> Just slightly less version than writing out the whole trait everytime :-)21:16:11 <peter1138> ...21:16:14 <peter1138> verbose21:20:55 <andythenorth> wonder if I can just call them vehicles21:25:13 <Rubidium> those traits are really going to be a pity when the Command becomes enum class. Then it's literally 4 times the same string just two prefixed and one in quotes21:26:45 <peter1138> Yup.21:27:42 <peter1138> Back to the drawing board. Macros in this day 'n age...21:29:11 <xarick> gah... HasStationType is so limited21:30:02 <Rubidium> wait about half a decade until reflection made it into C++26 and the compilers?21:30:22 <xarick> HasExactlyOneBit π¦21:31:13 <xarick> what if i want both bus and truck21:34:18 <xarick> okay, custom function should solve it21:34:25 <andythenorth> Rust port? π21:41:25 <peter1138> I did one version with std::type_info21:41:35 <peter1138> But of course that uses the mangled function name.21:42:11 <andythenorth> Rust Horse21:42:16 <andythenorth> faster than python?21:42:34 <peter1138> Depends. Are you quick at writing Rust?21:46:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13560: Codechange: Use EnumBitSet for CommandFlags. https://github.com/OpenTTD/OpenTTD/pull/1356021:51:32 <andythenorth> am I fast at writing python? π21:59:00 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13560: Codechange: Use EnumBitSet for CommandFlags. https://github.com/OpenTTD/OpenTTD/pull/13560#pullrequestreview-261888243022:56:24 *** keikoz has quit IRC (Ping timeout: 480 seconds)22:59:19 *** kuka_lie has quit IRC (Quit: Lost terminal)23:10:27 *** jinks has quit IRC (Quit: ZNC - http://znc.in)23:10:47 *** jinks has joined #openttd23:58:42 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)continue to next day β΅