Hi
My game randomly crashes sometimes and I have do idea what causes it. I have checked all the events and didn't found anything that could cause crashing.
Is there any way to explore what causes this crash? Event logging or something?
Printable View
Hi
My game randomly crashes sometimes and I have do idea what causes it. I have checked all the events and didn't found anything that could cause crashing.
Is there any way to explore what causes this crash? Event logging or something?
Would you upload your file in the archives so that everyone can look at it and help debug it?
Marv
Sorry, I don't want to upload my game's source code :|
But It seems that if I don't use ONU object the game does not crash. If I use, the game crashes sometimes. Hmm?
Well, what does the ONU object do in your game?
It just plays some ogg files.
Now I remade the ONU events and It hasn't crashed... at least yet. So I think this was MMF's failure... maybe.
Or not... it crashes again :S
well I don't know anything about the ONU object but maybe the files are causing the problem?
I don't think so. The files are working well. Crashes happen seldom but it's still confusing.
Okay. Here is example application:
www.voimalaitos.org/temp/onu_crash.zip
Do you have the latest version? http://www.syntesis.org/onu
I would use Apppath$+"" for all audio files. Interesting that it works without it.
Also the second file is broken, try it in winamp or media player it will not play. Replacing that second file with the first one and the application does not crash at all.
I have latest version (1.16).
I played both audio files and they work well on my computer? Media Player does not play ogg files and Winamp doesn't always play that second file because it's too short.
EDIT: Hmm, I resaved m4_1.ogg (stereo) and it doesn't crash anymore :o
Well in my case file m4_2.ogg was broken, I got a crash on startup, after replacing the file with a copy of m4_1.ogg it worked.
Why use the ONU object? You can play ogg files directly from MMF2...
MMF's sound system can be hard to use. For example, if you want sounds at different volumes, sometimes it bugs out and plays the sample at full volume even if you set the volume of every channel to a certain level before and after the event is called for it to be played... I have MMF3 gets a better system for playings sounds. If you want a few challels for sound effects, a few for music, a few for voice, a few for ambiance, it gets hard to do and sometimes you can code something and it seems like it should work but it doesn't.
Specify a range or pool for specific sounds to play on, iron out the bugs that cause samples to play at full volume... I had other things but the last time I posted I was told they wouldn't be done until MMF3 if ever so meh.
Pkeod: Yes that's true. I don't use MMF's own ogg system because I can not set volumes very well...