News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

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.

martin

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 menuconf.tab, 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
Martin

Frank

the attached menuconf.tab works

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

Dwachs

the problem is the comma:
Quote
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.

martin

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 menuconf.tab in a minute (in Other Paksets - PakHD thread)

Martin

Dwachs

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.

martin