Sonic GM Posted September 7, 2011 Report Share Posted September 7, 2011 In my game made with the Sonic Dash+ engine, I'm having a problem. Whenever I use any room functions (room_goto,room_goto_next,room_restart,etc.), my game freezes up and then crashes! I'm guessing it might be because of Grid Spatial Indexing, because it only happens once Grid Spatial Indexing is started. Plus, I used an older version of the engine without Grid Spatial Indexing, and it works fine. I use Windows 7 Home Premium 64-bit, Service Pack 1. I would appreciate any help if anyone knows what might be causing the problem. Link to comment Share on other sites More sharing options...
Dark Raven X Posted September 9, 2011 Report Share Posted September 9, 2011 Hmm. Do you get an error message on the crash? I too am using SDASH+ in GM8, and have no problem with the room changes. Link to comment Share on other sites More sharing options...
Sonic GM Posted September 9, 2011 Author Report Share Posted September 9, 2011 Thanks for your reply. It brought up this error. "Sonic_D+.exe has stopped working A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." However, I stopped it from crashing whenever I changed my music from MP3 to Midi. I wanted to use higher quality music for my game, but I guess I will have to stick with Midi. Thanks again for trying to help, though. Link to comment Share on other sites More sharing options...
StealthyMC Posted September 9, 2011 Report Share Posted September 9, 2011 Thanks for your reply. It brought up this error."Sonic_D+.exe has stopped working A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." However, I stopped it from crashing whenever I changed my music from MP3 to Midi. I wanted to use higher quality music for my game, but I guess I will have to stick with Midi. Thanks again for trying to help, though. Well are you trying to load the music internally from within Game Maker? Here are some solutions: - Use the older version of SDash, because it doesn't have a bunch of things added everywhere therfore there's a bigger chance it won't crash. - Try loading music externally from Game Maker. Meaning you should use .DLL's instead of in-game loading music. For the music .DLL, use supersound. (I know, it's a little old, but it still works.) The only problem is that it only supports .OGG, (which are also very high quality), so just get the .MP3 file you want and find a online converter. Convert the .MP3 file to the .OGG extension. Here's the website I use to convert my files: http://www.online-convert.com/ Hope this helps. If it works, +rep would be nice. 1 Link to comment Share on other sites More sharing options...
Apricity Posted September 9, 2011 Report Share Posted September 9, 2011 Go into the room creation code and check how I load music externally. The problem is you arne't doing that and it's trying to load music that does't exist. You can use mp3's my way.n Link to comment Share on other sites More sharing options...
Sonic GM Posted September 9, 2011 Author Report Share Posted September 9, 2011 @SuperBliz Thanks for the help! It works perfectly! +rep @Chronic Thanks for your help also. I did try to load the MP3s externally, but it still crashed. Link to comment Share on other sites More sharing options...
Apricity Posted September 9, 2011 Report Share Posted September 9, 2011 Whats your coding like? And are the files in a folder called "Music"? Link to comment Share on other sites More sharing options...
Sonic GM Posted September 9, 2011 Author Report Share Posted September 9, 2011 Here's the code that didn't work: "global.Music=sound_add('Music/AzureLake.mp3',3,0); sound_loop(global.Music);" Here's the code that did work: "global.Music = SS_LoadSound('Music/Level1.ogg'); SS_PlaySound(global.Music)" In the game folder there is a music folder, and my music files are in that folder. If I misunderstood what you are asking, let me know. Thanks again for your feedback. Link to comment Share on other sites More sharing options...
Apricity Posted September 9, 2011 Report Share Posted September 9, 2011 Oh you used SuperSound? Yeah it iwll work now. Your problem stemed from not changing the code. Glad it's all sorted:) Need anymore Sonic Dash+ help feel free to pm me. Link to comment Share on other sites More sharing options...
StealthyMC Posted September 10, 2011 Report Share Posted September 10, 2011 You're welcome for the help. Link to comment Share on other sites More sharing options...
VectorSatyr Posted September 10, 2011 Report Share Posted September 10, 2011 The music isn't going to be available right after you load it, especially if it isn't pre-loaded. Try the original code, but with the 3rd argument set to true instead, and the loop command placed in another event. Or... y'know, stick with what you have, since you've moved on anyways. =/ Link to comment Share on other sites More sharing options...
Sonic GM Posted September 10, 2011 Author Report Share Posted September 10, 2011 Thanks for the tip about loading the music. That may explain why my original code didn't work. Thanks for the feedback. Link to comment Share on other sites More sharing options...
Recommended Posts