Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling a new challenge.chl file
#6
You're right about Land 2. I didn't notice any other problems, though.
That last part of the challenge.chl file is, actually, important.
The original LandControlAll.txt has this:
Code:
    load map "scripts/land2.txt"
In CHLEX's version the same part is this:
Code:
    pshi    0x29A0
    sys    0x98
0x29A0 is the offset from the beginning of that last part to the string "scripts/land2.txt".
"scripts/land2.txt" isn't in the disassembled files at all.
So, CHLEX isn't perfect, it doesn't recognize the difference between a simple integer and an offset into that last part.
I doubt that CHASM supports such strings in the code.
It, probably, isn't perfect, either.
Disassembling and assembling the file doesn't damage those offsets, though, so simply duplicating the original file's last part into the new file would restore the lost data.
I made a simple program to do that.
You should be able to add your own strings at the end of that last part by using a HEX editor and correcting the size of that last part, which is 10855 (67 2A 00 00) by default, to use them in your own code by specifying offsets to them.


Attached Files
.zip   bawsiteCHLLastPartCopier.zip (Size: 8.88 KB / Downloads: 4)
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: 1 Guest(s)