design question: data driven: best methods?
criteria:
cost in dev time (ease of development / implementation) - not a lot of coding
cost in data entry time (ease of use) - not a lot of typing - easy editing of data
additional productivity benefits ( no recompile will be assumed).
i'll start the list with:
text data files
-----------------
code is easy: open text file, read vars, close file.
data entry is not so easy, just a bunch of numbers and strings - alphanumeric data in a text file. nothing says what number is what, except a file format spec, and the source code.
can be edited with any text editor.
text data files with comments
-------------------------------------
similar to plain text data file - requires a readstring function that skips comment lines. then convert the string read in to the desired var.
comment lines let you identify data in the data file. some what easier to read and edit therefore.
can still use any text editor
text file with key-value pair format
--------------------------------------------
a text file of the format : var_name = value
easier to read, as each value is identified with its variable name.
can be edited with text editor
more coding work: have to write a parser.
stand alone custom editor
----------------------------------
more dev work: need to build editor
easy to edit data.
biult-in custom editor
----------------------------------
more dev work: need to build editor
easy to edit data.
don't have to exit game to edit / load / reload / save data.