Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: FhargaZ on July 06, 2008, 08:33:27 PM

Title: Invalid Image
Post by: FhargaZ on July 06, 2008, 08:33:27 PM
I have a secondary actor, i created his Talk.sprite animation. I didn't realized the hot spot until i saved and tried the game. If i try to change the .sprites in the Talk.sprite animation in any way i get the Invalid Image square.
The pictures are in the folders, and in the SpriteEdit tool i can work with them, but when i save and exit the SpriteEdit i get the Invalid Image.
Title: Re: Invalid Image
Post by: Mnemonic on July 07, 2008, 07:35:19 AM
The sprite file stores all filenames relative to your project folder. In your case they are probably stored wrong for some reason and the engine can't find the images.
To fix the issue you'll probably need to edit the .sprite file manually in some text editor and repair the paths. They should look like "actors\some_actor\...". Can you take a look into your file what paths are there? That would help to find the cause...
Title: Re: Invalid Image
Post by: FhargaZ on July 07, 2008, 05:13:01 PM
Thanks, that was it. The path was something like this:

"juego_adelanto\data\actors\pirata\dd\Talk\hablapirata1.png"

And i changed to your suggestion to this:

"actors\pirata\dd\Talk\hablapirata1.png"

And it worked  ;)

To bad i already change the other locations so when that character talked, in the screen it looked good  :D
But your answer was a big help to understand how to fix it.
Thanks.