Wintermute Engine > Fixed

Little Bug in SceneEdit

(1/1)

sychron:
Hi,

we found a strange "mini-bug" in the path name handling in sceneedit. We discovered it in Jynx Package Demo Project recently.

Given this directory structure:

data
--..
LocationPak
--Nextlocation
----Scr
------...
----background.bmp
----NextLocation.scene

data contains the usual stuff, LocationPak and Data are the same level.
LocationPak ist promoted to a package.
All Paths in NextLocation.scene are set like "LocationPak/NextLocation/background.bmp"

You cannot fix this in sceneedit. When reselecting the background.bmp, it doesn't recognize the package and leaves the "LocationPak", which IS part of the path, still in.

The game runs happily in the Project Manager, but the compiled game does not show the background.bmp. It does show the scene, so if you manage to click right, you can get back out of the scene again.

Fixing the path names in NextLocation.scene by hand in a text editor restores the usual behaviour, that is: after doing this, projectman recognizes the new paths as right and does not add the LocationPak again.

I think this may be because if you do not change the filename, SceneEdit does nothing to the stored filename ... for special cases like this, the path should maybe always checked for packages and cut accordingly.

Mnemonic:
Ok, fixed. It was actually a bug in ProjectMan. It didn't refresh everything it should upon adding a new package, so the paths were generated wrong when adding a new file from template.

Navigation

[0] Message Index

Go to full version