Hello from a IRR nOOb, with some question's

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.
Post Reply
Zigma
Posts: 8
Joined: Tue Jan 27, 2004 7:33 pm
Location: Norway
Contact:

Hello from a IRR nOOb, with some question's

Post by Zigma »

Hi

I'm new to this Engine, look's interesting...

Some of the tutorials say it requers 0.4.1 ?

I dl'ed 0.4.0 SDK and the 0.4.2

I copyed 0.4.2 over 0.4.0 sdk, stupid? or? :?

compiled the movement example after some fix:


Code: Select all

	device = createDevice(video::DT_DIRECTX8, core::dimension2d<s32>(640, 480),
		16, false, false, &receiver);

Code: Select all

	device = createDevice(video::EDT_DIRECTX8, core::dimension2d<s32>(640, 480),
		16, false, false, &receiver);
Had to add an "E" to "DT_DIRECTX8"

compill's just fine, but the application crash?

So what version is it best to use/install?

I use Visual C++ .net 2003
deps
Posts: 115
Joined: Sat Jan 10, 2004 5:22 pm
Location: Tranås, Sweden

Post by deps »

About that "crash"*:

If you compiled with the 0.4.2 headers and libs, make sure you also have the 0.4.2 dll somewhere in your path (c:\windows\system32 is a good place) or in the same directory as the exe you compiled.

*How does it crash? Can you post what it says?
Zigma
Posts: 8
Joined: Tue Jan 27, 2004 7:33 pm
Location: Norway
Contact:

Post by Zigma »

deps wrote:About that "crash"*:

If you compiled with the 0.4.2 headers and libs, make sure you also have the 0.4.2 dll somewhere in your path (c:\windows\system32 is a good place) or in the same directory as the exe you compiled.

*How does it crash? Can you post what it says?
Hi

My Irrlicht should be a clean 0.4.2 know :), still same problems.

It brake's at this code:

Code: Select all



		if (device->getSceneManager()->getActiveCamera())
			return device->getSceneManager()->getActiveCamera()->OnEvent(event);

		return false;
and "spitt out" this debug info :??

Code: Select all

'Movement.exe': Loaded 'C:\Development\irrlicht\bin\VisualStudio\Movement.exe', Symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\Development\irrlicht\bin\VisualStudio\Irrlicht.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\glu32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Movement.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
The thread 'Win32 Thread' (0x520) has exited with code 0 (0x0).
Unhandled exception at 0x00401675 in Movement.exe: 0xC0000005: Access violation reading location 0x00000000.
The program '[952] Movement.exe: Native' has exited with code 0 (0x0).
Any clue? I don't
fretnoize
Posts: 43
Joined: Sun Feb 01, 2004 4:57 am
Location: Los Angeles

Post by fretnoize »

I don't know if you figured out this yet or not, but I just was doing the tutorial and came across the same problem. Here is how I solved it.

Code: Select all

		if (device)
		{
			if (device->getSceneManager()->getActiveCamera()) 
			{
				return device->getSceneManager()->getActiveCamera()->OnEvent(event);
			}
		}
		return false;
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

In 0.4.1 and 0.4.2, you don't need that, just delete or comment it out, and it should run fine.
The Robomaniac
Project Head / Lead Programmer
Centaur Force
fretnoize
Posts: 43
Joined: Sun Feb 01, 2004 4:57 am
Location: Los Angeles

Post by fretnoize »

doh! thanks
Post Reply