Getting Further

posted in A Keyboard and the Truth for project 96 Mill
Published November 09, 2005
Advertisement
ildave1 finished the Message class last night, it works really nice, by showing and logging all of the messages (and the choices made from them) that the program encounters, the log format is in color-coded HTML. It is likely in the future we will add a 'submit this error for support' HTML form to the log too, so that a user has an clear channel to get support.

Last night I added some nice top-level methods for manipulating boot.conf (which is XML and acts as the game configuration file)

The methods are:

bool initBootConf(void); //called during engine init, loads file and seeks common properties

string getBootParam(string key); //used to seek a parameter from the boot file, key is a dot-notation string

e.g.

string width=getBootParam("screenFormat.width");


void setBootParam(string key,string value); //used to set/create a parameter in the boot file, key is a dot-notation string

e.g.

setBootParam("user.likes.iceCream","true");

it will automatically create neccisary key-tags if they dont exist.


And the best ones of all:

revertBootConf(); // reloads boot.conf from disk, dumping local changes

commitBootConf(); // saves local changes to boot.conf to disk


I decided to use this method overy digging through tons of XML manually to get and set properties, so far it is working excellent.

Tonight I think it is time to dig deeping into the graphics system, there are many questions I have, and lots of potential strategies, which means there will be lots of testing to see which ones are more performant than others.
Previous Entry Graphics Palette system
Next Entry Engine Fun
0 likes 2 comments

Comments

Seriema
*deletes the boot.conf file and starts the engine, just to see what happens*
November 15, 2005 01:33 PM
EDI
in the log: =D

fatal error 'boot conf file not located'
November 16, 2005 03:18 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement