PlaneShift
Development => Development Deliberation => Topic started by: avaleee on December 23, 2005, 06:27:52 pm
-
Hi,there,
I exported a simple map from blender. The map can be browsered correctly by walktest.And then I tried to import it to PlaneShift. I have add an entry in the sectors table of the database. And put the map zip file(my1stmap-test.zip) under /planeshift/art/world/
I got a problem which will be described below. Does anybody know how to solve it? Or does anybody know any documents about how to import the user maps ? Thanks a lot.
The problem is:
While I start psserver.exe and try to load the map by:
loadmap my1stmap
The console said:
PS Server: loadmap my1stmap-test
Cleaning map file.
Before LoadMapFile of /planeshift/world/my1stmap-test: time=12412
crystalspace.maploader.parse.library:
Could not open library file \'factories/thingCube\' on VFS!
<\\cvsroot\\planeshift\\planeshift\\src\\common\\psbehave\\psworld.cpp:375> psRegion::Load
:
loader->LoadMapFile(/planeshift/world/my1stmap-test,my1stmap-test_cleaned)
failed.
<\\cvsroot\\planeshift\\planeshift\\src\\common\\psbehave\\psworld.cpp:376> psRegion::Load
:
Region name was: my1stmap-test
PS Server:
And the directories structure in the my1stmap-test.zip is:
/cache
/factories
/textures
celstrap.py
world
And under the /facories there is a file: thingCube
The content of the world file is:
crystalspace.mesh.loader.thing
crystalspace.mesh.loader.null
crystalspace.mesh.loader.genmesh
crystalspace.mesh.loader.sprite.3d
crystalspace.mesh.loader.sprite.2d
crystalspace.mesh.loader.sprite.cal3d
crystalspace.mesh.loader.factory.sprite.2d
crystalspace.mesh.loader.factory.sprite.3d
crystalspace.mesh.loader.factory.thing
crystalspace.mesh.loader.factory.genmesh
crystalspace.mesh.loader.factory.sprite.cal3d
textures/Img5322.jpg
Img5322.jpg
yes
yes
factories/thingCube
thing
thingCube
29.9999828339
Scene
And the content of the factories/thingCube is:
thingfact
no
1
2
3
0
no
7
6
5
4
no
4
5
1
0
no
5
6
2
1
no
6
7
3
2
no
7
4
0
3
no
Really thanks a lot!
-
Hello.
Yes, this is a problem with new version of b2cs. The quick way to make your map work: add one line to vfs.cfg in your planeshift instalation directory:
VFS.Mount.my1stmap = $^art/world/my1stmap-test.zip
Then replace all occurencies of \"factories/\" to \"/my1stmap/factories/\" in world file. This should work as a temporary solution.
Good luck.
-
It works! Thanks a lot, Wired_Crawler!
Merry Christmas and Happy New Year~