Issue #6 was being caused by the setup of a menu being separated across multiple files. The setup of a menu takes the form of:
[19 02]Option A[02 19 02]Option B[02 1C 07 02 11 09 02 AA AA AA 00 BB BB BB 00]@Cancel text[02]
The [02] after "Option A" and "Option B" was being interpreted by CCScriptWriter as the [02] which marks the end of a block, letting CCScriptWriter think it could split this code across files. When that happened, the code was written non-adjacently in the ROM, causing problems. I've modified CCScriptWriter to recognize that if a [02] follows a [19 XX], it does not mark the end of a block.
Issue #6 was being caused by the setup of a menu being separated across multiple files. The setup of a menu takes the form of:
The
[02]
after "Option A" and "Option B" was being interpreted by CCScriptWriter as the[02]
which marks the end of a block, letting CCScriptWriter think it could split this code across files. When that happened, the code was written non-adjacently in the ROM, causing problems. I've modified CCScriptWriter to recognize that if a[02]
follows a[19 XX]
, it does not mark the end of a block.