User Tag List

Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 40

Thread: Can I Save A Frame Position To A File?

  1. #21
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    1) in the latest example this is working correctly, so maybe something slipped off during the code transfer
    you should make sure that:
    a) all your blocks get a "block_type" on creation
    b) when you save your blocks you also save "block_type"
    c) when you load your blocks (destroy all current blocks - recreate all blocks from ini) you also set their "block_type"
    d) you always change block animation to "block_type" / OR change it on creation and set texture animation to "looping" (otherwise they will change and return to "stopped")

    2) you mean that the application should auto-save content when you close it?
    You can do it pretty quick just by adding:

    (button save clicked <-- your existing save condition)
    +OR
    +end of application

    to your "save button" clicked event

    you can find end of application / end of frame conditions in "storyboard" controls, along with "start of frame"

  2. #22
    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)
    JBoneCode's Avatar
    Join Date
    Feb 2016
    Location
    United States
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ORs are another thing I haven't used often. Would this be a filtered or logical operator?

    Also, I have the Save occurring when I leave the frame, and the Load occurring at the Start of Frame. Would this affect anything?
    Here's what I have:
    SaveLoad1.JPG
    Block Creation

    SaveLoad2.JPG
    Changing the Animation of the "Template", or the Active you would click on to change Block Types.

    SaveLoad3.JPG
    Loading Data

    SaveLoad4.JPG
    Saving Data

    SaveLoad5.JPG
    Saving/Loading Loops for the Blocks

    Sorry to be dragging this Thread out so long. I know there are other issues that need attention, so I want to hopefully wrap this up!

  3. #23
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    You can go with any OR, in this situation would be the same.

    On the loading issue:
    maybe I spotted something on the very last line of last image,
    you seem to reference a different INI file (has a "shortcut" icon differently from the ones above)
    this could explain why loaded blocks have no "block_type".

    If this doesn't solve the issue,
    there's something I can't clearly grasp on the loading codes,
    you're clearly doing something specific basing on global values A & T but don't know what

  4. #24
    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)
    JBoneCode's Avatar
    Join Date
    Feb 2016
    Location
    United States
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks once again!

    The positions AND block type of the blocks are saving and loading between frames. However, the "End of Application" error is still present. Could it be due to a missing "Set File to [...]" Event? I also tried adding an OR operator to no avail.

    Also, the Global Values are when you return from a specific frame. EX: T would set a Group's position outside of the Frame because it would be unused further.

  5. #25
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Set file should be needed just one time per frame (before any operation), as long as you always use same file

    I've just tried the "end of application" code on previous uploaded example and seems to work fine,
    how are you "shutting down" the application? Through events or through Windows "close" red X button (or both?)

    If you do this through events (like button pressed --> close application)
    you can maybe try:
    button pressed ---> save stuff ---> close application
    ?

    Hard to say what may be wrong!
    Can you recreate this not-working on the example above?

  6. #26
    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)
    JBoneCode's Avatar
    Join Date
    Feb 2016
    Location
    United States
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was doing the "End of Application". Although, I feel like a Clickteam Noob with this mistake.

    I was thinking, "It will save when the application ends...on any frame". I have it set so the Close Button in Window Settings is disabled, and the only way to close the Application is to go back to the Main Menu.

    Would I have to mess around in Global Events? Or, is there some other way I can accomplish this in the World's Frame?

  7. #27
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    If you use qualifiers you can't set this in global events unfortunately,
    as qualifiers can't be used in global events

    Guess the most practical way (beside not using qualifiers) would be hard-coding this on each frame
    (put all code inside a group and copy-paste this group through frames)

    You can try "end of frame" events,
    or simply embedding the save code into your "go-to-menu" button
    (user click "go-to-menu" ---> save stuff ---> go to menu )

  8. #28
    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)
    JBoneCode's Avatar
    Join Date
    Feb 2016
    Location
    United States
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was testing out the actual landscape objects, and these save fine when I close the Application. Could this point to an issue just for the block's saving then? Also, since the only things with qualifiers now are the landscape objects, would this open any potential for Global Events again?

  9. #29
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hard to say without inspecting the code,
    I would try testing step by step
    and see what/when goes wrong - single action at time

    You see, this is working fine in previous file:

    Creativity(BUGSOLVING)_3.mfa

    so it should work in your official app as well...

  10. #30
    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)
    JBoneCode's Avatar
    Join Date
    Feb 2016
    Location
    United States
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this .mfa file sums up my issue. You close the game on another frame. If there is no simple way to save the files in this way, what would I need to "hard-code" into each frame, and under what event? (End of Frame, End of Application, etc.)

    Also, I tried rearranging the order of code in the actual Application. It didn't have any effect, unless there's something specific that needs to go first in the Save Events.

    Creativity(BUGSOLVING)_3.mfa

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. Save frame position
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 11th September 2015, 02:48 AM
  2. Save Frame Position Load Application Position
    By NotADuckMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th March 2015, 11:38 PM
  3. Save Frame Position ruins Frame
    By Fralex in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th July 2012, 11:08 PM
  4. save frame position
    By babaden in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th April 2011, 04:52 PM
  5. Save Frame Position BUG ?
    By mmf2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th August 2008, 10:39 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
  •