FIRS Herding Co-op

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
pbrennan
Engineer
Engineer
Posts: 21
Joined: 10 Dec 2016 22:46

FIRS Herding Co-op

Post by pbrennan »

I'm updating the Goal Based City Growth Script for FIRS 3, and have hit a snag which I hope a FIRS developer can help me with.

To retrieve the Industry Type name for Bank (as an example) I use the following line:
typetext = GSText(GSText.STR_INDUSTRYTYPE_BANK);

To get the same for Herding Co-op, what's the correct term to use? All of the following crash the script:
typetext = GSText(GSText.STR_INDUSTRYTYPE_HERDING);
typetext = GSText(GSText.STR_INDUSTRYTYPE_HERDINGCOOP);
typetext = GSText(GSText.STR_INDUSTRYTYPE_HERDINGCOOPERATIVE);
typetext = GSText(GSText.STR_INDUSTRYTYPE_HERDINGCO-OP);

Thanks
pbrennan
Engineer
Engineer
Posts: 21
Joined: 10 Dec 2016 22:46

Re: FIRS Herding Co-op

Post by pbrennan »

It turns out there's a number of new industry types that have non-obvious industry_type string definitions. Blast Furnace, Soda Ash Mine, Electric Arc Furnace, Limestone Mine, ...

Is it possible there's a full list of the new strings? Thx!
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: FIRS Herding Co-op

Post by Alberth »

Devzone repository likely, ie
http://dev.openttdcoop.org/projects/fir ... nglish.lng

Obviously, this is the bleeding edge development revision, for a proper language file of some particular version, select a tag first.
Being a retired OpenTTD developer does not mean I know what I am doing.
agentw4b
Traffic Manager
Traffic Manager
Posts: 216
Joined: 14 Apr 2017 15:51
Location: Czech Republic

Re: FIRS Herding Co-op

Post by agentw4b »

Maybe STR_IND_HERDING_COOP
?!?
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
pbrennan
Engineer
Engineer
Posts: 21
Joined: 10 Dec 2016 22:46

Re: FIRS Herding Co-op

Post by pbrennan »

I've sorted it, thanks. Everything seems to be working. I'd forgotten that I had to add them to the text file in the lang folder as well.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests