maxlxl Posted July 14, 2016 Share Posted July 14, 2016 Hello, I'm new here I have searched on Google and also directly here in the forum but I didn't found anything about it. How and who can I change the password of the encrypted data.zip (The file gets created by publishing the game as standalone.) Sorry for this possible dump question and thanks for all helpful answers. Max Quote Link to comment Share on other sites More sharing options...
Josh Posted July 14, 2016 Share Posted July 14, 2016 You can't, unless you zip the contents up yourself. If you have the pro version you can use the Package class, and set its "password" member to your own password, then extract files. There's no way to do this with Lua because the password would just be sitting there in n unencrypted script file. 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...
maxlxl Posted July 14, 2016 Author Share Posted July 14, 2016 Thank you for your fast reply! I have purchased the pro version so I'll check the Package class out. Max Quote Link to comment Share on other sites More sharing options...
Josh Posted July 14, 2016 Share Posted July 14, 2016 Actually, it looks like the Package::Load() commands has an optional password parameter you can use, so that's simpler. This class is not exposed to Lua because all zip files in the game directory are automatically loaded. 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...
REX-RUS Posted July 26, 2016 Share Posted July 26, 2016 You can't, unless you zip the contents up yourself. If you have the pro version you can use the Package class, and set its "password" member to your own password, then extract files. There's no way to do this with Lua because the password would just be sitting there in n unencrypted script file. Six months ago I tried to enter my password in this class, but it didn't work Quote Operating System: Windows 10 home x64 / Mint 17.3 x64 Hardware: Core i5 480m // 6 GB DDR3 // Nvidia GF GT540m 1Gb GDDR3 Link to comment Share on other sites More sharing options...
Crazycarpet Posted July 29, 2016 Share Posted July 29, 2016 Six months ago I tried to enter my password in this class, but it didn't work Sorry for the bump, but you shouldn't be doing it like that... You add it as an argument when you're calling Leadwerks::Package::Load(); You shouldn't edit Leadwerk's included header files and all you're doing is setting your password as a default parameter when you don't specify one when calling it. .But yeah I don't think editing these header files has any effect... I tried it once when I was bored (or maybe you have to rebuild your project instead of just build?). But either way it shouldn't be done. Quote Link to comment Share on other sites More sharing options...
Rick Posted July 29, 2016 Share Posted July 29, 2016 The headers just give you the function signatures so the compiler see's the functions and it can tell everything is in order, so yes altering those shouldn't cause any real functionality to change as the actual code is in the LE library which we don't have access to that source that it was compiled from. 1 Quote Link to comment Share on other sites More sharing options...
Crazycarpet Posted July 29, 2016 Share Posted July 29, 2016 The headers just give you the function signatures so the compiler see's the functions and it can tell everything is in order, so yes altering those shouldn't cause any real functionality to change as the actual code is in the LE library which we don't have access to that source that it was compiled from. Thanks, good to know. 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.