User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Save Point

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Save Point

    I need to set up a save point in my game. I was wondering if anyone knew any good tutorials on how to do this. I watched one on youtube, about using Ini file, and a couple other objects. It looks like it would work, but I'm not sure if that method would work when the game is put into an installer, and sent to another computer. It may very well be, but I don't want to event something that I'm unsure about...any suggestions?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should use the INI object, yes, and preferably have the INI file saved in the application data directory. It should work on multiple computers that way.

    Give it a go and come back if there are issues.

  3. #3
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "application data directory" How would I got about doing that. See I have my files in my folder on my desktop. All the files I have releated to the game are in the same folder, as well as the save file for my project in mmf2...I have no idea what mmf2 actually does when it creates an installer, lol.

    does it take everyhing from the directory the mmf2 save file is in, plus sub directories? I'm a bit in the dark on that side of things...

  4. #4
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if I'm on the right path with this save business. I'll let you know what I've got set up..

    Ini object
    file object

    The events are as below..

    start of frame
    name of file to test Appdrive$+Appdir$+"Fizbit.Save" under ini > set current file to Appdrive$+Appdir$+"FizbitSave"

    start of frame
    name of file to test Appdrive$+Appdir$+"Fizbit.Save" under file > create the file Appdrive$+Appdir$+"FizbitSave" under ini > set current file to Appdrive$+Appdir$+"FizbitSave"

    player is overlaping object and presses enter under ini > set value Player_Level to item "Level" in group "FizbitsLevel" (i did this for every global value I wanted saved in the file.

    when I run the frame the only thing that I can tell is happening my save animation plays, and sound effect plays. When I look in my project folder I can't find any created file called FizbitSave, so I don't think it's being created....I'm not really sure what to do. I've searched the computer, it doesn't seem to be created anywhere else..

    I'm not sure what's on the go, lol.

    any ideas whats wrong?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  6. #6
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whats that form for? I need a bit more information.

    *edit* never mind, I explored a bit, the files uploading, thanks

  7. #7
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, the file was 14mb, and you can only do a 10mb upload so I uploaded it to media fire. Hope that's alright.

    http://www.mediafire.com/?dls80bgsjyg92oa

    Thanks again...I built, and made an installer, and tested the app...no save file gets created in the game folder anywhere, so I'm definitly did something wrong..

  8. #8
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey I actually figured some of this out on my own. I managed to find some information. I wasn't setting the fiile to appdrive appdir...it's finally creating the file, and storing the information, but I've run into a new problem. I think it's only creating the file once...when I save again it doesn't seem to be overwriting the file, so the player can only really save once...how do I tell the game to overwrite the existing Ini to create the new save file?

  9. #9
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm still having trouble with this, I don't know what's going on now, lol....okay my save point works, and saves the data, and I figured out deleting the file to create the new save file, but on my main menu, I'm having a bit of trouble with loading...

    on the main menu I have a load button, and the ini object...how do I set the ini to the created file? what does set file do? does that set the ini to the created file, or does that create a new file?

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at my mfa. That's literally all you should do. No File object is necessary.

    It's all handled with the INI object. It won't make a file in the game directory because that is bad practice - instead it goes to the AppData directory.

    Seriously, you're over complicating this

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Save As: How to save a string or list and set its filename at runtime?
    By rubes in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th March 2013, 05:43 PM
  2. From point A to a very fast point B?
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th July 2011, 06:35 PM
  3. Save status of entire game (load / save values)
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 13th September 2009, 10:17 AM
  4. Help! - Moving from Point A to Point B - arched.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd April 2008, 07:15 PM
  5. Smoothly from Point A, too Point B?
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 4th April 2008, 04:46 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
  •