Configs now have values
Posted: Mon May 05, 2014 02:54 UTC
I've just committed the changes to switch from using parse_ini_file to a new method of BntFile, called betterParseIni.
It is essentially the same code that TheMightyDude came up with long, long ago, but wrapped into a class, and with a minor change to handle a lack of comments (ha!) in our language files.
This means that now, the schema for gameconfig and languages has been expanded to store the variable types along side the variables themselves. It is half of what is needed to get us to a point where our game configs can hold actual types.
The other half that is needed (but not done yet) is to get the game to type set when it imports these values from the database.
Once that is done, then we can start getting more aggressive about type checking in our equations throughout the game, which should deeply improve overall quality.
It is essentially the same code that TheMightyDude came up with long, long ago, but wrapped into a class, and with a minor change to handle a lack of comments (ha!) in our language files.
This means that now, the schema for gameconfig and languages has been expanded to store the variable types along side the variables themselves. It is half of what is needed to get us to a point where our game configs can hold actual types.
The other half that is needed (but not done yet) is to get the game to type set when it imports these values from the database.
Once that is done, then we can start getting more aggressive about type checking in our equations throughout the game, which should deeply improve overall quality.