Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Query about saving data

Author
Message
SonicX
20
Years of Service
User Offline
Joined: 17th Oct 2003
Location:
Posted: 3rd May 2004 23:34
Hello,
I've developed a save system for my game. However it's not very good, I use one file to store all the character's names, another to store their level, another for HP etc... Isn't their a better way to save all this data without using so many files? I've tried to save all this data into a single array please see code snippet. It doesn't work. Does anyone know a way around the problem?
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 4th May 2004 00:11
yup, you can't save typed arrays in dbp. The best way would probably be to write all the data to a file.

In the beginning, the universe was created...
This made alot of people very angry and it has been widely regarded as a bad idea...
Visit http://redeye.dbspot.com
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th May 2004 00:31
we have nice file functions in our Plugin-click logo below


* DBP_NETLIB_v1 - PLUGIN FOR DBP * Click LogoMooooooo!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th May 2004 01:04
You basically need to work out what order you are going to save everything in. Then just save it all to one file. Then when you need to load everything you know what order to load it in.

Something like


i won't see you in the pit
SonicX
20
Years of Service
User Offline
Joined: 17th Oct 2003
Location:
Posted: 4th May 2004 02:54
Wow! Thanks a lot you guys. Now I can get rid of all those dat files.

Login to post a reply

Server time is: 2024-09-22 08:43:11
Your offset time is: 2024-09-22 08:43:11