Details
-
Type:
New Token
-
Status:
Approved
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: GameMode Tag
-
Labels:None
-
Subtype:Token
Description
The equipslots Game Mode file currently has a NUMSLOTS line, which appears like:
NUMSLOTS:DEFAULT HEAD:1 HANDS:2 TORSO:1 LEGS:2 SHIELD:1
This particular line causes a loading exception, because we cannot predict the names of the items appearing before the colon. This creates custom code for us. I would like to propose an alternative syntax:
BODYSTRUCTURE:HEAD <> COUNT:1
BODYSTRUCTURE:HANDS <> COUNT:2
BODYSTRUCTURE:TORSO <> COUNT:1
BODYSTRUCTURE:LEGS <> COUNT:2
BODYSTRUCTURE:SHIELD <> COUNT:1
These items appear on separate lines. <> represents a tab
This syntax will work in parallel with the NUMSLOTS based syntax while the transition is made. (At some point the converter will support game mode files - not sure if I will reach that in 6.0 or not, but the point is that before NUMSLOTS is declared deprecated, we will be able to automatically convert this syntax change)