… | |
… | |
2 | |
2 | |
3 | <div class="tutorial"> |
3 | <div class="tutorial"> |
4 | <h2>Deliantra map making and server installation tutorial for Linux</h2> |
4 | <h2>Deliantra map making and server installation tutorial for Linux</h2> |
5 | |
5 | |
6 | <p> |
6 | <p> |
7 | So, you don't know much about crossfire and or programming, but |
7 | So, you don't know much about deliantra and or programming, but |
8 | you want to make maps? This Tutorial will explain how to |
8 | you want to make maps? This Tutorial will explain how to |
9 | install the Deliantra server (from CVS) on your linux system |
9 | install the Deliantra server (from CVS) on your linux system |
10 | and making your first maps. If you are stuck somewhere, please |
10 | and making your first maps. If you are stuck somewhere, please |
11 | <a href="contact.html">contact</a> us (the developers). |
11 | <a href="contact.html">contact</a> us (the developers). |
12 | </p> |
12 | </p> |
… | |
… | |
15 | Note: I am assuming here that you are using a <tt>bash</tt>-like shell. And that you are logged in as root. |
15 | Note: I am assuming here that you are using a <tt>bash</tt>-like shell. And that you are logged in as root. |
16 | If you want to install and setup everything from a regular user account you have to take care of all permission |
16 | If you want to install and setup everything from a regular user account you have to take care of all permission |
17 | handling yourself. |
17 | handling yourself. |
18 | </em> </p> |
18 | </em> </p> |
19 | |
19 | |
|
|
20 | <h3>Step 1: Getting the map editor and setting it up</h3> |
|
|
21 | |
|
|
22 | <p> |
|
|
23 | Now download the editor! You can either install all the Perl modules and stuff by yourself |
|
|
24 | or just choose the binary: <a href="editor.html">editor download page</a>. |
|
|
25 | I'm not going to discuss the installation procedure for the CVS here, as it requires much |
|
|
26 | knowledge about your system and how to install (perl) software from source. If you only want to |
|
|
27 | make maps, the binary will do very fine (on x86 systems). |
|
|
28 | </p> |
|
|
29 | |
|
|
30 | <p> |
|
|
31 | So, the next thing is to download the editor. </p> |
|
|
32 | |
|
|
33 | <pre> |
|
|
34 | root@localhost: ~/deliantra# wget http://dist.schmorp.de/gce/gce-gnu-linux-x86.bin |
|
|
35 | </pre> |
|
|
36 | |
|
|
37 | <p>There it is, now we make it an executable and run it:</p> |
|
|
38 | |
|
|
39 | <pre> |
|
|
40 | root@localhost: ~/deliantra# chmod a+x gce-gnu-linux-x86.bin |
|
|
41 | </pre> |
|
|
42 | |
|
|
43 | <p> |
|
|
44 | Now we make a start script like for the server and run it |
|
|
45 | <em>Note: the first startup may take some while, the editor has to read all the archetypes and graphics.</em>: |
|
|
46 | </p> |
|
|
47 | |
|
|
48 | <pre> |
|
|
49 | root@localhost: ~/deliantra# echo "CROSSFIRE_LIBDIR=/opt/deliantra/share/deliantra/ ./gce-gnu-linux-x86.bin" > startgce |
|
|
50 | root@localhost: ~/deliantra# chmod a+x startgce |
|
|
51 | root@localhost: ~/deliantra# ./startgce |
|
|
52 | </pre> |
|
|
53 | |
|
|
54 | <p><em> |
|
|
55 | Note: If you run into problems when starting the editor make sure you have gtk2, glib2 and pango and cairo libraries |
|
|
56 | correctly installed. As i don't know your linux system you would have to figure out that yourself. |
|
|
57 | </em></p> |
|
|
58 | |
|
|
59 | <p><em> |
|
|
60 | Note 2: If you are familiar with your system i recommend to set the CROSSFIRE_LIBDIR variable in your shells startup configuration. |
|
|
61 | </em></p> |
|
|
62 | |
|
|
63 | <p> |
|
|
64 | Now i could let you run around for yourself, if you are planning to figure out stuff |
|
|
65 | yourself now, do it, but make sure you find the <b>manual of the editor in the toolbox window in the HELP menu!</b> |
|
|
66 | </p> |
|
|
67 | |
|
|
68 | <p>But i guess the best thing is to explain now what to do, and how to do. The first things you will see is this:</p> |
|
|
69 | |
|
|
70 | <a href="tutscrs/mainview1.png"><img src="tutscrs/mainview1_tb.jpg" alt="main view" /></a> |
|
|
71 | |
|
|
72 | <p>Now open up 2 pickers, the stack view dialog and rearrange all the windows like this:</p> |
|
|
73 | |
|
|
74 | <a href="tutscrs/mainview2.png"><img src="tutscrs/mainview2_tb.jpg" alt="main view with layout" /></a> |
|
|
75 | |
|
|
76 | <p> |
|
|
77 | You notice that the pickers are still empty, go to the drop-down box on the top of the pickers |
|
|
78 | and select 'wall' and 'floor' from there: |
|
|
79 | </p> |
|
|
80 | |
|
|
81 | <a href="tutscrs/mainview3.png"><img src="tutscrs/mainview3_tb.jpg" alt="main view with finished layout" /></a> |
|
|
82 | |
|
|
83 | <p> |
|
|
84 | Now it's time to click the <em>Save Layout</em> entry in the <em>File</em> menu. It will save all the |
|
|
85 | window sizes and positions. So you don't have to make all the layout work next time again. |
|
|
86 | As you go on with map editing you maybe find other layouts more useful, try around, and of course: use more |
|
|
87 | pickers. I mostly have 3-4 pickers open to do all the stuff i want. |
|
|
88 | </p> |
|
|
89 | |
|
|
90 | <a href="tutscrs/mainview4.png"><img src="tutscrs/mainview4_tb.jpg" alt="main view with finished and saved layout" /></a> |
|
|
91 | |
|
|
92 | <p>Finished! You have now a layout we can work with. Go on to the next step:</p> |
|
|
93 | |
|
|
94 | <h3>Step 2: Making your first map</h3> |
|
|
95 | |
|
|
96 | <p> |
|
|
97 | This step will introduce some tools and shortcuts you may use on a regular basis when making maps. |
|
|
98 | </p> |
|
|
99 | |
|
|
100 | <p> |
|
|
101 | First make a new map. Go to the <em>File->New</em> menu for that an click on it. |
|
|
102 | Next a dialog will open up, that will ask you for a map size. The default is 20x20. You |
|
|
103 | can adjust that like you want. But we recommend not to make maps much larger than 50x50 or 60x60. |
|
|
104 | It reduces the server load somewhat. Better use tiled maps or linked maps (with exits between them). |
|
|
105 | </p> |
|
|
106 | |
|
|
107 | <p> |
|
|
108 | Click on the <em>new</em> button and the map editor will open up: |
|
|
109 | </p> |
|
|
110 | |
|
|
111 | <a href="tutscrs/mapedit1.png"><img src="tutscrs/mapedit1_tb.jpg" alt="clean map editor" /></a> |
|
|
112 | |
|
|
113 | <p> |
|
|
114 | You recognize the ugly color on the backgrounds of the pickers and the map editor window. |
|
|
115 | It's not configurable, and it's there to give a clear contrast to stuff on the map. |
|
|
116 | </p> |
|
|
117 | |
|
|
118 | <p><b> |
|
|
119 | Note: You can scroll in the map editor window and the pickers by holding down the middle mouse button |
|
|
120 | and drag it. (This is similar to GIMP). |
|
|
121 | </b></p> |
|
|
122 | |
|
|
123 | <p> |
|
|
124 | Now resize the map editor window a little bit and select the <em>Select</em> tool from the |
|
|
125 | left and draw a rectangle over the map with it. Next select a floor from the picker. The floor will appear in the |
|
|
126 | attribute editor. |
|
|
127 | </p> |
|
|
128 | |
|
|
129 | <a href="tutscrs/mapedit2.png"><img src="tutscrs/mapedit2_tb.jpg" alt="map editor with selection" /></a> |
|
|
130 | |
|
|
131 | <p> |
|
|
132 | Now look in the toolbox window on the bottom, where the tool-controls are. There are radio buttons: |
|
|
133 | <em>place</em>, <em>erase</em> and <em>perl</em>. Place executes the place tool on every cell in the selection |
|
|
134 | and erase executes the erase tool on every cell in the selection. The perl thing is something advanced, |
|
|
135 | it runs a small perl script on every cell in the selection, it's likely to go away some day (maybe). |
|
|
136 | </p> |
|
|
137 | |
|
|
138 | <p> |
|
|
139 | Select the <em>place</em> radio button, and press the <em>invoke</em> button. The selection will be filled |
|
|
140 | with the selected floor: |
|
|
141 | </p> |
|
|
142 | |
|
|
143 | <a href="tutscrs/mapedit3.png"><img src="tutscrs/mapedit3_tb.jpg" alt="map editor with floor" /></a> |
|
|
144 | |
|
|
145 | <p> |
|
|
146 | Next we are using the autojoining placement of walls, pick the "awall_0" tile from the picker with the walls. |
|
|
147 | Make sure the place tool is in <em>auto</em> mode. |
|
|
148 | </p> |
|
|
149 | |
|
|
150 | <p> |
|
|
151 | <em> |
|
|
152 | Note: In future when you want to use the autojoining placement you have to take care that the |
|
|
153 | wall tile you are using to draw ends in "_0". But some walls, like the cave walls, are just not autojoinable. |
|
|
154 | You will have to place them yourself. |
|
|
155 | </em> |
|
|
156 | </p> |
|
|
157 | |
|
|
158 | <p> |
|
|
159 | When you picked the wall, just draw some walls like you would draw in a graphics program (like GIMP). |
|
|
160 | Draw something similiar like you see in the screenshot. With some holes in the walls. |
|
|
161 | </p> |
|
|
162 | |
|
|
163 | <p> |
|
|
164 | If you make a mistake while drawing the wall just hold the <i>CTRL</i> key to temporarily switch to the |
|
|
165 | erase mode and erase all the bad walls and redraw the area. Or just <em>Edit->Undo</em> it. (Shortcut key |
|
|
166 | combination for undo is <i>CTRL+z<i> and redo is <i>CTRL+y</i>). |
|
|
167 | </p> |
|
|
168 | |
|
|
169 | <a href="tutscrs/mapedit4.png"><img src="tutscrs/mapedit4_tb.jpg" alt="map editor with floor and walls" /></a> |
|
|
170 | |
|
|
171 | <p> <b>to be continued...</b> </p> |
|
|
172 | |
|
|
173 | <hr> |
|
|
174 | |
|
|
175 | <h2>Installing the server for testing the maps</h2> |
|
|
176 | |
|
|
177 | |
20 | <h3>Step 1: Downloading the maps and the server from CVS</h3> |
178 | <h3>Step A: Downloading the maps and the server from CVS</h3> |
21 | |
179 | |
22 | <p> |
180 | <p> |
23 | I assume here you have <tt>cvs</tt> installed. (the debian shortcut would |
181 | I assume here you have <tt>cvs</tt> installed. (the debian shortcut would |
24 | be: <tt>apt-get install cvs</tt>). |
182 | be: <tt>apt-get install cvs</tt>). |
25 | </p> |
183 | </p> |
… | |
… | |
28 | Create a directory in your home where all your Deliantra (map) development |
186 | Create a directory in your home where all your Deliantra (map) development |
29 | should take place: |
187 | should take place: |
30 | </p> |
188 | </p> |
31 | |
189 | |
32 | <pre> |
190 | <pre> |
33 | root@localhost: ~# mkdir ~/crossfire/ |
191 | root@localhost: ~# mkdir ~/deliantra/ |
34 | </pre> |
192 | </pre> |
35 | |
193 | |
36 | <p> <em> |
194 | <p> <em> |
37 | NOTE: the 'root@localhost: ~#' stands for your shellprompt, where '~' is the |
195 | NOTE: the 'root@localhost: ~#' stands for your shellprompt, where '~' is the |
38 | current working directory. And the ~ stands for your root homedirectory, if you are working |
196 | current working directory. And the ~ stands for your root homedirectory, if you are working |
… | |
… | |
40 | </em> </p> |
198 | </em> </p> |
41 | |
199 | |
42 | <p> Go into that directory: </p> |
200 | <p> Go into that directory: </p> |
43 | |
201 | |
44 | <pre> |
202 | <pre> |
45 | root@localhost: ~# cd ~/crossfire/ |
203 | root@localhost: ~# cd ~/deliantra/ |
46 | </pre> |
204 | </pre> |
47 | |
205 | |
48 | |
206 | |
49 | <p>Now, we are going to get the files, first the maps:</p> |
207 | <p>Now, we are going to get the files, first the maps:</p> |
50 | |
208 | |
51 | <pre> |
209 | <pre> |
52 | root@localhost: ~/crossfire# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d maps deliantra/maps |
210 | root@localhost: ~/deliantra# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d maps deliantra/maps |
53 | </pre> |
211 | </pre> |
54 | |
212 | |
55 | <p>And then the archetypes (needed for building the server, and could take a while):</p> |
213 | <p>And then the archetypes (needed for building the server, and could take a while):</p> |
56 | |
214 | |
57 | <pre> |
215 | <pre> |
58 | root@localhost: ~/crossfire# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d arch deliantra/arch |
216 | root@localhost: ~/deliantra# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d arch deliantra/arch |
59 | </pre> |
217 | </pre> |
60 | |
218 | |
61 | <p>Finnally the server source itself:</p> |
219 | <p>Finnally the server source itself:</p> |
62 | |
220 | |
63 | <pre> |
221 | <pre> |
64 | root@localhost: ~/crossfire# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d server deliantra/server |
222 | root@localhost: ~/deliantra# cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co -d server deliantra/server |
65 | </pre> |
223 | </pre> |
66 | |
224 | |
67 | <p> |
225 | <p> |
68 | Now a <tt>ls -l</tt> should show something like this: |
226 | Now a <tt>ls -l</tt> should show something like this: |
69 | </p> |
227 | </p> |
70 | |
228 | |
71 | <pre> |
229 | <pre> |
72 | root@localhost: ~/crossfire# ls -l |
230 | root@localhost: ~/deliantra# ls -l |
73 | 1 drwxr-xr-x 39 root users 1192 2006-06-01 21:29 maps |
231 | 1 drwxr-xr-x 39 root users 1192 2006-06-01 21:29 maps |
74 | 1 drwxr-xr-x 39 root users 4096 2006-05-26 12:38 arch |
232 | 1 drwxr-xr-x 39 root users 4096 2006-05-26 12:38 arch |
75 | 1 drwxr-xr-x 17 root users 1072 2006-05-26 11:34 server |
233 | 1 drwxr-xr-x 17 root users 1072 2006-05-26 11:34 server |
76 | </pre> |
234 | </pre> |
77 | |
235 | |
78 | <h3>Step 2: Compiling and installing the server</h3> |
236 | <h3>Step B: Compiling and installing the server</h3> |
79 | |
237 | |
80 | <p> |
238 | <p> |
81 | Start by going into the server CVS checkout directory and just call configure (the script that |
239 | Start by going into the server CVS checkout directory and just call configure (the script that |
82 | will find all the neccessary tools to compile the server). Please make sure you have |
240 | will find all the neccessary tools to compile the server). Please make sure you have |
83 | development tools like gcc (gnu c compiler) and headers installed: |
241 | development tools like gcc (gnu c compiler) and headers installed: |
84 | </p> |
242 | </p> |
85 | |
243 | |
86 | <pre> |
244 | <pre> |
87 | root@localhost: ~/crossfire# cd server |
245 | root@localhost: ~/deliantra# cd server |
88 | root@localhost: ~/crossfire/server# ln -s /root/crossfire/arch lib/arch |
246 | root@localhost: ~/deliantra/server# ln -s /root/deliantra/arch lib/arch |
89 | root@localhost: ~/crossfire/server# ./configure --prefix=/opt/crossfire/ |
247 | root@localhost: ~/deliantra/server# ./configure --prefix=/opt/deliantra/ |
90 | </pre> |
248 | </pre> |
91 | |
249 | |
92 | <p> |
250 | <p> |
93 | The prefix argument tells the configure script to choose /opt/crossfire/ as installation |
251 | The prefix argument tells the configure script to choose /opt/deliantra/ as installation |
94 | destination. This is done to prevent the server installation from polluting your |
252 | destination. This is done to prevent the server installation from polluting your |
95 | system and to keep all files together. |
253 | system and to keep all files together. |
96 | </p> |
254 | </p> |
97 | |
255 | |
98 | <p> Next step is the compilation and installation of the server: </p> |
256 | <p> Next step is the compilation and installation of the server: </p> |
99 | |
257 | |
100 | <pre> |
258 | <pre> |
101 | root@localhost: ~/crossfire/server# make install |
259 | root@localhost: ~/deliantra/server# make install |
102 | </pre> |
260 | </pre> |
103 | |
261 | |
104 | <p> |
262 | <p> |
105 | That should build the sources and install them. If you encounter problems here you could try to contact us. |
263 | That should build the sources and install them. If you encounter problems here you could try to contact us. |
106 | If everythin went fine, there should be a <tt>/opt/crossfire/</tt> directory now with files in it. |
264 | If everythin went fine, there should be a <tt>/opt/deliantra/</tt> directory now with files in it. |
107 | </p> |
265 | </p> |
108 | |
266 | |
109 | <p> |
267 | <p> |
110 | Next step is to link the maps into the installed server directory. First go back into the parent |
268 | Next step is to link the maps into the installed server directory. First go back into the parent |
111 | directory and then link the maps dir to the right location: |
269 | directory and then link the maps dir to the right location: |
112 | </p> |
270 | </p> |
113 | |
271 | |
114 | <pre> |
272 | <pre> |
115 | root@localhost: ~/crossfire/server# cd .. |
273 | root@localhost: ~/deliantra/server# cd .. |
116 | root@localhost: ~/crossfire# ln -s ~/crossfire/maps /opt/crossfire/share/crossfire/maps |
274 | root@localhost: ~/deliantra# ln -s ~/deliantra/maps /opt/deliantra/share/deliantra/maps |
117 | </pre> |
275 | </pre> |
118 | |
276 | |
119 | <p> |
277 | <p> |
120 | Now everything is in place and all thats left is to write a |
278 | Now everything is in place and all thats left is to write a |
121 | startup script for the server: |
279 | startup script for the server: |
122 | </p> |
280 | </p> |
123 | |
281 | |
124 | <pre> |
282 | <pre> |
125 | root@localhost: ~/crossfire# echo "CROSSFIRE_LIBDIR=/opt/crossfire/share/crossfire/ /opt/crossfire/bin/crossfire" > startcf |
283 | root@localhost: ~/deliantra# echo "CROSSFIRE_LIBDIR=/opt/deliantra/share/deliantra/ /opt/deliantra/bin/deliantra" > startcf |
126 | root@localhost: ~/crossfire# chmod a+x startcf |
284 | root@localhost: ~/deliantra# chmod a+x startcf |
127 | </pre> |
285 | </pre> |
128 | |
286 | |
129 | <p><em> |
287 | <p><em> |
130 | Note: The CROSSFIRE_LIBDIR thing is setting an environment variable which |
288 | Note: The CROSSFIRE_LIBDIR thing is setting an environment variable which |
131 | tells the server where to look for the configuration variables and the maps |
289 | tells the server where to look for the configuration variables and the maps |
132 | </em></p> |
290 | </em></p> |
133 | |
291 | |
134 | <p>Now try to shoot it up:</p> |
292 | <p>Now try to shoot it up:</p> |
135 | |
293 | |
136 | <pre> |
294 | <pre> |
137 | root@localhost: ~/crossfire# ./startcf |
295 | root@localhost: ~/deliantra# ./startcf |
138 | </pre> |
296 | </pre> |
139 | |
297 | |
140 | <p> |
298 | <p> |
141 | You should see lots of output running accross your screen. |
299 | You should see lots of output running accross your screen. |
142 | Congratulations, you just setup a Deliantra server. |
300 | Congratulations, you just setup a Deliantra server. |
143 | You maybe want to dive into the server tree and look around in the <tt>doc/</tt> |
301 | You maybe want to dive into the server tree and look around in the <tt>doc/</tt> |
144 | directory to find more about the server. |
302 | directory to find more about the server. |
145 | </p> |
303 | </p> |
146 | |
304 | |
147 | <h3>Step 3: Getting the map editor and setting it up</h3> |
|
|
148 | |
305 | |
149 | <p> |
|
|
150 | Now download the editor! You can either install all the Perl modules and stuff by yourself |
|
|
151 | or just choose the binary: <a href="http://dist.schmorp.de/gce/gce-gnu-linux-x86.bin">gce-gnu-linux-x86.bin</a>. |
|
|
152 | I'm not going to discuss the installation procedure for the CVS here, as it requires much |
|
|
153 | knowledge about your system and how to install (perl) software from source. If you only want to |
|
|
154 | make maps, the binary will do very fine (on x86 systems). |
|
|
155 | </p> |
|
|
156 | |
|
|
157 | <p> |
|
|
158 | So, the next thing is to download the editor. </p> |
|
|
159 | |
|
|
160 | <pre> |
|
|
161 | root@localhost: ~/crossfire# wget http://dist.schmorp.de/gce/gce-gnu-linux-x86.bin |
|
|
162 | </pre> |
|
|
163 | |
|
|
164 | <p>There it is, now we make it an executable and run it:</p> |
|
|
165 | |
|
|
166 | <pre> |
|
|
167 | root@localhost: ~/crossfire# chmod a+x gce-gnu-linux-x86.bin |
|
|
168 | </pre> |
|
|
169 | |
|
|
170 | <p> |
|
|
171 | Now we make a start script like for the server and run it |
|
|
172 | <em>Note: the first startup may take some while, the editor has to read all the archetypes and graphics.</em>: |
|
|
173 | </p> |
|
|
174 | |
|
|
175 | <pre> |
|
|
176 | root@localhost: ~/crossfire# echo "CROSSFIRE_LIBDIR=/opt/crossfire/share/crossfire/ ./gce-gnu-linux-x86.bin" > startgce |
|
|
177 | root@localhost: ~/crossfire# chmod a+x startgce |
|
|
178 | root@localhost: ~/crossfire# ./startgce |
|
|
179 | </pre> |
|
|
180 | |
|
|
181 | <p><em> |
|
|
182 | Note: If you run into problems when starting the editor make sure you have gtk2, glib2 and pango and cairo libraries |
|
|
183 | correctly installed. As i don't know your linux system you would have to figure out that yourself. |
|
|
184 | </em></p> |
|
|
185 | |
|
|
186 | <p><em> |
|
|
187 | Note 2: If you are familiar with your system i recommend to set the CROSSFIRE_LIBDIR variable in your shells startup configuration. |
|
|
188 | </em></p> |
|
|
189 | |
|
|
190 | <p> |
|
|
191 | Now i could let you run around for yourself, if you are planning to figure out stuff |
|
|
192 | yourself now, do it, but make sure you find the <b>manual of the editor in the toolbox window in the HELP menu!</b> |
|
|
193 | </p> |
|
|
194 | |
|
|
195 | <p>But i guess the best thing is to explain now what to do, and how to do. The first things you will see is this:</p> |
|
|
196 | |
|
|
197 | <a href="tutscrs/mainview1.png"><img src="tutscrs/mainview1_tb.jpg" alt="main view" /></a> |
|
|
198 | |
|
|
199 | <p>Now open up 2 pickers, the stack view dialog and rearrange all the windows like this:</p> |
|
|
200 | |
|
|
201 | <a href="tutscrs/mainview2.png"><img src="tutscrs/mainview2_tb.jpg" alt="main view with layout" /></a> |
|
|
202 | |
|
|
203 | <p> |
|
|
204 | You notice that the pickers are still empty, go to the drop-down box on the top of the pickers |
|
|
205 | and select 'wall' and 'floor' from there: |
|
|
206 | </p> |
|
|
207 | |
|
|
208 | <a href="tutscrs/mainview3.png"><img src="tutscrs/mainview3_tb.jpg" alt="main view with finished layout" /></a> |
|
|
209 | |
|
|
210 | <p> |
|
|
211 | Now it's time to click the <em>Save Layout</em> entry in the <em>File</em> menu. It will save all the |
|
|
212 | window sizes and positions. So you don't have to make all the layout work next time again. |
|
|
213 | As you go on with map editing you maybe find other layouts more useful, try around, and of course: use more |
|
|
214 | pickers. I mostly have 3-4 pickers open to do all the stuff i want. |
|
|
215 | </p> |
|
|
216 | |
|
|
217 | <a href="tutscrs/mainview4.png"><img src="tutscrs/mainview4_tb.jpg" alt="main view with finished and saved layout" /></a> |
|
|
218 | |
|
|
219 | <p>Finished! You have now a layout we can work with. Go on to the next step:</p> |
|
|
220 | |
|
|
221 | <h3>Step 4: Making your first map</h3> |
|
|
222 | |
|
|
223 | <p> |
|
|
224 | This step will introduce some tools and shortcuts you may use on a regular basis when making maps. |
|
|
225 | </p> |
|
|
226 | |
|
|
227 | <p> |
|
|
228 | First make a new map. Go to the <em>File->New</em> menu for that an click on it. |
|
|
229 | Next a dialog will open up, that will ask you for a map size. The default is 20x20. You |
|
|
230 | can adjust that like you want. But we recommend not to make maps much larger than 50x50 or 60x60. |
|
|
231 | It reduces the server load somewhat. Better use tiled maps or linked maps (with exits between them). |
|
|
232 | </p> |
|
|
233 | |
|
|
234 | <p> |
|
|
235 | Click on the <em>new</em> button and the map editor will open up: |
|
|
236 | </p> |
|
|
237 | |
|
|
238 | <a href="tutscrs/mapedit1.png"><img src="tutscrs/mapedit1_tb.jpg" alt="clean map editor" /></a> |
|
|
239 | |
|
|
240 | <p> |
|
|
241 | You recognize the ugly color on the backgrounds of the pickers and the map editor window. |
|
|
242 | It's not configurable, and it's there to give a clear contrast to stuff on the map. |
|
|
243 | </p> |
|
|
244 | |
|
|
245 | <p><b> |
|
|
246 | Note: You can scroll in the map editor window and the pickers by holding down the middle mouse button |
|
|
247 | and drag it. (This is similar to GIMP). |
|
|
248 | </b></p> |
|
|
249 | |
|
|
250 | <p> |
|
|
251 | Now resize the map editor window a little bit and select the <em>Select</em> tool from the |
|
|
252 | left and draw a rectangle over the map with it. Next select a floor from the picker. The floor will appear in the |
|
|
253 | attribute editor. |
|
|
254 | </p> |
|
|
255 | |
|
|
256 | <a href="tutscrs/mapedit2.png"><img src="tutscrs/mapedit2_tb.jpg" alt="map editor with selection" /></a> |
|
|
257 | |
|
|
258 | <p> |
|
|
259 | Now look in the toolbox window on the bottom, where the tool-controls are. There are radio buttons: |
|
|
260 | <em>place</em>, <em>erase</em> and <em>perl</em>. Place executes the place tool on every cell in the selection |
|
|
261 | and erase executes the erase tool on every cell in the selection. The perl thing is something advanced, |
|
|
262 | it runs a small perl script on every cell in the selection, it's likely to go away some day (maybe). |
|
|
263 | </p> |
|
|
264 | |
|
|
265 | <p> |
|
|
266 | Select the <em>place</em> radio button, and press the <em>invoke</em> button. The selection will be filled |
|
|
267 | with the selected floor: |
|
|
268 | </p> |
|
|
269 | |
|
|
270 | <a href="tutscrs/mapedit3.png"><img src="tutscrs/mapedit3_tb.jpg" alt="map editor with floor" /></a> |
|
|
271 | |
|
|
272 | <p> |
|
|
273 | Next we are using the autojoining placement of walls, pick the "awall_0" tile from the picker with the walls. |
|
|
274 | Make sure the place tool is in <em>auto</em> mode. |
|
|
275 | </p> |
|
|
276 | |
|
|
277 | <p> |
|
|
278 | <em> |
|
|
279 | Note: In future when you want to use the autojoining placement you have to take care that the |
|
|
280 | wall tile you are using to draw ends in "_0". But some walls, like the cave walls, are just not autojoinable. |
|
|
281 | You will have to place them yourself. |
|
|
282 | </em> |
|
|
283 | </p> |
|
|
284 | |
|
|
285 | <p> |
|
|
286 | When you picked the wall, just draw some walls like you would draw in a graphics program (like GIMP). |
|
|
287 | Draw something similiar like you see in the screenshot. With some holes in the walls. |
|
|
288 | </p> |
|
|
289 | |
|
|
290 | <p> |
|
|
291 | If you make a mistake while drawing the wall just hold the <i>CTRL</i> key to temporarily switch to the |
|
|
292 | erase mode and erase all the bad walls and redraw the area. Or just <em>Edit->Undo</em> it. (Shortcut key |
|
|
293 | combination for undo is <i>CTRL+z<i> and redo is <i>CTRL+y</i>). |
|
|
294 | </p> |
|
|
295 | |
|
|
296 | <a href="tutscrs/mapedit4.png"><img src="tutscrs/mapedit4_tb.jpg" alt="map editor with floor and walls" /></a> |
|
|
297 | |
|
|
298 | <p> <b>to be continued...</b> </p> |
|
|
299 | |
306 | |
300 | </div> |
307 | </div> |
301 | |
308 | |
302 | <p></p> |
309 | <p></p> |