User Tag List

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

Thread: Help needed with INI++ 1.5!

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Help needed with INI++ 1.5!

    Hi all. I'm trying to test out the INI++ 1.5 (latest version - January 2017) and have noticed that the help .html seems to correspond to an older version. I can get it to work when loading an object positions+values when in the game and can see it writing to the file I've set in the game folder, but it just won't load. I can't tell if I'm just doing something wrong when loading the file or not... I can't seem to find any examples where a file is saved and then loaded and the options presents when loading\saving\etc a file action is created is a bit confusing.

    It can't be permissions in Windows 10 as I can see it writing to the file.

    Can anyone help?

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,461
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    So you can write but you cannot read. Try a different folder like to your desktop as a test.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    So I gave up on the INI++ object, thinking it either has an issue or I just don't know how to use it - so I used the Array Object instead and had the same issue... I saw it write my .arr file but then would refuse to load it.

    Then I realised, this isn't the days of Windows XP anymore - I'm using Windows 10 and I'm saving my file lazily to the game's folder - which is definitely not how I would want it in my final product anyway as this is definitely not a good practice. I then saved my array to C:\ProgramData\Test and it worked.

    Therefore, I think it was actually permissions after all. So there's a chance I can go back to using INI++ and it will read and write the file correctly. My issue now is deciding where to have my game save it's files - what is the best practice for this? As I want my game to work on all Windows platforms from, ideally, Windows 7 and upwards at least. Is it possible to use %appdata% in my file path?

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,461
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    You are correct it is permissions.

    Windows has a set of different directors (folders) defined on where to save your data and programs depending on what you are trying to do. For example what if a computer is used by more than one person and they each have an "account" on the same computer. Where you save your data will either allow both users to have access to the data OR only one.

    You need to google and read up on the Microsoft standards in this regard.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I'm so rusty - last time I used Fusion it was Win7 and I certainly didn't do any data saving. I grew up learning it on Win98 and XP! Glad it wasn't necessarily my coding though.

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi guys - where do you guys all save files? I can save a file if it's to a "hard coded" path - for example, C:\ProgramData\Test\ but this is not really correct. I'm trying to make it save into the user's local profile - but I can't get things like %APPDATA% to work. What does everyone do nowadays for save game paths?

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    MrNaif's Avatar
    Join Date
    Jul 2017
    Location
    Belarus
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using file object to get directories,in my case, user directory.

  8. #8
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,461
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

  9. #9
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Ah. I did not think of that. I've been trying to find an expression! OK - so I can use retrieve the path from the file object in the expression editor?

  10. #10
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Nov 2017
    Posts
    105
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks - this is useful, however, I don't think Windows 7 and later uses ..\Documents and Settings anymore, it's C:\Users\ nowadays?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Help needed with my AI
    By colpolstudios in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th June 2014, 10:42 PM
  2. iOS help needed
    By Giraffe89 in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 1st March 2014, 10:16 PM
  3. HELP NEEDED! Rockman X [Megaman X] Dashing Help needed.
    By Rockman in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 30th July 2013, 07:05 AM
  4. RTS ... Help needed!
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 30th March 2007, 06:02 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
  •