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.

DarkBASIC Professional Discussion / Manage savegames.

Author
Message
Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 1st Mar 2012 21:54
Hi guys, at this point of our project, we need to make savegames. As i know in DbPro a savegame is just a file, with variables written in.

My question is which is the command to write and load from a file?
Thanks in advance.
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Mar 2012 21:59
the best way is to make a txt file saver and reader.

so ur format will go like:

-mysave.txt-
PosX: 10
PosY: 0
PosZ: 10
Nickname: GogetaX
-end file-

thats the best way there is.

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 1st Mar 2012 22:10 Edited at: 1st Mar 2012 22:10


This is one way of do it using DBP native commands.

Giku_
14
Years of Service
User Offline
Joined: 14th Jan 2012
Location: The World
Posted: 1st Mar 2012 23:43
Thank yo very much, i will try tomorrow!

Login to post a reply

Server time is: 2026-07-09 00:19:21
Your offset time is: 2026-07-09 00:19:21