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.

Newcomers DBPro Corner / matrix coords written to a file

Author
Message
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 8th Mar 2004 03:46
how do i write all the matrix height coordinates to a file? i have a matrix that is 10,10,10,10 and i tried this:

if keystate(31)=1
open to write 1,"mat1.txt"
for x=0 to 10
for z=0 to 10
ht#=get ground height(1,x,z)
write byte 1,ht#
next x
next z
close file 1
endif

but that didn't work.....i am making this so that i can save and import matrices that i made in my editor...thanks

Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
Cebollo
20
Years of Service
User Offline
Joined: 6th Mar 2004
Location: Córdoba, Argentina
Posted: 8th Mar 2004 05:24 Edited at: 8th Mar 2004 05:33
Did it work the first time? cause maybe you need to delete the file.

Right now I was kind of experimenting with a matrix editor, so, I´ll give you what I´ve got. I wrote the system myself so it´s not very complicated. It also raises hills. s = save, l = load, l_click = raises hill, r_click = lowers point. Camera is controled with arrows and Pg Up and Down. Please, I´m desperately looking for a team, so, contact me please. The functions you may need are save and load, but if you like the rest, give it a try. All comments are in spanish. Please, write me back. patricio_marrone@hotail.com

Login to post a reply

Server time is: 2024-09-22 00:34:49
Your offset time is: 2024-09-22 00:34:49