MOgre: Cannot get anything to work after 6 hours (SOLVED)

tmighty

19-08-2007 18:59:50

Hello.

I am using VC# 2005 Express and MOgre0.2.2.

I have installed the Mogre0.2.2-OgreSDKSetup1.4.3_VC80.exe, and I'm only trying to run a C# example. The samples C:\OgreSDK\Mogre-Samples\Samples.sln compile flawlessy (e. g. into
C:\OgreSDK\Mogre-Samples\BSP\obj\Debug\Mogre.Demo.BSP.exe), but give a runtime error without any logging.

I find it really pity that the first start is made so hard for beginners.
I tried it for 6 hours now, moving the exe anywhere, moving the dlls anywhere, but without success.

I also changed the resource.cfg to my paths, but without success. Always that runtime error.

I am very sure that this is a path problem.

Can anybody please help with a step-by-step tutorial?
From other posts I have seen that this is a persistent problem.

Thank you.

Edit:

It's about 10 hours now and about 10 installations/ deinstallations later.
I read that each and every post in here, and it finally worked.
What I did exactely to make it work I cannot longer follow because I did too much.
I would say that I did the following to make it work:

Download and install DirectX9 redistributables
Download and install C# service pack1
Locate file "8.0.50727.42.policy" on your hard disk. I found mine in
C:\WINDOWS\WinSxS\Policies\x86_policy.8.0.Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_x-ww_09e017b4
There is a line that starts with <bindingRedirect...
Change this line to
<bindingRedirect oldVersion="8.0.50727.762" newVersion="8.0.50727.42"/>
Save this file.
There is a file with the same name in the folder C:\WINDOWS\WinSxS\Policies\x86_policy.8.0.Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_x-ww_77c24773
I am not sure if this one has to be changed as well. I did not do it.

Download and install vcredist_x86.exe.
Download and install Mogre0.2.2-OgreSDKSetup1.4.3_VC80.exe
Start C:\OgreSDK\Mogre-Samples\Samples.sln, press F6 to make it compile to C:\OgreSDK\bin\debug
Search for media.cfg, plugins.cfg, quake3settins.cfg, resource.cfg on your hard disk and make sure they exist in folder

C:\OgreSDK\bin\debug

Change 3 of these 4 files so that they show the following:
---------------------------
media.cfg:

Mesh=C:\OgreSDK\media\models\ogrehead.mesh
Mesh=C:\OgreSDK\media\models\geosphere4500.mesh
Mesh=C:\OgreSDK\media\models\razor.mesh
Mesh=C:\OgreSDK\media\models\knot.mesh
Mesh=C:\OgreSDK\media\models\RZR-002.mesh
Mesh=C:\OgreSDK\media\models\geosphere8000.mesh
Mesh=C:\OgreSDK\media\models\sphere.mesh

CubeMap=cubescene.jpg
CubeMap=early_morning.jpg
CubeMap=cubemap.jpg
CubeMap=morning.jpg
CubeMap=cloudy_noon.jpg
CubeMap=evening.jpg
CubeMap=stormy.jpg
CubeMap=stevecube.jpg
----------------------------
quake3settings.cfg (I may be wrong about this one)

Pak0Location: C:\OgreSDK\media\packs\chiropteraDM.pk3
Map: maps/chiropteradm.bsp
----------------------------
resources.cfg:

# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=C:\OgreSDK\media\packs\OgreCore.zip
# Resource locations to be added to the default path
[General]
FileSystem=C:\OgreSDK\media
FileSystem=C:\OgreSDK\media\fonts
FileSystem=C:\OgreSDK\media\materials\programs
FileSystem=C:\OgreSDK\media\materials\scripts
FileSystem=C:\OgreSDK\media\materials\textures
FileSystem=C:\OgreSDK\media\models
FileSystem=C:\OgreSDK\media\overlays
FileSystem=C:\OgreSDK\media\particle
FileSystem=C:\OgreSDK\media\gui
FileSystem=C:\OgreSDK\media\DeferredShadingMedia
Zip=C:\OgreSDK\media\packs\cubemap.zip
Zip=C:\OgreSDK\media\packs\cubemapsJS.zip
Zip=C:\OgreSDK\media\packs\dragon.zip
Zip=C:\OgreSDK\media\packs\fresneldemo.zip
Zip=C:\OgreSDK\media\packs\ogretestmap.zip
Zip=C:\OgreSDK\media\packs\skybox.zip

Finally, start one of the compiled files, like C:\OgreSDK\bin\debug\Mogre.Demo.Transparency.exe

For me it works... phew.
------------------------------------------------
Possible errors I came across:

Problem:
When starting one of the compiled exe files like C:\OgreSDK\bin\debug\Mogre.Demo.BSP.exe you get the following error:
"An exception has occured! OGRE EXCEPTION(7:InternalErrorException): ..\..\Media\packs\chiropteraDM.pk3 - error whilst openeing archive:
Unable to read zip file. in ZippArchive::checkZzipError at d:\projects\mogre\mogre\ogrenew\ogremain\src\ogrezip.cpp (line 241)"

Solution:
You did not rename the .cfg files to point to the proper paths. Do as mentioned above.

DrZoop

17-10-2007 03:04:56

You cannot underestimate how pissed off I am with Mogre right now. I am in the same boat as you... refuses to compile. It always says "FileNotFoundException" although the DLL is right there. Samples don't run either. I'm glad you got yours to work... we'll see how many reinstalls it takes me.

I am honestly not surprised I haven't broken my desk yet. No one seems to use Mogre anymore either.

Then again, if I can't get this to install on my own machine, how the heck am I supposed to install it on an end user's machine?!

pin

18-10-2007 10:46:02

You cannot underestimate how pissed off I am with Mogre right now. I am in the same boat as you... refuses to compile. It always says "FileNotFoundException" although the DLL is right there. Samples don't run either. I'm glad you got yours to work... we'll see how many reinstalls it takes me.

I am honestly not surprised I haven't broken my desk yet. No one seems to use Mogre anymore either.


It works just fine. Make sure you do everything as showed in the Wiki. I also suggest using tutorial number 5 from the Wiki ( http://www.ogre3d.org/wiki/index.php/Mogre_Tutorials ) to test your environment setup as it doesn't use any Mogreframework and hence a bit easier to get going.


Then again, if I can't get this to install on my own machine, how the heck am I supposed to install it on an end user's machine?!


The only thing you really need to get your game going on someone elses machine is to have Mogre.dll included in the directory where your executable is. And as with any C# program the user will need to have NetFramework 2.0 on his computer.