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.
Dandrolvorn
Posts: 15 Joined: Thu Apr 20, 2006 4:31 pm
Post
by Dandrolvorn » Thu Apr 20, 2006 4:38 pm
Hello Community
This is my first Entry here, and i want to try some little Experiments with the Irrlicht Engine.
But i have some Problems.
For Example this:
Code: Select all
ITexture texSydney = device.VideoDriver.GetTexture(@"..\..\media\sydney.bmp");
This File in this relative Path is definitly existand, but the programm tell me that he doesn´t found this file. What is wrong?
rooly
Posts: 224 Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:
Post
by rooly » Thu Apr 20, 2006 4:39 pm
this happens to me often. the compiler doesn't like using the '..\..\' stuff, just give the exact location of the file, it should be fine.
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
rooly
Posts: 224 Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:
Post
by rooly » Thu Apr 20, 2006 4:58 pm
are you using a .NET framework?
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
rooly
Posts: 224 Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:
Post
by rooly » Thu Apr 20, 2006 5:09 pm
hmm, i'm not sure, are you running the example? or are you compiling the program yourself
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Dandrolvorn
Posts: 15 Joined: Thu Apr 20, 2006 4:31 pm
Post
by Dandrolvorn » Thu Apr 20, 2006 5:14 pm
I Build the example and try to run it, and i have changed the relative path´s to the "media" Directory, but it doesn´t work.
rooly
Posts: 224 Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:
Post
by rooly » Thu Apr 20, 2006 5:23 pm
when i said go to exact location, i meant go to its full directory listing:
c:\irrlicht\media\sydney.bmp ->this is just an example, go to your listing
what i think your saying is you just took out the ..\..\ and put
media\sydney.bmp
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Dandrolvorn
Posts: 15 Joined: Thu Apr 20, 2006 4:31 pm
Post
by Dandrolvorn » Thu Apr 20, 2006 5:27 pm
no, sorry
i mean i changed the relative to the absolut Path
rooly
Posts: 224 Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:
Post
by rooly » Thu Apr 20, 2006 5:28 pm
hmm, i dunno then...i looked at the example code, it seems like it should work just fine. of course, i can't compile, i dn't have c# compiler
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Baal Cadar
Posts: 377 Joined: Fri Oct 28, 2005 10:28 am
Contact:
Post
by Baal Cadar » Thu Apr 20, 2006 6:09 pm
I don't know dotnet, but C style strings use \ as an escape character to get to special symbols like \t and \n. So if you want a \ in your string you have to escape it too with \\. Try to substitute all \ with \\
gfxstyler
Posts: 222 Joined: Tue Apr 18, 2006 11:47 pm
Post
by gfxstyler » Thu Apr 20, 2006 6:18 pm
i think just change \ to / will help
Dandrolvorn
Posts: 15 Joined: Thu Apr 20, 2006 4:31 pm
Post
by Dandrolvorn » Fri Apr 21, 2006 5:56 am
nothing works
i changed my path to D:\Irrlicht\ but it doesn´t work too.
Is here any C#.NET Programmer wo can help me?
Dandrolvorn
Posts: 15 Joined: Thu Apr 20, 2006 4:31 pm
Post
by Dandrolvorn » Fri Apr 21, 2006 6:32 am
It is soooo great
He says he doesn´t found the file, although the Files are in te Executables Directory and the line looks like
Code: Select all
ITexture texSydney = device.VideoDriver.GetTexture("sydney.bmp");
bitplane
Admin
Posts: 3204 Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:
Post
by bitplane » Fri Apr 21, 2006 6:59 am
sounds like your working directory is wrong.. windows messed up my working dir the other day and it took me ages to figure out why nothing would load. try printing your working dir out (using 'cd' with no args)
I killed then ran explorer.exe in task manager, and when I restarted my compiler the problem had vanished.