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 / error in demo ver..... ]#100010: Cannot perform 'integer' cast on type '$$1' at line 23.

Author
Message
bugsquish
22
Years of Service
User Offline
Joined: 31st Jan 2003
Location:
Posted: 31st Jan 2003 08:03
I downloaded the demo of DBP to see if it can help me out of any of my DB problems, then I fell at first hurdle. It doesnt like my syntax for setting up a string variable.

Heres my syntax:
$terrain="bmp\terrain\terrain1.bmp"

Heres the error,
#100010: Cannot perform 'integer' cast on type '$$1' at line 23.

I have no idea what this could mean. Can anyone help me here?

thx Lance
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 31st Jan 2003 08:37
Try this:

terrain$="bmp\terrain\terrain1.bmp"



bugsquish
22
Years of Service
User Offline
Joined: 31st Jan 2003
Location:
Posted: 31st Jan 2003 21:48
thanks hubdule thats the trick!

still inevitably running into other problems though. what are changes (if any) to matrix code? all looks the same in the help files, but i cant get this code to show anything other than a grey matrix

load image "bmp\terrain\textures1.bmp",1
make matrix 1,10000.0,10000.0,64,64
prepare matrix texture 1,1,2,2

surely i should see the first tile across the whole matrix? adding "set matrix tile" didnt help..

any suggestions?

thx again
Lance

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 31st Jan 2003 22:07
you need fill matrix after the prepare texture command. Use the update matrix command just in case.

NOBODY has a forum name as stupid as Darth Shader. I do.
bugsquish
22
Years of Service
User Offline
Joined: 31st Jan 2003
Location:
Posted: 2nd Feb 2003 07:18
thanks, i have now managed to get an image to tile across the matrix. however its using the texture from one of the models rather than the texture i thought i prepared.

i could probably figure this out for myself but I keep getting an XP error message about d3d8.dll. as far as i know i got all the latest drivers

sorry for newbness but im really fighting the urge to stick with DB for now any advice?

ta lance

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Feb 2003 10:35
Make sure your DirectX is working correctly.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
bugsquish
22
Years of Service
User Offline
Joined: 31st Jan 2003
Location:
Posted: 2nd Feb 2003 10:47
i havent had any problems running recent games like AoM and WCIII.
i have direct x 8.2 and dxdiag states no problems

is there something else i can do?

Login to post a reply

Server time is: 2025-05-19 10:27:28
Your offset time is: 2025-05-19 10:27:28