User Tag List

Results 1 to 7 of 7

Thread: Move multiple files insidde a loop? not possible?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Move multiple files insidde a loop? not possible?

    As we dont have a move folder option in mmf2, im trying to do it using the move file action and theres a few files in each folder, ut they dont move inside a loop.

    Say you have a folder with 5 bmp's in names:

    1.bmp , 2.bmp , 3.bmp , 4.bmp , 5.bmp

    And at the start of frame you start a loop 5 times!

    On loop, move file (foler path) + Loopindex + ".bmp"

    The file paths are 100% correct ive checked them several times, ive even got it to create list of the source file moved and a list for destination file path and it list all 5 correct, yet the files dont move nowhere!!

    Anyone now why or how?
    Andy

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Move multiple files insidde a loop? not possible?

    I don't think file actions work inside of the fast loop system.

    Fastloops are an idea that came around long after the engine of MMF was built.

    I would suggest you build a loop using regular MMF events to handle the file moving - that should work fine and you can do some error checking to make sure your files move.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF 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)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Move multiple files insidde a loop? not possible?

    'dont move nowhere' OK
    I would suggest using a 'counter' variable instead of the 'loop index'.
    I have had a lot of headaches over files and loops and have found creating a counter fixes most issues. There are billions of other ways around problems you will come up against with mmf, just experiment. It might be that you don't have rights to move the files to the destination folder. I would look for other ways to get the files where you want. You know you can pipe the MOVE command to move the files where you want. Have you tried this?

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Move multiple files insidde a loop? not possible?

    The fastloop index does start at 0 .... So its possible that is the problem. I forgot that when I tested it out.

    When I get to the office and try it ... maybe it will work.

    With the file object if you get an error (like a files does not exist) you need to clear the error before you try to use it again.

    So if its looking for file named 0.bmp and it doesn't exist that will generate an error.

    So many loop index + 1 is something to try.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Move multiple files insidde a loop? not possible?

    HI thanbks for the replys, yea i am aware it has a 0-based index and so made sure i integrated that, like i said, i got it so on every loop it adds the "source file path" and the "destination file path" to a list so i could check the paths the file was using within the loop and they all were correct, but the files just werent moving. but if i set it so it just moves a single file (so with out loopindex("name") as the file names (source & destination) it moves the 1 file, in the loop. but wont do it if it has to use the loopindex in the filename?

    I dont quite understand what you mean when you refer to "pipe the move commmand"?

    Gib

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Move multiple files insidde a loop? not possible?

    I'm making an example this evening to show how to move, copy and delete recurrsively

  7. #7
    No Products Registered

    Join Date
    Feb 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey, old post, but the example never came, and I need it

Similar Threads

  1. How to make multiple copies of an active move toward the same point?
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 11th January 2012, 12:28 AM
  2. loop music files list
    By nick_Peoples in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st February 2011, 12:17 PM
  3. Fast loop multiple enemy engine?
    By Mdsx in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 22nd April 2010, 04:11 PM
  4. Comparing multiple instances of 2 objs - no loop?
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 10th June 2009, 08:35 AM
  5. (Request) Internal loop/position for MOD files
    By konjak in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd March 2007, 06:32 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
  •