Cuberite Forum
How to create Configs? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: How to create Configs? (/thread-1962.html)



How to create Configs? - iKekz1997 - 05-19-2015

Hellow Smile

I'm just new in lua and don't know how to create configs..
I've searched but no solutions found.


RE: How to create Configs? - NiLSPACE - 05-19-2015

There are multiple ways you can create config files. You can use cIniFile. That way you can create configuration files as .ini files.

Another option could be to use Lua's loadstring or loadfile function. That way you'd have the Lua syntax as a config file. An advantage of that is that you can easily let the admin create arrays and other things in the configuration file itself.

Of course these are just some of the ways you could create config files.

Examples:
cIniFile: Paintball, Bullet
loadstring: WorldEdit, Chatter, Gallery


RE: How to create Configs? - iKekz1997 - 05-19-2015

thanks.