Difference between revisions of "Extended presence flags/Implementation Hints"

From Custom Mario Kart
Jump to navigation Jump to search
(Created page with "This page consists of implementation hints for KMP tool creators and maintainers especially to support the extended presence flags. __TOC__ == Introduction == ???...")
 
Line 5: Line 5:
  
 
== Introduction ==
 
== Introduction ==
???
+
 
 +
The '''[[Extended presence flags]]''' expands the usage of [[KMP]] section [[KMP#GOBJ|GOBJ]]: It uses usually unused bits of the object_id and of the [[presence_flag]]s. Additional a padding member is used.
 +
 
 +
The issues with most [[KMP]] tools (except [[Wiimms SZS Tools]] and [[SZS Modifier]]) are:
 +
* The ignore the 16-bit padding at offset 2 completely: They don't scan it, the don't allow to edit it, and the always store value 0.
 +
* Some tools manage the object_id. The don't accept the additional bits and clear them or clear the complete object_id.
 +
The following section describes, how to fix it.
  
 
== Mandatory updates ==
 
== Mandatory updates ==

Revision as of 17:57, 22 January 2020

This page consists of implementation hints for KMP tool creators and maintainers especially to support the extended presence flags.


Introduction

The Extended presence flags expands the usage of KMP section GOBJ: It uses usually unused bits of the object_id and of the presence_flags. Additional a padding member is used.

The issues with most KMP tools (except Wiimms SZS Tools and SZS Modifier) are:

  • The ignore the 16-bit padding at offset 2 completely: They don't scan it, the don't allow to edit it, and the always store value 0.
  • Some tools manage the object_id. The don't accept the additional bits and clear them or clear the complete object_id.

The following section describes, how to fix it.

Mandatory updates

???

Nice-to-have updates

???

Workaround the padding bug with Wiimms SZS Tools

???