Here is an Article I wrote,
http://howto.oz-apps.com/2012/04/lua-riff-source-code-and-bytecode.html For the advanced users here that already know all about it and the beginner developers who are still grappling with the lua basics, you can avoid reading it, it will save both of us the extra comments.
@Atilim there was a question and hint/direction for you, can we have that all the lua source files be compiled and created into a single file like the RIFF format as described which can be extracted on launch, in fact a similar theory to encrypt it was suggested by
@Gorkem a while ago on the topic of lua compilation and safe guarding the source code.
Need to also check if the bytecode in a released app can be changed and if it will still work, reminds me of the POKE and PEEK in the 80's which was used to POKE and change certain locations to cheat, get maximum lives, etc.
Comments
Thank you for this article. Diving into the details of Lua VM is fun
Recently, I've finished the implementation and testing of our virtual file system. So that the whole file system can be any media (e.g. a password protected zip file). This is the first step of encrypting and protecting the Lua bytecodes and other assets on our side.
After you've mentioned PEEK and POKE, I read the news about Jack Tramiel. Is it a coincidence? :-?
Likes: phongtt
The Virtual FS sounds interesting, will look forward to that.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
I remember PEEK and POKE on the C64. Yes, it's sad about Tramiel passing away. It's also interesting to find out that the Amiga died after he left Commodore. Vic-20 was the first computer I "owned" (a hand me down from my older brothers who got a C-64). The nostalgia is unbelievable. I'm tempted to start a new topic on this lol. Elite was an obsession. And M.U.L.E. is such a classic. Not to mention GEOS. And I remember the "trash-80" hehehe O:)
My apps: http://www.yummyyellow.com
I had the pleasure of meeting his Leonard a few occasions when I was working at Atari back in the mid 90's and a brief meeting with his older son Sam, I never had the pleasure of meeting Jack though - my condolences go out to the family.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill