PLSM2 Doesnt Like me, Strange Error with dynamic [Solved]

Tocs1001

23-04-2006 04:10:00

PLSM2 Doesnt like me :cry: but i like what it can to, or what i have read anyway... But onto the problem I built Plugin_PagingLandscapeSceneManager2 project in debug mode, it created Plugin_PagingLandscapeSceneManager2.dll, I knew that the debug dll was supposed to have a _d on the end so i renamed it to Plugin_PagingLandscapeSceneManager2_d.dll, then i compiled and built MapSplitter in debug, moved all of the files to the bin\debug directory of $(OGRE_HOME), ran Mapsplitter it throws an exception and here i am, I've looked at it and im thouroghly puzzled... :?

12:21:02: MovableObjectFactory for type 'ManualObject' registered.
12:21:02: MovableObjectFactory for type 'BillboardChain' registered.
12:21:02: MovableObjectFactory for type 'RibbonTrail' registered.
12:21:02: Loading library .\RenderSystem_Direct3D9
12:21:02: D3D9 : Direct3D9 Rendering Subsystem created.
12:21:02: D3D9: Driver Detection Starts
12:21:02: D3D9: Driver Detection Ends
12:21:03: Loading library .\RenderSystem_GL
12:21:03: OpenGL Rendering Subsystem created.
12:21:03: Loading library .\Plugin_ParticleFX
12:21:03: Particle Emitter Type 'Point' registered
12:21:03: Particle Emitter Type 'Box' registered
12:21:03: Particle Emitter Type 'Ellipsoid' registered
12:21:03: Particle Emitter Type 'Cylinder' registered
12:21:03: Particle Emitter Type 'Ring' registered
12:21:03: Particle Emitter Type 'HollowEllipsoid' registered
12:21:03: Particle Affector Type 'LinearForce' registered
12:21:03: Particle Affector Type 'ColourFader' registered
12:21:03: Particle Affector Type 'ColourFader2' registered
12:21:03: Particle Affector Type 'ColourImage' registered
12:21:03: Particle Affector Type 'ColourInterpolator' registered
12:21:03: Particle Affector Type 'Scaler' registered
12:21:03: Particle Affector Type 'Rotator' registered
12:21:03: Particle Affector Type 'DirectionRandomiser' registered
12:21:03: Particle Affector Type 'DeflectorPlane' registered
12:21:03: Loading library .\Plugin_BSPSceneManager
12:21:03: Registering ResourceManager for type BspLevel
12:21:03: Loading library .\Plugin_OctreeSceneManager
12:21:03: Loading library .\Plugin_CgProgramManager
12:21:03: Loading library .\Plugin_PagingLandScapeSceneManager2_d
12:21:03: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: DynLib::load
Description: Could not load dynamic library .\Plugin_PagingLandScapeSceneManager2_d. System Error: The specified module could not be found.

.
File: d:\ogredev\dagon\ogremain\src\ogredynlib.cpp
Line: 82
Stack unwinding: <<beginning of stack>>


any help would be very much loved :lol:

Crashy

23-04-2006 22:23:13

There is an error in your plugins.cfg

replace

Plugin=Plugin_PagingLandScapeSceneManager2_d

By

Plugin=Plugin_PagingLandScapeSceneManager2

Tocs1001

24-04-2006 23:23:15

still the same error :( but thanks for the try :wink:

Crashy

25-04-2006 18:51:39

Damn! Did you check the output debug dll filename that is in the defautl project?
Same thing for the plugin name in the default plugin.cfg that is attached with the sources?

Tocs1001

25-04-2006 22:42:27

I had to change the output file name in my IDE from Plugin_PagingLandScapeSceneManager2 to Plugin_PagingLandScapeSceneManager2_d in order to match the name inside the plugins.cfg file... I was compiling in debug mode yet it didnt put the _d on the end

jacmoe

26-04-2006 01:06:30

Tocs1001, it is a very bad idea to change anything in the default project setup. You are asking for all kinds of trouble - no wonder PLSM2 doesn't like you! :P

You are totally free to experiment, after you've succesfully compiled and run PLSM2 using the provided, untouched project files.

Just my 0.2€ :wink:

Tocs1001

27-04-2006 03:28:03

sry i havent had time to check the forums to reply! Very busy with a school project, I only changed the project output file, it should be the same as renameing the file. I had to change dependencies though to work it was looking for a non existant folder called common....

Tocs1001

03-05-2006 03:38:26

I hate to bump an old topic :oops: (Finally done with cursed school projects, i have have a break in between the end of the year project boost. Where every teacher decides to do a project involving poster board and typed reports >.>), but its the same problem as before Ive tried renaming the DLL's and changing the plugin.cfg. Do i have to build the plugin in a certain wa?, MSVC said it was in debug, I presume the Mapsplitter isnt in release because the plugin.cfg was asking for a debug version.

tuan kuranes

03-05-2006 10:16:41

You should restart from zero there.

What Compiler is that ?

Get pslm2 source, compile it inside Ogre SDK 1.2rc2 and it should work out of the box (using visual studio express at least.).

Mapsplitter only require ogremain and ogreplatform.
plsm2 demo needs the plugins.

jacmoe

03-05-2006 18:36:13

You are totally free to experiment, after you've succesfully compiled and run PLSM2 using the provided, untouched project files. :wink:

Tocs1001

03-05-2006 20:43:56

It wouldnt work "out of the box" even if i redownload it, it looks for a non existant folder in the dependancies called "common" there is no folder "common" there never was in any of my SDK downloads, Ive started from zero twice now, I can do it again, but i dont know how it will help because I'll just have to fix the dependencies again.I've restored the plugins.cfg file back to the original its still not working. My question is why isnt ogre finding the dll, I built .in debug with Microsoft Visual C++ .NET 2003. with the appropriate precompiled. Ogre SDK 1.20 RC2. I fixed the project dependencies so it would compile i got the plugin_PagingLandscapeSceneManager.dll placed it in the bin\debug directory of Ogre and it can't find it, I'm being told stuff ive already tried. However i descovered another log file called Mapsplitter log which says it cant find datasrcs, apparently a media file of somesort
-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: FileSystemArchive::changeDirectory
Description: Cannot open requested directory ../../Media/paginglandscape2/datasrcs.
File: d:\ogredev\dagon\ogremain\src\ogrefilesystem.cpp
Line: 141
Stack unwinding: <<beginning of stack>>


I found something labled datasrc.zip on Tuan's website im DL'ing it

edit: HUZZAH IT WORKED!

Falagard

03-05-2006 23:31:17

Read the Wiki. Please.

tuan kuranes

04-05-2006 14:10:44

As I primarly use VS8, VS2003 .vcproj may be out of date.
If you can send me modified VS2003 .vcproj files so that I can update plsm2 CVS.