My 2D Top Down Online RPG

Discussions Regarding Coding (C/C++/Objective-C Mainly)

Re: My 2D Top Down Online RPG

Postby Johnson » Sun Dec 04, 2011 5:35 am

Fouf wrote:I would like to get some input on how I'm planning to manage user information, I'm planning to use XML files, at first I thought multiple xml files, one for each account, but then I was told one would work, and I could have the server just save to this file once every so and so, etc, and that would faster.
so an example,
users.xml
Code: Select all
<account>
    <name>Fouf</name>
    <password>1JFJij2D2</password>
    <character>
          <characterName> 123 </characterName>
          <location ...>
    </character>
   <character>..
   </character>
</account>
<account>
..
</account>


Is xml a bad idea for this? I'm not planning to make it a MMORPG or anything, maybe something people could host servers for some friends, but I might go with hosting some dedicated servers.. I'm kind of unsure atm hehe.


Use a database.
Johnson
I Have a Question
 
Posts: 2
Joined: Sun Oct 16, 2011 11:15 pm

Re: My 2D Top Down Online RPG

Postby L. Spiro » Wed Dec 07, 2011 3:07 am

JSON is preferred over XML these days as it produces smaller files.
If you were concerned about file size or encryption/cheaters, binary would be the best option.


L. Spiro
It is amazing how often people try to be unique, and yet they are always trying to make others be like them.
- L. Spiro 2011
L. Spiro
Site Admin
 
Posts: 54
Joined: Thu Jul 21, 2011 2:59 pm
Location: Tokyo, Japan

Previous

Return to Coding

Who is online

Users browsing this forum: No registered users and 0 guests

cron