830
edits
m (cat.d) |
(xml version) |
||
Line 1: | Line 1: | ||
'''Adding characters.''' | '''Adding Spawnable characters.''' | ||
==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: | |||
<Object Id="8733" Type="CHAR"> | |||
<Header> | |||
<Flags>0</Flags> | |||
<Position>-112.0837 1486 -2619.775</Position> | |||
<Rotation>0 171.3265 0</Rotation> | |||
</Header> | |||
<OSD> | |||
<Flags>NotInitiallyPresent Omniscient Boss</Flags> | |||
<Class>muro_generic</Class> | |||
<Name>Muro</Name> | |||
<Weapon /> | |||
<Scripts> | |||
<Spawn /> | |||
<Die>check_death2</Die> | |||
<Combat /> | |||
<Alarm /> | |||
<Hurt /> | |||
<Defeated /> | |||
<OutOfAmmo /> | |||
<NoPath /> | |||
</Scripts> | |||
<AdditionalHealth>0</AdditionalHealth> | |||
<Job> | |||
<Type>None</Type> | |||
<PatrolPathId>0</PatrolPathId> | |||
</Job> | |||
<Behaviors> | |||
<CombatId>0</CombatId> | |||
<MeleeId>30</MeleeId> | |||
<NeutralId>0</NeutralId> | |||
</Behaviors> | |||
<Inventory> | |||
<Ammo> | |||
<Use>1</Use> | |||
<Drop>0</Drop> | |||
</Ammo> | |||
<EnergyCell> | |||
<Use>1</Use> | |||
<Drop>0</Drop> | |||
</EnergyCell> | |||
<Hypo> | |||
<Use>0</Use> | |||
<Drop>0</Drop> | |||
</Hypo> | |||
<Shield> | |||
<Use>0</Use> | |||
<Drop>0</Drop> | |||
</Shield> | |||
<Invisibility> | |||
<Use>0</Use> | |||
<Drop>0</Drop> | |||
</Invisibility> | |||
</Inventory> | |||
<Team>Syndicate</Team> | |||
<InitialAmmo>100</InitialAmmo> | |||
<Alert> | |||
<Initial>Low</Initial> | |||
<Minimal>Low</Minimal> | |||
<JobStarting>Low</JobStarting> | |||
<Investigating>Low</Investigating> | |||
</Alert> | |||
<AlarmGroups>0</AlarmGroups> | |||
<Pursuit> | |||
<Strong>4</Strong> | |||
<Weak>1</Weak> | |||
<StrongSeen>4</StrongSeen> | |||
<WeakSeen>4</WeakSeen> | |||
<Lost>0</Lost> | |||
</Pursuit> | |||
</OSD> | |||
</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 | |||
==Hex Editing== | |||
You can now add additional characters to any level by simply using a hexeditor. | You can now add additional characters to any level by simply using a hexeditor. | ||
edits