Forum Thread
  Posts  
Java save/load (Forums : Coding & Scripting : Java save/load) Locked
Thread Options
Jan 17 2013 Anchor

Hi everyone,

I began programming this summer so I'm still new to it. I've been learning java which has been enough for me to make games, however I have some questions about saving and loading. I've found a few ways to do it, my games currently save/load .txt files. I would like to hear other java programmers on how they have solved saving/loading in their games, and why they prefer to do it that way.
Thanks in advance.

lancer611
lancer611 Professional Software Developer
Jan 17 2013 Anchor

Depends on what you are saving and how much. Database, XML, and encrypted text and/or binary are all common options.

--

Controlling complexity is the essence of computer programming.  --Brian Kernigan
Game I was paid to make - Play.google.com

Jan 18 2013 Anchor

My current main project is Robbin' Goblin, which is a smaller game, so I don't think there'll be many variables to save (maybe around 30, some of them are arrays so it could go up to 100-200).

What does it depend on? Only on how much data you want to save? (I'm speaking about saving variables like, int, double, String).

lancer611
lancer611 Professional Software Developer
Jan 18 2013 Anchor

Well is it sensitive information? ie, are you worried about someone hacking it and changing information?

Do you save all of those variables only once each? Or do you need to save the whole set of variables many times?

--

Controlling complexity is the essence of computer programming.  --Brian Kernigan
Game I was paid to make - Play.google.com

Jan 26 2013 Anchor

The game isn't constantly saving, it saves/loads when changing profiles (saving all variables to the profile and loading the new one), and when player completes a level. The levels last about 2-3 minutes, so that'll be the average save time and it's not sensitive information.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.