B2: Changed button-click behaviour.

I'm glad to see that it's now possible to "cancel" a buttonclick by moving out of the button area while still holding the button down.

Hope you get what I mean :)

Anyway, I got a game to hang and hog the cpu...it was on colonizing a system:

Debug Message: Reading Star Names
Debug Message: Destroying ship USS Discovery. Orbiting: 0
Debug Message: Displaying News Event.
*DEBUG ERROR: *** Cannot unlock mouse focus if you don't have focus. ***
*DEBUG ERROR: *** Cannot unlock mouse focus if you don't have focus. ***
Debug Message: Make Ship Leave Orbit: Brad Version
Debug Message: Destroying ship USS Colony Ship 90. Orbiting: 0
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.

GalCiv managed to put about 2k lines of those assert-errors in the debug.err before I killed the application.
222 views 7 replies
Reply #1 Top
Started a new game again, got the same error at my first colonization..

Debug Message: Reading Star Names
Debug Message: Destroying ship USS Discovery. Orbiting: 0
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
ASSERT ERROR in file g:\projects\pear\source\font.cpp at line 287.
.
.
.
about 1500 lines of those until I killed the application.
Reply #3 Top
I sent a debug file to Scott with the same messages and he says he found the problem and fixed it for the next buid.
Reply #4 Top
Um, well, I didn't think that anything I did allowed you to cancel mouse clicks, but I was working on keeping controls from not giving up the mouse focus, so maybe that did it. I'll have to see if it's always possible to do that now...
Reply #5 Top
I solved the assert-error by uninstalling/deleting my (upgraded) galciv installation and making DGM reinstall all of it again.

And Cari - it was a very nice side-effect :)
Reply #6 Top
Um...I was not right there. I got the error now again. When I played without the multimedia-pack I didnt get the error, but that might just have been an accident. I dont know..
Reply #7 Top
'Anyway, I got a game to hang and hog the cpu...it was on colonizing a system:'

I don't run into that problem here, with the multimedia files installed.

'Um, well, I didn't think that anything I did allowed you to cancel mouse clicks, but I was working on keeping controls from not giving up the mouse focus, so maybe that did it. I'll have to see if it's always possible to do that now...'

Concerning the mouse things, it works, but it tends to look strange. Buttons stay pressed when you move off them, and continue to appear to be pressed until you do actually use the button.