Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Import ZASM -> Crash

2 replies · 13,254 views · Started 29 May 2017

ZQuest will crash if when the user imports a ZASM script, they enter an invalid filename in the file lister.

[video=youtube_share;h9wGq76O0vw]https://youtu.be/h9wGq76O0vw[/video]

Note than I import ZASM for one of three main reasons:
[LIST=1]
[*]
[*]When a quester provides a quest in which they need me to add an ffc, but they do not apply, or they do not have all of the ZScript files.
[*]When recompiling requires rearranging headers, and importing precompiled ZASM is easier.
[*]When I wish to 'idiot-proof' adding a script; usually ffcs.
[/LIST]

This one is a bug. ffasm.cpp is due for a complete rewrite, but it's not a high priority for me right now (and ZASM will soon be a deprecated feature: still available for "hardcore scripters" but hidden by default from the ZQ GUI).

Fixed this today, in both 2.53 and 2.55. All of the ASM Import file dialogues now use the same file check error routine as importing a C-style script, and I corrected the error handling for them so that they don't have unhandled exceptions.