do not loading .iir files

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

roelor wrote:make it so
irredit -> irrscene
irredit - > media (models and such)
and then copy your program directory
program -> irrscene
program -> media (models and such)
than i must put the irredit.exe in scene and media. And than i must put the program in scene and media but that don't work...
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Post by jontan6 »

what did you do exactly?
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

You know, you don't have to go far like set up your own directory structure and all that stuff. That's what you get when you try to do it your way, only to find out the program doesn't want to go your way.

And so, you're screwed.

Now, let's un-screw it, bring it back to where everything works like the celestial objects. Shall we?

Here it is, listen close, pay attention.

1) Don't even try changing the directory structure of irredit.
2) Work within that structure.
3) Just drop the files in the same directory where they should be.
4) Irr files will be located in their own directory.
5) texture files will be in their own directory.

That should be it.
Image
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

thank you ...
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

i did it and it don't work::he can't open the textures... but why he can than open out of problems example.irr ? ... have anybody a othor good idee??
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I'm not sure how many more ways we can say the same thing. :?

Look in irrEdit-1.4.2\scenes\example.irr, and search for texture name

Code: Select all

				<texture name="Texture1" value="textures/editor_defaults/default_texture.png" />
OK, see that path? "textures/editor_defaults/default_texture.png"?

If you open that .irr file in an Irrlicht application, then Irrlicht must search for that texture in that location relative to the Irrlicht application's working directory, not relative to the IrrEdit application (since the Irrlicht application has no way of knowing where that is).

This means that for it to be successfully loaded, there must be a textures/editor_defaults directory containing default_texture.png under the Irrlicht application's working directory, i.e. the directory containing the Irrlicht .exe executable file.

In short: if you load textures in IrrEdit from the "textures" directory, then copy that directory to the directory containing your Irrlicht .exe.

You have read the IrrEdit getting started tutorial, right?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

but i have did what the tutrial say i have in irrEdit-1.4.2/scene/darkwar.irr

an than i have copyed the folder texture to the folder 15.LoadIrrFile

and than change the name of smgr->loadScene to scene/darwar.irr

buuuut it don't work .... :? :( :( :( :( :( :( :( :( :(
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

How about....

1) Copy the executable (.exe) to the same directory where irredit.exe is located.

2) Run the newly copied executable from there.

3) Report back here.
Image
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

you mean the compilation.exe to irredit ??
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

Assuming compilation.exe is your demo game, you copy that over.
Image
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

it no longer needs because it does not succeed and I do not understand it also… :( :cry: :cry: I try ask on other sites. but thanks nevertheless for the attention
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I don't think the problem is with our explanations.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

how you mean ?? what is the reason than??
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, there are always two sides involved, one who gives the advice and one who has to do as he was told. The first one was not the reason :roll:
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

u could simply change the working directory of irredit to your game dir. then it uses ur directory structure..
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply