The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: martin on November 12, 2010, 09:27:29 PM

Title: pakHD v04 games crash when opening "Keyboard Help"
Post by: martin on November 12, 2010, 09:27:29 PM
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
Title: Re: pakHD v04 games crash when opening "Keyboard Help"
Post by: Frank on November 13, 2010, 01:17:22 PM
the attached menuconf.tab works

No idea what is broken. Could the comments behind the tool definitions are.
Title: Re: pakHD v04 games crash when opening "Keyboard Help"
Post by: Dwachs on November 13, 2010, 01:23:57 PM
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.
Title: Re: pakHD v04 games crash when opening "Keyboard Help"
Post by: martin on November 13, 2010, 09:15:58 PM
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
Title: Re: pakHD v04 games crash when opening "Keyboard Help"
Post by: Dwachs on November 14, 2010, 07:27:11 AM
Imho, putting enough commas after the '=' should also work:
Code: [Select]
general_tool[14]=,,11,,  # comment with a lot of ,,, comma,,s
Title: Re: pakHD v04 games crash when opening "Keyboard Help"
Post by: martin on November 14, 2010, 09:09:20 PM
I think I'll stick with the semicolons   ;D