Config
Log for #openttd on 14th November 2021:
Times are UTC Toggle Colours
09:32:22  <DorpsGek> [OpenTTD/OpenTTD] J0anJosep commented on pull request #8480: Feature: Extended depots https://git.io/J1fvm
10:37:48  *** supermop_Home_ has quit IRC
10:56:06  *** HerzogDeXtEr has joined #openttd
12:18:32  <DorpsGek> [OpenTTD/team] RobloxOpenTTDUser opened issue #265: [ko_KR] Translator access request https://git.io/J1f1I
12:33:52  <andythenorth> hmm
12:33:59  <andythenorth> CHIPS nml conversion got delayed :P
12:34:13  <andythenorth> building a Lego remote control 8 wheel offroad bus
12:34:16  <andythenorth> such things
12:35:55  <andythenorth> https://cdn.motor1.com/images/mgl/kNXwY/s1/sleipnir-tour-bus.jpg
12:48:41  <DorpsGek> [OpenTTD/OpenTTD] DonaldDuck313 opened issue #9695: [Crash]: OpenTTD crashes right after I launch it https://git.io/J1f7q
12:53:21  <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9695: [Crash]: OpenTTD crashes right after I launch it https://git.io/J1f7q
12:58:25  <peter1138> max heart rate 192, christ
12:58:53  <TrueBrain> get out of there, it is gonna explode! :P
13:15:00  <andythenorth> isn't there some age -> BPM ratio that's healthy vs. unhealthy?
13:15:06  * andythenorth doesn't know about exercise
13:18:55  <peter1138> It'd be bad if I wasn't exercising, heh
14:05:14  <LordAro> peter1138: i can count on my fingers the number of times my HR has exceeded 190
14:06:16  <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #9695: [Crash]: OpenTTD crashes right after I launch it https://git.io/J1f7q
14:19:08  *** frosch123 has joined #openttd
14:26:32  <TrueBrain> hmm .. how do I make a grf active in code .. I want to force one active ..
14:29:09  <peter1138> I think this is the second for me, but the first time really hurt.
14:30:26  <peter1138> Strap was playing up a bit today but I don't think it was then.
14:30:32  <frosch123> TrueBrain: what do you mean? like loading openttd.grf? like loading static newgrf? or like adding a newgrf in the gui for a specific game?
14:30:50  <TrueBrain> like loading "something.grf" on startup
14:30:52  <TrueBrain> but I found _all_grfs
14:30:54  <TrueBrain> that took me a while :D
14:31:52  <frosch123> those are the scanned newgrf, not the active ones
14:32:00  <TrueBrain> exactly :)
14:32:08  <TrueBrain> I first need to find the non-active one to make it active
14:32:09  <frosch123> words :)
14:32:17  <dP> TrueBrain, openttd loads default grfs here: https://github.com/OpenTTD/OpenTTD/blob/master/src/gfxinit.cpp#L163
14:33:15  <TrueBrain> frosch123: the _all_grfs vs _grfconfig was tricking me :P
14:36:08  <TrueBrain> I was kinda hoping we had a "MakeGRFActive(grfid, md5sum)" :P
14:36:13  <TrueBrain> but it seems we do not
14:36:25  <TrueBrain> or MakeGRFActiveForNewgame :D
14:36:26  <frosch123> i think you are looking for IsGoodGRFConfigList
14:36:59  <frosch123> or FindGRFConfig
14:37:21  <TrueBrain> now to make it active ...
14:37:22  <TrueBrain> hmm
14:37:37  <frosch123> check the console command
14:37:40  <frosch123> "reloadnewgrf"
14:37:42  <TrueBrain> which?
14:37:45  *** spnda has joined #openttd
14:37:53  <TrueBrain> does that make it active?
14:37:53  <frosch123> ReloadNewGRFData() or something
14:38:04  <TrueBrain> I need to add it to _grfconfig_newgame first I guess?
14:38:08  <frosch123> it reloads all newgrf rom _Grfconfig
14:38:35  <spnda> Would it be ok if I update the visualstudiocode NML generator again so that it exports a plain JSON with every keyword and constant? Or should I just make a python script in my repo that I botch into nml?
14:39:52  <frosch123> TrueBrain: ResetGRFConfig, AppendToGRFConfigList, AppendStaticGRFConfigs, no idea what you need :p i just follow saveload code :)
14:40:17  <TrueBrain> and I was trying to follow the NewGRF GUI
14:40:22  <TrueBrain> which .. does all that manually for most part
14:40:22  <TrueBrain> lol
14:41:01  <frosch123> sounds like a refactor PR :p
14:41:08  <TrueBrain> pass!
14:42:08  <TrueBrain> tnx frosch123 , that was most helpful
14:43:52  <TrueBrain> been doing a bit of C lately .. I like C++ a lot more for its strictness now :P
14:43:54  <TrueBrain> weird times
14:45:17  <TrueBrain> it didn't crash, but it also didn't work :D Lol
14:46:41  <frosch123> i was reading the c++23 feature list yesterday
14:47:01  <frosch123> everytime something from C23 is added for compatibilty, it looks cute
14:47:14  <frosch123> like the new #elifdef
14:47:47  <TrueBrain> they finally going to add elifdef?
14:47:48  <TrueBrain> lol
14:48:24  *** gelignite has joined #openttd
14:49:40  <frosch123> exactly :p
14:49:50  <frosch123> adding stuff noone should really care about anymore
14:49:55  <frosch123> but apparently there are enough C people
14:50:22  <TrueBrain> doing C is fun .. you have to do void a(void) {} again .. the second void always cracks me up :)
14:50:48  <TrueBrain> ha! IT WORKS! I had my GRFID inverted
14:50:48  <TrueBrain> :D
14:51:14  <frosch123> haha, yeah the grfid byteswapping :)
14:51:47  <frosch123> [15:50] <TrueBrain> doing C is fun .. you have to do void a(void) {} again .. the second void always cracks me up :) <- apparently c2x removes "k&r funtion definitions"
14:51:57  <TrueBrain> :o
14:51:57  <FLHerne> spnda: Please update it upstream if it's better :-)
14:52:00  <frosch123> show maybe that "void" becomes unnecessary in future C versions
14:52:23  <frosch123> s/show/so/
14:53:50  <spnda> FLHerne: Well it would export the file it currently does and then another json with just the constants. I use them to provide suggestions in the editor.
14:54:15  <spnda> I could also just edit my GitHub Actions run to also run a python script I have in my repo
14:54:19  <spnda> Would be fairly simple anyway lol
14:54:54  <FLHerne> Is that a normal VS thing, or some cunning hack you've invented?
14:54:59  <spnda> hack
14:55:24  <FLHerne> hm
14:55:30  <spnda> I don't know of any other way one would provide suggestions other than give it a list of keywords/constants
14:55:36  <DorpsGek> [OpenTTD/OpenTTD] TrueBrain opened pull request #9696: Change: [Emscripten] update to 2.0.34 and use Release over RelWithDebInfo https://git.io/J1JR0
14:55:44  <FLHerne> I still don't see why not, if anyone else can use it too
14:55:48  <spnda> and i'd just store that list of values in a json for now
15:01:42  *** andythenorth has quit IRC
15:08:04  <TrueBrain> hmm .. can you open the cheat menu without keyboard shortcut?
15:09:45  <frosch123> no :p
15:10:23  <TrueBrain> hmm, keyboard input is not working at all in emscripten, that is annoying
15:11:39  <spnda> ok actually turns out im too shit in python to figure out how to botch my script in so I guess i'll update it upstream
15:12:27  <TrueBrain> when the game runs in an iframe, keyboard is not getting there .. funny :D
15:19:18  <DorpsGek> [OpenTTD/nml] spnda opened pull request #245: Change: Export keyword JSON for VSCode https://git.io/J1Jal
15:19:20  <spnda> pls merge
15:21:21  <DorpsGek> [OpenTTD/nml] spnda updated pull request #245: Change: Export keyword JSON for VSCode https://git.io/J1Jal
15:32:13  *** glx has joined #openttd
15:32:13  *** ChanServ sets mode: +v glx
15:32:52  *** gelignite has quit IRC
15:35:23  *** EER has joined #openttd
15:37:27  *** Strom has quit IRC
15:39:05  *** Strom has joined #openttd
15:40:13  <glx> wanted to load dmp for #9695, so many symbols to download
15:41:25  <glx> (and that's just to confirm it's a duplicate)
15:41:25  <TrueBrain> lol
15:42:23  <glx> and microsoft did it again, windows 11 version is 10.0
15:43:06  <TrueBrain> frosch123: https://truebrain.github.io/TrueGRF/ <- and this is why I wanted it .. pressing the green buttons now automatically loads the GRF .. just slightly less things to do :)
15:43:11  <TrueBrain> also, updated to 12.1 :D
15:45:30  <frosch123> how do you trigger the "reload newgrf" from the outside?
15:45:37  <TrueBrain> and of course I first made it work with Codespaces .. still not committing that stuff till we know what they plan to do with the price for it :)
15:45:43  <TrueBrain> frosch123: MAGIC! :D
15:45:48  <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #9695: [Crash]: OpenTTD crashes right after I launch it https://git.io/J1f7q
15:45:51  <DorpsGek> [OpenTTD/OpenTTD] glx22 closed issue #9695: [Crash]: OpenTTD crashes right after I launch it https://git.io/J1f7q
15:45:52  <TrueBrain> I wrote an emscripten hook
15:46:26  <frosch123> ah, ok, i thought too complicated :p
15:46:35  <TrueBrain> https://github.com/OpenTTD/OpenTTD/compare/release/12...TrueBrain:truegrf
15:46:58  <frosch123> i assumed there was no interaction, adding the grf would go via command line option, and reloading via emulating a keyboard or something :p
15:47:08  <TrueBrain> :)
15:47:33  <TrueBrain> honestly, initially I wanted to do something like that .. but you cannot access the filesystem Emscripten is running in easily from the outside
15:47:37  <TrueBrain> so this was by far easier :P
15:47:52  <TrueBrain> also allows me to do these nice things, like enabling newgrf developer tools
15:47:57  <TrueBrain> using the same seed
15:47:58  <TrueBrain> etc :)
15:49:11  <TrueBrain> so now I am at the point I wanted to start this morning .. looking into tiles :D
15:58:21  <Eddi|zuHause> that's the best time to stop working :p
15:58:51  <Eddi|zuHause> and the next morning you start over from scratch, because you forgot wtf you were doing last :p
15:58:58  *** andythenorth has joined #openttd
15:59:22  <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #9696: Change: [Emscripten] update to 2.0.34 and use Release over RelWithDebInfo https://git.io/J1JSn
15:59:53  <DorpsGek> [OpenTTD/OpenTTD] TrueBrain merged pull request #9696: Change: [Emscripten] update to 2.0.34 and use Release over RelWithDebInfo https://git.io/J1JR0
16:01:26  *** WormnestAndroid has joined #openttd
16:01:40  <DorpsGek> [OpenTTD/team] glx22 commented on issue #265: [ko_KR] Translator access request https://git.io/J1f1I
16:06:46  *** supermop_Home_ has joined #openttd
16:06:50  <supermop_Home_> yo
16:07:35  <supermop_Home_> in seems on Instagram, a lot of 43s and other ilk are being repainted into old liveries lately?
16:27:06  <frosch123> i was not aware there is train-instagram (trainstagram?), but it makes sense
16:28:37  *** gelignite has joined #openttd
16:37:44  *** Wormnest has joined #openttd
17:07:00  *** Flygon has quit IRC
17:26:47  *** jottyfan has joined #openttd
17:39:09  <TrueBrain> GitHub Copilot works better than I expected .. it kinda does what you expect .. lol
17:39:10  <TrueBrain> weird world
17:42:48  <frosch123> i am sure it was only invented to drive lawyers into insanity
17:43:26  <TrueBrain> I plan to do a bit of TrueGRF work with it, see if it is any good .. but so far it wrote a few functions for me that are kinda what I would have done myself too
17:43:54  <TrueBrain> not sure it actually helps btw
17:43:58  <TrueBrain> typing isn't the issue mostly :P
17:44:51  <frosch123> sometimes i was in the situation to fix code from coworkers
17:45:05  <frosch123> sometimes it's easier to rewrite code, than to review it
17:45:35  <frosch123> for example: when i review code, i do not notice when loop iterators are swapped, not incremented or similar copy&paste shit
17:45:51  <frosch123> when i write the code myself, my autopilot does it right
17:46:56  <frosch123> it's more obvious when people write C89, declare variables at the top, reuse them multiple times, and so on
17:47:07  <frosch123> it's easier to rewrite than to read
17:47:42  <frosch123> i do not trust gh copilot to not do the same thing: create code that looks right, but is stupidly wrong in some detail
17:49:08  <frosch123> i also need an ide, where the autocompletion never suggests things from legacy windows headers :p
17:50:04  <frosch123> sometimes at work, i slightly mistype something, and it autocompletes to some crap from some windows header, which i did not even know existed
17:50:49  <TrueBrain> guess small functions are a must with copilot :P
17:50:51  <TrueBrain> to keep things sane :D
18:30:01  *** spnda has quit IRC
19:27:45  *** jottyfan has quit IRC
19:34:36  <LordAro> i have loaded the TTD save from #9680. So... how is there a presignal? https://pasteboard.co/U9OrLeyAlQM0.png
19:36:16  <frosch123> someone pressed ctrl?
19:36:32  <LordAro> TTD didn't have presignals?
19:36:35  <LordAro> did TTDP?
19:37:19  <FLHerne> Yes
19:37:22  <frosch123> oh, it's an actual ancient savegame?
19:37:28  <LordAro> SV1 and all
19:37:31  <frosch123> but yes, we try our best to convert ttdp saves
19:40:27  <frosch123> LordAro: https://github.com/OpenTTD/OpenTTD/blob/master/src/saveload/oldloader_sl.cpp#L78
19:41:16  <frosch123> the comment on line 85 may refer to the old pbs :p
20:01:19  *** nielsm has quit IRC
20:22:53  *** supermop_Home_ has quit IRC
20:27:33  *** Wuzzy has joined #openttd
20:56:33  <TrueBrain> so for TrueGRF I would need to make a place where you can make the sprites .. so in another place you can select it
20:56:34  <TrueBrain> hmm
20:56:38  <TrueBrain> that is too weird for my taste
20:56:55  <TrueBrain> I wonder what happens if I approach it differently, and take care of all that stuff on the backend
20:57:12  <TrueBrain> like that you can edit the sprites of a single industry only
20:58:16  <frosch123> sharing is mostly for ground sprites
20:58:28  <frosch123> and for different layouts of the same industry
20:58:58  <TrueBrain> owh, right, every tile could have a ground sprite and an actual sprite
20:59:00  <TrueBrain> hmm
20:59:34  <frosch123> important for transparency :)
20:59:53  <frosch123> though ground sprites are often: grass, dirt, concrete
21:00:08  <frosch123> so, maybe a combobox is enough
21:00:13  <TrueBrain> I have to say, I forgot a lot I learned about NewGRFs already :P
21:00:19  <frosch123> select ground sprite from baseset, draw custom building on top
21:00:37  <TrueBrain> yeah, so have a "shared" spriteset you can edit in one place
21:00:50  <TrueBrain> and for an industry, you have sprites per industry (but shared between layouts)
21:01:01  <TrueBrain> you can make a new one, select the ground sprite, and draw your actual sprite
21:01:45  <frosch123> if you are planning to add an actual sprite editor: having sprites from other industries nearby is helpful for maintainnig a colorscheme
21:02:01  <TrueBrai2021-11

Powered by YARRSTE version: svn-trunk