Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling a new challenge.chl file
#8
The HEX editing step is just for cases when a custom string would be needed, for example if you would want to add an additional map between Land 1 and Land 2.
There should be no need for it otherwise.

I checked, there really is a problem with throwingstones.txt.
Line 249:
Code:
    until End>0
It made an instruction that was disassembled by CHLEX as this:
Code:
lbl1482:
    jmp    lbl1482
Which is an obvious endless loop, which is what seems to actually happen instead of a crash.
It is assembled by CHASM as something different from what there originally was, so it was supposed to be something else.
The instruction begins at the address 1331888.
The difference is at the address 1331892. In the original version there is "0", in CHASM's version there is "1".
Overwriting that "1" with "0" seems to fix the problem with this specific quest.
But this quest has this problem at more than one location.
Line 379:
Code:
        until End>0
It made an instruction that was disassembled by CHLEX as this:
Code:
lbl149D:
    jmp    lbl149D
The instruction begins at the address 1343328.
The difference is at the address 1343332.
Overwriting both of the "1" with "0" seems to fully fix this specific quest.

The same problem is at 11 other instructions.
List of addresses with the difference:
Code:
434472
436092
437712
439332
440952
442572
1005812
1331892
1343332
1584812
1587292
1680432
1917472

There are 51 other bytes that are different, but they are not of the instructions, so, hopefully, they aren't causing any problems.
If those 51 other bytes aren't causing any problems, then there should be only 13 locations with problems.
So, at most, only 12 quests have the problem. I doubt that there are only 12 quests. Some should be fine.

I made a simple program that can automatically find these endless loops and fix them.


Attached Files
.zip   bawsiteCHLEndlessLoopFixer.zip (Size: 8.74 KB / Downloads: 3)
Reply


Messages In This Thread
Compiling a new challenge.chl file - by Shane - 04-17-2019, 21:55
RE: Compiling a new challenge.chl file - by . - 04-18-2019, 21:52
RE: Compiling a new challenge.chl file - by . - 04-20-2019, 23:42
RE: Compiling a new challenge.chl file - by . - 04-21-2019, 20:12
RE: Compiling a new challenge.chl file - by . - 04-27-2019, 21:13
RE: Compiling a new challenge.chl file - by . - 04-28-2019, 22:08
RE: Compiling a new challenge.chl file - by . - 04-29-2019, 21:17

Forum Jump:


Users browsing this thread: 3 Guest(s)