User Tag List

Results 1 to 10 of 10

Thread: Saving Global Values

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving Global Values

    Hi, everybody, I'm making an 8-direction RPG game that has RPG style battles which use global values to save your items(You buy them with money you earn). I was wondering if it was possible to save global values onto your computer so you can save/load global value information. Is there a way? I tried to use INI files, but none of them really makes sense to me. Thanx!

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Ćrhus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Saving Global Values

    If you save them into INI files everyone will be able to open up the file and edit the values.
    You could try using the Named Variables object. With it you can save values into named slots like "Money", "Item1", "Item2" ect. ect.
    With the object you can also save into an encrypted file easily so nobody can open up and modify the game files without knowing the encryption code.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    Ini is generally fine, it's the players fault if they want to cheat, it's their loss missing out on the game.

    I usually just loop the variables into an array and save that, the only easy way of snooping into that would be to create an MMF application of your own to load and edit it.

    Arrays are simpler than Ini files too, they're basically a grid of data, which you reach by coordinates.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    I don't know if I'm right but I think the "save object" can save/load all your global values...

  5. #5
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    Yeah, I've tried using the Save object in a previous game with the same RPG battle stuff, but I couldn't get it to work. I'll try using the Named Variables object, though....

  6. #6
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    I tried to use the Named Variables object to save the score counter I'm using to keep track of your money, I'm just not sure how exactly to save the Global Values, and how to have separate game files, etc. I have it where on the title frame you can click on 'Load' and that's where I'm stuck, I'm not sure how to have game files that you can load. Can you please help me? Thanx!

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    I put up an example of how to load values from an INI a while ago -

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Board=5&Number=23445

    It doesn't do exactly what you're after, but it will at least give you some idea of how an INI is laid out and accessed, as well as some ideas as to how to keep multiple save files.

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    I'm working on a game that needs to save global values such as player health, lives, and some other stats. I just load them all into an array and save the array to a file, and then load the array from that file and then set each global value to the corresponding array position. It works fine, but there may be a better way. I like the arrays because they save as a weird cryptic file that cant be edited in notepad

  9. #9
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    Can you please explain how to load stats and values to Named Variables? I tried playing around with it a bit, but I really can't make much sense of it...I haven't ever really used it before.

  10. #10
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Global Values

    Hmm... Well, I used Global Values to indicate what level you're in, so if you hit load, and if Global Value O=blah blah blah, you go to this frame, etc. But that's only if you start a game and go back to the title screen. Something that could be saved in a folder that could be built when you install the program is probably what I'm looking for. That, and having multiple game files.

Similar Threads

  1. Saving/Loading 250 Global Values to/from INI
    By DaveC in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 30th November 2011, 02:36 AM
  2. Saving Group info to Global Values
    By matt_barr in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd October 2009, 04:37 PM
  3. save global values without saving the whole frame?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th December 2008, 04:48 AM
  4. Idea :: Saving all Global Values to external file
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th September 2008, 04:41 AM
  5. Saving global values?
    By TSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th May 2008, 05:25 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
  •