Crystal Space
Welcome, Guest. Please login or register.
April 17, 2014, 11:36:14 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7594 Members
Latest Member: Wandagarcia
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  VFS.Mount question...
« previous next »
Pages: [1] Print
Author Topic: VFS.Mount question...  (Read 1893 times)
willjm
Newbie
*
Posts: 39


View Profile
« on: October 16, 2005, 07:05:12 am »

Hello,

I am trying to run the walktest application with a new map called room02. I have ran into the problem of "crystalspace.maploader.parse.map: Could not open map file 'world' on VFS!". I have the following in a file named room02.cfg

-----------------------------------------------------------------------------------------------------------------------------

; Set the default texture in the event that one can not be found
Map2CS.TextureSettings.DefaultTexture = liquids/bubbles

; Add your texture packs here
Map2CS.TextureSettings.pk1 = G:\Program Files\Quake III Arena\baseq3\pak0.pk3
Map2CS.TextureSettings.pk2 = G:\Program Files\Quake III Arena\missionpack\mapmedia-TA.pk3

; Scale the map from Quake scaling (1 unit equals 1 inch)
; to Crystal Space scaling (1 unit equals 1 meter)
Map2CS.General.Scaling = 0.025

; Enable BSP-tree generation in all sectors
Map2CS.General.UseBSP = 1

; Remove hidden surfaces
Map2CS.General.RemoveHidden = 1

; Set the lighting level for the map
Map2CS.General.LightScale=30

; Application ID string
System.ApplicationID = Map2CS

; Some basic mount points
VFS.Mount.~ = $(HOME)$/
VFS.Mount.lev/room02  = $@..$/maps$/room02$/data$/room02.zip

-----------------------------------------------------------------------------------------------------------------------------

If I add the last line "VFS.Mount.lev/room02  = $@..$/maps$/room02$/data$/room02.zip" to my vfs.config file, walktest finds the map in the mount point and runs just fine. I would like to keep that local to the config file for room02. Is this possible?

Thanks!

willjm
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #1 on: October 16, 2005, 09:19:05 am »

walktest doesn't know anything about your local configuration file. An alternative is to use walktest's built-in ability to mount .zip files automatically. I believe that you should be able to just mention the name of the .zip files on the walktest command-line.
Logged
wjm
Guest


Email
« Reply #2 on: October 16, 2005, 03:07:29 pm »

Ok,

I realize my mistake now and I thank you for pointing that out.

Yes you are correct to say you can run it from the walktest command-line.

G:\Crystal\CS>walktest ..\maps\room02\data\room02.zip -relight

This successfully loads the map; however my curiosity lies with the config files. It seems that if I add "VFS.Mount.lev/room02  = $@..$/maps$/room02$/data$/room02.zip" to the walktest.cfg file it still yields the same error. Should this be happening? It was my understanding that the local cfg file overrides the vfs.cfg. Is this a mistake in my understanding?

Thanks,

- willjm
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #3 on: October 16, 2005, 09:40:41 pm »

If you have your own project or your own modules, you can have a local file named vfs.cfg which overrides (is merged into) the distributed vfs.cfg. VFS only looks for, and in, files named vfs.cfg.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.151 seconds with 16 queries.