Page 1 of 1

Configuration-Reader

Posted: Mon Feb 22, 2010 2:29 pm
by Nowis
Hi there,

I'm new on this forum, so let me short introduce myself:

My Name is Simon
I'm from Germany
I'm 19 years young ;)

So, now this is not a question, i'ts more an suggestion.

I've seen all the beautyful libraries that are made for LÖVE and also LUA.
Is there any library in work that can read any Config-Files, e.g. ini/cfg, xml, ...?

Wouldn't it be very useful to have an reader for the games we made with love?


Simon

Re: Configuration-Reader

Posted: Mon Feb 22, 2010 2:33 pm
by Robin
Welcome!

xml is a tough nut to crack. We're discussing it on IRC just now, as it happens.

On other config formats: why not use Lua? It was, after all, originally a configuration language, and much more powerful than ini, cfg or xml.

Re: Configuration-Reader

Posted: Mon Feb 22, 2010 2:53 pm
by Nowis
Hi Robin,

you were right, i didn't think about that feature ...

But it's also not so hard to write an Reader for XML
(I know, there are some special things with single tabs, comments, etc. ...)
I write one myself with the Parser of the Lua site, but I added Getter and Setter
and a Print/Write Function ...


Simon