Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: DocBass on September 08, 2006, 07:32:10 AM

Title: Moved scenes, paths can't be changed.
Post by: DocBass on September 08, 2006, 07:32:10 AM
I have reorganized my scenes a bit and have been going through fixing the paths in the scripts and in the scene editor, yet one scene isn't behaving. It isn't recognizing the base "scenes\" path that everything else is under, causing everything to not work in that scene. I can try and create new scripts or attach new ones and it always leaves out that crucial first path. It is the only scene doing this. How can I fix this? There doesn't seem to be a way to manually edit some of these things.
Title: Re: Moved scenes, paths can't be changed.
Post by: Mnemonic on September 08, 2006, 07:40:32 AM
If you edit the .scene file in some text editor, you'll see something like:

Code: [Select]
; $EDITOR_PROJECT_ROOT_DIR$ ..\..\..\

This is the relative path from the scene file to the project root, i.e. the directory where the project file (.wpr) is located. In the example above it says the project root is three directory levels higher than the scene. You probably moved your scene to a different directory tree depth, so you'll have to fix this line as well.
Title: Re: Moved scenes, paths can't be changed.
Post by: DocBass on September 08, 2006, 07:55:06 AM
Perfect, thanks!
Title: Re: Moved scenes, paths can't be changed.
Post by: Mnemonic on September 08, 2006, 08:04:38 AM
Alternatively, if you remove the line, SceneEdit should ask you where the project file is located next time you open the scene.