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 Discussion / I need help with my map editor. Can't load and save maps!

Author
Message
Colonel Cool
19
Years of Service
User Offline
Joined: 3rd Aug 2005
Location: Somewhere
Posted: 5th Aug 2005 00:04
I have a problem with loading and saving my maps I make in my map editor. I tried save array and load array but when I load a map it doesn't load it stays blank can anybody help me with this.

Ogre Software - RPGs and Tools Made In DBC
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Aug 2005 14:47
Try opening a file to write, then saving all of your data as strings using Str$().

Using this method, you can open the file with notepad afterwards and check that the values that have been written are correct.

When you load the data back in again, you load each item into a string variable (like Temp$) and then transfer it into the numeric variable with VAL().

If you are not sure on how to do this, post back and I'll expand on the method...

TDK_Man
Colonel Cool
19
Years of Service
User Offline
Joined: 3rd Aug 2005
Location: Somewhere
Posted: 5th Aug 2005 14:54
I'm gonna try the method Underworld used in his post. Otherwise I'll have to experiment and stuff. Thanks for the help TDK.

Ogre Software - RPGs and Tools Made In DBC
Current Game - Mystic I: Quest of A Lifetime
Current Tool - DarkTile V1.0
Colonel Cool
19
Years of Service
User Offline
Joined: 3rd Aug 2005
Location: Somewhere
Posted: 6th Aug 2005 19:00
I still can't get the darn thing to work. Can anybody give me some help.

Ogre Software - RPGs and Tools Made In DBC
Current Game - Mystic I: Quest of A Lifetime
Current Tool - DarkTile V1.0
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Aug 2005 07:31
OK np!

Give me a list of the variables you need to write to the file and I'll give you a routine demonstrating how to do it.

TDK_Man
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Aug 2005 14:31
Download my document on creating a database program. It'll show you how to write custom files and read them back in again.

http://www.thegamecreators.com/?m=codebase_view_code&i=b6c4a300eac7a575df83839971337184

PETA - People for the Eating of Tasty Animals

Login to post a reply

Server time is: 2025-05-22 14:59:05
Your offset time is: 2025-05-22 14:59:05