XerShade Posted February 6, 2013 Author Share Posted February 6, 2013 Okay pick which method of storing game data you prefer, map tile data will always be in a binary because you will be there for days trying to do that with a sql database. Link to comment Share on other sites More sharing options...
cheatking Posted February 6, 2013 Share Posted February 6, 2013 Text files. Link to comment Share on other sites More sharing options...
XerShade Posted February 6, 2013 Author Share Posted February 6, 2013 > Text files.Can go die. Link to comment Share on other sites More sharing options...
cheatking Posted February 6, 2013 Share Posted February 6, 2013 > Can go die.It's how I store my un-encrypted passwords.Edit:No love for JSON / YAML?SHAME ON YOU! Link to comment Share on other sites More sharing options...
XerShade Posted February 6, 2013 Author Share Posted February 6, 2013 > It's how I store my un-encrypted passwords.> > Edit:> > No love for JSON / YAML?> > SHAME ON YOU!Ran out of options, blame Marshy Dearest. Link to comment Share on other sites More sharing options...
Mal Posted February 7, 2013 Share Posted February 7, 2013 > Okay pick which method of storing game data you prefer, map tile data will always be in a binary because you will be there for days trying to do that with a sql database.Not true at all. I voted SQL/EF with CodeFirst. Link to comment Share on other sites More sharing options...
XerShade Posted February 7, 2013 Author Share Posted February 7, 2013 > Not true at all. I voted SQL/EF with CodeFirst.Enlighten me then ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Helladen Posted February 7, 2013 Share Posted February 7, 2013 SQL is the best for an online game in my opinion. Link to comment Share on other sites More sharing options...
Mal Posted February 7, 2013 Share Posted February 7, 2013 > Enlighten me then ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)LINQ. Design your Map class as normal, setup your db context (as I was saying earlier in the shoutbox), and wahlah; you can query an SQL database using LINQ like so:```Map thisMap = (from m in YourContext.Maps where m.MapNumber == 123 select e).FirstOrDefault();```Let me know if you need help with it. Takes some getting use to how you deal with class changes using migrations and the initial setup, like installing NuGet and the EF package. Link to comment Share on other sites More sharing options...
Marsh Posted February 8, 2013 Share Posted February 8, 2013 Whats wrong with good ol fashioned binary?Write the entire class to a file. Read the entire class back. Link to comment Share on other sites More sharing options...
Mal Posted February 8, 2013 Share Posted February 8, 2013 > Whats wrong with good ol fashioned binary?> > Write the entire class to a file. Read the entire class back.Toolset, man. Client side, most viable solution is binary and I'm a fan of serialization to both binary and XML (sooo gud), naturally. If you want to manage your data in a number of different ways with remote access/server side? SQL. Link to comment Share on other sites More sharing options...
cheatking Posted February 8, 2013 Share Posted February 8, 2013 I save/load data as pngs now anyway.It has the bonus of being modern art! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now