'.MIX' '. CAB'? data packed?
Hi!
When i finish my game i want all the data and folders to be packed into one file. So i can protect the music and sounds. I will make a loading screen which unpacks the files and when the game closes it will delete the unpacked files.
Now i also want these files to be encrypt. i know how to do that with the blowfish object.
Help me out please.
Isaac
Re: '.MIX' '. CAB'? data packed?
How's this any different to what MMF already does?
(I'm at work, so I can't check how, but I'm fairly sure you can ask mmf to include files in your app which it extracts while the program is running, then deletes afterwards).
EDIT: Music and sounds? Doesn't mmf include these automatically? (if you're using the built-in play music/sound anyway)
Re: '.MIX' '. CAB'? data packed?
I like my data to be external to save the .exe from been huge.
Re: '.MIX' '. CAB'? data packed?
Well that makes sense. Unfortunately, as far as I know there's no way to extract a file into your separate musics and have mmf still be able to play them but not have someone else copy the extracted ones out while it's running. Encrypting them wouldn't help, because you'd still need to decrypt them for the entire life of the app so mmf could play them (and someone could easily purposely kill the task to stop them getting deleted on exit).
Re: '.MIX' '. CAB'? data packed?
I'm doing a similar thing with the cutscenes in my game. The only solution I can see is to extract them to some really obscure directory in the windows folder, or make the game fullscreen, and if they get out of fullscreen, delete the files.
BTW, how are you extracting each individual file? I can only extract all the files all at once.
Re: '.MIX' '. CAB'? data packed?
I know this is possible. I also know that can only be done with programming languages like C++, Visual Basic, Blitzbasic, and other tools. Not with MMF in its current state.
However, IF there is a way.. it can be done trough an extension, that would indeed be VERY cool and usefull.
But i think the issue is this:
Almost any object and even MMF gives you the ability to load files from a file in the expression editor. BUT readinng a complete file or an part of it, is a differend thing.
So... even if we would have an extension that allows writing and reading from pack files, there is NO way for the other objects or MMF todo the same. Both will read the entire packfile and not a part of it, UNLESS people start adding the same "read from packfile" functions as done in the "packfile extension" (that not yet exists). And that requires a cooperation of both Yves / ClickTeam and Many extension developers, and the packfile extension to be opensource ofcorse.
All this is what i think a TOO big change.
K, t keep this long reply very short. Your better off zipping things and unzipping using the ZIP object.
Re: '.MIX' '. CAB'? data packed?
If i understand, you want to create a MMF program (.exe) that accesses external encripted data files. You want data files to be external so the .exe MMF program file is small.
After creating your .exe MMF program and encripted data files (data, sounds, etc..) why not create a MMF install program that includes the .exe file and the data files. Then when ran this install program extracts the actual .exe MMF program file and the encripted data file and places then into a directory. Next it then deletes any files you don't want to keep and then deletes itself. The install MMF program will be large but all that will remain after installing is the small .exe file and the external data files it uses on the user's computer.
Re: '.MIX' '. CAB'? data packed?
Hi!
Thankyou for the reply Patrick. Yes i have packed/unpack files in visual basic. It IS possible in MMF. There is a simple object called 'Binary Object'.
I am currently looking at how to use it. The banks look interesting. I think i might just post an example when i have learn't how to pack/unpack files. And have the file be Encrypted.
Isaac
Re: '.MIX' '. CAB'? data packed?
There already is an example, which you replied to. <img src="/center/images/graemlins/wink.gif" alt="" />
Re: '.MIX' '. CAB'? data packed?
[]Hi!
Thankyou for the reply Patrick. Yes i have packed/unpack files in visual basic. It IS possible in MMF. There is a simple object called 'Binary Object'.
I am currently looking at how to use it. The banks look interesting. I think i might just post an example when i have learn't how to pack/unpack files. And have the file be Encrypted.
Isaac [/]
As robbie replied, there is one already <img src="/center/images/graemlins/smile.gif" alt="" />
But it still requires you to extract the files. The power of a packfile is that you don't need to extracht a thing.
The example with binary is fun, but ofcorse zipping is better. That is the same but it adds compression.