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 / Quickie Question

Author
Message
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 19th Feb 2003 21:44
just a quick question as i've gotta go do something for a few hours so kinda expect an answer from someone ...

is it possible to read data statements direct from included files?

if not then i guess i'll have to rewrite the data reading function in my array compiler - would rather not, but if i have to
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Jadelion
22
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 20th Feb 2003 01:09
I might be a littel confused about exactly what your asking but here is what I tried. if the data stament in in a function that is part of an included file then I had no problem accessing it. However, if the included file only contained a data stament I got an answer of 0 (Darkbasic autoassigning values because it couldn't see the Data statment)

So basically I think you are going to have to rewrite your data reading function like you figured you'd have to. Sorry I couldn't be of more help.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Feb 2003 08:27
yeah i kinda came to the same conclusion

the question was basically like



that was basically what i was asking - also got the same results ... which was quite annoying lol

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 20th Feb 2003 16:45
What if you would store your data allready like array, which you can save or load to file and then simple reload data you need from one array to another??

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Feb 2003 17:48
lol... i'm making an array saver function (or rather was)

where what you did was write out the data for the array, and then you could use the exe to compile that data into a game array

data dwDataCount
data "..",-> dwDataCount

that way me and Rose could just precompile a game array by adding extra elements onto the chart - i've changed it now just to go by the files within a directory to array the data, then compress them into a packaged file

crude but effective

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?

Login to post a reply

Server time is: 2025-05-16 11:24:18
Your offset time is: 2025-05-16 11:24:18