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 / SAVE file possibility.

Author
Message
alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 24th Sep 2015 09:08
For a game I look for a SAVE file possibility.
I make a menu with 10 save game features.
Now the player makes his own name for the save file.
how can I make the menu so that menu to load the save file names can also be found there.
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Sep 2015 20:08
Why not create 10 save files with fixed names and make the save name a variable inside the save file instead?

Look into .ini creation through STYX or Matrix1utils found on the forum somewhere...

Good luck...

Hopefully someone can help you with the menu element of your question...

alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 24th Sep 2015 21:24
i have now Styx whit ini but not a lot ifo how you can do it.
so a have spent 30 euro and i am have the same problum.
i can not make a save file systeem whit 10 save fils .
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Sep 2015 21:27
Quote: "
i have now Styx whit ini but not a lot ifo how you can do it.
so a have spent 30 euro and i am have the same problum.
i can not make a save file systeem whit 10 save fils .
"


What?

I cannot make out whether you HAVE purchased STYX or you are saying IF YOU PURCHASED IT HOW TO XYZ...

Did you buy it already?

There is more than enough information of how to use STYXs INI functionality... which part are you stuck with?

alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 24th Sep 2015 22:14
sorry my engels are not very good

have the program just bought 1 hour ago 20:25
I watched the demo which was ini file in the folder.
I do not understand how it works because the demo program will not run.
So after what I read, and what I know of DBP pro I will not go far.

I am currently working with the following:

filename$="mydata.dat"
if file exist(filename$) then delete file filename$
a=10
b=20
open to write 1 filename$
write string 1,str$(a)
write string 1,str$(b)
close file
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Sep 2015 22:27
Quote: "sorry my engels are not very good "


English

Quote: " have the program just bought 1 hour ago 20:25"


You can download it already?

Quote: "I am currently working with the following:"


This is not for INI... I am not sure, can you state your original language and write it so we can translate maybe?

alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 24th Sep 2015 22:30
i have the programe al ready and running .
treu is not ini but the code are from the book hands on darkbasic pro 1 and 2
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 24th Sep 2015 23:02
I am completely lost here...

alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 25th Sep 2015 07:31
this code come from the book DBPRO Guide beginners guide to DARKBASIC PRO write by Nickydude and from the book HANDS On DARKbasic pro Volume 2 and 1 write by Alistair Stewart.

filename$="mydata.dat"
if file exist(filename$) then delete file filename$
a=10
b=20
open to write 1 filename$
write string 1,str$(a)
write string 1,str$(b)
close file

this code are not from Styx ini i dont now how i can the a and b write to ini file .
i hope now that you not lost now
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Sep 2015 07:40
Really? did you even look at the example code for STYX ini?

SET INI VALUE 1, "VALUE", "a", 10
SET INI VALUE 1, "VALUE", "b", 20
SET INI VALUE 1, "OTHERVALUE", "c", 30

Should give a file with

[VALUE]
a=10
b=20
[OTHERVALUE]
c=30

Also in the example code change "c:\Testing.ini" to ".\Testing.ini" in both instances...

alexander1973
10
Years of Service
User Offline
Joined: 10th May 2014
Location:
Posted: 25th Sep 2015 08:20
okay now I get somewhere.
I will go on weekends. mess with the ini file
few experiments do what fits my idea.
I could call with anything I write to you?

thank you for your time to help my out
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Sep 2015 08:29
Quote: "I could call with anything I write to you? "


Here and anybody not just me

I am avoiding giving you the entire code as you should give it a try first, and then we can help you more if you are truly stuck

GL!

Login to post a reply

Server time is: 2024-11-21 12:54:54
Your offset time is: 2024-11-21 12:54:54