Chao edit - X-Hax/SADXModdingGuide GitHub Wiki

Editing Start Pos, Chao Pos, Tree Pos...

If you are here, you are able to load your custom map in-game already and/or you want to improve/fix Chao stuff, good, let’s just do it. Note that editing object or anything Chao related will require coding since everything is hardcoded.

Taking information

Before we start coding, you will have to take information. What information? Well, you probably want to edit the start position of the player or perhaps the trees position etc. Therefore, you need to know WHERE you want to put those. What is the position they will need? There isn’t a thousand ways to do it. Personally, I like to use PKR’s Debug Mode, load my custom garden in-game, and take note of the new position that I want by using Sonic’s current position as a reference. For example, let’s say I want to put a tree there:

image

Using the Debug Mode, we can see that the current XYZ position of Sonic is: -89, 0.0, -55. That is the position that I will use for one of the trees. As you guessed, you have to do that for everything: Chao Spawn (16 pos), Tree (5 pos), Chao Transporter VMU, Chao Warp (2 pos), you will also need to set a new start position for the character for both; when you enter the garden manually, and when you arrive using a warp. Doing all of that will also help you figure out what you want to change. Once you have your notes, we can actually start coding.

Setting your DLL Mod

Coming Soon.........................