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 / how do save matrix tile values for reloading

Author
Message
miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 7th Jan 2005 20:01
i can save matrix height "get matrix height"
but how do i "get" matrix tile values

many thanks in advance

in the end
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 7th Jan 2005 21:38
If you are using DBC,

Then search in the DBC examples/help menu
And look at 'Matrix Examples'

You'll get it there

[b]Nukesoft[b]
[b]The worst team on Earth![b]
miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 8th Jan 2005 02:10
i've looked (a lot), and again.

i still can't sus how i use
"matrix tile count(1)" or "matrix tile exists(1)" to reach the
equivalent of "get matrix height(1,x,z)"

shortly, how can i....get matrix tile(1,x,z) to save in an array?

in the end
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 28th Jan 2005 07:36
If you are setting the tiles on the matrix in db, then you can record the position and tile number in an array.

Don't let life get you down, it will only get better.
miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 31st Jan 2005 13:55
thanks neojacob,

sorry for me being so thick but i just don't get it.

please throw me a line of code to set me straight...
i know you can help.....

kind regards
miki

in the end
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 2nd Feb 2005 04:39
Basically, have an array called MatrixHeight(XTiles,ZTiles) and another called MatrixTile(XTiles,ZTiles). Then every time you set a matrix tile then update the array.
Eg.

Then store all the matrix heights into the other array.

Then use the save array command.


miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 2nd Feb 2005 12:00
hi,

andrew neale you're a sweetheart...thanks ever so much..
i hanged on for a month for someone to tell me that..
once again i thank you.
-----------------------------

i made a small matrix editor for my own purposes and i saved the heights just as you said...but i saved the tiles by "write to file"
...................ended up with 7000 lines of generared code


YOUR WAY WILL STOP ALL THAT
I'M REALLY QUITE CHUFFED
THANKS AGAIN

kind regards
miki

in the end

Login to post a reply

Server time is: 2025-05-24 04:09:56
Your offset time is: 2025-05-24 04:09:56