User Tag List

Results 1 to 4 of 4

Thread: Saving Global Values (Multiple Save files)

  1. #1
    No Products Registered

    Join Date
    Apr 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving Global Values (Multiple Save files)

    Hey guys,

    I'm having difficulty retrieving multiple global values for multiple save files, does anyone know how i'd go about doing it?

    For clarification, when the player loads/saves a game they have the option of 3 different save files. I'm trying to make it so when the player selects a save/load file - their purchases and level progression is retrieved (both of which are saved via global valuables. I'm having difficulty both retrieving the data and making the data unique to their specific save file.

    Anyone have any ideas? Would be hugely helpful!

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    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)
    wpd's Avatar
    Join Date
    Nov 2015
    Location
    SE Asia
    Posts
    407
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)
    Ini Object

  3. #3
    No Products Registered

    Join Date
    Apr 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, ive tried using an ini object but i dont properly understand how to use it with globals

  4. #4
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    985
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just a Cleric uses the ini object in conjunction with files named like this:

    (file to use) = "SAVE" + Str$(fileselected) + ".ini"

    So when you select between the 3 files for say the file select / loading screen the variable of (fileselected), which is a global value, is either 1, 2, or 3. Saving the ini like this makes a file named:

    SAVE1.ini
    SAVE2.ini
    SAVE3.ini

    Then when you need to either save or load from it later from within the game, just call back that global (fileselected) value and it'll work!

    EDIT: It also uses the Blowfish object to encrypt the ini files, as you don't want people to just be able to get in there and give themselves a million gold pieces or whatever. Consider this as well!

Similar Threads

  1. Saving numerous Global Values
    By WhatPixelYouOn in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th September 2015, 08:08 PM
  2. 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
  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. Saving global values?
    By TSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th May 2008, 05:25 PM
  5. Saving Global Values
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th June 2007, 12:52 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
  •