Is there a way I can basically attach a file (say picture) to an exe and then extract it and display it without writing it to the HDD.
Printable View
Is there a way I can basically attach a file (say picture) to an exe and then extract it and display it without writing it to the HDD.
Binary file should be able to do that. You can add a file to the stack and save it, load it, encrypit it whatever
When you extracting it, of course it will be automatically written to your HDD :)Quote:
Originally Posted by Evoxe
You can use Binary Data feature on MMF2 for that. My "Fusion FLV Player" example will show you how to use that feature.
I have been wondering something about binary extraction. As it seems it writes a temp file on the computer when running it, couldn't someone just copy and paste the file and have a version of it that wouldn't delete on close etc?
Or is it protected somehow to stop someone from just taking the contents easily like that?
If I -attached- an exe to the file. Can I run the -attached- in game without writing to the disk?
Depends on how you attached it... you you append it with file object or use binary data? You could probably use looki's example, I forget where it is though.
Yeah, I would want to append the data to the file. and basically somehow use,(for example) the 'file object' to run an application and point it to the appended binary data.
Looki made an example (which I cannot find) of how to do this with the binary object.
Hey Evoxe. First, put the file in the directory of your MFA (E.g. C:\My Game\Filename.png). Now, go to the binary data tab and add the file. Now, let's go to the Event Editor.
On Start of Frame
-> Special Object -> Binary Files -> Extract binary file Apppath$+"Filename.png"
Then, you can load it using extensions by entering this as path name: BinFileTempName$(Apppath$+"Filename.png")
This expression can be found at Special Object -> File names -> Binary file temporary filename.
Note: The file is extracted to your \Temp\ folder (temporarily).
Looki he want's to be able to do it wothout extracting at all.
But that's not possible. I don't see why anyway. Browsers write every file they load to the disk, too. Web pages, images,.. the user won't notice ;)
What do you mean "not possible"? You made that level editor example with reading data from the exe without extracting! Don't tell me that was different?
That was text.
The full extent of what I want to do is have a splash screen/login screen that is basically a wrapper for my .exesQuote:
Originally Posted by _LB
so once the proper login info was okayed, the program would run.
not looking for alternative ways to do what I just described, just wondering if my way is possible.