XML:Adding spawnable characters: Difference between revisions

m
formatting tweak
m (→‎Hex Editing: localized images)
m (formatting tweak)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==XML Tutorial==
Extract the BINACJBOCharacter.oni file as xml.  For example you want to add Muro to Level 1.  Use a GUI to do this, or the CLI command <code>OniSplit.exe extract:xml extractdir path_to\level1_Final\BINACJBOCharacter.oni</code>.  Next extract the BINACJBOCharacter.oni file from the level that contains Muro, such as level19. In the BINACJBOCharacter.xml file search for Muro and you will get this:
Extract the BINACJBOCharacter.oni file as xml.  For example you want to add Muro to Level 1.  Use a GUI or the basic command: OniSplit.exe extract:xml extractdir path_to\level1_Final\BINACJBOCharacter.oni.  Next extract the BINACJBOCharacter.oni file from the level that contains Muro, such as level19. In the BINACJBOCharacter.xml file search for Muro and you will get this:


         <Object Id="8733" Type="CHAR">
         <Object Id="8733" Type="CHAR">
Line 74: Line 73:
         </Object>
         </Object>


Copy this entire section to the level1's BINACJBOCharacter.xml file. At this point you can either adjust the settings of Muro, or keep it as is.  To convert the BINACJBOCharacter.xml file to Oni format use the basic command: OniSplit.exe -create convertdir path_to\BINACJBOCharacter.xml
Copy this entire section to the level1's BINACJBOCharacter.xml file. At this point you can either adjust the settings of Muro, or keep it as is.  To convert the BINACJBOCharacter.xml file to Oni format, use the command <code>OniSplit.exe -create convertdir path_to\BINACJBOCharacter.xml</code>.


==Hex Editing==
==Hex editing version==
You can now add additional characters to any level by simply using a hex editor.
This tutorial was written in the dark ages before XML editing was possible. It's been preserved for historical purposes only.
{{Divhide}}You can now add additional characters to any level by simply using a hex editor.
   
   
The BINACJBOCharacter.oni file in each level has data for each character in that level. If you look at the file with a hex editor, you'll see that the info for each character starts with RAHC and it is 0x224 in size (hex) or 548 bytes.
The BINACJBOCharacter.oni file in each level has data for each character in that level. If you look at the file with a hex editor, you'll see that the info for each character starts with RAHC and it is 0x224 in size (hex) or 548 bytes.
Line 121: Line 121:


For more information on CHAR, look at this page: [[OBD:BINA/OBJC/CHAR]]
For more information on CHAR, look at this page: [[OBD:BINA/OBJC/CHAR]]
{{Divhide|end}}


[[Category:Modding tutorials]]
[[Category:Modding tutorials]]