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.

Dark GDK / restore, data, and read

Author
Message
fllwthewolves
12
Years of Service
User Offline
Joined: 4th Sep 2011
Location:
Posted: 11th Sep 2012 04:27
Does anyone know how to substitute for those 3 commands for dgdk?

i am trying to port one of my games over from dbp.
aerostudios
14
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 14th Sep 2012 02:40
I am using the other DarkGDK.NET and faced the same problem. My data consisted of X/Y pairs such as;

PTDATA:
DATA 123.45, 678.90

What I did was cut and paste all of my data to a textfile using NOTEPAD and then did a search and replace until the data looked like:

123.45, 678.90
.
.

etc.

Then I saved it as "datapnts.txt"

I then used the following code in VB to read the file to an array:

mistsnake
13
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Inside the matrix
Posted: 15th Sep 2012 02:16
if using c/c++ you could just load the values into a array something like

int datavals[] = {12,2,34,45}; //datavals represents your data: line
rr = datavals[2] ; // read the 3rd element

or you could use a variable in place of the number, set the var back to 0 when you need and you've got your 'restore'

Login to post a reply

Server time is: 2024-03-29 10:28:33
Your offset time is: 2024-03-29 10:28:33