tl;dr
All you need to do to my menu overhaul files to make them work with hext launch is remove the global values. Any lines that start
-400C00
-401400
-401600
Should be deleted.
Any that start:
21C = 60
21F = E0
Need deleting also and the following adding in their place instead:
{change permissions up to 00915FFF}
00913340:11455
I suggest you don't do that, because changes as large as this really are best off being made to the actual file.
=====================
HextEdit is for changing files, the same way launch is for changing memory. To make launch hext files work with Hextedit (and thus change the exe), you need to add global values, that convert between the two.
For example, if the memory address is 76F920
You would use
-400C00
76F920
Anything after -400C00 would have that value deducted from its address, turning it into a file offset and not a memory offset. Unfortunately, it isn't as simple as ONE global address. FF7 has different offsets depending on address. So you will need add them as follows:
If your memory address lies within:
00401000 to 007B5FFF: Global Value is -400C00
007B6000 to 007B9FFF: Global Value is -401400
007BA000 to 00F50FFF: Global Value is -401600
00F51000 and above: Global Value is -9B5600
See the readme on Hext in DLPB Tools 2.0
The following is an example of making Dziugo's GYPT go from memory to file.
Every address falls between 401000 and 7B5FFF
so you only need to add -400C00.
Code: [Select]
Code:
-400C0000417BD9 = 85 C0 74 3C 90 90 8B 08 50006767D9 = 68 A2 00 00 00 FF 15 14 63 7B 00 83 E0 FE 74 4B006767E9 = 8B 45 10 83 F8 53 74 26 83 F8 44 74 30 83 F8 51006767F9 = 75 39 8B 45 FC 8B 8800676800 = 5C 0A 00 00 85 C9 74 04 50 FF D1 58 33 C9 41 8900676810 = 88 54 0A 00 00 EB 1D 33 C0 40 A3 10 10 9A 00 A300676820 = 14 10 9A 00 EB 0E 33 C0 66 A3 D4 0D CC 00 90 9000676830 = 90 90 90 90
Please note that HextEdit uses line 1 for the target file.
Also note that going from file addresses to memory is the same thing except the Global Value becomes an addition, not subtraction.
In other words:
00000400 to 003B4BFF: Global Value is +400C00
003B4C00 to 003B89FF: Global Value is +401400
003B8A00 to 0059B9FF: Global Value is +401600
0059BA00 and above: Global Value is +9B5600