Domino_ Posted March 2, 2011 Author Share Posted March 2, 2011 Hi all!Does somebody know hot to code EO that he opens all graphics,sprites,titles from rar file?Like I compress Data into data.rar and all files from there he is reading. And thr rar file is protected by password witch knows only admin and who coded it in the game? Link to comment Share on other sites More sharing options...
iSKweek Posted March 2, 2011 Share Posted March 2, 2011 Have a look at Robin's Autoupdater code for the unraring part. I am not sure if you can unrar protected files though.I think that the unraring only extracts it and then you would have to make sure it extracts to a set location or something, not sure if you can read them directly from the rar. Link to comment Share on other sites More sharing options...
Joyce Posted March 2, 2011 Share Posted March 2, 2011 I suggest looking into some Zlib libraries, they're fairly neat and simple.. But can have some pretty good on-demand loading times as well. :) Link to comment Share on other sites More sharing options...
The New World Posted March 2, 2011 Share Posted March 2, 2011 You could always just use some weak type of encryption, and hide the picture file in another similarly named file with a new extension. Then just read it from there, if you know what you're doing.But if you're going to go from that RAR approach, yes, you will need to study up on the Zlib libraries, and figure out a procedure for dumping the images, whether you extract them, then delete them when the application unloads, or run them straight from the compressed file. Of course, if a player can find this RAR file, they will most likely be able to open it, even if it's set to read only, unless you password protect it. :) Link to comment Share on other sites More sharing options...
Joyce Posted March 2, 2011 Share Posted March 2, 2011 Actually, now that I think of it.. I think I used to have some neat library called GameCrypt, it would let you load/save encrypted files with a password on demand.. I could see if I have it laying about somewhere. :) Link to comment Share on other sites More sharing options...
Sealbreaker Posted March 2, 2011 Share Posted March 2, 2011 .rar files with passwords are easy to access for anybody… there are free and easy-to-get programs to get passwords for rar files with one click.-seal Link to comment Share on other sites More sharing options...
The New World Posted March 2, 2011 Share Posted March 2, 2011 @Sealbreaker:> .rar files with passwords are easy to access for anybody… there are free and easy-to-get programs to get passwords for rar files with one click.> > -sealWho knows who'll go through all the trouble? Link to comment Share on other sites More sharing options...
Godlord Posted March 2, 2011 Share Posted March 2, 2011 I am going to say it one more time: encryption is **useless**.Regards, Stephan. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now