User Tag List

Results 1 to 7 of 7

Thread: Hide/encrypt and unhide/decrypt several OGG files

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hide/encrypt and unhide/decrypt several OGG files

    Hi everyone,

    My game is now complete and ready to be released. There's only one thing left for me to do, and I can't quite figure out how to do it, so I'm hoping one of you can help me.

    My game uses several royalty free pieces of music. I am using the OGG format. The music MUST remain as separate OGG files, instead of getting embedded in the application.

    The problem is, the terms of use for the music files states that the files must be hidden, compressed, or integrated within the game itself. So, what I'd like to do is this: somehow hide the files until the game is run. When the game is run, it "unhides" them. Then, when the user quits the game, the last thing the game does is "re-hide" them.

    Hopefully, I am making sense!

    Originally, I tried doing this with the Directory Packer. All of the OGG files were packed into one file, named music.snd. Then, when the game was run, the files were unpacked. This worked great on some computers...but, after extensive testing, it didn't work on others. More accurately, the Directory Packer would not unpack the file on some systems. I have no clue why and wonder if it is a flaw in the extension.

    I also tried using the cypher object to encrypt/decrypt the files, but it seemed to corrupt the OGG files permanantly.

    So, I need another solution. Again, the files have to remain as separate OGG files, and these files must not be accessible to the user when the user is not playing the game...but, when the user IS playing the game, the files must be plain OGG files.

    Any ideas? Thanks in advance for your time and help!

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Go under the Application properties. Scroll down to Build Options. Put a check in the box next to "Include external files." When you compile the game all external files will be compiled with the game's executable. Everything will be just one exe.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Use the Zip Object to add the ogg files into an archive. You can even password protect it. Unzip it during the game, and zip it after.

    Stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Quote Originally Posted by Kracker
    Go under the Application properties. Scroll down to Build Options. Put a check in the box next to "Include external files." When you compile the game all external files will be compiled with the game's executable. Everything will be just one exe.
    This is the best option.

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Quote Originally Posted by Stephen1980
    Use the Zip Object to add the ogg files into an archive. You can even password protect it. Unzip it during the game, and zip it after.

    Stephen1980
    If the files are unzipped during play then that means they will be stored on the persons computer in a temp directory. In my opinion that would post a security risk, that is, in regards to what he's trying to prevent. This is an issue similar to crappy e-book compiles that when you run the exe it stores all the HTML files in a temp directory.

    With including them in the exe then everything is compiled together in to one nice neat exe where the user wouldn't have any sort of direct access to the sound files.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Quote Originally Posted by Kracker
    Go under the Application properties. Scroll down to Build Options. Put a check in the box next to "Include external files." When you compile the game all external files will be compiled with the game's executable. Everything will be just one exe.
    Unfortunately, I cannot do this. As stated in my original post, the files MUST remain OGGs accessible on the user's hard drive during gameplay. This is because, in addition to Fusion, my game uses a third party engine for portions of the game, and this third party engine needs access to the OGGs. Thanks for the idea, though!

    I will attempt to ZIP them up using the ZIP object. I didn't realize you could password protect the ZIP file through Fusion. I'll post my results here.

    Thanks, everyone!

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hide/encrypt and unhide/decrypt several OGG files

    Okay, I'm testing the Zip object, and it works wonderfully. Thanks again, everyone!!!

Similar Threads

  1. hide files...
    By PaOlo_TM in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 9th October 2013, 05:42 AM
  2. How to encrypt with INI ++ 1.5
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 31st March 2012, 10:07 PM
  3. flash_tool - Encrypt/decrypt DAT files
    By Mathias in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 12th September 2011, 08:09 AM
  4. Encrypt/decrypt a file
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th August 2009, 01:34 PM
  5. How to decrypt Binary object encrypted data?
    By Mathias in forum Extension Development
    Replies: 0
    Last Post: 13th October 2008, 03:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •