My game crashes using a mod file and JPGs
Posted: Tue Aug 31, 2010 2:30 am
Hi, everyone.
I'm doing a graphic adventure, and I did a function that loads a bunch of JPGs sequentially using gba-jpeg lib, so it plays like a video. Until now, I've used some wavs with maxmod and everything worked fine. But now I added a mod too, and now the game crashes when it tries to decompress a JPG, even if I don't load the mod.
Maybe the soundbank with the mod is overwriting the memory area where the JPGs are decompressed or something like that? I don't know how to solve it if that's the case.
I'm using JPGs because I want that the images are very compressed, because they wouldnt fit in the 4mb limit of the rom. And using NitroFS isn't compatible with some flashcards, right?
Anyway, I hope you can help me. Thanks in advance
EDIT: Nevermind, It was because I removed a line of code that I shouldn't have removed.
I'm still interested in using a filesystem, but I want my game to be compatible with most of the flashcards out there. What would be the best method for compatibility?
I'm doing a graphic adventure, and I did a function that loads a bunch of JPGs sequentially using gba-jpeg lib, so it plays like a video. Until now, I've used some wavs with maxmod and everything worked fine. But now I added a mod too, and now the game crashes when it tries to decompress a JPG, even if I don't load the mod.
Maybe the soundbank with the mod is overwriting the memory area where the JPGs are decompressed or something like that? I don't know how to solve it if that's the case.
I'm using JPGs because I want that the images are very compressed, because they wouldnt fit in the 4mb limit of the rom. And using NitroFS isn't compatible with some flashcards, right?
Anyway, I hope you can help me. Thanks in advance
EDIT: Nevermind, It was because I removed a line of code that I shouldn't have removed.
I'm still interested in using a filesystem, but I want my game to be compatible with most of the flashcards out there. What would be the best method for compatibility?