GLBasic forum

Main forum => GLBasic - en => Topic started by: matchy on 2007-Dec-24

Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-24
Help! DRAWRECT and PRINT work okay but I can't seem to get LOADSPRITE/DRAWSPRITE or LOADSOUND/PLAYSOUND to work on my Pocket PC (iPaq rx1945).
Title: WinCe won't load bmp or wav
Post by: Kitty Hello on 2007-Dec-25
place the graphics in the same folder as the .exe file. Then load without any "C:\", just "mysprite.bmp". Should work fine. No?
Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-25
The files are in the same directory. LOADSPRITE "sprite.bmp",0
Title: WinCe won't load bmp or wav
Post by: Kitty Hello on 2007-Dec-25
Does it work on PC?
Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-26
Oh yeah, works perfectly well on PC. I've also tried copying media to other common paths, like \ , \windows, \my documents, etc.. and even ShoeBox on my PocketPC. I've also tried various screensizes (240x320,320x240) and framerates (-1,10,20).

Another example is the original JumpFrog_PocketPC_2D.exe, with it's media files, works fine on PocketPC, but my compiled version does not (which is also larger in file size).

I do notice that when compiling, I find I need to go through several platform warnings and makes until the SDK successful compiles a WinCE exe. Just wondering if this, or project screensize/framerate has anything to do with the media pathing issue. Don't know what else to do try. ;)
Title: WinCe won't load bmp or wav
Post by: Kitty Hello on 2007-Dec-26
What does GETCURRENTDIR$() return on PocketPC?
Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-26
GETCURRENTDIR$() on the PPC returns /My Documents/,which is where the .exe is also.
Title: WinCe won't load bmp or wav
Post by: Kitty Hello on 2007-Dec-26
And the jumpfrog example does not work? Very strange. I have to take a deep look at this.Might take a few days, though.
Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-27
Only the original JumpFrog_PocketPC_2D.exe (542kb) works okay.
A compiled version on my machine JumpFrog_CE.exe (701kb) does not.

Currently I have created a couple of apps that work great with DRAWRECT etc :)
Title: WinCe won't load bmp or wav
Post by: Kitty Hello on 2007-Dec-27
Would GRABSPRITE/DRAWSPRITE work?
Title: WinCe won't load bmp or wav
Post by: matchy on 2007-Dec-27
Working :)

SAVESPRITE
SAVEBMP
USEASBMP
GRABSPRITE
STRETCHSPRITE
ROTOSPRITE
ROTOZOOMSPRITE
ZOOMSPRITE
DRAWSPRITE
DRAWLINE
DRAWRECT
BLACKSCREEN


Not working :(

LOADBMP
LOADSPRITE
POLYVECTOR
GRABSCREEN
LOADFONT
PLAYMOVIE
LOADSOUND
PLAYSOUND
PLAYMUSIC
BLENDSCREEN


INIOPEN
INIPUT
INIGET$
Not working with file, but works with put/get in ram without writing to disk.
Overall it's a file access issue. (ver 5.110)
Title: WinCe won't load bmp or wav
Post by: matchy on 2008-Jan-10
The new update 5.129 fixes the above issues and they are now working on WinCE. :D :D :D