User Tag List

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

Thread: Storing Data

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module
    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)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Storing Data

    sorry if I missed this but so far the only way I see to store data would be via INI files (INI object). Are there other ways that I'm missing? I was hoping for support of XML but the two XML extensions aren't supported in the Droid Beta.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,350
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I would assume you could save the content of an Edit object, but I cannot get that to work. I don't know where (or if) the file is saved.
    A way that definately works is to store data on a webserver if you have one and know how to progam it. Then you would use the GET object to communicate with the server.

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export Module
    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)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks but won't work. I shoulld have been clearer in my post. I want to store the data locally. For example, store user config settings. It doesn't need to be secure (I.e. encrypted). The data being stored is not sensitive. Looks like the INI object may be the route I will have to go.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,350
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Yes, ini is perfect for that

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export Module
    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)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just researched INI vs XML. Found out there's a limitation on INI values. Values characters can be no longer than I believe 256 characters. I was going to use the INI to also store info such as definitions. The original app I'm developing (PC version) uses an XML file to store the values, definitions, etc.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's not true (at least on Android).

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to be a total noob here but could someone give me a quick run down on how to use the ini object?
    I've never actually used it, I use associative array on normal MMF2.

    How do you create it initially on the device?
    What's the command to say set item difficulty to 3.
    How would I read that back off the ini for example at start of frame read difficulty and set a global value to it?

    Sorry if they sound like dumb questions but my experience with this is 0.

  8. #8
    Clicker Fusion 2.5 DeveloperSWF Export Module
    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)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First you have to set the ini file name. If you want to call the file name mygame, then you could do:

    At Start of Frame > Set Current File "mygame.ini"

    This would create the file mygame.ini in the same directory as your application.

    There is no "command." INI files are just plain text such as this:

    [Settings]
    Difficulty=3

    [Settings] is the group. Difficulty is the item and 3 is the value. So you could create whatever you want in your game.. Maybe even put it in a group if a lot of things. At startup, disable the group. Then, set a condition. Compare two general values:

    If ItemValue("INI","Difficulty")=3
    Enable MyGroup

    Replace MyGroup with whatever you want to call your MMF group. This is not to be confused with the INI groups previously-mentioned. In the Multimedia Fusion 2 Help folder is a file called Ini.chm. That is the help file for the INI object. It explains a bit more about the groups, items, etc. I would really like to see support for the INI++ object.

  9. #9
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I'll give that a go.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Note that the INI object creates a virtual file on Android, not a real one (I believe it's the same with iOS).

Page 1 of 2 1 2 LastLast

Similar Threads

  1. My options for storing/retrieving game level data
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th July 2014, 10:11 PM
  2. Storing infomation in ini++...
    By Earl in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 6th August 2012, 02:53 AM
  3. Storing Data in an Extension
    By Dines in forum Extension Development
    Replies: 1
    Last Post: 31st January 2012, 02:30 AM
  4. Storing data over several frames
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th November 2010, 10:18 PM
  5. Questions about Storing External Data
    By Simion32 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd March 2007, 12:16 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
  •