[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Safe config file using Lua
- From: Romulo Bahiense <romulo@...>
- Date: Mon, 06 Aug 2007 09:24:54 -0300
Jose Marin wrote:
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
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ê.
Search for "sandbox[ing]"