Cuberite Forum

Full Version: How to create Configs?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hellow Smile

I'm just new in lua and don't know how to create configs..
I've searched but no solutions found.
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
thanks.