Ain't it possible to hand psStats->penetrate directly over to scanf?
And: The other flags use a "compareYes" function. Why is this not used for
penetrate?
--Dennis
Sorry I don't know about this, I hope Watermelon is reading this.
As a long term goal we should consider converting txt files into a more
user friendly format, this could also bring more people into modding. Since
some lines consist of more than 20 entries of different types having tags
or some other value descriptors will be helpfull (especially for files like
structures.txt or weapons.txt). Naturally 'xml' comes to my mind.
Troman
the last value of that super long scanf cant be a string,or the entire line
of pDataBuffer is screwed...(the last value of all .txt in stats is an int
value iirc)
I agree that the format should be changed to be more user friendly,that 30
values or so per line delimited by ',' is very hard to read and it's
impossible to tell which value is for what without looking at the stats.c.
reply to other emails all in one because of my laziness:
lua is probably too slow for data ,it's optimal for network info
generation/configuration.
xml should be ok as long as you dont read them in 'run-time'.
sql I really dislike using sql on anything other than web
stuff:slow,inflexible,too l33t to modify etc =)
probably the best solution is plain text with some 'describers' like
'[name]','[damage]' etc.
-Watermelon
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev