Hi Atilim,
I may have found a small bug regarding loading ressources. It's only a small bug, but it has cost me 1.5 days to figure it out.
Don't ask me why, but I did start using asset-paths like
./gfx/mygraphics.png
./fonts/myfont.png
./sounds/mysounds.wav
etc... That was working fine on all systems (iOS, Android, Gideros-Player) until I started using .mp3 files. I have added 2 sound file in .mp3 format and a song file in .mp3 format. Everything was still running fine on iOS and Gideros-Player, but on any kind of Android system (emulator, real device) the game crashed without comments.
./sounds/mymp3sound.mp3 -- problem!!
./mfx/music.mp3 -- problem!!
DDMS showed an error like "drawing on GL_ES without context"... Very strange...
However, there is no problem any longer after I removed ./ at the beginning of the asset paths. But I think it's questionable why that was working for .png, .wav, etc. but not for .mp3 files. So I guess there is a small difference loading .wav files and .mp3 files regarding the Sound module....
You might want to check that. Best regards
Michael
Comments
@moopf - good question . I somehow recall path was not working when I started implementation. Since I am new to LUA, I might have done something different wrong there. After changing asset path to ./bla/ it was working, so I used that from now on. The dot usually is current Path. But forget about this. Just strange it works for all assets except .mp3.
see ya!
Michael
> it has cost me 1.5 days to figure it out.
uh! :-S
Michael
So, you should not use "./" before mp3 files.