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 / Finding a loaded game file

Author
Message
Daniel wright 2311
User Banned
Posted: 6th Jul 2012 07:38
So,you have a saved game,you want to load in that saved game from a file.

What would the best way to show this to the player?

first I have to look for the file,Then I have to dissplay the file to screen,then make it cliable.

In code,what would be the best way to do this?Get file?

Thanks guys.

my signature keeps being erased by a mod So this is my new signature.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Jul 2012 10:23 Edited at: 6th Jul 2012 10:43
The best way to do that would be to scan the folder for save files using the command perform checklist for files. You then have to loop through all of the files found and see which ones are save files. Pick those out and display them in a list on the screen for the user to click on. Here's a small example off the top of my head.



TheComet

Daniel wright 2311
User Banned
Posted: 6th Jul 2012 22:25
@TheComet

Thank you,thaks so much,I will work on it for my code and let you know when I get it to work,much love.

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-07 19:08:50
Your offset time is: 2026-07-07 19:08:50