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. 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. - Per _______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
