Jump to content

XML:Adding spawnable characters: Difference between revisions

placed hex tutorial behind Divhide; don't want to delete EdT's hard work, but it's also ancient history
m (→‎Hex Editing: localized images)
(placed hex tutorial behind Divhide; don't want to delete EdT's hard work, but it's also ancient history)
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 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:
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:


Line 76: Line 75:
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 basic command: OniSplit.exe -create convertdir path_to\BINACJBOCharacter.xml


==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]]