Quake 3 Tute error

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.
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Quake 3 Tute error

Post by zany_001 »

I have done the Q3 tute,and everything looks fine when i build, and when i run it, it comes up with the right dialog box.I press a, then enter,or anything else, and it comes up with this error message:

Unhandled exception at 0x100cbe1b in Q3TUTE.exe: 0xC0000005: Access violation reading location 0x08b82020.
<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have the wrong path to the ../../media directory. The mesh fails to load and the next access to the mesh pointer core dumps.
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Post by zany_001 »

Should i use the full "C:/Documents and Settings/" etc. path, or just "C:/.../...media/map-20kdm2.pk3"?
<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

zany_001 wrote:"C:/.../...media/map-20kdm2.pk3"?
what path shall this be ?!?!? :lol: :shock: :lol:

if you don't know such thinks, why don't you simply try it ??? ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Post by zany_001 »

i have.the path is the path to the irrlicht Q3 file that the demo saysd to do,but it doesnt work.
<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

what does your loading code looks like and where is your media folder located?
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Post by zany_001 »

by loading code, do you mean the actual code,or the debug messages?

the media file is in C:\Documents and Settings\R******(personal)\Irrlicht\irrlicht 3.0.3(or similiar)\media.

thats not exact,im on a different computer at the moment.
<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

code means code, otherwise I'd say debug message... :lol:
but if there any error messages they would also pretty helpfull... ;)

well if you use pathes they must be 100% correct !!!
maybe it's better to copy all media files you need inside a seperate folder inside your bin folder and use a relative path (especially when you use it on different computers)... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Post by zany_001 »

i think this is all ogf it:

Code: Select all

device->getFileSystem()->addPakFileArchive("C:/Documents and Settings/Richard/My Documents/Visual Studio 2005/Projects/Q3TUTE/map-20kdm2.pk3");
		
	 scene::IAnimatedMesh* mesh = smgr->getMesh("C:/Documents and Settings/Richard/My Documents/Visual Studio 2005/Projects/Q3TUTE/map-20kdm2.pk3");
		node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

and voila, here is the error:

Code: Select all

scene::IAnimatedMesh* mesh = smgr->getMesh("C:/Documents and Settings/Richard/My Documents/Visual Studio 2005/Projects/Q3TUTE/map-20kdm2.pk3");
the pk3 file is not a mesh its an archive !!! ;)
look into the tutorial how the mesh is called (how it's loaded in the tutorial)...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
zany_001
Posts: 11
Joined: Wed Aug 22, 2007 7:09 pm

Post by zany_001 »

the tute has it the same i beleieve:

Code: Select all

scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
scene::ISceneNode* node = 0;

<a link="www.realityfactory.ca/info>RF</a>

the above shows my awesome programming skills:)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, there is also a line with a pk3 file in the tutorial. Search for it.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

zany_001 wrote:the tute has it the same i beleieve
then you should really visit an optician !!! :twisted:
first there is no path but only the file name (like it should be)
second there is a small difference between 20kdm2.bsp and map-20kdm2.pk3, isn't it ??? :lol:

@hybrid: he got the pk3 file but he tries to load it also as the mesh... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Acki, I wrote 'there is a line with the pk3 *in the tutorial*'. If he uses that line he will use the pk3 method...
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

right, but he already uses this, look at the 9th (over all) post in this thread... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply