User Tag List

Results 1 to 6 of 6

Thread: Anybody have Ini++ objext example?

  1. #1


    Join Date
    Jun 2016
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anybody have Ini++ objext example?

    Does anyone know how I would able to use Ini++ object to save in one frame and load through another frame which would be the main menu? And the reason im using Ini++ instead of ini is because encrypt data.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2016
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Saving the player's Health would be like this. You would do the same thing for every value you want to save.

    Start of Frame:
    INI > Loading and Saving > New/Load/Change File > "Apppath$ + "savefile.ini""
    INI > Set current group to "Stats"
    Player> Set value "HP" to "GetItemValue( "Ini++ v1.5 Object", "Stats", "Health", 100 )"

    Player gets hit:
    Player > Subtract 10 from value "HP"
    INI > Current Group > Set Value > Set value "Health" to Player's value "HP"

    Save Event:
    INI > Loading and Saving > Save file

  3. #3


    Join Date
    Jun 2016
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok how would I make a load event?

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2016
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first event loads the file:
    INI > Loading and Saving > New/Load/Change File > "Apppath$ + "savefile.ini""
    Then set each value to a value you've saved in the file:
    Player> Set value "HP" to "GetItemValue( "Ini++ v1.5 Object", "Stats", "Health", 100 )"

    You can replace "Start of Frame" with whatever you want your load event to be. If you're wanting to do it from the main menu you could do something like:

    On Frame 1 "Main Menu":
    User clicks button "Load Game":
    >Set Global Value A to 1.
    >Go to Frame 2.

    On Frame 2 "Game":
    >Global Value A=1
    INI > Loading and Saving > New/Load/Change File > "Apppath$ + "savefile.ini""
    INI > Set current group to "Stats"
    Player> Set value "HP" to "GetItemValue( "Ini++ v1.5 Object", "Stats", "Health", 100 )"
    Set Global Value A to 0

  5. #5


    Join Date
    Jun 2016
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man... you really helped me. I just have one more question. How do I encrypt the files?

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)
    Chloe1234's Avatar
    Join Date
    Feb 2017
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Click "encryption" in the options for ini++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •