The Daily Click ::. Forums ::. Klik Coding Help ::. The TGF Repeating .wav file glitch
 

Post Reply  Post Oekaki 
 

Posted By Message

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
12th March, 2007 at 20:48:46 -

Anyone whos ever used TGF knows what this is; for seemingly no reason your program pretty much flat crashes. The sounds will keep repeating, and the frame will get all jerky. On a standalone .exe game, you will need to restart it, and if you are in the TGF editor, you'll actually need to reboot the entire editor or it will just occur as soon as you restart your program.

Well I've been doing some studies into it, to figure out what exactly this is. When it runs, it basically NEVER causes a direct crash. You never get a box that appears and tells you there was an error. Instead it simply keeps repeating those .wav files and reduces ur game to standstill.

So heres some things I noticed:
Using Windows 95 Compatability mode, on your .exe file, will reduce the # of this glitch by about 95%. You will almost never get it. (this is assuming you are in windows XP). So you should always do this with a TGF standalone game.

Next thing I noticed is, the glitch is very peculiar. When it happens, the program will entirely stop running, EXCEPT for when there is input from the Keyboard/Mouse. Essentially, it will stop running events, until you either press a keyboard key or hit a mouse key. It doesn't even matter if any of your events reference the keyboard/mouse. It can be the "H" key, but by repeatedly tapping it, you'll notice your game will run as if it were fine.
Try simply rotating the mouse wheel; you'll be back up to 50 FPS until you stop.

I still, however, cannot find a cure for this. I have a fairly epic sized game, and I'm afraid that having it crash every 20 minutes or so, might put some people off it. Its not nice to crash just before a save point, and many people might stop playing if this happened. So if anyone knows a good way to stop it, I'd like to know.

I've noticed that a "STOP ALL SAMPLES" event doesn't stop the lag, but does stop the looping samples.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
12th March, 2007 at 22:09:44 -

I've noticed that too and have no fix for it. I will recompile your game in MMF2 for you if you'd like.

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
12th March, 2007 at 22:20:43 -

I have MMF and can recompile it, but I've noticed that a myriad of my extensions are TGF only. So I intend to just keep it in TGF.
Or at the least, the extensions I use need some retooling when converting; attempting to run the game in MMF simply crashes it on the spot.

Image Edited by the Author.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
12th March, 2007 at 23:10:42 -

Ive had this problem whilst playing mmf1.5 games too. It's not just TGF
there is a fix, you can use the turn sound off option before the bug occurs (ctrl+s)

the thing is, this only happens with some games, so i have a theory that it is just the runtime not working well with modern pc's

maybe playing all wavs through an extension would help?

 
.

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
13th March, 2007 at 00:20:03 -

Possibly. From what I can tell, something happens, involving .wav file overload, that causes the runtime to stop refreshing events.

It simply stops running through your events like it normally does. I figure this isn't some mystical unfixable problem, but rather some bug that could probably be quite easily fixed if someone figured out what it was. Once triggered, events will only be checked when there is input from the keyboard or mouse. Thats all I've figured out so far.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
13th March, 2007 at 00:20:25 -

Best option is just to activate windows 95 compatability mode. Seems to make it run *alot* better.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
13th March, 2007 at 18:53:51 -

*a lot*

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
13th March, 2007 at 18:57:59 -

I wanted to point that out, but decided not to. Thanks.

 
Old member (~2004-2007).

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
13th March, 2007 at 21:49:34 -

Bibin saves the day!

 
.
   

Post Reply



 



Advertisement

Worth A Click