XML:BINA/OBJC/PWRU: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (Edition -> AE)
m (no need to mention AE here, is there?)
Line 3: Line 3:
===general notes===
===general notes===
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* '''BINACJBOPowerUp.oni''' is level specific. (It can be found in AE/GameDataFolder/level''XX''_... )
* '''BINACJBOPowerUp.oni''' is level specific. (It can be found in GameDataFolder/level''XX''_Final.dat)
* Reminder: there are two ways to spawn powerups.
* Reminder: there are two ways to spawn powerups.
: A) By using original or [[XML:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".
: A) By using original or [[XML:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".

Revision as of 13:29, 18 April 2013

PWRU : Powerup
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

AKEV << Other file types >> CONS

TMBD << Other BINA >> ONIE

PATR << Other OBJC >> SNDG

switch to OBD page

general notes

  • The xml code on this page is based on onisplit v0.9.61.0
  • BINACJBOPowerUp.oni is level specific. (It can be found in GameDataFolder/levelXX_Final.dat)
  • Reminder: there are two ways to spawn powerups.
A) By using original or custom teleport flags in BSL command "powerup_spawn poweruptype:string flag:int".
B) And of course by using this powerup collection file.


XML structure

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Objects>
       [...]
   </Objects>
</Oni>

[...] means at least one powerup block. Paste all powerup data into there (this includes <PWRU Id=""> and </PWRU> tag).

example

powerup_preview.png

       <PWRU Id="8167">
           <Header>
               <Flags></Flags>
               <Position>-988.235 91.172 1513.963</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <Class>Shield</Class>
           </OSD>
       </PWRU>


XML tags and options

  • <Flags> : (unknown)
  • <Position> : (powerup is spawned at this xyz-position)
  • <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)
  • <Class>
Ammo
EnergyCell
Hypo
Invisibility
Shield
LSI (level specific item; truck keys in level 19, etc..)