User Tag List

Results 1 to 3 of 3

Thread: Load image to frames with expression don't allow include external files

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleMac Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2012
    Posts
    353
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Load image to frames with expression don't allow include external files

    I'd like to ask a question about loading images. This is a great feature but I'm stuck into a way Fusion works and I'd like some ideas how I can workaround this, if I can.

    First, what I'd like to do:

    Load images into active frames and reuse the code in other games. I can do this using expression but this way Fusion do not include external files and requires the images to be unpacked in the data folder it will load the images from.


    So in the documentation it states:

    Include external files
    Includes in the built file all the external files referred to by the events or by any object. This option is very handy if you want to create one EXE file that contains everything. Upon runtime, the files are extracted to a temporary folder, and all the pathnames that refer to the files are relocated to the temporary folder.

    Note: this option doesn't include the files whose filename is calculated with an expression in the events.
    Is there any way at all that I can call an image from outside that can be protected/compressed without having to set "into stone" the path?

    The reason I'm asking this is because if I don't use expressions such as Apppath$ I can't reuse the code for other games. So if I have the Load image into frame as
    C:\Gameprojects\Game1\data\images
    I can't reuse the code to
    C:\Gameprojects\Game2\data\images
    because hundreds of events are expecting to find on
    C:\Gameprojects\Game1\data\images

    The real problem here is that I can't replace the path unless I go into each line and there are 9 options to click through for each line. So changing each line for 100 events goes into at least 900 clicks.


    Any idea at all that will help me workaround this is greatly appreciated.

  2. #2
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    562
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    You can't, fusion won't auto pack something in your project folder. It's torture to add a fake load action for all assets to force fusion to pack it.
    Including files in binary file is another torture as when replace with a newer version you will get many (2)

    My solution is DIY everything, write a custom encrypter, and a custom active picture to load encrypt files.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleMac Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2012
    Posts
    353
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by defisym View Post
    You can't, fusion won't auto pack something in your project folder. It's torture to add a fake load action for all assets to force fusion to pack it.
    Including files in binary file is another torture as when replace with a newer version you will get many (2)

    My solution is DIY everything, write a custom encrypter, and a custom active picture to load encrypt files.
    Thanks defisym. I have no idea how to write a custom encrypter so I'll have to work with what we currently have. Either use one directory and move old projects to a new one, import by hand or leave files outside.

Similar Threads

  1. Include External Files
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 28th February 2015, 04:08 PM
  2. Include External Files
    By Keith in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 4th March 2013, 07:34 AM
  3. [Bug Report] Include External Files
    By Nifflas in forum File Archive
    Replies: 6
    Last Post: 3rd August 2007, 09:38 AM
  4. Include external files
    By Czentnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th April 2007, 09:41 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
  •