Author Topic: pakHD v04 games crash when opening "Keyboard Help"  (Read 1811 times)

0 Members and 1 Guest are viewing this topic.

Offline martin

  • Web Team
  • Devotee
  • *
  • Posts: 65
  • Total likes: 0
  • Helpful: 4
  • Languages: EN, NL, DE
pakHD v04 games crash when opening "Keyboard Help"
« 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

Offline Frank

Re: pakHD v04 games crash when opening "Keyboard Help"
« Reply #1 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4279
  • Total likes: 195
  • Helpful: 149
  • Languages: EN, DE, AT
Re: pakHD v04 games crash when opening "Keyboard Help"
« Reply #2 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.
Parsley, sage, rosemary, and maggikraut.

Offline martin

  • Web Team
  • Devotee
  • *
  • Posts: 65
  • Total likes: 0
  • Helpful: 4
  • Languages: EN, NL, DE
Re: pakHD v04 games crash when opening "Keyboard Help"
« Reply #3 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

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4279
  • Total likes: 195
  • Helpful: 149
  • Languages: EN, DE, AT
Re: pakHD v04 games crash when opening "Keyboard Help"
« Reply #4 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
Parsley, sage, rosemary, and maggikraut.

Offline martin

  • Web Team
  • Devotee
  • *
  • Posts: 65
  • Total likes: 0
  • Helpful: 4
  • Languages: EN, NL, DE
Re: pakHD v04 games crash when opening "Keyboard Help"
« Reply #5 on: November 14, 2010, 09:09:20 PM »
I think I'll stick with the semicolons   ;D