Am Montag, 27. November 2006 21:56 schrieb Per Inge Mathisen: > On 11/27/06, Dennis Schridde <[EMAIL PROTECTED]> wrote: > > > 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. > > > > My idea is to use Lua for all that. ;) > > Dunno about the Performance yet... > > Performance should not be an issue, as long as we stick to reading it > only once upon level load. What is the advantage of using lua instead > of xml? In the beginning, not very much, I think. The advantage of Lua is that I wanted to use it for replacing wrf's and that stuff, so it would allready be in the game, whilst for XML we'd need to find a good library and include that additionally.
In the end I intended to replace most (excl. the scripting engine Troman invested such a huge amount of time into) of the YaCC/Lex stuff which I personally find hard to understand. Additionally to that the idea was to provide an alternative scripting language for those who have experience of Lua scripting from other games or newbies who need a documentation on the scripting language. > I find lua tables > easier to read than xml, but brain share is probably higher for xml. > However, if we start using lua for static text data files, we can > slowly start using it throughout the game, making it do more difficult > tasks as we get more experience with it. > > Incidentially, I was working on using lua to autogenerate much of the > network code. I do not exactly recall how far I got, but I can post > the lua packet schema, which can be run as code to produce the > necessary packet C structures. It also doubles as packet > documentation. Eventually the idea was that it should also produce > code to send and receive these structures, too. I did not get that > far. As currently no one will probably go on to work on the netcode it would not strictly be needed. But it might be interesting what ideas you got. (And maybe more people could think about it till we do the real rewrite.) --Dennis
pgpz1dShsU54S.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
