Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Drax on April 11, 2004, 06:46:57 PM

Title: error loading sprite
Post by: Drax on April 11, 2004, 06:46:57 PM
Hi,
I have a little problem with a sprite.
I've created a sprite with sound files. The sound files are stored where the sprite tries to load, and the gfx are stored in the right place, too.

It works in spriteedit, and opens it correct in spriteedit, but can't play it in sceneedit and in the game.

Here the log file:
Quote
19:45: Error opening sound file 'strand\music\snore1.ogg'
19:45: Error loading sound 'strand\music\snore1.ogg'
       returned: E_FAIL
19:45: Error loading sound 'strand\music\snore1.ogg'.
19:45: Error opening file 'strand\entitys\bob\sprites\bob\bob_s_00.bmp'
19:45: CBSurfaceD3D::Create failed for file 'strand\entitys\bob\sprites\bob\bob_s_00.bmp' - error loading file
19:45: Error loading SUBFRAME
19:45: Error parsing frame 1
19:45: Error parsing SPRITE file 'scenes\strand\entitys\bob\sprites\bob_snew.sprite'

The gfx files are displayed right and the sound is played correct in projectman.

Maybe a bug?

THX DraX
Title: Re:error loading sprite
Post by: Jerrot on April 11, 2004, 07:45:32 PM
Hi Drax,

ok, a first shot, I see different pathes here :

19:45: Error opening file 'strand\entitys\bob\sprites\bob\bob_s_00.bmp'
[...]
19:45: Error parsing SPRITE file 'scenes\strand\entitys\bob\sprites\bob_snew.sprite'

Maybe you just forgot the "scenes\" path everywhere else ?

Title: Re:error loading sprite
Post by: Mnemonic on April 11, 2004, 09:37:35 PM
Yes, this look suspicious. Note that you can use the "Copy filename" command in ProjectMan; it will copy the filename into clipboard in the right format.
Title: Re:error loading sprite
Post by: Drax on April 12, 2004, 09:36:48 AM
The path of the files  are not correct. They where gotten by the spriteedit's browse function. Don't know how it can happen. ???
Title: Re:error loading sprite
Post by: Drax on April 12, 2004, 09:44:26 AM
Now I opened the file with the editor and added the missing "scenes\" path. now it works.

May it be, that the sprite edit just can handle a limited number of subfolders?

ThX for help.