XML:BINA/OBJC/PWRU: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (...)
m (link fix)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--==want to adds some notes ?==-->
{{XML_OBJC_Header | prev=PATR | type=PWRU | next=TRGV | name=PowerUp}}
==[[OBD:BINA/OBJC/PWRU|BINA/OBCJ/PWRU]]: powerups==
 
===general notes===
==General notes==
* '''BINACJBOPowerUp.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* BINACJBOPowerUp is level-specific (level''x''_Final.dat).
* See [[OBD_talk:BINA/OBJC|HERE]] if you are searching for more general information such as how to handle object coordinates.
* Reminder: there are two ways to spawn powerups.
* Reminder: there are two ways to spawn powerups.
: A) By using original or [[OBD_talk:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".
: A) By using the original or [[XML:BINA/OBJC/FLAG|custom]] teleport flags via the BSL command "powerup_spawn ''poweruptype:string flag:int''".
: B) And of course by using this powerup collection file.
: B) By using this powerup collection file.
 
===XML structure===


==XML structure==
  <?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 your powerup data in there (this includes '''<font color="#0A0"><PWRU Id=""></font>''' and '''<font color="#0A0"></PWRU></font>''' tag).
 
'''Example'''
 
[[Image:XML_OBJC_PWRU.jpg|thumb|200px]]


'''example'''
         '''<font color="#0A0"><PWRU Id="8167"></font>'''
{| border=0 cellspacing=20 cellpadding=0 align=right
|
[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>'''
             <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 31:
                 <Class>Shield</Class>
                 <Class>Shield</Class>
             </OSD>
             </OSD>
         '''<font color="#0A0"></Object></font>'''
         '''<font color="#0A0"></PWRU></font>'''
 
 
===XML tags and options===


* <Flags> : (unknown -- seems to be always 0)
==XML tags and options==
* <Position> : (powerup is spawned at this xyz-position)
* <Flags>: unknown
* <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)
* <Position>: powerup is spawned at this XYZ position
* <Rotation>: powerup has this XYZ rotation in degrees usually not used
* <Class>
* <Class>
:: Ammo
:: Ammo
Line 48: Line 43:
:: Invisibility
:: Invisibility
:: Shield
:: Shield
:: LSI (level specific item; truck keys in level 19, etc..)
:: [[LSI]] (level specific item; truck keys in level 19, etc.)
<!--:: (custom powerups: at least the design should be changeable -- these might be the files you want to look at then (in level 0) (e.g. ballistic ammo): M3GMpowerup_ammo.oni, TXMPglowtex_ammo.oni, TXMPpoweruptex_ammo.oni)-->
 
==Mod Tool addon==
[[Image:xsi_addon_powerups_manager.jpg|thumb|200px|right|Powerups manager]]
 
With [[Mod_Tool/OniTools_addon|OniTools.xsiaddon]] version 1, you can drag'n'drop BINACJBOPowerUp'''.oni''' into the viewport. Add or remove powerups and edit their position and rotation as if they were real objects. When ready, export the data as BINACJBOPowerUp.xml to a folder of your choice.


<!--[[Category:Tutorials]] ?-->
{{XML}}

Latest revision as of 12:25, 5 April 2021

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 >> TRGV

switch to OBD page

General notes

  • The XML on this page is based on OniSplit v0.9.61.0.
  • BINACJBOPowerUp is level-specific (levelx_Final.dat).
  • Reminder: there are two ways to spawn powerups.
A) By using the original or custom teleport flags via the BSL command "powerup_spawn poweruptype:string flag:int".
B) 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 your powerup data in there (this includes <PWRU Id=""> and </PWRU> tag).

Example

XML OBJC PWRU.jpg
       <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 this XYZ rotation in degrees — usually not used
  • <Class>
Ammo
EnergyCell
Hypo
Invisibility
Shield
LSI (level specific item; truck keys in level 19, etc.)

Mod Tool addon

Powerups manager

With OniTools.xsiaddon version 1, you can drag'n'drop BINACJBOPowerUp.oni into the viewport. Add or remove powerups and edit their position and rotation as if they were real objects. When ready, export the data as BINACJBOPowerUp.xml to a folder of your choice.