This tutorial will tell you how you add and edit new Zones for your Galaxy!
What is a Zone?
A zone is something like a small level with objects and other things in it. Zones can be easily moved in a Galaxy like a single object, so you can rotate it to give it a Mario Galaxy look, without messing something up, because the Gravity and the other things such as the areas are inside of the Zone! It's also possible to use the same zone multiple times.
Creating a zone:
Ok so before we start, you should be sure, that you have these tools:
-The Zone Template
STEP 1: Adding the folder
Create a folder in the StageData and give it the name of your Zone. Move the Zone template to the folder and give it your zone's name.
STEP 2: Adding to the Zone List
However, this step isn't needed, if you are using Dossun2, so skip this step!
If you believe or not, the ZoneList contains the list of your Galaxy's zones.
Start Whitehole and open the BCSV editor. Now go to Open -> Galaxy -> ZoneList and enter your Galaxy's name. Now add a new row and enter your Zone's name.
STEP 3: Adding to the "UseResource"
Open the BCSV editor again and go to Open -> Galaxy -> UseResource -> common, enter your Galaxy's name.
Now add a new row and enter /StageData/XYZone/XYZoneMap.arc and save. (Where XY is, is your zone's name)
STEP 4: Add new entry to the Scenario Data
The ScenarioData contains the information for the missions and names for the zones. You can add, edit and delete fields from an entry, but you CAN'T edit the entrys itself with Whitehole (yet...?), so we have to make it with a Hex Editor! Dossun2 can add and edit Entries!
First start Dossun2 and select your games folder. Then click on Scenario Editor and select your Galaxy.
A new window will appear. Now move to the Zone Settings and click on Add. Enter now your Zone name and click on OK. Last but not least, click on Save Entry and then Save file. Done!
Please ignore this, because it's a very old and painful way to add this!
The words in a BCSV file are converted to a Hash to save space. We first have to find out the Hash name from our Zone and the Galaxy itself to find the right place.
Open the Hash Calculator in Whitehole and enter your Galaxy's name. Note the calculated Hash. Now enter the name of your Zone and note this Hash as well.
Now start WiiExplorer, open the XYGalaxyScenario.arc inside of your Galaxy's foldername and extract the ScenarioData.bcsv. Start your Hex editor and open the file.
Good, now we can edit the BCSV file... but what is that????
Let's start with the fields. This is the structure from a field:
XX XX XX XX FF FF FF FF YY YY 00 00
XX XX XX XX = Name in Hash FF FF FF FF = ? just leave it so YY YY = Size (add 4 to every new field) 00 = Shift size? Just leave 00 00 = Type. Just leave 00
Now the information for the BCSV itself. It's directly at the start of the file:
YY YY YY YY XX XX XX XX ZZ ZZ ZZ ZZ
YY YY YY YY = Number of fields for every entry (Height)
XX XX XX XX = Number of entries (width)
ZZ ZZ ZZ ZZ = Startadress of the fields (add 12 for every new field)
Alright, in order to add a new field, we find out, where the fields begin. So we search for the Hash name of the Galaxy. Good, now we know, where the fields starts. Now move to the end of the field and add 12 bytes. Now enter your new field:
Perfect! It's almost done!
Move now to the start of the file. We added one entry, so we have to add 1 to the entries and 12 to the startingadress for the fields. Remember, that it's dezimal!
Nice, it's done!
Now save the file, open WiiExplorer again and replace the old file with the new file.
No idea, why this method is here...
STEP 5: Adding to the Level
Now it's all ready. All we have to do now, is adding the Zone to the Galaxy
Open the BCSV editor again and enter to Archive "/StageData/XYGalaxy/XYGalaxyMap.arc" and to File you add "/Stage/jmp/Placement/Common/StageObjInfo" and click on open.