User Tag List

Results 1 to 9 of 9

Thread: Where should a game store it's savegames?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where should a game store it's savegames?

    Sounds simple, doesn't it? Appdrive$ + Appdir$ of course!

    Not in this case though. This is my dilemma: The game must be available in two versions. A installer for beginner computer users, and a .zip version for the more advanced.

    The installer will by default install the game into the program files\nameofgame folder. An admin account is required to write to that directory, so logically, an admin will usually install the game.

    A limited account can not write to the program files folder. Only administrators will be able to save and load within the game, as they are the only ones with permission to write to Appdrive$ + Appdir$.

    So... I could store the savegames somewhere in the Documents and Settings\User folder. But where? Besides, I sort of need to retrieve the directory name where the files should go, regardless of which language version of Windows is installed (because the folders might be named differently). I basically need an AppDataDir$ predefined constant.

    But then, if the user extracted the .zip version, I certainly do NOT want to write outside the game folder. AppDrive$ + AppDir$ is a lot better option in that case...

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Where should a game store it's savegames?

    Why Appdive$+Appdir$?
    Why not just Apppath$?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    Okey. Apppath$ then, it's the same thing anyway. However, as the application folder is where the data is not supposed to be stored, the actual problem remains.

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

    Re: Where should a game store it's savegames?

    Apppath$ + "save/"
    I didn't know non-admins couldn't write to the program files folder. Are you completely sure of that?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    I have to test.

    edit: I can confirm that in Windows XP, limited accounts can NOT write to the Program Files folder or any sub-folder. Remember that on most home installations of XP, every user usually have admin rights... but create a limited account and you'll see the problem.

    A limited account only have access to it's own user folder. If my user name is "Nifflas" I can only access C:\Documents and Settings\Nifflas (and some random temp folders I guess). So that's where I have to store the files... but where? and how do I retrieve that path name?

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    I don't have MMF2 to hand, but doesn't it have a new expression for the user's application data directory? If not I'm sure one of the system extensions can get it.

    It works out as something like: C:\Documents and Settings\~Username~\Application Data\

    Alternatively, you could try using "%APPDATA%\~program name~\".

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    Thanks! That will sure help!

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    See the File object to get the application data directory.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where should a game store it's savegames?

    That's perfect! I had no idea the file object had that option!

Similar Threads

  1. My published game does not appear in Google Play store?
    By Outcast in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 25th May 2013, 10:57 PM
  2. My iPad game was #1 in the App Store yesterday!
    By Cybert9 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th February 2012, 01:00 PM
  3. My first iOS game on the app store.
    By colej_uk in forum iOS Export Module Version 2.0
    Replies: 25
    Last Post: 27th October 2011, 02:24 PM
  4. in game store for micotransactions
    By HenSoup in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 22nd October 2011, 06:42 AM
  5. Best way to store data for an online game?
    By Neonotso in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 8th March 2007, 04:04 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
  •