User Tag List

Results 1 to 3 of 3

Thread: Removing unused ini from the frame, stops array from loading

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Removing unused ini from the frame, stops array from loading

    This is really strange, i have an ini object on the frame with no actions or events (there is no warning when i delete it, clicking it on the event editor shows no events), but as long as it's there, i can load my array data, and as soon as i delete it from the frame, i can't load the arrays anymore!

    This is just the loading frame for the game, and here are ALL the frame events displayed with the event list editor:
    bug.jpg


    It's mainly an android game, but i need it working on windows as well for testing. On android it works just fine without the ini object, but not on windows.
    The error could be with the file object, different current directory with/without ini files? or it could be a problem with the array loading, either way it's very strange..

    A long time ago i converted my game from using ini to using array, i have kept the ini until now to load from if any user updated from the version using ini, but now i finally want to just get rid of it.

  2. #2
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi SoftWarewolf,
    CurrentDirectory$() is referring to current working directory. This working directory can be changed at any time anywhere in the application. When using INI object, and without taking care of its parameters, INI object will change working directory when application starts.
    As CurrentDirectory$() can refer to any directory, it can even not work at all as the directory currently selected may be read only. Therefore you'd better use AppDataDirectory$(), function that will return the directory supposed to be used on Windows to store application data.
    ouly

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    ahh, thank you! i thought current directory would mean the same directory as where it's running from, i found the file and moved it so it now loads with appdatadirectory instead

Similar Threads

  1. Sample (MOD file) stops when frame restarts
    By teddyq in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 22nd October 2014, 04:43 AM
  2. Loading an object from array when needed (loading an array in chunks)
    By fishrod in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th March 2014, 06:01 PM
  3. Loading of Active Picture stops app
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 19th February 2012, 12:34 PM
  4. Removing an index from an array
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th November 2010, 08:27 AM
  5. Removing file extensions when loading a Filelist
    By zubesss in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd April 2007, 06:46 AM

Posting Permissions

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