String parameters limit in lang files

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
Yorki
Engineer
Engineer
Posts: 1
Joined: 04 Feb 2022 18:23

String parameters limit in lang files

Post by Yorki »

Hi,

I'm in progress of developing some game script for city growth. However as you know you can only put one text in city window which makes it having many parameters. Just wonder why limit is hardcoded to 20? Any reasons behind this?

Another question is about special strings, is there way to put your own string generated in game script via parameter? Eg. I generate team names in game script and want to use it in GSText, but these names are random each time.
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: String parameters limit in lang files

Post by Eddi »

hardcoded limits are usually rooted deep in the history of the game, possibly dating back to the original from 1994.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google [Bot], tramrider and 2 guests