ModMax2 Module Problems with Zipstream

BlitzMax Forums/BlitzMax Programming/ModMax2 Module Problems with Zipstream

VomitOnLino(Posted 2009) [#1]
If I load a .mod file using ModMax2, which is packed in a password protected zip using koriolis zipstream module, the loading of the module fails. All other files (PNG, WAV, INI) from the same archive load just fine.

It doesn't matter wether I use the loadmusic() or playmusic() command.

Is this a problem with zip streaming, or maybe even in between Zipstream and ModMax?

Thanks in advance for anyone who can shed some insight on this... I'm at my wit's end. :(


REDi(Posted 2009) [#2]
Unfortunately MaxMod2 doesn't use BlitzMax streams to handle reading and writing, so anything like this will just fail.

But it's easy enough to work around, by loading the file into memory before playing it...

Local music:TBank = LoadBank("zip::mod.zip//mod.hoo-yeah")
Local channel:TChannel = PlayMusic(music,True)
Assert channel,"unable to play file"


Good luck!