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.

Bug Reports / "Terrain Functionality" DBPro example code doesn't work.

Author
Message
Rushmoar
12
Years of Service
User Offline
Joined: 10th Dec 2011
Location:
Posted: 11th Dec 2011 02:45
I just bought the Game Creators Xmas Fire Sale bundle and tested out some of the free example code that comes with it. DBPro is Version 1.054, and yes I run it as admin.

Here is the code that DBPro provides:



Here is the code that causes the error:
if cx#0.0 then cx#=0

And here is the error:
" Variable 'cx#0' name is not valid at line 31.' "

Lastly, I was only able to find one thread about this issue:
http://forum.thegamecreators.com/?m=forum_view&t=89701&b=7#post

But the TerrainNumber line that's suggested is actually already in the example code. Any ideas?
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Dec 2011 18:06 Edited at: 11th Dec 2011 18:06
It looks like the less than symbol "<" has been lost somehow.

The snippet you provided has these lines:



Try changing them to this and report back.



I assume the code is simply trying to stop something wandering beyond the edges of the terrain.
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 16th Dec 2011 20:09
Quote: "if cx<#0.0 then cx#=0"


I'm sure you mean
Quote: "if cx#<0.0 then cx#=0"


Cheers.

I'm not a grumpy grandpa
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Dec 2011 20:50
Er, yes.

Thanks for spotting the typo.

Login to post a reply

Server time is: 2024-04-20 11:05:23
Your offset time is: 2024-04-20 11:05:23