forums

TNT Basic Forums > Bugs!
OS 10.3 Problem?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

10-30-2003 14:29

Posted by:
buddy

Location:
Champaign, IL

Click Here to Email buddy   Find more posts by buddy

Not sure what's up here.
I upgraded to 10.3 on my work machine yesterday, and code that works at home on 9.2.2 crashes the 10.3 machine.

My main program loop is:
'MAIN PROGRAM LOOP
int endProgram=0
while endProgram=0
'show title screen
ShowTitleScreen()
'switch based on returned result
if result int=0
'new game
PlayGame()
else if result int=1
'options
ShowOptionScreen()
else if result int=2
'scores
ShowHighScores()
else
'quit
QuitGame()
endProgram=1
end if
wend
'quit program
end

This just shows a title screen, which works fine. Then based on the choice a user makes in the title screen, you go to another function (which also has it's own event loop). When I go to "PlayGame()" in 10.3, It fails and says TNTBasic has unexpectedly quit.

Here is the beginning of PlayGame():

procedure PlayGame()
graphics mode 800,600
VBL Sync On
set framerate 20
set random seed Timer 'set random seed
fade up

It never actually gets to fade up.

Ideas?

Thanks,
Buddy

10-30-2003 22:29

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

A little debugging tip

You said it never gets to fade up, but just to make sure, put a "print" command before and after it. Then you can look at the output and see if it did indeed stop before the fade up.

I don't know what's causing the problem, but you can commenting out each line then running it to see if the program still crashes.

10-30-2003 23:23

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

> VBL Sync On

Seems like I've repeated this hundreds of times :) VBL Sync MUST BE OFF on OS X! The next version of TNT should fix it, however beta testers are required so you could volunteer here: http://www.tntbasic.com/community/forums/showthread.php?threadid=769

10-31-2003 21:06

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

I'm going to have to disagree with you Mathew.
Im running on OS X Jaguar and vbl sync is working perfectly :)

10-31-2003 21:17

Posted by:
buddy

Location:
Champaign, IL

Click Here to Email buddy   Find more posts by buddy

Ah...
Well i do recall now people talking about VBL Sync having problems, but I had just tried my code "for the heck of it" on OS 10.2.x and it had been working (cool, I could work on my game at work... LOL...)

I just noticed when I upgraded to 10.3 the problem started.

I'll check out the beta to see if it helps.

10-31-2003 21:27

Posted by:
buddy

Location:
Champaign, IL

Click Here to Email buddy   Find more posts by buddy

VBL Sync Off no dice

Okay, I tried "VBL Sync Off" with no improvement on 10.3.

And, my TitleScreen() function used VBL Sync On successfully on 10.3

I have tried the patch, too, with no improvement.

I don't have time to explore it any further today. I'm going home to code in OS 9, then when I come back to work on Mon I'll see if I can gather better data for you about this.

10-31-2003 23:29

Posted by:
-wyvern

Location:
Bedroom

Find more posts by -wyvern

Here's a random suggestion: In the old days of the BBC Micro it was forbidden to change graphics mode inside a procedure, on pain of crashing. I know that this is highly unlikely to be in TNT Basic, but if the situation becomes desperate you might consider changing mode in the main loop. hope it helps.

-wyvern

11-01-2003 21:56

Posted by:
Mark Tully

Location:
TNT HQ, England

Click Here to Email Mark Tully   Find more posts by Mark Tully

If you submit a bug report from on the 10.3 machine using the tool enclosed with TNT Basic, it will tell us exactly where the crash happened, which will help us fix the bug.

Cheers,

Mark

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.