User Tag List

Results 1 to 3 of 3

Thread: [ANDROID] - Problem with INI Saving/Loading

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)
    DuckJohnn's Avatar
    Join Date
    Aug 2016
    Location
    Finland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry [ANDROID] - Problem with INI Saving/Loading

    Hello. I have problems saving and loading my games on android.
    This is driving me crazy. What I do wrong? What should I do?

    Here is example files (.fma &.apk)
    https://drive.google.com/open?id=1bQ...WvUKcfhnkDR845

    When I change my "Ini-Score" and "Ini-Lifes" to 25 and back to 0 and back to 25, it initially seems to work, but when I reload "StorageDirectory", "Frame" or "Application" it sometimes thinks differend values.
    ONLY top three buttons should change the values, but NOT the four lowest. It may sometimes work, but mostly it doesn't work correctly.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,043
    Mentioned
    130 Post(s)
    Tagged
    3 Thread(s)
    i see 2 things

    you are using two INI object with the same file which is not possible they are in conflict and not have the same values.


    and when you refer to the ini inside datastorage or external storage shoudl be


    DataStorageDirectory$( "Android object" ) + "/"+ "save.ini"


    adding a folder separator
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)
    DuckJohnn's Avatar
    Join Date
    Aug 2016
    Location
    Finland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh duck. I have been using the INI object wrong all these years . I feel stupid right now

    Thanks. It seems to work perfectly now

    "you are using two INI object with the same file which is not possible..."
    well... even though I have used more than 50 INI files using the same technique, it worked perfectly fine (but then I made the Windows game instead of the Android game...), but it was 3 years ago and nowadays I use a AssArray object on Windows games.

Similar Threads

  1. Replies: 0
    Last Post: 14th June 2018, 10:58 PM
  2. Problem with saving\loading of a global value
    By evi1ove in forum Fusion 2.5
    Replies: 4
    Last Post: 13th June 2016, 11:51 PM
  3. Need help saving and loading a List in Android
    By fwtep in forum Android Export Module 2.5
    Replies: 2
    Last Post: 3rd March 2014, 03:10 PM
  4. Problem with saving/loading an NVO array file from the Named Variable object?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th January 2012, 01:17 PM
  5. Problem with array loading/saving with INI++
    By timcclayton in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st November 2010, 06:21 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
  •