Kentamanos
13-01-2006 06:33:08
I've read the wiki page that describes installation, and I based my process on it. I'm trying to use CVS (Ogre and PLSM2) with Visual Studio 8.0.
Here's what I've done:
1. I grabbed the CVS for ogrenew and ogreaddons and put them basically in (basepath)\ogrenew and (basepath)\ogreaddons
2. I got ogrenew building first (copying dependencies etc.)
3. I copied the Plugins, Samples, and Tools directories from (basepath)\ogreaddons\paginglandscape to (basepath)\ogrenew.
4. I added the projects into the Ogre solution (which are the vcproj files in : (basepath)\ogrenew\PlugIns\PagingLandScape2\scripts, (basepath)\Samples\PagingLandScape2\scripts, and (basepath)\Tools\MapSplitter\script). This of course converted them from VC 7.1 projects to 8.0 (conversion worked fine).
5. I rebuilt the solution (everything builds fine).
6. I extracted datasrcs.zip to (basepath)\ogrenew\samples\media\paginglandscape2\datasrcs.
At this point, I assume my job is to get the Mapsplitter to work to create the data I need.
7. I copied all of the required DLL's from the Common bin directory (debug in this case at (basepath)\ogrenew\Samples\Common\bin\Debug) to (basepath)\ogrenew\tools\common\bin\debug.
8. I ran MapsplitterD.exe (debug version) from (basepath)\ogrenew\Tools\Common\bin\debug. It complanied that the "../../../../Samples/Media/paginglandscape2/terrains/hf129_3" does not exist (referenced in media.cfg), so I created that empty directory.
9. I ran it again, and it tries to generate maps based upon puget_1k.gen.cfg. It throws an exception like:
10. I debugged this and it looks like it's looking for "Height" and "Width" in the file, and defaulting both values to zero. It then throws an exception if either of these are zero (which it does).
Now my question is: what am I doing wrong? Is puget_1k.gen.cfg supposed to have a Height and Width value in it? Both the CVS version and the "binary" version zip file had a "gen" file with this key/value pair. Am I doing something really stupid?
I tried to follow the wiki instructions, but it kept referring to running stuff from the "PLSM" directory. I'm not sure what that meant, but the Tools/Common/bin/Debug seems like the place I SHOULD be running Mapsplitter(D) from. I realize the wiki might be slightly out of date or something, but if I get this running, I will go back and edit it where it makes sense to
.
Here's what I've done:
1. I grabbed the CVS for ogrenew and ogreaddons and put them basically in (basepath)\ogrenew and (basepath)\ogreaddons
2. I got ogrenew building first (copying dependencies etc.)
3. I copied the Plugins, Samples, and Tools directories from (basepath)\ogreaddons\paginglandscape to (basepath)\ogrenew.
4. I added the projects into the Ogre solution (which are the vcproj files in : (basepath)\ogrenew\PlugIns\PagingLandScape2\scripts, (basepath)\Samples\PagingLandScape2\scripts, and (basepath)\Tools\MapSplitter\script). This of course converted them from VC 7.1 projects to 8.0 (conversion worked fine).
5. I rebuilt the solution (everything builds fine).
6. I extracted datasrcs.zip to (basepath)\ogrenew\samples\media\paginglandscape2\datasrcs.
At this point, I assume my job is to get the Mapsplitter to work to create the data I need.
7. I copied all of the required DLL's from the Common bin directory (debug in this case at (basepath)\ogrenew\Samples\Common\bin\Debug) to (basepath)\ogrenew\tools\common\bin\debug.
8. I ran MapsplitterD.exe (debug version) from (basepath)\ogrenew\Tools\Common\bin\debug. It complanied that the "../../../../Samples/Media/paginglandscape2/terrains/hf129_3" does not exist (referenced in media.cfg), so I created that empty directory.
9. I ran it again, and it tries to generate maps based upon puget_1k.gen.cfg. It throws an exception like:
-----------------------------------
Details:
-----------------------------------
Error #: 1
Function: PagingLandScapeOptions::loadMapOptions
Description: Your map must at least have a width and height defined in the config file .
File: ..\..\..\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOptions.cpp
Line: 471
Stack unwinding: <<beginning of stack>>
00:11:34: Termination handler: uncaught exception!
00:11:34: *-*-* OGRE Shutdown
10. I debugged this and it looks like it's looking for "Height" and "Width" in the file, and defaulting both values to zero. It then throws an exception if either of these are zero (which it does).
Now my question is: what am I doing wrong? Is puget_1k.gen.cfg supposed to have a Height and Width value in it? Both the CVS version and the "binary" version zip file had a "gen" file with this key/value pair. Am I doing something really stupid?
I tried to follow the wiki instructions, but it kept referring to running stuff from the "PLSM" directory. I'm not sure what that meant, but the Tools/Common/bin/Debug seems like the place I SHOULD be running Mapsplitter(D) from. I realize the wiki might be slightly out of date or something, but if I get this running, I will go back and edit it where it makes sense to
![Smile :)]({SMILIES_PATH}/icon_smile.gif)