XML:BINA/OBJC/WEAP: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (removing dead link)
m (link fix)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{XML_OBJC_Header | type=CHAR | prev=TURR | next=CHAR | name=Weapon spawn list }}
{{XML_OBJC_Header | prev=TURR | type=WEAP | next=CHAR | name=Weapon}}


==General information==
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* BINACJBOWeapon is level-specific (level''x''_Final.dat).
* There are two ways to spawn weapons:
: A) By using original or custom teleport flags via BSL command, e.g. <tt>weapon_spawn w3_phr 5</tt>
: B) By using this weapon collection file.


===general information===
==XML structure==
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* '''BINACJBOWeapon.oni''' is level specific. (It can be found in AE/AEInstaller/vanilla/level'''X'''_Final.dat)
* There are two ways to spawn weapons.
: A) by using original or custom teleport flags which needs a BSL command, e.g.:
weapon_spawn w3_phr 5
: B) by using this weapon list file
 
===XML structure===
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 18: Line 16:
  </Oni>
  </Oni>


'''''[...]''''' means at least one weapon. Paste all weapon data into there (this includes '''<font color="#0A0"><WEAP Id="..."></font>''' and '''<font color="#0A0"></WEAP></font>''' tag).
'''''[...]''''' means at least one weapon. Paste all your weapon data in there (this includes the '''<font color="#0A0"><WEAP Id="..."></font>'''/'''<font color="#0A0"></WEAP></font>''' tag).


'''example'''
'''Example'''
[[Image:XML_WEAP_modded.jpg|400px|right|thumb]]
[[Image:XML_WEAP_modded.jpg|400px|right|thumb]]


        '''<font color="#0A0"><WEAP Id="8240"></font>'''
'''<font color="#0A0"><WEAP Id="8240"></font>'''
            <Header>
    <Header>
                <Flags></Flags>
        <Flags></Flags>
                <Position>-1519 45 1521</Position>
        <Position>-1519 45 1521</Position>
                <Rotation>180 0 0</Rotation>
        <Rotation>180 0 0</Rotation>
            </Header>
    </Header>
            <OSD>
    <OSD>
                <Class>w14_sbg2</Class>
        <Class>w14_sbg2</Class>
            </OSD>
    </OSD>
        '''<font color="#0A0"></WEAP></font>'''
'''<font color="#0A0"></WEAP></font>'''


 
==Tags==
===tags===
* <Flags>: unknown
* <Flags> : (unknown)
* <Position>: weapon is spawned at this XYZ position (world units as float values)
* <Position> : (weapon is spawned at this xyz-position (world units as float values))
* <Rotation>: weapon has this XYZ rotation (degrees as float values); only X is used
* <Rotation> : (weapon has xyz-rotation (degrees as float values); only x is useful)
* <Class>
* <Class>
:: w1_tap (TCTF pistol)  
:: w1_tap (TCTF pistol)
:: w2_sap (Syndicate uzi)  
:: w2_sap (Syndicate SMG)
:: w3_phr (plasma rifle)  
:: w3_phr (Plasma Rifle)
:: w4_psm (phase stream projector)  
:: w4_psm (Phase Stream Projector)
:: w5_sbg (super ball gun)  
:: w5_sbg (Super Ball Gun)
:: w6_vdg (shocker)  
:: w6_vdg (Van de Graaff Pistol)
:: w7_scc (scram cannon (mini-rockets))  
:: w7_scc (Scram Cannon)
:: w8_mbo (mercury bow)  
:: w8_mbo (Mercury Bow)
:: w9_scr (screamer gun)  
:: w9_scr (Screaming Cell Cannon)
:: w10_sni (Mukade's firework)  
:: w10_sni (Mukade's Devil Star)
:: w11_ba1 (Barabas' gun)  
:: w11_ba1 (Barabas' Wave Motion Cannon)
:: w12_ba2 (-)
:: w12_ba2 (-)
:: (any [[AE:New_weapons|other installed AE or custom weapon]] without file pre- and suffix; e.g. ONWCw24_psr.oni is just called by w24_psr)
:: (any [[AE:New_weapons|other installed AE or custom weapon]] without file prefix and suffix; e.g. ONWCw24_psr.oni is simply referred to by "w24_psr")
:: (ONWC files are stored in level0)
:: (ONWC files are stored in level0)


==Mod Tool addon==
[[Image:xsi_addon_weapon_manager.jpg|thumb|400px|right|Weapon manager.]]


===Mod Tool addon===
With [[Mod_Tool/OniTools_addon|OniTools.xsiaddon]] version 3, you can drag'n'drop BINACJBOWeapon'''.oni''' into the viewport. Add or remove weapons, and edit their position and rotation as if they were real objects. When ready, export the data as BINACJBOWeapon.xml to a folder of your choice.
[[Image:xsi_addon_weapon_manager.jpg|thumb|400px|right|weapon manager]]
 
With [[Mod_Tool#OniTools_addon|OniTools.xsiaddon]] version 3 you can drag'n'drop BINACJBOWeapon'''.oni''' into the viewport.
 
Add or remove weapons, edit position and rotation as if they were real objects.
 
When ready, export the data as BINACJBOWeapon.xml to a folder of your choice.
 


{{XML}}
{{XML}}

Latest revision as of 12:26, 5 April 2021

WEAP : Weapon
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

TURR << Other OBJC >> CHAR

switch to OBD page

General information

  • The XML on this page is based on OniSplit v0.9.61.0.
  • BINACJBOWeapon is level-specific (levelx_Final.dat).
  • There are two ways to spawn weapons:
A) By using original or custom teleport flags via BSL command, e.g. weapon_spawn w3_phr 5
B) By using this weapon collection file.

XML structure

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

[...] means at least one weapon. Paste all your weapon data in there (this includes the <WEAP Id="...">/</WEAP> tag).

Example

XML WEAP modded.jpg
<WEAP Id="8240">
   <Header>
       <Flags></Flags>
       <Position>-1519 45 1521</Position>
       <Rotation>180 0 0</Rotation>
   </Header>
   <OSD>
       <Class>w14_sbg2</Class>
   </OSD>
</WEAP>

Tags

  • <Flags>: unknown
  • <Position>: weapon is spawned at this XYZ position (world units as float values)
  • <Rotation>: weapon has this XYZ rotation (degrees as float values); only X is used
  • <Class>
w1_tap (TCTF pistol)
w2_sap (Syndicate SMG)
w3_phr (Plasma Rifle)
w4_psm (Phase Stream Projector)
w5_sbg (Super Ball Gun)
w6_vdg (Van de Graaff Pistol)
w7_scc (Scram Cannon)
w8_mbo (Mercury Bow)
w9_scr (Screaming Cell Cannon)
w10_sni (Mukade's Devil Star)
w11_ba1 (Barabas' Wave Motion Cannon)
w12_ba2 (-)
(any other installed AE or custom weapon without file prefix and suffix; e.g. ONWCw24_psr.oni is simply referred to by "w24_psr")
(ONWC files are stored in level0)

Mod Tool addon

Weapon manager.

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