Ywa Posted November 2, 2014 Share Posted November 2, 2014 Hi, I'm trying to protect only my Lua files by using an passworded ZIP. I load the ZIP via the package method and I'm passing the correct parameter. It seems the Lua files are loaded fine, but I can't execute them with Interpeter::ExecuteFile. The files are simply not found. I've tried to put my main Lua file in the scripts folder and protect the rest (so it uses the 'import' directive from the main Lua file). But that isn't working either. How come this doesn't work with protected ZIPs? (all of this works fine as long as it isn't protected!) Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 2, 2014 Share Posted November 2, 2014 If you just publish the game it will automatically zip and encrypt everything for you. That should work. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ywa Posted November 2, 2014 Author Share Posted November 2, 2014 If you just publish the game it will automatically zip and encrypt everything for you. That should work. I'm using incremental updates for public testing. Putting everything in 1 ZIP won't work. And the sound-engine which I use has no support for the Leadwerks VirtualFileSystem. So I really just want to protect my scripts, or at least most of them. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 2, 2014 Share Posted November 2, 2014 Well, the real answer is that passworded zip files, other than what the editor creates, are not a supported feature at this time. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ywa Posted November 2, 2014 Author Share Posted November 2, 2014 Well, the real answer is that passworded zip files, other than what the editor creates, are not a supported feature at this time. I understand that, but I've seen you posting about the package feature a couple times. And seeing it only breaks for password protected files, isn't it possible for you to look into this? Quote Link to comment Share on other sites More sharing options...
Josh Posted November 3, 2014 Share Posted November 3, 2014 Yes but that means giving up time on something else. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ywa Posted November 3, 2014 Author Share Posted November 3, 2014 Of course. But this is still a bug, even though it's not a supported feature. And I can't imagine this taking a lot of time to fix. Seeing it already works with the normal publishing method. I would really appreciate it. And else I will need to publish my game with all the Lua code, so anyone can pretty much make their own game with it without buying a Leadwerks license. Quote Link to comment Share on other sites More sharing options...
Ywa Posted November 6, 2014 Author Share Posted November 6, 2014 For anyone that has the same issue: I'm currently looking into compiling/converting my Lua code to bytecode. It seems to work good. Although I'm not sure how safe it really is. 1 Quote Link to comment Share on other sites More sharing options...
Rick Posted November 6, 2014 Share Posted November 6, 2014 Not much is safe in the world of interpretation. People can easily decompile Unity 3D code. I knew nothing about how to do it and in about 5 mins I did it with The Forest game on Steam. Not much can be hidden. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 6, 2014 Share Posted November 6, 2014 Lua byte code is pretty good. Just named the compiled file .luac and Leadwerks will load it preferentially. There is a Lua byte code decompiler, but I don't think the results are really usable. Leadwerks encrypted zip files are unbreakable for all practical purposes. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Ywa Posted November 6, 2014 Author Share Posted November 6, 2014 Not much is safe in the world of interpretation. People can easily decompile Unity 3D code. I knew nothing about how to do it and in about 5 mins I did it with The Forest game on Steam. Not much can be hidden. True that. Just need to protect a couple files. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.