what has changed in 0.2.x in respect to the string table stuff?
ottd compiled perfectly ok with 0.1.x and I updated the source to 0.2 and I get 200+ errors saying the STR_XXXXXX_XXXXX stuff is undeclared.
I obviously need to include some new file but what is it?
[edit] I ran strgen and I copied the .lng file so that's not it.
string errors when compiling 0.2.x
Moderator: OpenTTD Developers
string errors when compiling 0.2.x
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
strgen, when invoked with no parameters, generates table/strings.h which is the file you're missing and is also the reason for all those errors.
http://sf.net/projects/openttd/
Post all your patches and feature requests here.
Post all your patches and feature requests here.
ah yes I found the strings.h, but it was already included in the project.
all the strings in strings.h have the STR_number_XXXXXXX format, and those compile fine. (the strings.h was already in the 0.1.x too, and that compiles!)
I get errors like:
those are not in strings.h
all the strings in strings.h have the STR_number_XXXXXXX format, and those compile fine. (the strings.h was already in the 0.1.x too, and that compiles!)
I get errors like:
Code: Select all
D:\code\openttd\engine.c(45) : error C2065: 'STR_SV_EMPTY' : undeclared identifier
D:\code\openttd\players.c(278) : error C2065: 'STR_SV_UNNAMED' : undeclared identifier
D:\code\openttd\strings.c(66) : error C2065: 'STR_CURR_POUNDS' : undeclared identifier
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
They are in mine, so you probably have an outdated english.txt.
Get the latest and run strgen again to get the new strings.h.
Get the latest and run strgen again to get the new strings.h.
http://sf.net/projects/openttd/
Post all your patches and feature requests here.
Post all your patches and feature requests here.
ah that was it!
I had apparently forgotten to copy the new language .txt files
thanks
I had apparently forgotten to copy the new language .txt files

thanks

Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
Who is online
Users browsing this forum: Ahrefs [Bot] and 17 guests