⏴ go to previous day00:18:59 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#pullrequestreview-257681182100:33:37 *** Smedles_ has joined #openttd00:37:09 *** Smedles has quit IRC (Ping timeout: 480 seconds)01:22:56 <DorpsGek> [OpenTTD/OpenGFX] jayaddison commented on issue #94: gimpscript: GIMP3 compatibility problem(s) https://github.com/OpenTTD/OpenGFX/issues/9402:08:38 *** Smedles_ has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)02:08:54 *** Smedles has joined #openttd02:58:10 *** Flygon has quit IRC (Read error: Connection reset by peer)03:09:04 *** D-HUND has joined #openttd03:12:35 *** debdog has quit IRC (Ping timeout: 480 seconds)03:19:29 *** Wormnest has quit IRC (Quit: Leaving)03:26:24 *** gnu_jj_ has joined #openttd03:29:46 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)05:08:40 *** keikoz has joined #openttd06:11:43 *** keikoz has quit IRC (Ping timeout: 480 seconds)06:18:56 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#issuecomment-261799610206:31:17 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/1339906:31:29 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#pullrequestreview-257724491106:36:05 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13394: Change: [CMake] use CMAKE_CXX_BYTE_ORDER for EndianCheck https://github.com/OpenTTD/OpenTTD/pull/13394#issuecomment-261804472407:04:47 *** SigHunter has quit IRC (Remote host closed the connection)07:05:47 *** SigHunter has joined #openttd07:09:51 <peter1138> Hmm07:12:29 *** Extrems has quit IRC (Ping timeout: 480 seconds)07:19:36 *** Extrems has joined #openttd09:17:37 <peter1138> Urgh, mouse plyaing up :(09:17:59 <LordAro> as is your keyboard09:41:00 <truebrain> You sure it is not his fingers? 😛09:41:07 <xarick> hi09:47:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#issuecomment-261845459509:47:58 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333735313176137748/image.png?ex=6799f94e&is=6798a7ce&hm=a16614f4cb8137810ad95421284913004172a33465e0767b07a78bc155b9bef4&09:47:58 <xarick> question: Is it okay to towns denying activation of one-way roads?10:01:43 *** nielsm has joined #openttd10:25:39 <peter1138> "We don't support GS1, can you send a sample file?"10:26:01 <peter1138> Oops10:26:18 <peter1138> "We don't support GS1, can you send a sample file of another format?"10:26:25 <peter1138> "This file doesn't appear be to GS1"10:26:37 <peter1138> Yeah Ok.10:27:03 <peter1138> Urgh, macros.10:34:57 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333747135736447027/image.png?ex=679a0450&is=6798b2d0&hm=d7901a3abca1db43d425129c6982a7243cda0cdb12ad5fe5d5ddc93b6266c9f9&10:34:57 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333747136105414718/image.png?ex=679a0451&is=6798b2d1&hm=47d40df241f8ed6e5f2fa11b9d3de862abdd626708123677668d59b136fb885b&10:34:57 <xarick> hmm... we have a disagreement10:36:26 <peter1138> Hmm, I wonder if there's any way to get rid of the SDT_* macros.10:36:36 <xarick> wondering if it's actually problematic10:37:01 <peter1138> Instead just on constructors with the appropriate parameters.10:37:21 <peter1138> Rubidium has a PR that addresses that I believe.10:38:39 <peter1138> I don't think it matters technically but consistency is good.10:43:42 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13381: Codechange: Introduce and use EnumBitSet. https://github.com/OpenTTD/OpenTTD/pull/13381#pullrequestreview-257782833210:48:40 *** nielsm has quit IRC (Ping timeout: 480 seconds)11:05:01 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#issuecomment-261868001411:44:31 <xarick> AIStation.STATION_JOIN_ADJACENT what is this for?11:44:54 <xarick> sounds like a simple question, but I don't see it having an effect11:46:03 <xarick> nevermind, i'm dumb12:05:27 *** Flygon has joined #openttd12:26:43 *** nielsm has joined #openttd12:30:10 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333776133690495067/image.png?ex=679a1f52&is=6798cdd2&hm=3207ff39c6d4b5d6304ad5d333e5bf49e358d40430e64fb8fb4c57d633ea9747&12:30:10 <xarick> hmm12:30:11 <peter1138> Poot.12:31:04 <xarick> waypoints are drive through road station tiles! not sure I agree12:31:59 <xarick> GetDriveThroughBackTile works, GetRoadStationFrontTile doesn't work12:56:39 <peter1138> Hmmmmm12:57:47 <LordAro> ooh13:04:20 *** toktik is now known as Guest725213:04:23 *** Guest7252 has quit IRC (Remote host closed the connection)13:04:24 *** toktik has joined #openttd13:16:18 <peter1138> The battery is long dead on my old Pebble Steel.13:19:22 <xarick> I had an idea yesterday night, about regression script13:19:51 <xarick> the tests should return the LastError message13:20:02 <xarick> not just the return result13:20:33 <xarick> it's going to be a major change13:21:06 <xarick> it would be able to detect at least some divergences caused by changes in Commands13:36:56 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#issuecomment-261902930213:59:36 <xarick> ScriptStation::GetStationID works on waypoints... hmm dilemas13:59:56 <_glx_> a waypoint is a station14:06:15 <xarick> problem there is also a ScriptWaypoint::GetWaypointID14:08:39 <xarick> there's also ScriptBaseStation, but this one doesn't have a GetBaseStationID14:09:47 <xarick> not sure how I feel about the possibility of breaking AIs to make this consistent14:16:28 *** kuka_lie has joined #openttd14:25:46 <andythenorth> ah dependabot email arrived 🙂14:25:55 <andythenorth> so we don't rewrite tags, yes/no?14:27:02 <LordAro> no14:27:39 <LordAro> well, occasionally "unreleased" tags if they're fundamentally broken14:28:10 <andythenorth> so https://grf.farm/iron-horse/index.html14:28:19 <andythenorth> some of those contain vulnerable jquery14:28:27 <andythenorth> vendored in and in the comits for the main repo14:28:37 <andythenorth> so I should unpublish those versions?14:28:50 <LordAro> i would look at your dependabot config14:29:32 <andythenorth> with what question?14:29:49 <andythenorth> the risk-based analysis, this is not a vector that could harm end users14:29:59 <andythenorth> but on principle, I am shipping vulnerable code14:30:02 <andythenorth> that's not allowed14:31:21 <andythenorth> is the responsible thing to delete those docs? The actual production docs are served from a separate repo, there is some separation14:31:29 <LordAro> wait hang on, this has nothing to do with tags?14:31:33 <LordAro> nor the grfs themselves14:31:47 <andythenorth> the docs are in the repo14:31:48 <LordAro> it's complaining about things like https://github.com/andythenorth/grf.farm-volume-1/blob/main/src/iron-horse/3.33.0/html/static/js/jquery-3.5.0.min.js right?14:31:51 <andythenorth> yes14:32:23 <LordAro> what's stopping you from upgrading jquery for those folders?14:32:27 <andythenorth> and they're in the grf repo, so anyone who has the repo on their filesystem, I have unwittingly breached14:32:50 <andythenorth> anyone who checks out the repo, and checks out an older git rev is exposed14:33:00 <LordAro> then that's on them14:33:05 <LordAro> dependabot is only looking at the HEAD14:33:09 <LordAro> but the HEAD contains all versions14:33:13 <LordAro> contains docs for all versions14:34:42 <LordAro> alternatively: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#ignore--14:41:36 <xarick> enum RoadTramType : bool { first time I see a bool with another name14:42:06 <_glx_> andythenorth: nothing you can do about that, you can just expect people to upgrade their clone14:43:17 <xarick> RTTB_ROAD = 1 << RTT_ROAD, but RTT_ROAD is bool14:43:27 <_glx_> and ?14:43:40 <xarick> 1 left shift false14:44:40 <_glx_> it's not a bool, it's an enum, so 0 and 114:45:06 <LordAro> enum base of bool is a bit odd14:45:08 <_glx_> underlying is a bool because only 2 possible values14:45:28 <_glx_> but it's still an enum14:46:16 <LordAro> mm, but assuming that true/false are 1/0 is always a bit of a leaky abstraction14:46:44 <_glx_> underlying type is for the compiler mostly, you can ignore it when looking at enum values14:47:07 <peter1138> If EnumBitSet goes ahead that'll probably get tweaked.14:48:00 <_glx_> anyway RTT_ROAD is 0 and RTT_TRAM is 114:50:22 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1333811412048285726/image.png?ex=679a402d&is=6798eead&hm=2411cb59113b360d57d1437f6ccf015cf60b44ecfc1f3e08de7cae035a372064&14:50:22 <_glx_> https://cdn.discordapp.com/attachments/1008473233844097104/1333811412342018149/image.png?ex=679a402d&is=6798eead&hm=3980f08c3b0a12a96fb7e3dc67e47fb449896c4077b2d08acc0a04c8b3689c79&14:51:50 <_glx_> and we should use more `enum class`14:52:03 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333811838483173397/image.png?ex=679a4093&is=6798ef13&hm=5d23024ce58856e212c1ba79ee57ea4a1ffa4df9dfed5b21289cb8608385ebf5&14:53:44 <peter1138> Yeah, that 3.33.0 is just a directory in your HEAD, not a tag.14:55:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333812697216581695/image.png?ex=679a4160&is=6798efe0&hm=b9a47d82f0ac6050476674c726c8dbca38c4ef62e63ff1593d35656112ee0239&14:55:34 <peter1138> It is the current version, and Dependabot is correct.14:55:41 <peter1138> _glx_, I'm working on it :-)14:58:00 <_glx_> you are not forced to touched existing releases, but it's highly recommended to upgrade anything in HEAD (even if it originates from older releases)14:58:02 <peter1138> Part of the hold up was using `enum class` with bitfields is a pain, which is why I did the EnumBitSet PR.14:58:42 <xarick> anyway, I got distracted14:58:52 <xarick> IsBuildable returns true on road waypoints14:59:20 <xarick> shouldn't it return false?14:59:31 <_glx_> depends what you want to build on it14:59:36 <LordAro> lol14:59:47 <xarick> AITile.IsBuildable14:59:55 <xarick> AiTile.IsBuildableRectangle15:00:16 <_glx_> what happens for drive through stops ?15:00:42 <xarick> let me check if regression tests for drivethrough15:01:51 <_glx_> waypoints are like drive through where vehicles don't stop15:01:51 <xarick> returns false15:02:44 <peter1138> `if (x.test(StationFacilityFlag::Train)) builder.Utf8Encode(SCC_TRAIN);`15:02:52 <peter1138> Such verbose.15:05:07 <_glx_> but very clear15:05:40 <_glx_> not worse than `HASBIT(x, ...)`15:05:59 <DorpsGek> [OpenTTD/team] mvjarvie opened issue #615: [es_ES] Translator access request https://github.com/OpenTTD/team/issues/61515:06:06 <xarick> nevermind, returns false too, I mistyped the tile number15:06:55 <DorpsGek> [OpenTTD/team] glx22 commented on issue #615: [es_ES] Translator access request https://github.com/OpenTTD/team/issues/61515:07:57 <_glx_> xarick: indeed, I couldn't see a reason for different behaviour looking at `ScriptTile::IsBuildable()`15:36:00 <xarick> road waypoint can be built on a road piece of a competitor15:36:39 <xarick> but then it can't be demolished, owned by the competitor15:37:09 <xarick> oh, it can be removed with the remove tool15:42:38 <_glx_> yes like any station15:53:38 <xarick> ScriptStation::STATION_NEW should be ScriptBaseStation::15:54:28 <frosch123> https://news.ycombinator.com/item?id=42853509 <- the first answer recommends to play ottd, lol16:00:56 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] IsRoadWaypointTile https://github.com/OpenTTD/OpenTTD/pull/1339816:04:39 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13396: Codechange: Remove TTD_ENDIAN from Colour union. https://github.com/OpenTTD/OpenTTD/pull/13396#pullrequestreview-257874156816:12:15 *** keikoz has joined #openttd16:13:26 *** gelignite has joined #openttd16:13:49 <xarick> what's the FACIL type for road waypoints? BUS or TRUCK'16:14:09 <xarick> both?16:14:39 <xarick> another dilema to solve16:15:10 *** Wormnest has joined #openttd16:16:04 <xarick> ScriptWaypointList requires me to provide a single facility type16:18:27 <xarick> nevermind, it lets me do multiples16:32:59 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #13400: Codechange: make script and internal NEW_STATION have the same value https://github.com/OpenTTD/OpenTTD/pull/1340016:36:02 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #13400: Codechange: make script and internal NEW_STATION have the same value https://github.com/OpenTTD/OpenTTD/pull/13400#pullrequestreview-257883679016:46:09 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #13400: Codechange: make script and internal NEW_STATION have the same value https://github.com/OpenTTD/OpenTTD/pull/13400#pullrequestreview-257886268716:52:56 <xarick> wait a minute16:53:05 <xarick> ScriptBaseStation?16:53:40 <xarick> then why does it let me do this: AIStation.STATION_NEW16:53:54 <xarick> and not AIBaseStation.STATION_NEW16:54:25 <xarick> or maybe it does let me do it too, I just didn't try16:56:23 <xarick> wow, it let's me do both16:56:27 <xarick> I had no idea16:59:50 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13400: Codechange: make script and internal NEW_STATION have the same value https://github.com/OpenTTD/OpenTTD/pull/13400#pullrequestreview-257889727917:00:15 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #13353: Codechange: [Script] do not redefine types in the script API https://github.com/OpenTTD/OpenTTD/pull/1335317:01:01 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #13353: Codechange: [Script] do not redefine types in the script API https://github.com/OpenTTD/OpenTTD/pull/13353#pullrequestreview-257890028517:14:20 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/1339817:17:09 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13400: Codechange: make script and internal NEW_STATION have the same value https://github.com/OpenTTD/OpenTTD/pull/1340017:37:30 *** D-HUND is now known as debdog17:40:38 *** Wolf01 has joined #openttd17:43:45 <DorpsGek> [OpenTTD/OpenTTD] ognevny commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282317:44:47 <peter1138> Wibble.17:46:06 <LordAro> peter1138: are your underpants on your head?17:47:27 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282317:48:39 <DorpsGek> [OpenTTD/OpenTTD] ognevny commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282317:49:19 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333856447678648435/image.png?ex=679a6a1e&is=6799189e&hm=07c99cc230ea4232a36a21df833acedbe04af856f51f0a1c70d7237f7fb7a6e8&17:49:19 <xarick> hmm.... nop17:49:43 <xarick> the 3rd false should return true17:49:55 <xarick> and 4th checks for ANY, should be true as well imo17:50:11 <xarick> where did I fail17:50:19 <LordAro> ah, so i was supposed to understand that "doesn't help" actually meant "completely changed the error"17:51:05 <truebrain> So they want FHS on Windows? Well, I guess it simply never worked to start with17:51:08 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13396: Codechange: Remove TTD_ENDIAN from Colour union. https://github.com/OpenTTD/OpenTTD/pull/1339617:51:27 <LordAro> truebrain: no, FHS evidently works, but the search paths don't respect it on Windows (?)17:51:36 <truebrain> ofc not17:51:37 <truebrain> why would it17:51:43 <_glx_> installing openttd via mingw makes no sense17:51:48 <truebrain> we don't support FHS on non-Linux 😛17:51:57 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #13387: Codechange: also add prefix increment/decrement for enums when requested https://github.com/OpenTTD/OpenTTD/pull/13387#pullrequestreview-257902874517:52:51 <LordAro> _glx_: since when has that ever stopped anyone?17:53:12 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #13353: Codechange: [Script] do not redefine types in the script API https://github.com/OpenTTD/OpenTTD/pull/13353#pullrequestreview-257903213717:55:24 <xarick> ScriptWaypoint::HasWaypointType is buggy, maybe? or it's not sure how's it supposed to work?17:57:02 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13387: Codechange: also add prefix increment/decrement for enums when requested https://github.com/OpenTTD/OpenTTD/pull/1338717:57:44 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13353: Codechange: [Script] do not redefine types in the script API https://github.com/OpenTTD/OpenTTD/pull/1335317:57:50 <xarick> <https://docs.openttd.org/ai-api/classAIWaypoint#a51563a4006c6193a7e6ac3e28a24e4a7> Nothing suggests in the documentation I'm supposed to use only one type17:58:17 <xarick> road waypoints however takes 2 FACILs17:58:38 <xarick> if (!HasExactlyOneBit(waypoint_type)) return false;17:58:52 <xarick> it has 2 bits17:58:56 <xarick> what do I do?18:01:10 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333859431888191549/image.png?ex=679a6ce6&is=67991b66&hm=30547e398166852b498c214f52b0a10aac23c28e30a92ba3c04ffea997b2ed89&18:01:14 <peter1138> Define the actual problem and wait for someone who knows what they are doing.18:01:36 <xarick> "someone" aka JGR decided road waypoints take 2 facils18:01:42 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282318:04:31 <truebrain> so first it was "for windows game's executable is not compiled", then it was "but the executable is broken", but he is just not configuring the system correctly 🙂18:04:32 <truebrain> gotcha 😄18:04:47 <truebrain> awh, packages.debian.org is down18:04:48 <truebrain> sad18:04:54 <merni> xarick: and what is the problem with that?18:05:40 <LordAro> truebrain: not suggesting at least some of these aren't bugs that we couldn't fix18:06:11 <LordAro> i'm still pissed off about "didn't help" though18:06:21 <truebrain> You are our MinGW developer here 😛18:06:29 <truebrain> otherwise it wouldn't have compiled on MinGW for several months now 😄18:06:33 <LordAro> i don't even have it installed (on my personal machine) anymore!18:06:39 <LordAro> i use WSL :p18:06:41 <truebrain> so I can remove support you say? 😄 😄18:06:45 <LordAro> nooo18:06:47 <truebrain> good boy, finally joined the grownups!18:07:01 <truebrain> with WSL, really, there is no point in MinGW existing anymore18:07:07 <xarick> Need to re-do this function perhaps <https://github.com/OpenTTD/OpenTTD/blob/master/src/script/api/script_waypoint.cpp#L35>18:07:15 <LordAro> there really is18:07:18 <peter1138> I use MinGW... to compile for Windows on Linux.18:07:22 <truebrain> reality caught up with it18:07:34 <LordAro> we use it for all Windows development at work18:07:37 <peter1138> Not a great test.18:07:38 <truebrain> peter1138: lol, you can run MinGW on Linux? 😛18:07:49 <truebrain> LordAro: seems you need to catch up with 2025 at work 😛 😛18:08:00 <LordAro> we need actual Windows executables!18:08:07 <LordAro> and MSVC for Ada is not a thing18:08:08 <truebrain> But the fact something is used, doesn't mean it should be used 😉18:08:16 <truebrain> owh, I forgot, Ada crap 😛18:08:22 <truebrain> okay, I need to rephrase, fine18:08:28 <peter1138> CMAKE_TOOLCHAIN_FILE /home/petern/src/openttd/build-mingw/toolchain.cmake18:08:34 <truebrain> For C(++) projects, and with WSL, really, there is no point in MinGW existing anymore 😛18:08:41 <truebrain> peter1138: brrrrrr18:09:20 <LordAro> perhaps18:09:28 <truebrain> But okay, granted, MinGW has a place18:09:36 <LordAro> assuming that converting said project to a Windows compiler is actually viable :p18:09:40 <truebrain> and happy to read you use WSL now 😄18:13:21 <truebrain> owh, and yes, your comment is correct: if you enable FHS, you also need to set GLOBAL_DIR for it to make sense. Otherwise it is pointless to enable FHS 😄18:13:32 <_glx_> xarick: yeah looks like it needs an update, the checks are meant to validate input, but it has to understand the new stuff to validate properly18:14:22 <peter1138> In my opinion, WaypointType being based on StationFacility is bogus.18:14:35 <peter1138> It doesn't need to reflect the internals like that.18:16:37 <_glx_> it already reject WAYPOINT_ANY, while to me it should be a valid value to pass18:17:08 <xarick> `if (waypoint_type != WAYPOINT_RAIL && waypoint_type != WAYPOINT_BUOY && waypoint_type != WAYPOINT_ROAD) return false;`18:17:34 <xarick> im going with this18:18:15 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/13399#pullrequestreview-257908461018:18:16 <_glx_> `if (waypoint_type & WAYPOINT_ANY != waypoint_type) return false` seems simpler18:18:29 <LordAro> truebrain: would you say that (in Options.cmake) that `UNIX || FHS` makes sense?18:18:39 <truebrain> dunno18:18:48 <LordAro> (if i reorder it so that it's before win32)18:20:53 <peter1138> When does FHS apply to non-UNIX?18:20:54 <truebrain> Mainly, I just really don't know whether this user is using a sane install folder to actually use as global dir18:21:06 <truebrain> or that it is a temporary folder, and they need to set the GLOBAL_DIR anyway18:21:16 <truebrain> supporting FHS on a non-Linux is just strange18:21:25 <peter1138> Yes.18:21:32 <truebrain> That is: I have a lot of questions 😛18:21:48 <LordAro> they shouldn't have to set GLOBAL_DIR, i guess is my point (because they might get it wrong)18:22:00 <LordAro> as long as PREFIX / whatever is set, it should all Just Work18:22:15 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #13399: Codechange: introduce and use std::byteswap https://github.com/OpenTTD/OpenTTD/pull/1339918:23:28 <peter1138> I'm kinda lost, Feels maybe like an XY problem.18:23:46 <peter1138> (A bit like trying to work out what "someone" aka xarick is on about)18:24:09 <xarick> 🙂18:24:49 <truebrain> LordAro: That is a huge assumption there 😛 😛18:25:56 <xarick> I'm reluctant in changing the current behaviour, not sure if ANY should return true18:26:13 <xarick> break AIs some more?18:27:35 <DorpsGek> [OpenTTD/OpenTTD] PeterN dismissed a review for pull request #13395: Fix #13392: Signs of removed stations are no longer visible. https://github.com/OpenTTD/OpenTTD/pull/13395#pullrequestreview-257643480918:27:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13395: Fix #13392: Signs of removed stations are no longer visible. https://github.com/OpenTTD/OpenTTD/pull/1339518:28:04 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13395: Fix #13392: Signs of removed stations are no longer visible. https://github.com/OpenTTD/OpenTTD/pull/13395#issuecomment-261976131318:28:38 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #13395: Fix #13392: Signs of removed stations are no longer visible. https://github.com/OpenTTD/OpenTTD/pull/13395#pullrequestreview-257910495318:28:44 <DorpsGek> [OpenTTD/OpenTTD] LordAro opened pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/1340118:29:05 <DorpsGek> [OpenTTD/OpenTTD] LifWirser commented on issue #13359: [Bug]: CMake unnecessarily checks for xaudio2 on Linux https://github.com/OpenTTD/OpenTTD/issues/1335918:29:37 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282318:29:57 <xarick> there's also StationTypes18:30:38 <xarick> they check for HasExactlyOneBit18:30:42 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257911211518:30:56 <xarick> so, ANY returns false there18:31:41 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13397: Codechange: Use std::endian instead of TTD_ENDIAN https://github.com/OpenTTD/OpenTTD/pull/1339718:31:44 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257911411618:32:21 <DorpsGek> [OpenTTD/OpenTTD] ognevny commented on issue #12823: [Bug]: Windows: can't be compile with clang from msys2/mingw https://github.com/OpenTTD/OpenTTD/issues/1282318:33:11 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257911705518:34:44 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257912006318:34:47 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#issuecomment-261977960618:35:10 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13397: Codechange: Use std::endian instead of TTD_ENDIAN https://github.com/OpenTTD/OpenTTD/pull/13397#pullrequestreview-257912092418:35:54 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#issuecomment-261978178418:37:05 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257912528918:37:30 <truebrain> you broke my brain 😛18:37:58 <peter1138> falsebrain18:38:16 <truebrain> NoBrain 🙂18:38:33 <Rubidium> FileNotFoundBrain? ;D18:39:03 <truebrain> I get what you want to do LordAro, I am just seeing a lot of side-effects 😛 And I don't know MinGW enough to say anything useful about it 😦18:39:10 <truebrain> so it is a "me" issue, to be clear 😄18:41:36 <DorpsGek> [OpenTTD/OpenTTD] LordAro updated pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/1340118:42:55 <LordAro> how about now? :p18:43:20 <truebrain> that seems far safer 🙂18:43:27 <truebrain> happy you didn't break your brain on thinking about this 😛18:43:59 <LordAro> unfortunately "understanding MinGW" is something i'm paid to do18:44:09 <truebrain> I feel for you18:44:21 <LordAro> (well, MSYS2 specifically, cygwin/mingw side of things is always a bit weird)18:44:57 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain approved pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#pullrequestreview-257914057818:48:11 *** tokai has joined #openttd18:48:11 *** ChanServ sets mode: +v tokai18:49:46 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#issuecomment-261980889718:50:18 *** Wormnest has quit IRC (Quit: Leaving)18:51:13 <DorpsGek> [OpenTTD/OpenTTD] ognevny commented on pull request #13401: Codefix: Improve CMake handling of MinGW installs https://github.com/OpenTTD/OpenTTD/pull/13401#issuecomment-261981164518:55:05 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)18:57:40 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/1339819:10:04 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13377: Codechange: Remove ZeroedMemoryAllocator from network socket handlers. https://github.com/OpenTTD/OpenTTD/pull/1337719:10:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13395: Fix #13392: Signs of removed stations are no longer visible. https://github.com/OpenTTD/OpenTTD/pull/1339519:10:39 <DorpsGek> [OpenTTD/OpenTTD] PeterN closed issue #13392: [Bug]: #13207 makes grey station signs after station tiles are removed unconditionally invisible https://github.com/OpenTTD/OpenTTD/issues/1339219:21:33 *** HerzogDeXtEr has joined #openttd19:37:38 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13397: Codechange: Use std::endian instead of TTD_ENDIAN https://github.com/OpenTTD/OpenTTD/pull/1339719:46:42 <xarick> FACIL_GHOST for AIs?19:52:47 <peter1138> No, it's a not real.19:52:49 <peter1138> -a19:54:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333888058646335531/image.png?ex=679a878f&is=6799360f&hm=248394f7fcdbf8057be96b6c2870ceaef2cd33d88a299577894cee86d14a4f3b&19:54:55 <xarick> regression has this in the log, should I fix it?19:55:15 <xarick> it's bothering me for years19:58:19 <LordAro> are you sure it's not intentional?19:58:44 <LordAro> it looks like it could be an intentional check of the error state20:01:18 <_glx_> IIRC it's intentional, like the crash at the end20:01:48 <Rubidium> it's not well documented intentional though20:04:00 <xarick> i don't even know where it happens20:04:24 <Rubidium> it's a good exercise to figure that out20:05:08 <_glx_> Error text is a hint20:07:06 <xarick> <https://github.com/OpenTTD/OpenTTD/blob/master/regression/regression/result.txt#L576-L577>20:07:17 <xarick> maybe it's intented20:08:08 <xarick> 0 => 5 (true) hmm... what?20:11:21 *** Wormnest has joined #openttd20:11:25 <xarick> oh !list.IsEnd()20:11:33 <xarick> that's what's inside parenthesis20:14:56 <_glx_> https://github.com/OpenTTD/OpenTTD/blob/master/regression/regression/main.nut#L834-L838 could be a bug too20:16:36 <xarick> it's lines 837 and 838 causing the ERROR log i see20:17:05 <xarick> the default is a descending list20:17:13 <xarick> the first item becomes the last item20:17:19 <xarick> after the sort ascending20:17:25 <_glx_> list.Sort might invalidate some stuff20:24:25 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1333895480932962415/image.png?ex=679a8e79&is=67993cf9&hm=c9b871aef5fb7e070b41a85a1b11a26f5a694af4ee9f449db5a13ce32f7980c0&20:24:25 <xarick> must think20:25:32 <xarick> IsValidStation returns false on road waypoint, but GetStationID returns the ID of the waypoint20:26:02 <xarick> IsDriveThroughRoadStationTile returns true... should return false imo20:26:05 <peter1138> Hmm, I see, ErrorMessages is bit-stuffed.20:26:57 <peter1138> And is a lot of different enums.20:31:15 <xarick> ``` print(" IsValidStation(): " + AIStation.IsValidStation(8));20:31:15 <xarick> print(" IsValidBaseStation(): " + AIBaseStation.IsValidBaseStation(8));```20:32:36 <xarick> I'm unsure if i should modify the behaviour of GetStationID20:32:59 <peter1138> GENDER_INVALID = -120:32:59 <peter1138> Hmm20:34:48 <andythenorth> is that politics in the channel again? 👀20:35:32 <peter1138> Nothing political.20:40:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13383: Codechange: Specify underlying type for all enums. https://github.com/OpenTTD/OpenTTD/pull/1338320:42:20 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13383: Codechange: Specify underlying type for all enums. https://github.com/OpenTTD/OpenTTD/pull/13383#issuecomment-262001577220:47:19 <xarick> IsRoadStationTile seems to return true for drive through road stations20:47:42 <xarick> how to not break existing AIs...20:52:41 <andythenorth> peter1138: just me, being a dick 😛20:55:28 <xarick> will there be normal bay road waypoints?20:55:36 <xarick> probably not21:01:47 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/1339821:02:38 <xarick> oops21:02:44 <_jgr_> xarick: These would be pretty useless, as you couldn't use them as a waypoint...21:14:18 <xarick> the cost comes from the spec?21:14:32 <xarick> AIs don't have it set up like so21:16:19 <xarick> <https://github.com/OpenTTD/OpenTTD/blob/master/src/script/api/script_road.cpp#L640>21:16:53 *** gelignite has quit IRC (Quit: Stay safe!)21:18:00 <xarick> so it's a truck price21:18:28 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)21:25:02 <peter1138> Hmm.21:26:05 <peter1138> Hmm, spriteloader/grf.cpp:282, 287-288 and 332-334 are confusing.21:26:31 <peter1138> The first two treat colour as values, the last treats it as a bitmask.21:26:50 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #13383: Codechange: Specify underlying type for all enums. https://github.com/OpenTTD/OpenTTD/pull/13383#pullrequestreview-257944797521:43:13 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/1339821:48:37 <xarick> what else there is to do21:48:49 <xarick> oh right... removing it21:57:05 <xarick> ScriptRail have the nice RemoveRectangle21:57:19 <xarick> ScriptRoad ... nope22:09:34 <xarick> Rubidium, a question22:09:58 <xarick> `::IsRoadWaypointTile(tile)` or `IsRoadWaypointTile(tile)`22:10:26 <xarick> maybe both, depending on situation22:11:29 <xarick> there is a `inline bool IsRoadWaypointTile(Tile t)` and a `static bool IsRoadWaypointTile(TileIndex tile);`22:11:29 <xarick> forget I asked22:13:53 *** kuka_lie has quit IRC (Quit: Lost terminal)22:16:51 <xarick> undecided if I go the remove rectangle approach22:17:39 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #13383: Codechange: Specify underlying type for all enums. https://github.com/OpenTTD/OpenTTD/pull/1338322:19:12 *** asasnat has joined #openttd22:19:12 <asasnat> https://cdn.discordapp.com/attachments/1008473233844097104/1333924365695189133/image.png?ex=679aa95f&is=679957df&hm=95ca9b051c4ec288d2e954355240c4868322da54fc3e89ef4ee09e1c171228af&22:19:12 <asasnat> peter1138: context22:20:07 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)22:20:17 <asasnat> needless to say, both TTD and OpenTTD were made long before non-binary gender identities gained any notable degree of acceptance among the general public22:20:53 <talltyler> The company manager interface is problematic in many ways 🙂22:21:46 <talltyler> Strange to see a negative value for an enum though22:21:54 <asasnat> it's probably a C thing22:22:01 <_glx_> it's just 0xFFFF...22:22:26 <talltyler> Ah, right22:22:59 <asasnat> asasnat: since a lot of the source code (even the C++ parts) still use a lot of C-isms22:24:04 <peter1138> Why are you telling me what I was looking at?22:31:33 <andythenorth> talltyler: just delete it 😛22:31:59 <andythenorth> ok did anyone fix Horse nml name string handling for me?22:32:30 <andythenorth> [spoiler, they did not]22:32:34 <andythenorth> I'll do it tomorrow maybe 😛22:37:20 *** keikoz has quit IRC (Ping timeout: 480 seconds)22:38:08 *** nielsm has quit IRC (Ping timeout: 480 seconds)22:40:13 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #13402: Codechange: make pool item indices strongly typed https://github.com/OpenTTD/OpenTTD/pull/1340222:46:46 <xarick> _glx_: I think in squirrel that is actually -1, can't remember for sure22:46:56 <xarick> SQInteger6422:55:41 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #13398: Add: [Script] Multiple road waypoints API functions https://github.com/OpenTTD/OpenTTD/pull/1339822:59:56 <xarick> hmm, what else might be missing?23:00:13 <xarick> oh, the drivethroughfronttile/backtile23:00:23 <xarick> yeah, another dilema23:00:40 <xarick> then i also need to check if the orders work23:04:57 <xarick> nop, don't work23:05:05 <xarick> well, bed good night23:19:54 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #13402: Codechange: make pool item indices strongly typed https://github.com/OpenTTD/OpenTTD/pull/13402#pullrequestreview-257962720223:21:08 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #13403: Fix: Rail/road type conversion data is not populated on new game. https://github.com/OpenTTD/OpenTTD/pull/1340323:42:49 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #13403: Fix: Rail/road type conversion data is not populated on new game. https://github.com/OpenTTD/OpenTTD/pull/13403#pullrequestreview-2579648880continue to next day ⏵