TombEngine
TombEngine copied to clipboard
Hide scripts from end-user
Currently we keep scripts in a raw text files inside Scripts
folder. This makes it extremely easy for end-users to randomly edit those files. For now, when TEN is in beta stage, it's okay, but for future, it may be necessary to implement a way to "hide" scripts from player, so he won't mess with them.
I propose simply packing all scripts into single zlib archive (we can even call it SCRIPT.DAT
) and unpack it into memory on start, and access scripts solely from memory. For debug purposes, we may keep direct script loading from text files, so TEN would search for Scripts
folder first, and load files from it, and if such file is not found, SCRIPT.DAT
is used (or vice versa).