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 / Not sure why this won't Run for me it was before (Is it an error?) Help Please.

Author
Message
Programmer X
18
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 15th May 2013 02:27 Edited at: 15th May 2013 12:39


XXX
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th May 2013 07:19
OMFG! How 'bout some indentation? ...and use code tags please

wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 15th May 2013 09:00
You didn't even say what error you get..

http://mattsmith.carbonmade.com/
sladeiw
17
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 15th May 2013 10:59 Edited at: 15th May 2013 11:02
Argh! My OCD makes we want to shout at that code lol.

You're missing the definition for ImageBlue



Compiles and can't find your bitmap file now.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th May 2013 14:32
Probably shouldn't do this either:



You really should clean up your code before making this sort of post - and try to narrow down the problem yourself first. Few people here have the time or inclination to wade through loads of code without at least some idea of what the problem is.
Programmer X
18
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 15th May 2013 21:22
CGREEN=ImageBlue(CounGH,CounGY)*CBLUE
CBLUE=ImageGreen(CounGH,CounGY)*CGREEN
CRED=ImageRed(CounGH,CounGY)*CRED

GY#=1000-10*SDHC

It still won't run as in i click and nothing happens after these changes

At line 102 523-525

but not sure why?

On a side note How many arrays can Dark Basic Pro handle because I want to change STheta, SRratio, Zdiff and SPhi() into Arrays for speed where you just input the SRatio(Ang3,R1,R2),Zdiff(Sratio(bit value),Ang3,Ang2,Ang4),SolveTheta(Sratio,Ang3,Dotproduct,Zdiff(as bit val)), and SolvePhi(SRratio,Ang1,Ang2,Ang4)

XXX
Programmer X
18
Years of Service
User Offline
Joined: 14th Nov 2007
Location:
Posted: 15th May 2013 21:30
If you want to test the Normal map just use a image like this and a 100 by 100 image like the one included.

XXX

Login to post a reply

Server time is: 2026-07-06 20:32:03
Your offset time is: 2026-07-06 20:32:03