User Tag List

Results 1 to 6 of 6

Thread: Possible bug in the File Object

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch MakerUnicode Add-on
    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
    165
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Possible bug in the File Object

    I have an old piece of code that I use in my saves. I basically check through file object is mycompany and mygame directories are created, if not, create them. However it stopped working on new projects. Maybe it broke in some update? I have the latest updated version.FileObject.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    902
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)
    File object returns error code 2: No such file or directory

    I am not 100% on this but I believe you have to create each folder separately. Your application could create the MyGame folder once I had already put the MyCompany folder inside .../Roaming.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch MakerUnicode Add-on
    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
    165
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I tried this solution, apparently not working. It is skipping the mycompany directory. What is strange is that I have the exact first piece of code working on previous games. That's why I think something might be broken on recent updates.
    create_dir_fail.mfa

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    902
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)
    I could be missing the point entirely now but it seems to me your recent .mfa works fantastic.

    Though in your expressions you've got quotation marks around Global Value A and B so your folders are named exactly that instead of MyCompany and MyGame. So basically after hitting Space you should find the new folders: "../AppData/Roaming/Global Value A/Global Value B".

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch MakerUnicode Add-on
    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
    165
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ha, that's odd! I've always used "" around Global Values and it always worked no problem. So much that it never occurred me to search for globa value directory. Maybe something has changed in recent updates and "broke" it.
    Many thanks chrilley!! Big Help!

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    902
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)
    Happy to help! Glad you got it solved.

Similar Threads

  1. Replies: 4
    Last Post: 21st December 2017, 11:00 PM
  2. Replies: 10
    Last Post: 17th August 2015, 11:31 AM
  3. Create folder with File object on Program File
    By Vantales in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th April 2013, 11:13 AM
  4. File Object - Mass/Mulitple File Rename
    By Yelnek in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2013, 09:44 PM
  5. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 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
  •