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 / Runtime Error 7128

Author
Message
Fredyssun
16
Years of Service
User Offline
Joined: 30th Oct 2009
Location: Germany, Bavaria
Posted: 26th Apr 2010 17:02
Hi,
Im trying to get a Collision with the terrain, but I can't load the terrain. The error is: Runtime Error 7128 - Terrain does not exist. But the terrain does exist and I checked if I mixed the numbers up but I didnt.

Here's my code:


It's not a bug it's a feature
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Apr 2010 18:08
Your problem is here:



You're using Advanced Terrain so you need the following:



The get terrain height function is for ordinary DBPro terrains. I've made the same mistake several times.
Fredyssun
16
Years of Service
User Offline
Joined: 30th Oct 2009
Location: Germany, Bavaria
Posted: 26th Apr 2010 20:46
Thank you.
I think that should be mentioned in the help file.

It's not a bug it's a feature
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Apr 2010 21:09
Quote: "I think that should be mentioned in the help file."

Well actually, it is. Look in Dark Basic Professional --> HELP folder --> Advanced Terrain folder --> Advanced Terrain HTML --> Information.

Quote: "
GET TERRAIN GROUND HEIGHT
Returns the height of the terrain at the given X and Z coordinates.

SYNTAX
return float = GET TERRAIN GROUND HEIGHT( Terrain ID, X, Z )
"


Cheers

Slayer rules!!! Yeaaah, man!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Apr 2010 23:21
Quote: "I think that should be mentioned in the help file."


Yes. Same applies to some other plug-ins I suspect.

Quote: "Well actually, it is."


Well actually it isn't. That's not the main DBPro Help file.
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Apr 2010 23:47
Quote: "That's not the main DBPro Help file."

Yes, I know. If I'm not mistaken, Advanced Terrain is an enhancement plugin (pack), and like every other plugin you install, the DBPro Help files are not updated with those new commands. Should cure a lot of headaches if they would update automatically, though.
Just thought I should point out Fredyssun the right direction to find them.

Cheers

Slayer rules!!! Yeaaah, man!
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 27th Apr 2010 00:14
Quote: " Advanced Terrain is an enhancement plugin"


Nope, it's integrated to core darkbasic now

Rawwrr. Sig Fail.
Newcastle is awesome
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 27th Apr 2010 00:29
Quote: "Nope, it's integrated to core darkbasic now"

Ooops. Well, err...in that case...sorry, my bad. I thought it was a plugin.

Cheers

Slayer rules!!! Yeaaah, man!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Apr 2010 00:43
Quote: "I thought it was a plugin"


It is. It's in the plugins-licensed folder.

And, yes, it comes with DBPro automatically now, as do a few others.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 27th Apr 2010 00:55
Ahh, slayer you were right then Appologies

Rawwrr. Sig Fail.
Newcastle is awesome

Login to post a reply

Server time is: 2026-07-26 02:37:15
Your offset time is: 2026-07-26 02:37:15