Irredit 1.5 not saving relative paths

Discussion about everything. New games, 3d math, development tips...
Post Reply
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Irredit 1.5 not saving relative paths

Post by 3DModelerMan »

Irredit 1.5 doesn't seem to be saving my models as relative paths. If I look at the console window after calling loadScene(); it shows all my paths as absolute paths. Does this mean that they're all absolute? or does it mean that they are paths put together by the program when loadScene(); is called? If you want, I can give you a .exe so you can test it on another pc.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

what about checking your file. Afaik it is a xml like format. So you should be able to check it yourself.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

relative

Post by 3DModelerMan »

They show up fine in the file. I just don't understand why the console shows it absolute.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah just check the file, should be fairly clear when you look at it.

But if the cmd output is stating absolute paths then it does sound like IrrEdit is making them absolute...

Did you setup your working directory properly in IrrEdit when you upgraded? I've been using IrrEdit 1.5 without any problems...
Image Image Image
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Have you set the working directory properly?

There is an option in the IrrEdit which allows to set the working directory, if you have that directory set, all the paths are saved relative to that directory.

It is under the options tab, i think, i don't remember it quite well now.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

yup

Post by 3DModelerMan »

Yeah I set the working directory to the proper place. It's only the console that shows them as absolute.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
lion
Posts: 12
Joined: Wed Dec 10, 2008 1:34 pm

Post by lion »

Same question: how can i ask irrlicht engine to save relative paths when i do saveScene()?

I tried changeWorkingDirectoryTo() but it did not help.

Actually i heve .irr scene file with absolute paths and want to resave it with relative paths. How can i do this with c++?
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

easiest way: open file and do a "search and replace all" :). Will take less than 90 sec at all.

EDIT: of curse it does not solve the basic problem, but it is a very easy workaround.
lion
Posts: 12
Joined: Wed Dec 10, 2008 1:34 pm

Post by lion »

:) ok. i can use replace once.

but how can i ask irrlicht to save relative paths? changeWorkingDirectoryTo()?
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Re: Irredit 1.5 not saving relative paths

Post by jontan6 »

3DModelerMan wrote:Irredit 1.5 doesn't seem to be saving my models as relative paths. If I look at the console window after calling loadScene(); it shows all my paths as absolute paths. Does this mean that they're all absolute? or does it mean that they are paths put together by the program when loadScene(); is called? If you want, I can give you a .exe so you can test it on another pc.
can you post the .irr xml that shows absolute path?
Post Reply