XML:BINA/OBJC/FLAG: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
m (.. complete)
 
m (link fix)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=[[OBD:BINA/OBJC/FLAG|BINA/OBCJ/FLAG]]: spawn/teleport flags; way points=
{{XML_OBJC_Header | prev=DOOR | type=FLAG | next=MELE | name=Flag}}
'''general information'''
* '''BINACJBOFlag.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* See [[OBD_talk:BINA/OBJC|HERE]] if you are searching for more general information such as how to handle object coordinates.


==General information==
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* A BINACJBOFlag is level-specific (level''x''_Final.dat).


'''BSL support'''
==BSL support==
Flags can be used for various BSL commands, e.g.
Flags can be used for various BSL commands such as:
  ai2_movetoflag
  ai2_movetoflag
  chr_facetoflag
  chr_facetoflag
Line 15: Line 14:
  weapon_spawn
  weapon_spawn


 
==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 flag. Paste all flag data into there (this includes '''<font color="#0A0"><Object ...></font>''' and '''<font color="#0A0"></Object></font>''' tag).
'''''[...]''''' means at least one flag. Paste all your flag data into there (this includes the '''<font color="#0A0">FLAG ...></font>'''/'''<font color="#0A0"></FLAG></font>''' tag).
 
==Example==
'''<font color="#0A0"><FLAG Id="8171"></font>'''
    <Header>
        <Flags></Flags>
        <Position>-590.5805 45 -136.398453</Position>
        <Rotation>0 178.032745 0</Rotation>
    </Header>
    <OSD>
        <Color>0 255 0</Color>
        <Prefix>19800</Prefix>
        <FlagId>77</FlagId>
        <Notes>compound tower</Notes>
    </OSD>
'''<font color="#0A0"></FLAG></font>'''
'''<font color="#0A0"><FLAG Id="8178"></font>'''
    <Header>
        <Flags></Flags>
        <Position>-182.715027 -75 -2222.97729</Position>
        <Rotation>359.9998 0.6400126 359.999817</Rotation>
    </Header>
    <OSD>
        <Color>112 13 111</Color>
        <Prefix>17476</Prefix>
        <FlagId>100</FlagId>
        <Notes></Notes>
    </OSD>
'''<font color="#0A0"></FLAG></font>'''


'''example'''
==Tags==
* <Flags>: obsolete
* <Position>: flag is at this XYZ position
* <Rotation>: flag has this XYZ rotation in degrees
* <Color>: maybe used by BSL "show_flags" command
* <Prefix>: the ASCII characters and hex values are merged into one integer, meant to create flag groups<!--; in compound level: 17476 always appears with color 112 12 111, and 19800 always with 0 255 0-->)
* <FlagId>: used by BSL commands and other files like [[XML:BINA/OBJC/PATR|PATR]] (Patrol Path)
* <Notes>: space for notes (up to 128 characters)


        '''<font color="#0A0"><Object Id="8171" Type="FLAG"></font>'''
==Mod Tool addon==
            <Header>
[[Image:xsi_addon_flag_manager.jpg|thumb|200px|right|The flag manager.]]
                <Flags>0</Flags>
                <Position>-590.5805 45 -136.398453</Position>
                <Rotation>0 178.032745 0</Rotation>
            </Header>
            <OSD>
                <Color>0 255 0</Color>
                <Prefix>19800</Prefix>
                <FlagId>77</FlagId>
                <Notes>compound tower</Notes>
            </OSD>
        '''<font color="#0A0"></Object></font>'''
        '''<font color="#0A0"><Object Id="8178" Type="FLAG"></font>'''
            <Header>
                <Flags>0</Flags>
                <Position>-182.715027 -75 -2222.97729</Position>
                <Rotation>359.9998 0.6400126 359.999817</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>100</FlagId>
                <Notes></Notes>
            </OSD>
        '''<font color="#0A0"></Object></font>'''


With [[Mod_Tool/OniTools_addon|OniTools.xsiaddon]], you can drag'n'drop BINACJBOFlag'''.oni''' into the viewport. Add or remove flags, edit position and rotation as if they were real objects. When ready, export the data as BINACJBOFlag.xml to a folder of your choice.


'''tags'''
{{XML}}
* <Flags> : (unknown)
* <Position> : (flag is set at this xyz-position)
* <Rotation> : (flag has xyz-rotation (in degrees))
* <Color> : (maybe used by [http://ssg.oni2.net/commands.htm#dev-iscreen "show_flags"])
* <Prefix> : (unknown; in compound level: 17476 always appears with color 112 12 111, and 19800 always with 0 255 0)
* <FlagId> : (used by BSL commands and other files like [[OBD:BINA/OBJC/PATR|BINA/OBJC/PATR]]: Patrol Path)
* <Notes> : (space for notes: 128 characters)

Latest revision as of 12:22, 5 April 2021

FLAG : Flag
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

DOOR << Other OBJC >> MELE

switch to OBD page

General information

  • The XML on this page is based on OniSplit v0.9.61.0.
  • A BINACJBOFlag is level-specific (levelx_Final.dat).

BSL support

Flags can be used for various BSL commands such as:

ai2_movetoflag
chr_facetoflag
chr_teleport
powerup_spawn
target_set
weapon_spawn

XML structure

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

[...] means at least one flag. Paste all your flag data into there (this includes the FLAG ...>/</FLAG> tag).

Example

<FLAG Id="8171">
   <Header>
       <Flags></Flags>
       <Position>-590.5805 45 -136.398453</Position>
       <Rotation>0 178.032745 0</Rotation>
   </Header>
   <OSD>
       <Color>0 255 0</Color>
       <Prefix>19800</Prefix>
       <FlagId>77</FlagId>
       <Notes>compound tower</Notes>
   </OSD>
</FLAG>
<FLAG Id="8178">
   <Header>
       <Flags></Flags>
       <Position>-182.715027 -75 -2222.97729</Position>
       <Rotation>359.9998 0.6400126 359.999817</Rotation>
   </Header>
   <OSD>
       <Color>112 13 111</Color>
       <Prefix>17476</Prefix>
       <FlagId>100</FlagId>
       <Notes></Notes>
   </OSD>
</FLAG>

Tags

  • <Flags>: obsolete
  • <Position>: flag is at this XYZ position
  • <Rotation>: flag has this XYZ rotation in degrees
  • <Color>: maybe used by BSL "show_flags" command
  • <Prefix>: the ASCII characters and hex values are merged into one integer, meant to create flag groups)
  • <FlagId>: used by BSL commands and other files like PATR (Patrol Path)
  • <Notes>: space for notes (up to 128 characters)

Mod Tool addon

The flag manager.

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