irrlicht 1.5 saving absolute paths of textures to irr scene
irrlicht 1.5 saving absolute paths of textures to irr scene
irrlicht 1.5 saving absolute paths of textures to irr scene file like this:
<texture name="Texture1" value="c:\documents and settings\f\my documents\race\le\media\gameobjects\monsters\beast1.png" />
is this known issue?
any fix?
<texture name="Texture1" value="c:\documents and settings\f\my documents\race\le\media\gameobjects\monsters\beast1.png" />
is this known issue?
any fix?
4. use my IrrExtensions (I made a patch so it saves relative pathes) !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
I tried to figure out how NullDriver is getting that path, to make local change, but was lost somewhere around attr->addTexture("Texture1", material->getTexture(0));
Seems like ITexture is holding the full path somewhere.
to Acki: checking IrrExtensions now...
your FAQ page contains only questions... well no one said they are "frequently answered questions".
Seems like ITexture is holding the full path somewhere.
to Acki: checking IrrExtensions now...
your FAQ page contains only questions... well no one said they are "frequently answered questions".
no, just click on a question and you'll get the answer...pera wrote:your FAQ page contains only questions...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
I'll have a look at it, seems something was changed...mc08 wrote:I can't click them either
Last edited by Acki on Tue May 12, 2009 6:55 pm, edited 1 time in total.
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
I'm not sure what happened to this page, but now it works again...Acki wrote:I'll have a look at it, seems something was changed...mc08 wrote:I can't click them either
thx for the bug report !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
what do you mean its not a bug?
path to model is saved as relative path few lines above, and texture is saved as absolute path.
if i move map to another computer its not going to work for texture,
if I move map to another folder on the same computer its not going to work for model.
its totally scr**d.
I hope you'll revert it to relative paths soon. It worked like that in 1.4.2
path to model is saved as relative path few lines above, and texture is saved as absolute path.
if i move map to another computer its not going to work for texture,
if I move map to another folder on the same computer its not going to work for model.
its totally scr**d.
I hope you'll revert it to relative paths soon. It worked like that in 1.4.2
Well. Just think about the following situation:
- 2 images. ./graphics/test.png and ./test.png
- call getTexture("test.png") -> ./test.png will be loaded (if the workingdir was not changed)
-change the workingdir to ./graphics
- call getTexture("test.png") -> the engine looks into it caches, sees that there is already a test.png and return the wrong texture!
So the engine uses absolut paths for textures now. That makes the trouble with the saving.
- 2 images. ./graphics/test.png and ./test.png
- call getTexture("test.png") -> ./test.png will be loaded (if the workingdir was not changed)
-change the workingdir to ./graphics
- call getTexture("test.png") -> the engine looks into it caches, sees that there is already a test.png and return the wrong texture!
So the engine uses absolut paths for textures now. That makes the trouble with the saving.