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 / Arrgghh... some DB problems are annoying

Author
Message
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Jun 2003 13:58


i'm not sure what to do with this bloody code, it makes little to no sense why it doesn't work
the matrix not working now thats just a bloody mystery on its own
so i'm leaving it in the capable hands of you guys to see if you can fixx whatever the hell is actually wrong
Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Jun 2003 14:15
doh... oki me know the problem about the camera, a good example that sleep deprivation isn't good.

but the matrix - that one is still baffling

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 1st Jun 2003 14:18
What should happen exactly? When I run it all I see is a green screen.

I probably wont be able to help because I dont even know what a vector means :o. Whats funny about your code is that there is C language in comments, put in the right positions. You even have the C comment in the comments. LOL heh its funny...

Heh heh... Mule...
http://www.stellarblue.vze.com/
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 1st Jun 2003 14:35
hey kfoong, you running pro or classic, cause with classic i see green screen, what i see with pro is oh so annoying, but i'm working on your code now raven.

--Eric

I always win don't you know that?
Programming RPG games in Dark Basic
Since 1999.
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 1st Jun 2003 14:39 Edited at: 1st Jun 2003 14:41
btw raven if you want it less confusing to people remove the ` in front of the matrix commands, makes things easier lol.
like



--Eric

btw i hope you weren't trying to run the code with the ` next to the matrix commands

I always win don't you know that?
Programming RPG games in Dark Basic
Since 1999.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Jun 2003 15:27
well problem no1. is the green screen, i'm not sure where the hell that comes from
problem2 is the matrix just doesn't want to accept this ... and reprogramming in Classic is a waste of time because i already have this working 100% in classic, this Pro rewrite just doesn't want to work for some reason.

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Eric T
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location: My location is where I am at this time.
Posted: 1st Jun 2003 16:14
huh it was the green screen in classic for me, it worked fine in pro.

I always win don't you know that?
Programming RPG games in Dark Basic
Since 1999.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Jun 2003 19:03
Can I ask why you write functions like this:

function myfunc()
`{

endfunction
`}void

Spot the C++ programmer

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Jun 2003 19:12
What is this supposed to achieve exactly?

For a start, the variable matrixsize hasn't been assigned a value anywhere, so (matrixsize/10) will return 0, which isn't a valid number of tiles.

No wonder it crashes!

If you mean

matrix = 100

to

be

matrixsize = 100

then it will work.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 2nd Jun 2003 04:53
oki well maybe that bit was wrong, but before i renamed it cause of a conflict it didn't work.
and i code my functions like that so that i know the output when their shrunk

function myfunc()
`{

endfunction
`}void


will shrink to

function myfunc()
`}void


so even at a glance you can see whats going on... the first `{ is just for refference when using tab to know if i've just pressed space or its be tabulated
though personally i love VC++'s auto-indentation

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 2nd Jun 2003 12:30
I see - quite a good idea.

It would be nice if we could explicitly specify it in the function declaration like Pascal or C though.

function myfunc(vala,valb) return string

endfunction value

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 2nd Jun 2003 18:29
Personally, I would prefer all variable to be explicitly declared first (before use) - but then, this is BASIC.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 19:44:29
Your offset time is: 2026-07-11 19:44:29