lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I would like to use Lua to manage config files fo my game, but the problem is how to restrict the functions the user may call in this file, to avoid hacking my game.

For example, on the config file this could be legal:

ActionKey = K_ENTER
SetResolution(800, 600)

But this not:

ResourcePath = "c:/myres"

The user could use "ActionKey " and "SetResolution", but not "ResourcePath " or "SetPlayerMaxHealth".

Thanks for any tip.


      Flickr agora em português. Você cria, todo mundo vê.