User Tag List

Results 1 to 3 of 3

Thread: Problems with checking wether a file exists

  1. #1
    Clicker Fusion 2.5

    Join Date
    Feb 2014
    Location
    Sweden
    Posts
    63
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Problems with checking wether a file exists

    I've had some problems recently using the File object, and more specifically the "File exists" condition. For some reason, on some events where I want my application to check wether a file exists, it acts like the file doesn't even though it clearly does. I've tried referring to the file using an absolute path rather than a relative, and also doing a workaround by using the List object's "Load Filelist" and then comparing the amount of results, but the problem remains. Moving the event out of a FastLoop seemed to solve the problem on one instance, but it still frustrates me to not know the cause of it.
    Does anybody have any idea why my application is behaving this way? I've double- and triple-checked my code and all I can think of is that there's some kind of bug in Clickteam Fusion.

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    The source code of this condition seems correct. If you think there is a bug please fill a bug report in the bug box with a (simple) MFA file, thanks.

  3. #3
    Clicker 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
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Had the same issue, kinda hard to reproduce. It appears more often if you have a big project and a lot of loops. The File object will exit with error code 0.

    Still I found a workaround that worked for me: Instead of the usual loop to ask for a file exist, use the loop from the Fast Loop object. It works, lol.

Similar Threads

  1. Test if file exists.
    By DJFuego in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 14th November 2012, 10:13 AM
  2. Check if a file exists (IOS)
    By Tuna in forum iOS Export Module Version 2.0
    Replies: 11
    Last Post: 14th March 2012, 07:02 PM
  3. Delete external file AND check if file exists
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 03:39 PM
  4. Check if file exists - InstallCreator
    By Tiny in forum Install Creator and Patch Maker
    Replies: 9
    Last Post: 29th August 2007, 10: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
  •