Basic Tutorial 1

Shaun

12-08-2009 12:30:53

I tried out the sample code in the Basic Tutorial 1 in the Python ogre wiki.


The Error Report is as follows:-

16:57:53: Creating resource group General
16:57:53: Creating resource group Internal
16:57:53: Creating resource group Autodetect
16:57:53: SceneManagerFactory for type 'DefaultSceneManager' registered.
16:57:53: Registering ResourceManager for type Material
16:57:53: Registering ResourceManager for type Mesh
16:57:53: Registering ResourceManager for type Skeleton
16:57:53: MovableObjectFactory for type 'ParticleSystem' registered.
16:57:53: OverlayElementFactory for type Panel registered.
16:57:53: OverlayElementFactory for type BorderPanel registered.
16:57:53: OverlayElementFactory for type TextArea registered.
16:57:53: Registering ResourceManager for type Font
16:57:53: ArchiveFactory for archive type FileSystem registered.
16:57:53: ArchiveFactory for archive type Zip registered.
16:57:53: FreeImage version: 3.10.0
16:57:53: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
16:57:53: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
16:57:53: DDS codec registering
16:57:53: Registering ResourceManager for type HighLevelGpuProgram
16:57:53: Registering ResourceManager for type Compositor
16:57:53: MovableObjectFactory for type 'Entity' registered.
16:57:53: MovableObjectFactory for type 'Light' registered.
16:57:53: MovableObjectFactory for type 'BillboardSet' registered.
16:57:53: MovableObjectFactory for type 'ManualObject' registered.
16:57:53: MovableObjectFactory for type 'BillboardChain' registered.
16:57:53: MovableObjectFactory for type 'RibbonTrail' registered.
16:57:53: Loading library ../../plugins\RenderSystem_GL.dll
16:57:53: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library ../../plugins\RenderSystem_GL.dll. System Error: The specified module could not be found.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)




Somebody please help. That too ASAP.

andy

12-08-2009 14:01:42

You have a path problem in your plugins.cfg... it's looking in ../../plugins for the renderer's and it would seem that this path is incorrect..

Andy

Shaun

13-08-2009 04:52:32

So do you know how I can fix it? I really wanna get started ASAP with my project. It'll really help.

Shaun

13-08-2009 05:24:23

I put the plugins folder 2 directories up and tried out the basic 01 tutorial code and it gave me this error.

10:06:18: Creating resource group General
10:06:18: Creating resource group Internal
10:06:18: Creating resource group Autodetect
10:06:18: SceneManagerFactory for type 'DefaultSceneManager' registered.
10:06:18: Registering ResourceManager for type Material
10:06:18: Registering ResourceManager for type Mesh
10:06:18: Registering ResourceManager for type Skeleton
10:06:18: MovableObjectFactory for type 'ParticleSystem' registered.
10:06:18: OverlayElementFactory for type Panel registered.
10:06:18: OverlayElementFactory for type BorderPanel registered.
10:06:18: OverlayElementFactory for type TextArea registered.
10:06:18: Registering ResourceManager for type Font
10:06:18: ArchiveFactory for archive type FileSystem registered.
10:06:18: ArchiveFactory for archive type Zip registered.
10:06:18: FreeImage version: 3.10.0
10:06:18: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
10:06:18: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
10:06:18: DDS codec registering
10:06:18: Registering ResourceManager for type HighLevelGpuProgram
10:06:18: Registering ResourceManager for type Compositor
10:06:18: MovableObjectFactory for type 'Entity' registered.
10:06:18: MovableObjectFactory for type 'Light' registered.
10:06:18: MovableObjectFactory for type 'BillboardSet' registered.
10:06:18: MovableObjectFactory for type 'ManualObject' registered.
10:06:18: MovableObjectFactory for type 'BillboardChain' registered.
10:06:18: MovableObjectFactory for type 'RibbonTrail' registered.
10:06:18: Loading library ../../plugins\RenderSystem_GL.dll
10:06:19: Installing plugin: GL RenderSystem
10:06:19: OpenGL Rendering Subsystem created.
10:06:19: Plugin successfully installed
10:06:19: Loading library ../../plugins\RenderSystem_Direct3D9.dll
10:06:20: Installing plugin: D3D9 RenderSystem
10:06:20: D3D9 : Direct3D9 Rendering Subsystem created.
10:06:20: D3D9: Driver Detection Starts
10:06:20: D3D9: Driver Detection Ends
10:06:20: Plugin successfully installed
10:06:20: Loading library ../../plugins\Plugin_ParticleFX.dll
10:06:20: Installing plugin: ParticleFX
10:06:20: Particle Emitter Type 'Point' registered
10:06:20: Particle Emitter Type 'Box' registered
10:06:20: Particle Emitter Type 'Ellipsoid' registered
10:06:20: Particle Emitter Type 'Cylinder' registered
10:06:20: Particle Emitter Type 'Ring' registered
10:06:20: Particle Emitter Type 'HollowEllipsoid' registered
10:06:20: Particle Affector Type 'LinearForce' registered
10:06:20: Particle Affector Type 'ColourFader' registered
10:06:20: Particle Affector Type 'ColourFader2' registered
10:06:20: Particle Affector Type 'ColourImage' registered
10:06:20: Particle Affector Type 'ColourInterpolator' registered
10:06:20: Particle Affector Type 'Scaler' registered
10:06:20: Particle Affector Type 'Rotator' registered
10:06:20: Particle Affector Type 'DirectionRandomiser' registered
10:06:20: Particle Affector Type 'DeflectorPlane' registered
10:06:20: Plugin successfully installed
10:06:20: Loading library ../../plugins\Plugin_BSPSceneManager.dll
10:06:20: Installing plugin: BSP Scene Manager
10:06:20: Plugin successfully installed
10:06:20: Loading library ../../plugins\Plugin_OctreeSceneManager.dll
10:06:20: Installing plugin: Octree & Terrain Scene Manager
10:06:20: Plugin successfully installed
10:06:20: Loading library ../../plugins\Plugin_CgProgramManager.dll
10:06:20: Installing plugin: Cg Program Manager
10:06:20: Plugin successfully installed
10:06:20: *-*-* OGRE Initialising
10:06:20: *-*-* Version 1.6.1 (Shoggoth)
10:06:20: Creating resource group Bootstrap
10:06:20: OGRE EXCEPTION(7:InternalErrorException): ../media/packs/OgreCore.zip - error whilst opening archive: Unable to read zip file. in ZipArchive::checkZzipError at ..\src\OgreZip.cpp (line 259)
10:06:21: *-*-* OGRE Shutdown
10:06:21: Unregistering ResourceManager for type Compositor
10:06:21: Unregistering ResourceManager for type Font
10:06:21: Unregistering ResourceManager for type Skeleton
10:06:21: Unregistering ResourceManager for type Mesh
10:06:21: Unregistering ResourceManager for type HighLevelGpuProgram
10:06:21: Uninstalling plugin: Cg Program Manager
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\Plugin_CgProgramManager.dll
10:06:21: Uninstalling plugin: Octree & Terrain Scene Manager
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\Plugin_OctreeSceneManager.dll
10:06:21: Uninstalling plugin: BSP Scene Manager
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\Plugin_BSPSceneManager.dll
10:06:21: Uninstalling plugin: ParticleFX
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\Plugin_ParticleFX.dll
10:06:21: Uninstalling plugin: D3D9 RenderSystem
10:06:21: D3D9 : Shutting down cleanly.
10:06:21: D3D9 : Direct3D9 Rendering Subsystem destroyed.
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\RenderSystem_Direct3D9.dll
10:06:21: Uninstalling plugin: GL RenderSystem
10:06:21: *** Stopping Win32GL Subsystem ***
10:06:21: Plugin successfully uninstalled
10:06:21: Unloading library ../../plugins\RenderSystem_GL.dll
10:06:21: Unregistering ResourceManager for type Material


It solves the previous error. But what can I do if it is not able to read a zip file? And I am receiving this problem in both my computers. So there IS a problem here. I have the March 2009 DirectX redistributable. Running on Original Windows XP and Python ogre 1.6.1 the latest one at present and python 2.5 (I also have 2.6 though) and it's not working!!!!

Please somebody help!!!

bharling

13-08-2009 10:12:35

Have a look at the resources.cfg in the folder of the demo you're trying to run, make sure all the paths in that file resolve properly. Resources.cfg will tell ogre where OgreCore.zip can be found, so make sure that path is correct ( same goes for all the other files referenced there ). This is strange because the default install directory setup should have all this setup correctly. The simplest thing to do might be to clean everything and re-install. I usually install to somewhere simple like c:\pythonogre which makes it easier to resolve path issues.

Shaun

14-08-2009 04:38:46

Bharling, dude I just wanna say one thing...................................... you rock solid bro!!! Really man!! That was the problem all the paths had a "../" in front of them. It was that part that made them wrong. So I cut it out and guess what?....... IT WORKED!!! So basically it took me about 6 days to fully setup Python-Ogre But I did it!!! I also noticed that with respect to all the resource.cfg files in all of the folders located in the demo directory (for example \demo\ogre), the paths were right. Perhaps there is some error in the installer or something. Now I can continue on for the project that I've been wanting to develop since I was in ninth grade. Thanks a lot bro!! Thanks a mill!!!

Proportion

14-08-2009 06:55:41

hey thank u too shaun. if this wasnt in the forums (i had the exact same problem) i probebly would have just given up. how i can get started too. awwww yea. (and instead of 6 days it took me 10 mins hehe) ty

Proportion

14-08-2009 07:22:03

also i just found out that if u put your 'basic_01.py' file in a folder that you created in your PythonOgre\demos folder. (create the folder ....PythonOgre\demos\tutorials) and place:
import sys
sys.path.insert(0,'..')
up the top of the basic_01.py code in the first tutorial. u will still be able to use all of your demo files. :)

(ps. ive only been using python for 5 days, gimmie a break heh.)

Shaun

14-08-2009 13:42:28

So what is the kind of game that you are creating? I'm creating an MMORPG that takes place in a city.

And presently there are only two people in this. One is me and then there are two others, one in India and the other in South Korea. I'll be posting the development log on the internet on a website, as soon as the package that I've asked for gets approved. Till then I'm going trough the tutorials.