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 / Get Ground Height Problems

Author
Message
diseased
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 21st Aug 2003 12:33
in transfering my code from the DBP demo to DBP full, the code doenst work.. i rooted out the problem and found that its something 2 do with the Get Ground Height command.. can someone cut and copy this code into DBP to see if it acts funky for u too?..

the code is very simple, made a matrix, textured it, etc.. made movement commands, and set y=getgroundheight(1,x,z) but instead of moving on the matrix, the keys make you move up and down, actually i think it actually makes the matrix move up and down.. because when i print my getgroundheight, it changes even tho x and z arent

so idunno if my copy of DBP is messed up or if im just blatently and unforgiveably retarded, or if everyone's is screwed up.

this wouldnt be so bad if Cshop worked with Open GL then i could use BSPs instead of this dumb matrix!
diseased
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 22nd Aug 2003 03:21
can someone just cut and copy this into DBP to see if it runs??..

just change the immage line to whatever bmp or jpg u happen to have
zao420
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 22nd Aug 2003 03:37
nope doesn't run for me.. i get Runtime Error 7016 [Matrix tile illegal] at line 28
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 22nd Aug 2003 06:21 Edited at: 22nd Aug 2003 06:26
When I changed the image load command to this line it works for me.
Load image


note, this board is now removing back slash from form, so replace all ! in my code with back slashes.

Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 22nd Aug 2003 07:04
There was a bug with get ground height() but that was way back at patch 1, I think you need to run the patch file again. Ensure you do so from within the DB directory, I have not tried patch 5 yet, but earlier patches wouldnt actually take if you ran them from outside of the DBPro directory.

Pneumatic Dryll
diseased
22
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 22nd Aug 2003 07:09
thanks, i emailed rick about getting the newest patch, i have to check and see if he sent it yet.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 22nd Aug 2003 10:06
You can download it directly from this very website, goto the DarkBASIC Professional section and use the menu on the left

Pneumatic Dryll

Login to post a reply

Server time is: 2026-07-23 15:49:09
Your offset time is: 2026-07-23 15:49:09