Here's the latest alpha version. Apart from the usual bug fixes (see below for details), there are a couple of more important changes.
The first change is that I have renamed the "Cht: ReloadEngines" sign cheat to "Cht: ResetVehicles", to more properly reflect what it does. That is:
- reloads the updated year of introduction and climate if changed by TTD Alter or new graphics files (e.g. the tempset/arcticset)
- it resets vehicle availability according to the current date
- it re-randomizes the reliabilities (not intended; but a side effect)
- it resets the custom vehicles names; be sure to save them if you want to keep any changes you made since the last save (also a side effect)
All in all it should work a lot more reliably than "Cht: ReloadEngines" did, especially with "electrifiedrailways on", which sometimes had the side effect of converting monorail engines to electric engines or vice versa.
A totally new sign cheat is "Cht: Semaphores 0/1 [tracktype]", which changes all signals to light signals ("Cht: Semaphores 0") or semaphores ("Cht: Semaphores 1"). If you specify an additional number, only that type of track will be converted, e.g. "Cht: Semaphores 0 1" will change all monorail/electrified rail signals to light signals. Note that semaphores will only work if you have "semaphores on" and the latest signals.grf file (which hasn't changed).
Finally, Oskar has added a couple of hotkeys for the other display options. This means there are now the following hotkeys:
- top row of keys from 1 to the end select the construction tool for railway and road construction
- top left key (to the left of the "1" key) toggles the bulldozer
- "t" key toggles transparency
- shift-1 to shift-5 toggle the other display options
Because the hot keys are interpreted according to the keyboard layout, these keys may not be correct for you. In that case, you can modify them using ttdpttxt.dat. I've had to change this slightly from alpha 37, so now there are two lists, one for the DOS versions and one for the Windows version. This is because the DOS and Windows version handle localized keyboard layouts differently. You only need to change the line for your version, DOS or Windows; the other line will be ignored. Here's the format of the lines:
Code: Select all
hotkeylistdos="x !\"º$t%1234567890-=\1e\\\00"
(and similar for the Windows version with hotkeylistwin)
The first four characters are reserved. After this, six characters follow for the six display options that can be changed. Note that the quotation marks and backslashed are escaped with another backslash, so that \" is a single character, as is \\. Finally, you have 12 keys for the construction tool selection, with a 13th key following for toggling the bulldozer.
See also
this message for another explanation.
Usually what you need to put there is just the symbol you have on your key cap, but sometimes it's not so obvious, especially for the DOS version of TTD. If you have trouble getting a hotkey to work properly, you can enable a new hotkey display which shows key code and character everytime you press a key in TTD. For this, set the second character in the hotkey list to a question mark, e.g. make it look like this:
Code: Select all
hotkeylistdos="x? !\"º$t%1234567890-=\1e]\00"
Then run TTD, and press the key you want to be a hotkey. Write down its character and key code. Either should work in the hotkey list, but if the character doesn't work, use the key code. Note again that the ttdpttxt.txt file must be edited using an ISO-8859-1 codepage. This is usually the case for most Windows editors. I will probably remove this display feature in an upcoming version (when we actually need to use the reserved entries).
Currently, only the default keyboard layouts for the American and German versions have been tested; I'd appreciate if people with British, French and Spanish layouts could email me their ttdpttxt.txt files (or at least the hot key list) so I can update the TTDPatch defaults.
I have made one change to mkpttxt.exe: it now automatically determines the language of your TTD executable (gamegfx.exe, ttdx.exe or tycoon.exe) and uses that as default when writing a new ttdpttxt.txt or ttdpttxt.new, instead of always using the american strings as default. Alternatively, you can specify the language number of the command line explicitly, with the options 1=american, 2=english, 3=german, 4=french and 5=spanish, e.g. "mkpttxt 4" will use French strings as default.
All changes in 1.9.1 alpha 38 (April 13, 2003):
- fixed bug with missing intro screen (only multiple mouse cursors displayed) in Win version
- translated the rest of the awk scripts to Perl
- by Oskar: hotkeys for the other display options
- allow showing key codes
- renamed "Cht: Reloadengines" to "Cht: Resetvehicles"
- "Cht: Resetvehicles" should work more reliably now; but it will reset custom vehicle names; be sure to save them if you want to keep them
- "Cht: Resetvehicles" also activates any new graphics that weren't active before
- action 7 no longer affected by "loadallgraphics on"
- mkpttxt now automatically detects the language and uses it for default values
- "Cht: Semaphores 0/1 [tracktype]" to change all signals to light (0) or semaphores (1), optionally only for a particular track type
- fixed bug with trains only unloading first wagon if gradualloading off but feederservices on
- action 4 can change (almost) any arbitrary strings in TTD
- station orientation selection now shows correct track type (but no overhead wire yet)
- fixed the (hopefully) last bug where trains with tenders lost their wagons
- reset all vehicle sprites after loading a game