Help with Path

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
thespongebob
Posts: 12
Joined: Fri Feb 17, 2006 11:53 pm

Help with Path

Post by thespongebob »

I just installed and I hardcoded this -
string path="C:/Program Files/irrlicht-0.14.0/media/";

but i get an error on this statement-
node.SetMaterialTexture(0, driver.GetTexture(path + "wall.bmp"));

Error -
An unhandled exception of type 'System.NullReferenceException' occurred in irrlicht.net.dll

I quickwatch and it LOOKS ok ??

Help !!! Randy

MS .NET 1.03705
MS VS 20027.0.9955
Braneloc
Posts: 68
Joined: Fri Jan 20, 2006 5:12 am
Location: England
Contact:

Post by Braneloc »

.net 1.0 ???

Eeeeek.

1.0 is ancient, which probably means you are stuck using visual studio 2002, which is also ancient, and well known as problematic. The 2003 version introduced .net 1.1 which is an improvement, but lucky for you, the 2005 version of visual studio is FREE so upgrade already :)

http://msdn.microsoft.com/vstudio/express/
(Different versions for VB, C#, J#, C++ and web development)

This will bring you up to the latest 2.0 .net - Though I'm not sure of the compatability of the Irrlicht.Net assemblies with the ancient 1.0 setup or if it will directly fix your problem. Paths in Irrlicht.Net can be a pain in the neck at the best of times.

2.0 introduces a LOT of new, very usefull stuff that is just not available anywhere else - and is completely compatable with the current Irrlicht.Net assemblies.
Sometimes you've just gotta say, the laws of time and space, who gives a smeg ?!

Irrlicht.Net Information - http://www.irrforge.org/index.php/.net
Irrlicht# (aka the C# port) - http://irrlichtsharp.sourceforge.net
thespongebob
Posts: 12
Joined: Fri Feb 17, 2006 11:53 pm

Post by thespongebob »

Thanx Braneloc

I upgraded and everything is ok now. I am really going to miss .NET 1.0 though ;)
Randy

MS .NET 2.0
MS C# 8
Locked