Config
Log for #openttd on 16th March 2023:
Times are UTC Toggle Colours
00:18:13  <glx[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1085718630400008282/image.png
00:21:46  <glx[d]> I think I see what happens, enums are actually present after `require` but only the local ones are present at compile time
00:53:24  *** WormnestAndroid has joined #openttd
01:03:38  <glx[d]> all happens at compile time in <https://github.com/OpenTTD/OpenTTD/blob/master/src/3rdparty/squirrel/squirrel/sqcompiler.cpp#L623-L685>, constants (enum included) are replaced by their value, but when const/enum is defined in a required file it doesn't exist at compile time and squirrel assumes it's a variable (local or global) to be resolved at runtime, and that of course fails
01:13:29  <DorpsGek> [OpenTTD/OpenTTD] Monkeycat-nl commented on issue #10153: [Drawback]: Small font is unreadable at default size and most popular screen resolutions. https://github.com/OpenTTD/OpenTTD/issues/10153
01:17:48  *** WormnestAndroid has quit IRC
01:26:45  <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #10153: [Drawback]: Small font is unreadable at default size and most popular screen resolutions. https://github.com/OpenTTD/OpenTTD/issues/10153
01:33:32  *** WormnestAndroid has joined #openttd
01:41:33  *** WormnestAndroid has quit IRC
03:30:14  *** D-HUND has joined #openttd
04:31:41  *** keikoz has joined #openttd
04:33:06  *** WormnestAndroid has joined #openttd
04:41:08  *** WormnestAndroid has quit IRC
04:41:26  *** WormnestAndroid has joined #openttd
06:04:42  *** keikoz has quit IRC
06:16:49  *** Flygon has joined #openttd
06:19:39  *** WormnestAndroid has quit IRC
06:59:31  <GeorgeVB> Does anybody use precombined sprites? https://newgrf-specs.tt-wiki.net/wiki/NML:Railtypes#cite_note-leftout-1
06:59:31  <GeorgeVB> I'm trying to add them to xUSSR rails, but I have no effect. Can someone help?
07:01:15  <GeorgeVB> https://cdn.discordapp.com/attachments/1008473233844097104/1085820057420058704/xussr-rails.nml
07:02:13  <GeorgeVB> https://cdn.discordapp.com/attachments/1008473233844097104/1085820299179733002/xussr-rails.grf
09:19:32  *** aperezdc__ has quit IRC
09:19:35  *** cawal[m] has quit IRC
09:19:35  *** dag[m] has quit IRC
09:19:35  *** glothit7ok[m] has quit IRC
09:19:35  *** ist5shreawf[m] has quit IRC
09:19:35  *** nartir[m] has quit IRC
09:19:35  *** labs[m] has quit IRC
09:19:35  *** natmac[m] has quit IRC
09:19:35  *** olmvnec[m] has quit IRC
09:19:35  *** ookfof[m] has quit IRC
09:19:35  *** pothyurf[m] has quit IRC
09:19:53  <andythenorth[d]> I was looking at pixel fonts
09:20:15  <andythenorth[d]> if we found one with the correct free license we could distribute instead of the opengfx font
09:20:35  <andythenorth[d]> many things about opengfx are great, but the font is bad
09:48:54  *** lezzbehonest[m] has quit IRC
09:49:01  *** johanna[m] has quit IRC
09:49:01  *** josef[m] has quit IRC
09:49:14  *** gelignite has joined #openttd
09:49:15  *** natalie[m] has quit IRC
09:49:15  *** udo[m] has quit IRC
09:52:32  <LordAro> andythenorth[d]: PR pls
10:01:33  <petern> There's only so many ways to fill in a 5 pixel high font, and yet OpenGFX manages to mess it up.
10:12:02  <Xarick> hi
10:18:22  <pickpacket> Xarick: o/
10:19:56  <Xarick> 🙂
10:25:42  <pickpacket> Xarick: I've seen you talk about running into problems with the code here and there. What is it you're working on doing?
10:27:36  <Xarick> right now, I'm testing replacing an enum into a class, because squirrel fails to find them at compile time, if they're in a `require`
10:28:43  <Xarick> hacks!
10:29:12  <Xarick> seems to detect them
10:29:16  <Xarick> if they're class
10:30:46  <pickpacket> I don't know what squirrel is :) but are you working on some specific feature?
10:31:57  <Xarick> squirrel is the language used by AIs and GSs
10:46:45  <dP> A samurai has no goal, only path 🤣
10:54:28  <Xarick> I replaced this <https://github.com/SamuXarick/LuDiAI-AfterFix/blob/master/TrainBuildManager.nut#L214-L220>
10:54:39  <Xarick> with this <https://gist.github.com/SamuXarick/d72426b1f2552ab7e456b4da668b2e39>
10:54:46  <Xarick> and now it works! magic!
10:54:50  <Xarick> a fake enum!
10:59:00  *** D-HUND is now known as debdog
11:16:30  *** ttg has joined #openttd
11:17:41  *** ttg has quit IRC
11:31:35  *** WormnestAndroid has joined #openttd
11:35:16  <glx[d]> Should not be needed, it's a bug in openttd
11:52:12  <LordAro> what's the bug?
23:14:44  <Xarick> anyone has anything to add to that message? I feel sleepy https://www.tt-forums.net/viewtopic.php?p=1259270#p1259270

Powered by YARRSTE version: svn-trunk