File: cs_90.html

package info (click to toggle)
crystalspace 0.94-20020412-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 62,276 kB
  • ctags: 52,843
  • sloc: cpp: 274,783; ansic: 6,608; perl: 6,276; objc: 3,952; asm: 2,942; python: 2,354; php: 542; pascal: 530; sh: 430; makefile: 370; awk: 193
file content (130 lines) | stat: -rw-r--r-- 6,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created by texi2html 1.64 -->
<!-- 
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
 
-->
<HTML>
<HEAD>
<TITLE>Crystal Space: map2cs Tutorial Step 3</TITLE>

<META NAME="description" CONTENT="Crystal Space: map2cs Tutorial Step 3">
<META NAME="keywords" CONTENT="Crystal Space: map2cs Tutorial Step 3">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">

</HEAD>

<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">

<A NAME="SEC190"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_89.html#SEC189"> &lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_91.html#SEC191"> &gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_83.html#SEC181"> &lt;&lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_87.html#SEC185"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_99.html#SEC200"> &gt;&gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<HR SIZE=1>
<H3> 5.5.3 Step 3: Configuring `<TT>map2cs</TT>' </H3>
<!--docid::SEC190::-->
<P>

`<TT>map2cs</TT>' is configured by a special configuration file called
`<TT>map2cs.cfg</TT>', located within the 'D:\Crystal\CS\data\config\' directory.
If you need support for multiple configurations, you can use several
configuration files, but for now we will restrict ourselves to just one file.
Open up `<TT>map2cs.cfg</TT>' in you favourite editor and edit it, so it looks like
the following template:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>Map2CS.TextureSettings.DefaultTexture = liquids/bubbles
Map2CS.TextureSettings.wad1 = D:\Crystal\Wads\cstex_1.wad
Map2CS.TextureSettings.wad2 = E:\Sierra\HalfLife\valve\halflife.wad
Map2CS.TextureSettings.wad3 = E:\Sierra\HalfLife\valve\xeno.wad
Map2CS.TextureSettings.wad4 = E:\Sierra\HalfLife\valve\liquids.wad
Map2CS.TextureSettings.wad5 = E:\Sierra\HalfLife\valve\texpack.wad
Map2CS.TextureSettings.pk1 = D:\Games\Quake3A\baseq3\pak0.pk3
Map2CS.TextureSettings.pk2 = D:\Games\Quake3A\baseq3\mapmedia.pk3

Map2CS.General.Scaling = 0.025
Map2CS.General.UseBSP = 1
Map2CS.General.RemoveHidden = 0
Map2CS.General.LightScale=30

System.ApplicationID = Map2CS
</pre></td></tr></table></P><P>

The only thing you will probably need to adjust in the supplied
`<TT>map2cs.cfg</TT>' is the texture path (setting for
`<SAMP>Map2CS.TextureSettings.wad1</SAMP>' etc.). If you need more wads, you need to
add them as `<TT>wad5</TT>', `<TT>wad6</TT>' and so on. If you have Quake3-style
texture files, you can add them by `<TT>Map2CS.TextureSettings.pk3=<small>...</small></TT>',
`<TT>Map2CS.TextureSettings.pk4=<small>...</small></TT>', and so on.
</P><P>

Now Windows and DOS users need to create a batch file to compile and run
a map. The batch file should be stored as `<TT>D:\Crystal\LevBuild.bat</TT>'
and contain the following commands:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>cd CS
map2cs ..\maps\%1.map data\%1.zip
walktest %1
cd..
</pre></td></tr></table></P><P>

From the command-line (the MS-DOS prompt for Windows and DOS users)
change to the directory `<TT>D:\Crystal</TT>'.  Type `<SAMP>LevBuild.bat
yourmapsname</SAMP>'.  Now, if everything is properly installed and you have a file
`<TT>yourmapsname.map</TT>' in your `<TT>maps</TT>' directory (if you have downloaded
the binary Crystal Space distribution for map making, you have), then you
should see the following output:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>map2cs, Copyright (C) 1999 by Thomas Hieber

Reading map `..\Maps\yourmapsname.map'
Map contains:
6 Entities
26 Brushes
118 Unique planes
Writing world `data\yourmapsname.zip'
done.
</pre></td></tr></table></P><P>

Right after that, a new window should appear, that contains the Crystal Space
startup console with lots of text in it.  After some time, you should have
loaded you first self-compiled map.
<A NAME="map2cs Tutorial Step 4"></A>
<HR SIZE=1>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_89.html#SEC189"> &lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_91.html#SEC191"> &gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_83.html#SEC181"> &lt;&lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_87.html#SEC185"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_99.html#SEC200"> &gt;&gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<BR>  
<FONT SIZE="-1">
This document was generated

using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>

</BODY>
</HTML>