Your Announcements

Need Tester – mene-mene

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
I've got a bug, and I need a tester of sorts to help me figure it out, I can't figure out why the crazy thing isn't working! I've tried a couple of tests, and it won't "Quit". It won't detect keys either, its like it lost its button detection. All I can do right now is offer discounts.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
"Of course, prayer requires that you actually take the time to listen for His answer..." - I'msold4Christ
"I would much rather say that every time you make a choice you are turning the central part of you, the part of you that chooses, into something a little different from what it was before." -C.S. Lewis, Mere Christianity

I reserve the full right to change my views/theories at any time.

MastaLlama

Member

Posts: 671
From: Houston, TX USA
Registered: 08-10-2005
what is it?
samw3

Member

Posts: 542
From: Toccoa, GA, USA
Registered: 08-15-2006
sounds like its stuck in an infinite loop

------------------
Sam Washburn

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
How much of a discount?

j/k. samw's answer sounds correct.

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Funny thing is though, the button still changes frames, and the mouse image still moves.

Laz: Up to 50% depending upon the amount.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
"Of course, prayer requires that you actually take the time to listen for His answer..." - I'msold4Christ
"I would much rather say that every time you make a choice you are turning the central part of you, the part of you that chooses, into something a little different from what it was before." -C.S. Lewis, Mere Christianity

I reserve the full right to change my views/theories at any time.

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
If the code for detecting the "quit" key and closing the program isn't too long, posting it would be very helpful.

(Oooh... 50%. ...)

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Here's the code:

If CurPlayer.ExitButtonFrame = 1

If MouseHit(1)

quit = True

EndIf

EndIf

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
"Of course, prayer requires that you actually take the time to listen for His answer..." - I'msold4Christ
"I would much rather say that every time you make a choice you are turning the central part of you, the part of you that chooses, into something a little different from what it was before." -C.S. Lewis, Mere Christianity

I reserve the full right to change my views/theories at any time.

HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
I don't have anything to offer at the moment in helping to solve your problem, but I wanted to touch on a small thing that you mentioned.

quote:
Originally posted by mene-mene:
I've got a bug, and I need a tester of sorts to help me figure it out

Technically, software testers are the ones who just find and report bugs, and the programmers are the ones who fix bugs. When you say "I need a tester", generally that means that you're looking for people to help you find bugs in your code so that you can polish things up more.


As far as how to solve your problem, try putting print statements in your code so that you can tell where the flow of execution is going (or if the code is even being called at all):

		Print "Entering query."
If CurPlayer.ExitButtonFrame = 1
Print " Exit frame is okay"
If MouseHit(1)
print " Mouse is hit, trying to quit"
quit = True
EndIf
Print " Done with exit frame if
EndIf
Print "Done with query"

I'm only guessing how one would do debug output in BB -- I've never used it before. But basically you just want a way so that you can try and see how your code is flowing. If at all possible, you may want to take the time to learn how to use a debugger so that you can step through your code one line at a time as it executes (though I don't know if BB has one).

Cheers!

--clint

Lava
Member

Posts: 1905
From:
Registered: 01-26-2005
Mene-Mene if you don't get it to work, you can PM or email me the source, if you want to, then I'll look at it and if I get it work I'll tell you what's wrong.

Because sometimes these problems don't always start where you think.

My advice, for now, would be to use the "IF AND" function in Blitz.

So like this:


If CurPlayer.ExitButtonFrame = 1 AND MouseHit(1) = true

quit = True

EndIf

I hope this helps.

And yeah Han gave some pretty good advice, use Print to figure out where everything is. I also use the "Text" function so like

Text 0,20,CurPlayer.ExitButtonFrame
Text 0,40,MouseHit(1)
Text 0,60,quit

So that way I know if CurPlayer.ExitButtonFrame = 1, the mouse button was clicked or if Quit = true.

[This message has been edited by LAVA (edited March 03, 2007).]