From: JIRA (f. T. P. ) <ji...@pc...> - 2010-12-16 00:17:09
|
[ http://jira.pcgen.org/browse/NEWTAG-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Parker updated NEWTAG-240: ------------------------------ 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) was: 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. 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) > BODYSTRUCTURE Tokens in equipslot file > -------------------------------------- > > Key: NEWTAG-240 > URL: http://jira.pcgen.org/browse/NEWTAG-240 > Project: New Tag > Issue Type: New Token > Components: GameMode Tag > Reporter: Tom Parker > > 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) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |