XML:BINA/OBJC/CONS: Difference between revisions

m
osv update, too bad that -help enum was and is cut of in pc version, so possible changes in events remain unchecked
mNo edit summary
m (osv update, too bad that -help enum was and is cut of in pc version, so possible changes in events remain unchecked)
Line 11: Line 11:




'''XML structure'''
'''XML structure'''<br>for onisplit 0.9.59.0
  <?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 console. Paste all console data into there (this includes '''<font color="#0A0"><Object ...></font>''' and '''<font color="#0A0"></Object></font>''' tag).
'''''[...]''''' means at least one console. Paste all console data into there (this includes '''<font color="#0A0"><CONS Id="..."></font>''' and '''<font color="#0A0"></CONS></font>''' tag).




Line 27: Line 27:
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/console.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/console_preview.png]
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/console.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/console_preview.png]
|}
|}
         '''<font color="#0A0"><Object Id="8179" Type="CONS"></font>'''
         '''<font color="#0A0"><CONS Id="8179"></font>'''
             <Header>
             <Header>
                 <Flags>9</Flags>
                 <Flags>9</Flags>
Line 44: Line 44:
                 </Events>
                 </Events>
             </OSD>
             </OSD>
         '''<font color="#0A0"></Object></font>'''
         '''<font color="#0A0"></CONS></font>'''




'''tags'''
'''tags'''
* <Flags> : (9 and 8 are used in compound)
* <Flags> :
: Locked (hex: 1)
: Gunk (means what?) (hex: 8)
* <Position> : (console is spawned at this xyz-position)
* <Position> : (console is spawned at this xyz-position)
* <Rotation> : (console is spawned with this xyz-rotation (in degrees))
* <Rotation> : (console is spawned with this xyz-rotation (in degrees))
Line 55: Line 57:
* <Flags> :  
* <Flags> :  
:HEX=Dec/Flag
:HEX=Dec/Flag
:00 = 0 (not active)
:00 = (empty)(not active)
:01 = 1 (unknown)
:01 = 1 (unknown)
:02 = 2 (unknown)
:02 = 2 (unknown)
:04 = 4 (unknown)
:04 = 4 (unknown)
:08 = Active
:08 = InitialActive
:<font color="#777">09 = 9 (*)</font>
:<font color="#777">09 = 9 (*)</font>
:10 = 16 (unknown)
:10 = 16 (unknown)
:20 = UsePunchAnimation (KONOKOconsole_punch.TRAM .. WTF O_o Seems to be a KONCOMcomb_p copy but slightly slower; I think it was used in a beta to crash the console via character-environment collision, shall we try to get it back?)
:20 = Punch (KONOKOconsole_punch.TRAM .. WTF O_o Seems to be a KONCOMcomb_p copy but slightly slower; I think it was used in a beta to crash the console via character-environment collision, shall we try to get it back?)
:28 = Active UsePunchAnimation
:28 = InitialActive Punch
:40 = AlarmConsole
:40 = IsAlarm
:80 = 128 (unknown)
:80 = 128 (unknown)
:<font color="#777">C0 = 192 (*)</font>
:<font color="#777">C0 = 192 (*)</font>
:<font color="#777">EE = 238 (*)</font>
:<font color="#777">EE = 238 (*)</font>
: * not tested, might screw everything, was only set to test the XML export
: * not tested, might screw everything, was only set to test the XML export
:Multible flags:
:Multiple flags:
::known flag and unknown flag are extracted as decimal number added together (see 9)
::known flag and unknown flag are extracted as decimal number added together (see 9)
::known flags are extracted as readable flags, separated by a space sign (see 28)
::known flags are extracted as readable flags, separated by a space sign (see 28)
Line 76: Line 78:
* <EnabledTexture> : _con_ALARM_SLEEP / _con_INFO / _con_MTC_2 / _con_mtc_stairs / _con_MTCOM_DISH / _con_MTCOM_DISH / <font color="#777">(etc.)</font>
* <EnabledTexture> : _con_ALARM_SLEEP / _con_INFO / _con_MTC_2 / _con_mtc_stairs / _con_MTCOM_DISH / _con_MTCOM_DISH / <font color="#777">(etc.)</font>
* <UsedTexture> : _con_ALARM_ON / _con_USED / _con_used / _con_MTC_DISHFLASH / <font color="#777">(etc.)</font> (custom textures should be possible)
* <UsedTexture> : _con_ALARM_ON / _con_USED / _con_used / _con_MTC_DISHFLASH / <font color="#777">(etc.)</font> (custom textures should be possible)
* <Events>
* <Events> (from v52, not checked for higher onisplit versions)
: <Script Function="calling_this_BSL_function" />
: <Script Function="calling_this_BSL_function" />
: <ActivateTurret TargetId="''Id''" />
: <ActivateTurret TargetId="''Id''" />
8,189

edits