Times are UTC Toggle Colours
13:30:45 <andythenorth> thanks so much, I would never have found that ๐ 14:19:50 <locosage> do I need a savegame version bump if I add a new field? 14:20:06 <locosage> need all that miss it to have default value 14:20:38 <locosage> non-zero 14:28:05 <andythenorth> hmm no way to concatenate an arbitrary number of GSText together 14:28:15 <andythenorth> if I substring them, I need a finite number 14:28:20 <locosage> also, what's `@game @pre` annotation doing? especially in game-only function? <https://github.com/OpenTTD/OpenTTD/blob/master/src/script/api/script_company.hpp#L249> 14:30:36 <andythenorth> wonder if horrific recursive substring will work? 14:31:33 <locosage> it should be able to do raw text in master 14:32:38 <andythenorth> I can RAWSTRING 14:32:46 <andythenorth> but I want to format dates without manually formatting them 14:32:47 <Rubidium> locosage: not much more than what `@pre` is doing. I guess the `@api -ai` was missed when adding the documentation/comment 14:32:59 <andythenorth> which means I need to use GSText with {LONGDATE} I think 14:33:21 <locosage> Rubidium: so if I do a new function with -ai I only need @pre? 14:34:44 <Rubidium> yes 14:37:15 <Rubidium> it's only used during the generation of the doxygen documentation, where @game means to only add it when creating the documentation for GS. But with @api -ai it will get excluded when creating the AI documentation, so @api -ai and @game @pre are essentially doing the same but at a different level 14:47:51 *** Wolf01 has joined #openttd 14:57:35 <DorpsGek> [OpenTTD/OpenTTD] zephyris updated pull request #11001: Feature: Transparency option for cost and income indicators https://github.com/OpenTTD/OpenTTD/pull/11001 15:07:13 *** beratsj has joined #openttd 15:07:13 <beratsj> I tried to make 32bpp sprite to 8bpp sprite. but it gave an error like "8bpp file not found". 15:07:13 <beratsj> I did this with `alternativesprites` . can you help me? i am new to this topic 15:37:33 <andythenorth> trying to recurse with GSTEXT 15:38:10 <andythenorth> https://gist.github.com/andythenorth/bd8f4481745589b152b75745a83b0980 15:38:41 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1143569942629843034/image.png 15:38:41 <andythenorth> errors ๐ 15:41:17 <andythenorth> I'm guessing the GSText objects aren't resolved until rendered? 15:41:23 <andythenorth> so the parameters can't be passed like this? 15:51:04 *** Deep3D has quit IRC 16:05:21 <andythenorth> ach clipping to 10 doesn't work either https://gist.github.com/andythenorth/fd3f3ed6e02607291854c69fda4380ef 16:05:32 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1143576698961535087/image.png 16:10:30 <andythenorth> this must be PEBKAC 16:10:47 <andythenorth> I just want a list of dates of arbitrary length 16:13:58 <_glx_> parameters are inlined into the string when passed to openttd 16:15:24 <_glx_> and they are validated during inlining 16:17:04 <andythenorth> seems it's not possible to nest substrings? 16:17:41 <andythenorth> I can do `GSText(GSText.TextWithSubstring, GSText(GSText.Cabbage))` 16:17:58 <andythenorth> but I can't do GSText(GSText.TextWithSubstring, GSText(GSText.Cabbage, date)) 16:18:14 <_glx_> it should work 16:18:43 <_glx_> with the correct `{STRING}` 16:18:49 <andythenorth> must be PEBCAK 16:19:23 <andythenorth> I could avoid all this by recreating the story page every time it needs to update 16:19:30 <andythenorth> but that seems to be slow / prone to crashing 16:19:50 <andythenorth> so I'm trying to update existing story page text fields 16:19:57 <andythenorth> but they need to concatenate strings 16:22:54 *** gelignite has joined #openttd 16:23:58 <andythenorth> tried {RAW_STRING} because I had no better ideas 16:24:01 <andythenorth> fails 16:24:06 <_glx_> when there are less params than expected, missing parameters (0) are inserted, when there are more they are consumed later withoug validation 16:24:44 <andythenorth> I think what I'm trying to do is probably impossible 16:25:02 <andythenorth> nml can do it, but probably it's doing magic 16:26:16 <_glx_> it's doable but you need to be careful with the parameters 16:28:17 <_glx_> substring param count must match the number expected by `{STRINGN}` 16:29:19 <andythenorth> maybe I have an obiwan somewhere 16:29:20 <andythenorth> dunno 16:30:18 <andythenorth> I really wanted to do it recursively ๐ 16:30:23 <_glx_> for `GSText(GSText.TextWithSubstring, GSText(GSText.CabbageWithDate, date))`, `GSText.TextWithSubstring` should have `{STRING1}` 16:30:57 <andythenorth> what? ๐ฎ 16:31:11 <andythenorth> I wish I could find the docs for this ๐ 16:32:18 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1143583437073166346/image.png 16:32:18 <andythenorth> oh I've made it worse ๐ 16:32:26 <andythenorth> `STR_TOWN_STORY_INDUSTRY_REPORT_HISTORY_10_DATES :{STRING1}{STRING2}{STRING3}{STRING4}{STRING5}{STRING6}{STRING7}{STRING8}{STRING9}{STRING10}` 16:33:02 <andythenorth> I don't understand how it's reaching parameter 27, but eh 16:33:15 <andythenorth> there are 10 substrings with 1 parameter each 16:33:29 <andythenorth> composed into a string where the 10 substrings are parameters 16:34:00 <_glx_> but you tell first string consumes 1, second consumes 2, ... 16:35:14 <_glx_> if you have 10 substring consuming 1, use {STRING1} 10 times 16:36:29 <_glx_> and you can't have more than 20 parameters in total 16:37:39 <andythenorth> I wonder where the docs are 16:37:49 <andythenorth> I thought they were in AI wiki page, but I can't find them 16:38:18 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1143584948524154992/image.png 16:38:18 <andythenorth> _glx_: works ๐ฎ 16:38:19 <_glx_> it's using the same format as openttd langfiles 16:38:32 <andythenorth> wonder if I can make the recursive version work 16:38:40 <andythenorth> although max 20 params anyway... 16:40:07 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1143585404080107570/image.png 16:40:07 <andythenorth> recursive version works ๐ฎ 16:42:21 <andythenorth> there's some AddParam API to GSText 16:42:23 <andythenorth> that might be cleaner 16:42:58 <_glx_> yeah you have 2 options for the params 16:43:21 <_glx_> there's also SetParam 16:53:11 *** _aD has joined #openttd 17:03:13 *** HerzogDeXtEr has joined #openttd 17:10:06 *** Deep3D has joined #openttd 17:12:53 <andythenorth> hmm 17:13:10 <andythenorth> if I have 10 dates I need 10 params consuming string1 17:13:16 <andythenorth> but if I have 5 dates 17:13:20 <andythenorth> not sure how to handle that 17:16:06 <andythenorth> I could just do it like grf 17:16:36 <andythenorth> `STR_TOWN_STORY_INDUSTRY_REPORT_HISTORY_1_DATE :{STRING1}` 17:16:36 <andythenorth> through to 17:16:36 <andythenorth> `STR_TOWN_STORY_INDUSTRY_REPORT_HISTORY_10_DATES :{STRING1}{STRING1}{STRING1}{STRING1}{STRING1}{STRING1}{STRING1}{STRING1}{STRING1}{STRING1} 17:16:36 <andythenorth> ` 17:16:42 <andythenorth> then just a big if statement to select it 17:17:05 <andythenorth> I'll do that, life is too short for programming ๐ 17:26:49 <andythenorth> `[2023-08-22 18:26:29] dbg: [script] [18] [S] Your script made an error: unknown error` 17:26:50 <andythenorth> super 17:28:33 <andythenorth> I don't understand the interface to SetParam() 17:28:34 <andythenorth> https://docs.openttd.org/gs-api/classGSText#aad6e6c72605ec8735e550f5a51219b72 17:28:36 <andythenorth> how do I use it? 17:31:19 <andythenorth> seems to be that parameters are indexed to 1, not 0 17:31:23 <andythenorth> that's unexpected 17:40:26 <andythenorth> I guess the first parameter is string ID? 17:41:35 *** Wormnest has joined #openttd 17:47:55 <_zephyris> beratsj: You always need an 8bpp sprite, then you can provide a 32bpp alternate too. You'll probably get better help in Discord channel #add-on-development 18:05:39 <beratsj> Oh thanks 18:39:14 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/4d4a046d23e6e0439c19298ea00e0f9b7aa73958 18:39:15 <DorpsGek> - Update: Translations from eints (by translators) 18:40:40 <DorpsGek> [OpenTTD/OpenTTD] zephyris commented on pull request #11001: Feature: Transparency option for cost and income indicators https://github.com/OpenTTD/OpenTTD/pull/11001#issuecomment-1688727588 18:47:16 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11001: Feature: Transparency option for cost and income indicators https://github.com/OpenTTD/OpenTTD/pull/11001#pullrequestreview-1590084787 19:19:27 <NGC3982> /names 19:19:29 <NGC3982> รถops 19:56:42 *** frosch123 has quit IRC 20:07:50 *** gelignite has quit IRC 20:09:34 *** _aD has quit IRC 21:09:48 *** keikoz has quit IRC 21:31:06 <DorpsGek> [OpenTTD/OpenTTD] ldpl opened pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224 21:33:51 <locosage> th is commit checker on about 21:34:14 <locosage> https://cdn.discordapp.com/attachments/1008473233844097104/1143659423018008739/Screenshot_from_2023-08-23_01-33-31.png 21:34:51 <locosage> https://cdn.discordapp.com/attachments/1008473233844097104/1143659577049624696/Screenshot_from_2023-08-23_01-34-34.png 21:36:23 <DorpsGek> [OpenTTD/OpenTTD] James103 commented on pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224#issuecomment-1688964017 21:38:01 <DorpsGek> [OpenTTD/OpenTTD] ldpl updated pull request #11224: Add: [GS] Allow to set max loan for each company separately https://github.com/OpenTTD/OpenTTD/pull/11224 21:38:26 <locosage> nvm, rogue letter xD 21:44:03 *** berndj has quit IRC 22:26:00 *** HerzogDeXtEr has quit IRC 22:27:16 *** HerzogDeXtEr has joined #openttd 22:27:57 <DorpsGek> [OpenTTD/OpenTTD] Durchbruchswagen opened pull request #11225: Fix #11161: Apply cargo filter to shared groups. https://github.com/OpenTTD/OpenTTD/pull/11225 22:36:51 *** Wolf01 has quit IRC 22:49:11 *** Flygon has joined #openttd 23:18:55 <Eddi|zuHause> i need to urgently close youtube... it lead me from amelie to katjusha, and i'm worried what comes next... 23:34:36 <kamnet> Eddi|zuHause: Upgrade to youTube Premium and it will tell you when to go to bed LOL 23:49:21 <peter1139> Gah I hate docker...