FS#5819 - Loading of (stable) titlegame discards NewGRF townnames

Attached to Project: OpenTTD
Opened by Alois Mahdal (AloisMahdal) - Tuesday, 26 November 2013, 00:23 GMT
Last edited by frosch (frosch) - Tuesday, 07 March 2017, 20:19 GMT
Type Bug
Category NewGRF
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 1.3.3-RC2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Town name sets can sometimes disappear from the drop-down list in
"Game Options", even after the NewGRF has been activated. This
can be observed right after the game is started, the NewGRF being
activated in previous session.

As a workaround, to make the sets appear on the list again, it's
enough to re-visit the NewGRF Settings dialog (no need to re-activate
the NewGRF file).


1. Remove/rename ~/.openttd
2. Run openttd (allow auto-download
basic GRFs if asked on startup)
3. Download relevant NewGRF using in-game downloader
4. Activate names' NewGRF in "NewGRF Settings" dialog
5. Go to "Game Options" and check that new sets appear on the list
6. Quit the game and start it again
7. Go to "Game Options" and review the name set list. You should see
that the new sets are **missing**.

If, instead of just checking the list, one of sets is actually selected
in the step 5, opening dialog in step 7 reveals that "undefined string"
placeholder is selected where the name would be expected. In such case,
however, the bug does not seem to have direct effect on gameplay--map
would be created with correct names.

The bug was observed on Debian Jessie amd64, with two NewGRFs (did
not test other ones):

* Japan Set Town Names (ID: 45520C00, adds one set called "Japanese")

* Japanese City Names (ID: 736C6602,filename `japanese_city_names-1
/jpcities.grf`, adds three sets, "Japanese (English)", "Japanese
(Hiragana)" and "Japanese (Kanji)")

The bug appears in currently latest version 1.3.3-RC2, as well as version
from official Jessie repos (1.3.2-1).
   jpnames.png (210.8 KiB)
This task depends upon

Closed by  frosch (frosch)
Tuesday, 07 March 2017, 20:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r27772
Comment by Alois Mahdal (AloisMahdal) - Tuesday, 26 November 2013, 15:10 GMT
Adding ~/.openttd folder, stripped of content_download sub-folder to save space.
Comment by frosch (frosch) - Sunday, 26 January 2014, 22:09 GMT
Bug seems to be only present in 1.3 branch, not in trunk.
Comment by frosch (frosch) - Sunday, 26 January 2014, 22:50 GMT
Bug is triggered by not using the trunk titlegame. Using a savegame with newer savegame version for the title game (as in release branches) causes the GRF configuration to be reset before the townnames are scanned.