Simutrans Chat Room
Where cool people of Simutrans can meet up.

pakHD v04 games crash when opening "Keyboard Help"

Started by martin, November 12, 2010, 09:27:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hi all,

when trying to open Keyboard Help (keys.txt) in pakHD v04 the game crashes. All other help files open normally. Changing language doesn't help, the behaviour is the same.
Also tried it with pak128, then Keyboard Help opens nicely...

I'm suspecting my, but don't have a clue what to search for. Any help would appreciated.
I can reproduce it with ST1.00, ST102.2 and 102.2.2

Thanks in advance


the attached works

No idea what is broken. Could the comments behind the tool definitions are.


the problem is the comma:
general_tool[14]=,,11             # RoadBuilder, needs parameter: either string with name or number for default way
The # symbol can be used only at the beginning of a line. Simutrans thinks that after the comma in the comment a key is defined to call the tool. The keyboard help window is automatically generated from these key definitions and crashes with this tool, since its definition is not complete: it needs a parameter.

As long as there are no commas in the comment, everything should work.
Parsley, sage, rosemary, and maggikraut.


Thanks for your replies. Dwachs is right, i've replaced the commas (there were two places...) with semicolons and everything works fine now.  I will upload the modified in a minute (in Other Paksets - PakHD thread)



Imho, putting enough commas after the '=' should also work:

general_tool[14]=,,11,,  # comment with a lot of ,,, comma,,s
Parsley, sage, rosemary, and maggikraut.