User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Confused about Binary Data & temporary filenames

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Confused about Binary Data & temporary filenames

    I decided to try using binary data and followed the .pdf tutorial here.

    This is the original file path, leading to an image: "C:\Project\sprites\character.png"

    I ran into some problems right away, assuming I could simply extract the file only referencing the sub-folder and the file ("sprites\character.png"), rather than the complete path. Obviously it showed up when just testing the game, but when I built the .exe it wouldn't. So, I went back and entered the full path and now it works after I build. However, out of curiousity, I created a String Object that displays the temporary binary filename and rebuilt the .exe, but it's still just the original path. Did I miss something?

    As I intend to release the game for Android as well, would I have to re-program the pathways for the extraction and release of the binary data, or can I just keep the "temporary binary filename"-bit and the game will figure it out?

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    As per the Tutorial, PC runtime binary extraction is different than any other platform. You extract the full file and reference it by its Temp Binary Filename.

    With Android/iOS and Flash etc. you load by calling the entire filename as it appears in the dialog, so if your file is c:\test.bmp then in everything but PC runtime, you just load the file "c:\test.bmp". Even thought test.bmp doesn't exist on your users hard drive, you're not calling that actual filename, you're just calling the reference in the binary object list.

    With PC, you have to strictly adhere to what's written in the guide. That's a fully-fledged guide on Binary Data in 2.5
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I was reading that guide but there were some things that I wasn't sure about. I understand that you don't have to take into consideration what the temporary name is for the other platforms.

    My concern was only whether using the GetTempName function would still get me the proper filename when running the game in Android. If not, I'll need some extra code for releasing and reading files, as I already have it adapted to windows.

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Ah, no it won't. You will have to write separate events for this dependent on what objects you use.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that's good to know!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF 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)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Danny, a consultation, do I extract file and release file from an INI file on every level of my game? I am following the tutorial, but this does not specify it... can you help me?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Confused about Binary Data & temporary filenames

    The INI object is able to load the via Binary Data included file without the need for extraction. Just load a new INI with the full path from your computer and via Binary Data included files will also be loaded on other computers without this file. The same with the exporters. In this case you don't have to change anything between the different releases.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF 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)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Gustav thank you for your answer, but I have it and does not work on Windows, for exporters Yes.

    Does not work me making extraction INI as Danny explains in his tutorial, my file is called UFU.ini and have it as well with Binary Data: C.\UFU.ini

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh... It seems it's not working any longer without extracting the INI manually. So you have to extract it before on Windows runtime...

    Are you loading the included INI file with this expression?

    Extract "C.\UFU.ini"
    Load INI with BinFileTempName$("C.\UFU.ini" )
    Release "C.\UFU.ini"

    This is working. I've tested it.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF 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)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks Gustav, how do is part?

    Load INI with BinFileTempName$("C.\UFU.ini" )

    The other that I am thinking of is having problems with write permissions since the ini file is in the C: root, if I can read the values of the file most can't write them.

    Use Windows 7,

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Data Elements , Binary Data simply not working?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th January 2014, 11:59 AM
  2. Binary Data (INI)
    By Danny in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 13th February 2013, 09:56 AM
  3. Binary Data
    By Mars31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st April 2009, 04:49 PM
  4. using binary data at data elements
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th August 2008, 05:22 AM
  5. Binary Data
    By Nick in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th May 2008, 03:08 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
  •