File not Found

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

File not Found

Post by Dandrolvorn »

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 »

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.
Dandrolvorn
Posts: 15
Joined: Thu Apr 20, 2006 4:31 pm

Post by Dandrolvorn »

i`m sorry but this doesn´t work too
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

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.
Dandrolvorn
Posts: 15
Joined: Thu Apr 20, 2006 4:31 pm

Post by Dandrolvorn »

Yeah
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

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 »

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 »

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 »

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 »

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 »

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 »

i think just change \ to / will help
Dandrolvorn
Posts: 15
Joined: Thu Apr 20, 2006 4:31 pm

Post by Dandrolvorn »

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 »

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 »

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.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply