I'm back after a while and a game script that worked fine on openttd 12 now shows some warning.
script is still working, and it makes a long time I didn't open the debug screen, hence I was surprise I got warnings now.
I'm very sorry but I forgot a lot of things about squirrel, and I am not sure about everything,
But it looks the {SKIP} does not work anymore as it used to be in the past.
I have probably missed new guideline about {SKIP}
So I need to help to modify my script toward new way of working maybe.
I do have this definition in english.txt
Code: Select all
STR_NOBONUS :{SKIP}
Code: Select all
bonusMsg=GSText(GSText.STR_NOBONUS,0);
Code: Select all
STR_NOBONUS :{COMMA}
if you need context of what STR_TOWN_L1 is, here is the string definition, in english.txt:
Code: Select all
STR_TOWN_L1 :{STRING}{}{STRING1}{}{STRING1}{}{STRING1}
Code: Select all
txt=GSText(GSText.STR_TOWN_L1,head,levelinfo[0],bonusMsg,totalhab);
#head is a single text, no parameter
#levelinfo[0] is a text with one parameter
#bonusMsg is a text with one parameter, that shoud be skip in that case
#totalhab is a text with one parameter.
Please advise.
you help will be greatly appreciated, I would like this old script to continue his live, I will udpate on bananas as soon it's fixed.
Thank you.
note : by the way,
I cannot found api documentation for GSText anymore (https://docs.openttd.org/gs-api/classGSText ?)
I found such comment "many Game Scripts are not using GSText properly." on a bug report (https://github.com/OpenTTD/OpenTTD/issues/12494)
Well... I am willing to use it properly but I we need documentation for that.