Extended presence flags/Track Tutorial

From Custom Mario Kart
< Extended presence flags
Revision as of 15:11, 4 February 2020 by Wiimm (talk | contribs) (Created page with "{{XPF Content}} This page is directed to track editors. It describes how to use the new features of the Extended presence flags (XPF). __TOC__ ??? == Examples == Here...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is directed to track editors. It describes how to use the new features of the Extended presence flags (XPF).


???

Examples

Here are some examples to make understanding easier:

Define an object, that is only used by standard code.
  • Set MODE=1 and REFERENCE_ID to value 0x1000 (=always disabled).
Define an object, that is only used by LE-CODE
  • Set MODE=1, set bit 12 of the OBJECT_ID and set REFERENCE_ID to value 0x1001 (=always enabled). LE-CODE will clear bit 12 to make the object valid.
2 alternative objects: 1 for standard code and 1 for LE-CODE
  • Define a standard object. Set MODE=1 and REFERENCE_ID to value 0x2000 (=always disabled).
  • Define a second object. Set MODE=1, set bit 12 of the OBJECT_ID and set REFERENCE_ID to value 0x2001 (=always enabled). LE-CODE will clear bit 12 to make the object valid.
2 alternative objects: 1 for single player at Wii, another for multiple players at Wii.
  • Define a standard object. Set REFERENCE_ID to 0x2101. Define a DEFINITION_OBJECT with CONDITIONS for single player and this id. Set PRESENCE_FLAGS to 0x1001 (MODE=1, 1 player). This object is active for 1 player if running standard code. LE-CODE will activate it based on the CONDITIONS.
  • Define a standard object. Set REFERENCE_ID to 0x2102. Define a DEFINITION_OBJECT with inverted CONDITIONS of above and this id. Set PRESENCE_FLAGS to 0x103e (MODE=1, >1 player). This object is active for 2-4 players if running standard code. LE-CODE will activate it based on the CONDITIONS.
2 alternative objects: 1 for offline and 1 for online.
  • Define a standard object. Set REFERENCE_ID to 0x2201. Define a DEFINITION_OBJECT with CONDITIONS for online only and this id. Set PRESENCE_FLAGS to 0x103f (MODE=1). This object is active if running standard code. LE-CODE will activate it based on the CONDITIONS.
  • Define a standard object and set bit 12 of the OBJECT_ID. Set REFERENCE_ID to 0x2202. Define a DEFINITION_OBJECT with inverted CONDITIONS of above (offline only) and this id. Set PRESENCE_FLAGS to 0x103f (MODE=1). This object is disabled if running standard code. LE-CODE will activate it based on the CONDITIONS.