I have literally patched thousands upon thousands of romhacks & translations and there is always a few "problem patches" with various kinds of issues. Probably the most common issue I think is simply that RHDN &/or the documentation has incorrect information & patching instructions. And I think that's possibly what I'm dealing with here.
I'm trying to patch Chrono Trigger Impossible for the SNES, and I want an exact byte-for-byte copy of what the author intended. So, these SNES patches sometimes require a 512 byte Header, and sometimes they do not. Most of the time, I can simply patch BOTH and see which ones doesn't work. However, in this case, they BOTH work, so I'm at a loss as to which one is actually correct here ?
The
Anyways, this question is both specifically referring to the Impossible mod, as well as all of Chrono Trigger hacks in general (since it's likely that I'm going to encounter this same issue with other CT patches).
Since I've noticed that CDRomance has prepatched ROMs, I was hoping someone here had the technical expertise to help out ?
Otherwise, it looks like I'll be forced to reference the IPS file format and write my own parser that counts the number of writes (in bytes) it's making and compare that with the above differences ?
Thanks,
Euro
Based on https://zerosoft.zophar.net/ips.php
And:
I'm guessing that the Unheadered ROM is the correct one to use ?
Despite the patching instructions saying to use a Headered ROM ?
I'm trying to patch Chrono Trigger Impossible for the SNES, and I want an exact byte-for-byte copy of what the author intended. So, these SNES patches sometimes require a 512 byte Header, and sometimes they do not. Most of the time, I can simply patch BOTH and see which ones doesn't work. However, in this case, they BOTH work, so I'm at a loss as to which one is actually correct here ?
The
ips
patch is 4415 bytes. The Headered version produces a difference of 1120 bytes with CRC-32 9892127E
(header removed after patching), while the Headerless version has a difference of 1742 bytes with a CRC-32 of 31F48D0A
. And between them, there's a 2715 byte difference.Anyways, this question is both specifically referring to the Impossible mod, as well as all of Chrono Trigger hacks in general (since it's likely that I'm going to encounter this same issue with other CT patches).
Since I've noticed that CDRomance has prepatched ROMs, I was hoping someone here had the technical expertise to help out ?
Otherwise, it looks like I'll be forced to reference the IPS file format and write my own parser that counts the number of writes (in bytes) it's making and compare that with the above differences ?
Thanks,
Euro
Post automatically merged:
Based on https://zerosoft.zophar.net/ips.php
And:
Bash:
#!/bin/bash
file="patch.ips";
eof="454F46";
declare -i index=5;
declare -i count=0;
while true
do
offset=$(xxd -ps -s ${index} -l 3 "${file}");
index+=3;
size=$(xxd -ps -s ${index} -l 2 "${file}");
index+=2;
data=$(xxd -ps -s ${index} -l 0x${size} "${file}");
index+=0x${size};
count+=0x${size};
echo "--------------------";
printf "index: '%x'\n" ${index};
printf "offset: '%x'\n" 0x${offset};
printf "size: '%x'\n" 0x${size};
echo "data: '${data}'";
echo "count: '${count}'";
if [ -z "$data" ]; then break; fi;
done
echo "--------------------";
echo "count: '${count}'";
exit 0;
I'm guessing that the Unheadered ROM is the correct one to use ?
Despite the patching instructions saying to use a Headered ROM ?
Last edited: