Hi everyone,
I had an idea for a fairly simple DKC hack. Basically all I need to do is change a few objects into different objects and change the placement of a few objects. I'd love to use the Donkey Kong Country Resource Editor for this, however, after playing around with the program for a while I realized that this is not feasible due to the bugs that are currently present in the program (like how DKCRE messes up water levels). So, while I have been using DKCRE to help create a visual representation of what my levels should look like, I decided that I would use a hex editor to actually implement the changes in my hack.
Anyway, I found where the objects are stored using Giangurgolo's DKC docs and I have been able to successfully change an object to a different type of object. However, I have run into problems when trying to relocate the objects to different positions.
As you may know, objects in DKC are stored in 8 bytes. The first 2 bytes appear to be a placeholder of some kind. The last 2 bytes specify what the objects is. The 4 bytes in the middle are, according to Giangurgolo's docs, the X and Y coordinates.
The first thing I noticed when looking at the X and Y coordinates in my hex editor is that the values don't seem to correspond with the values shown by DKCRE. For instance, the first Gnawty in the game has the following coordinates in DKCRE:
X: 0215
Y: 0151
But when I look at the Gnawty with my hex editor, I get the following values:
X: 1502
Y: AF00
Can someone help me out with this? Is there a reason the values are different? Is there a formula I can use to convert the DKCRE values to the correct values for use in a hex editor? Any help would be much appreciated.