XML:BINA/OBJC/FLAG: Difference between revisions

From OniGalore
< XML:BINA‎ | OBJC
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 19: Line 19:
'''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 flag data into there (this includes '''<font color="#0A0">FLAG ...></font>''' and '''<font color="#0A0"></FLAG></font>''' tag).


'''example'''
'''example'''


         '''<font color="#0A0"><Object Id="8171" Type="FLAG"></font>'''
         '''<font color="#0A0"><FLAG Id="8171"></font>'''
             <Header>
             <Header>
                 <Flags>0</Flags>
                 <Flags>0</Flags>
Line 41: Line 41:
                 <Notes>compound tower</Notes>
                 <Notes>compound tower</Notes>
             </OSD>
             </OSD>
         '''<font color="#0A0"></Object></font>'''
         '''<font color="#0A0"></FLAG></font>'''
         '''<font color="#0A0"><Object Id="8178" Type="FLAG"></font>'''
         '''<font color="#0A0"><FLAG Id="8178"></font>'''
             <Header>
             <Header>
                 <Flags>0</Flags>
                 <Flags>0</Flags>
Line 54: Line 54:
                 <Notes></Notes>
                 <Notes></Notes>
             </OSD>
             </OSD>
         '''<font color="#0A0"></Object></font>'''
         '''<font color="#0A0"></FLAG></font>'''





Revision as of 14:04, 9 September 2011

BINA/OBCJ/FLAG: spawn/teleport flags; way points

Template:XMLModdingHints

general information

  • BINACJBOFlag.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )


BSL support
Flags can be used for various BSL commands, e.g.

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 flag data into there (this includes FLAG ...> and </FLAG> tag).

example

       <FLAG Id="8171">
           <Header>
               <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>
       </FLAG>
       <FLAG Id="8178">
           <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>
       </FLAG>


tags

  • <Flags> : (unknown)
  • <Position> : (flag is set at this xyz-position)
  • <Rotation> : (flag has xyz-rotation (in degrees))
  • <Color> : (maybe used by "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 BINA/OBJC/PATR: Patrol Path)
  • <Notes> : (space for notes: 128 characters)