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 Professional Discussion / File Read help plz!

Author
Message
RougeCat
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Xdrome
Posted: 13th Sep 2004 23:27
Im reading data(basically wavepoints) frm a .dat file and placing a a small sphere to mark the point. Since I have this process of reading the point inside a while loop at the end of it an extra point is created as well. Which isnt part of the wavepoint. Is there any way to avoid this other than just deleting the last object? I've tried putting this in a IF-ENDIF, REPEAT-UNTIL as well but still the last point is created. Even if I first store the values inside an array then create the markers for it the last point would still exist n theres no way out.


Heres my code



Heres the X file(the actual route) in txt format



And the .dat file with the wavepoints


Well i've basically loaded the .x route just to check if all the points r in position. Thanx for ur help.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 14th Sep 2004 06:30
You could check the X and Z readings to make sure they're valid, like maybe have a set value for each to mark the end, when the read values match the end values you end the loop.


Van-B


Muhahahahaha.
the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 14th Sep 2004 06:59
This is what I do




it's cool to hate
RougeCat
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Xdrome
Posted: 14th Sep 2004 13:59
Thanx guys I got it goin now.

Login to post a reply

Server time is: 2025-06-06 17:24:36
Your offset time is: 2025-06-06 17:24:36