User Tag List

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

Thread: Best way to store data for an online game?

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to store data for an online game?

    What do you think is the best way to store data on a server for an online game? Basically, I'd like to store username, password, different statistics (level, experience, max speed, acceleration, jumpheight, etc.), the current level they have gotten to, and so forth, for each person who becomes a member. I'd like it to be (but it doesn't have to be, I suppose) in a format that is relatively easy for me to read, or able to be converted to such a format (and back again). I'd like it to be somewhat simple, but if there is a more complex way that is better, then please also tell me about it.

    Thanks for your help,

    Neonotso

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Best way to store data for an online game?

    You could go with SQLDB, Named Variable Object, Arrays, INI, Data Store 2, MagicDeque, XML Parser, etc. Unless you are expecting lots and lots of read/writes or need additional functionality for accessing/manipulating data, then I'd just go with INI (but not serverside IMI).
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    Isn't client-side INI a bit insecure?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Best way to store data for an online game?

    Quote Originally Posted by Jam
    Isn't client-side INI a bit insecure?
    I wouldn't recommend any client-side storage, especially not INI. I was talking about INI files stored and controlled by the server, as opposed to the MooGame IMI files that are stored on the server but controlled by the client.
    .:::.Joshtek.:::.

  5. #5
    No Products Registered

    Join Date
    Nov 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    Okay, thanks! This definitely helps!

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    Out of experiance i can tell the XML is the way to go.

  7. #7
    No Products Registered

    Join Date
    Nov 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    XML? Okay, thanks! (I didn't see your post till today) I'm going to try it. I tried INI already, but there was a problem, so I'll switch to XML and see if the problem is gone or not.

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    what if the data is hosted in 1 application

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=33803&page=0#Po st33803

  9. #9
    No Products Registered

    Join Date
    Nov 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    I was wondering, what are the differences in using XML compared to INI files? Currently, I seem to like the appearance of the INI files better, how that you can easily make changes to the file and such:

    [Neonotso]
    password = ******** (as if I'd let you see the password)
    rank = admin
    home = Actopia
    type = energy
    speed = 20
    acceleration =225
    deceleration = 225
    rolltime = ?
    jumpheight = -20
    specialvalue = 90
    power = ?
    defence = ?
    chargetime = ?
    energyuse = ?
    experience = 0
    level = 1
    version = 4

    But then, what if I have hundreds or even thousands of people join the game? XML stores data in smaller sections (I'm using EasyXML because I don't have the Developer version of MMF2):

    <Neonotso password="********" rank="admin" home="Actopia" type="energy" speed=20 acceleration=225 deceleration=225 rolltime=? jumpheight=-20 specialvalue=90 power=? defence=? chargetime=? energyuse=? experience=0 level=1 version=4 />

    So, with INIs you could more easily find different stats, but in XML you can more easily find different groups. Is it just a matter of preference which one I pick? Or, are there some differences between the two that I should know about? (the problem with the INI is fixed, by the way)

  10. #10
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best way to store data for an online game?

    INIs get a bit slow when the files get largeish, or if your using them in loops... i wonder how well xml goes in this area, never tried it.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Store data on SD card - is it possible?
    By AdamDobay in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 25th March 2012, 12:00 PM
  2. INI or another method to store data
    By Dobermann in forum XNA Export Module Version 2.0
    Replies: 6
    Last Post: 24th September 2011, 10:04 PM
  3. Store data?
    By Grim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th April 2011, 06:13 PM
  4. Store data text in array.
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th May 2008, 08:00 PM
  5. data store, which object?
    By gamer4fun in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 17th July 2007, 05:35 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
  •