XML:BINA/OBJC/PWRU: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:


{{Template:XMLModdingHints}}
{{Template:XMLModdingHints}}
{| border=0 cellspacing=20 cellpadding=0 align=center
| The xml code on this page is based on onisplit '''v0.9.61.0'''
|}


===general notes===
===general notes===
Line 12: Line 15:


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


'''''[...]''''' means at least one powerup. Paste all powerup data into there (this includes '''<font color="#0A0"><Object ...></font>''' and '''<font color="#0A0"></Object></font>''' tag).
'''''[...]''''' means at least one powerup block. Paste all powerup data into there (this includes '''<font color="#0A0"><PWRU Id=""></font>''' and '''<font color="#0A0"></PWRU></font>''' tag).
 


'''example'''
'''example'''
Line 25: Line 29:
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup_preview.png]
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup_preview.png]
|}
|}
         '''<font color="#0A0"><Object Id="8167" Type="PWRU"></font>'''
         '''<font color="#0A0"><PWRU Id="8167"></font>'''
             <Header>
             <Header>
                 <Flags>0</Flags>
                 <Flags></Flags>
                 <Position>-988.235 91.172 1513.963</Position>
                 <Position>-988.235 91.172 1513.963</Position>
                 <Rotation>0 0 0</Rotation>
                 <Rotation>0 0 0</Rotation>
Line 34: Line 38:
                 <Class>Shield</Class>
                 <Class>Shield</Class>
             </OSD>
             </OSD>
         '''<font color="#0A0"></Object></font>'''
         '''<font color="#0A0"></PWRU></font>'''




===XML tags and options===
===XML tags and options===


* <Flags> : (unknown -- seems to be always 0)
* <Flags> : (unknown)
* <Position> : (powerup is spawned at this xyz-position)
* <Position> : (powerup is spawned at this xyz-position)
* <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)
* <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)

Revision as of 12:29, 6 April 2012

BINA/OBCJ/PWRU: powerups

Template:XMLModdingHints

The xml code on this page is based on onisplit v0.9.61.0

general notes

  • BINACJBOPowerUp.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )
  • 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..)