Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 7640057f3b2ade15f3461dc7f61c8d22c77c0335 (plain)
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="main.css">
	<TITLE>Project::OSiRiON - Installation Instructions</TITLE>
</head>

<body>
<div class="banner">
	<img src="images/banner.png" ALT="Project::OSiRiON">
	<br>
	Installation Instructions
</div>

<div class="text">
<p>
	There are two ways to install the program and the game data. You can
	either download a package from the website, or you
	can obtain the source code and compile it yourself.
<ul>
	<li><a href="system_requirements">System Requirements</a>
	<li><a href="#packages">Using packages</a>
	<li><a href="#building_from_source">Building from source code</a>
	<li><a href="#gtkradiant">GtkRadiant 1.5.0 support files (optional)</a>
	<li><a href="#source_data">Source data (optional)</a>
</ul>
</div>

<div id="system_requirements" class="title">
	System Requirements
</div>
<div class="text">
<p>
	Before you can run the game, you must have working OpenGL libraries.
	These are usually installed by the driver package for your videocard.
</p><p>
	As for system specifications, I get around 40fps on an 
	AMD Athlon 1.4Ghz, 512Mb PC133 SDRAM, ATI Radeon 9700 Pro.
</p>
</div>
<div id="packages" class="title">
	Using packages
</div>
<div class="text">
<p>
	You can find the latest version in the downloads section of the website:<br>
	<a href="http://ingar.satgnu.net/osirion/index.html#downloads">http://ingar.satgnu.net/osirion</a>
</p>
</div>

<div class="subtitle">
	Windows
</div>

<div class="text">
<p>
	Download the windows package:<br>
	<a href="http://ingar.satgnu.net/osirion/files/osirion-win32-latest.zip">osirion-win32-latest.zip</a><br>
	This package contains the win32 version of the server and the client.
<p>
	Dowload the game data package:<br>
	<a href="http://ingar.satgnu.net/osirion/files/osirion-data-latest.zip">osirion-data-latest.zip</a><br>
<p>
	Unzip the executables package into an approriate directory. Unzip the gama data package
	into this directory. For example, if you unzipped the data and the executables into
	<i>D:\Osirion</i> then there should be a directory <i>D:\Osirion\data\base</i> containing the
	game data.
<p>
	Open the game directory in explorer and click on <i>osirion.exe</i> to start the client.
</div>

<div class="subtitle">
	Linux
</div>

<div class="text">

<p>
	Download the linux packages:<br>
	<a href="http://ingar.satgnu.net/osirion/files/osirion-linux-latest.zip">osirion-linux-latest.zip</a><br>
	This package contains the linux 32 and 64 bit versions of the client and the server.
<p>
	Extract the package, a new subdirectory will be created. The actual directory name will depend on
	the version number. Enter the new subdirectory.
<div class="code">
tar jxvf osirion-latest.tar.bz2<br>
cd osirion-0.1_258-linux
</div>
<p>
	Dowload the game data package:<br>
	<a href="http://ingar.satgnu.net/osirion/files/osirion-data-latest.zip">osirion-data-latest.zip</a><br>
<p>
	Unzip it:
<div class="code">
unzip ../osirion-data-latest.zip
</div>
<p>
	 To run the 32 bit client:
<div class="code">
./osirion.x86
</div>
<p>
	 To run the 64 bit client:
<div class="code">
./osirion.x86_64
</div>

</div>

<div id="building_from_source" class="title">
	Building from source code
</div>

<div class="text">
<p>
	To build The Osirion Project from source code you will need to have
	the following libraries and development packages installed on your system.
</p>
</div>
<div class="subtitle">
      Requirements
</div>

<div class="text">
<p>

	To build the client or the dedicated server:
	<ul>
		<li>zlib
	</ul>
</p>
<p>
	To build the client:
	<ul>
		<li>libSDL 1.2
		<li>libpng
		<li>libjpeg-6b
		<li>OpenGL
		<li><A href="http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx">OpenAL</a>
				or <a href="http://kcat.strangesoft.net/openal.html">OpenAL Soft</a>
	</ul>
</p>
<p>
	You will also need a recent version of gcc, GNU make, automake and libtool.
	In theory, the source should compile on any POSIX-compatible platform 
	supported by SDL.
</p>
</div>

<div class="subtitle">
      Obtaining the source code
</div>
<div class="text">
<p>
	You can get the osirion project source code from the subversion repository:<br>
	<a href="svn://intranifty.no-ip.org/osirion">svn://intranifty.no-ip.org/osirion</a>
</p>
<p>
	On linux, you can use the Subversion command line client tool. The following 
	command will create a new subdirectory <i>osirion</i> and download the source code into it.
</p>
<div class="code">
svn co svn://intranifty.no-ip.org/osirion osirion
</div>
<p>
	On windows, you can use the Turtoisesvn SubVersion client to access the
	SVN repositories. You can download it here:<br>
	<a href="http://tortoisesvn.tigris.org">http://tortoisesvn.tigris.org</a>
</p>
<p>
	You can also download the source package from the website:<br>
	<a href="http://ingar.satgnu.net/osirion/files/osirion-src-latest.tar.bz2">osirion-src-latest.tar.bz2</a>
</p>
</div>
<div class="subtitle">
	Bullet physics support
</div>
<div class="text">
<p>
	Experimental support for the <a href="http://www.bulletphysics.com/wordpress/">Bullet Physics Library</a>
	is under development. You can download the source code here:<br>
	<a href="http://code.google.com/p/bullet/downloads/list">http://code.google.com/p/bullet/downloads/list</a>
</p>
<p>
	To download and install the library:
<div class="code">
wget http://bullet.googlecode.com/files/bullet-2.75-rc3.tgz<br>
tar zxvf bullet-2.75-rc3.tgz<br>
cd bullet-2.75-rc3<br>
./autogen.sh<br>
./configure --prefix=/usr/local<br>
make<br>
sudo make install<br>
sudo install --mode=644 src/BulletDynamics/Dynamics/btActionInterface.h /usr/local/include/bullet/BulletDynamics/Dynamics
</div>
</p>
<p>
	The osirion configure script will automaticly detect the bullet library in <i>/usr/local</i>.
	If you use a different prefix, like <i>/opt/bullet</i>, you will have to call the osirion
	configure script using the <i>--with-bullet=/opt/bullet</i> option.
</p>
</div>
<div class="subtitle">
      Compiling the source code
</div>
<div class="text">
<p>
	Enter the new directory and configure the source code:
<div class="code">
cd osirion<br>
autoreconf -fi<br>
./configure<br>
</div>

<p>
	If you do not need the client and want to build the dedicated server only
	you can pass the <i>--without-client</i> option to <i>configure</i>:
</p>
<div class="code">
./configure --without-client
</div>
<p>
	If <i>configure</i> finds ncurses or pdcurses, the dedicated server will use this
	library and a have a curses console. To disable curses detection, pass the
	<i>--without-curses</i> option to <i>configure</i>.
</p>
<p>
	<b>Important</b>: <i>make install</i> is not supported. Results are unpredictable.
</p>
<p>
	Compile the source code:
</p>
<div class="code">
make
</div>
<p>
	The binaries will be build in the <i>src</i> subdirectory of the main distribution.
</p>
</div>

<div class="subtitle">
      Obtaining the game data 
</div>
<div class="text">
<p>
	The game data should be located in the <i>data</i> subdirectory of the main distribution.
	You can use the game data package from the website or get it from the osirion-data subversion repository:<br>
	<a href="svn://intranifty.no-ip.org/osirion-data">svn://intranifty.no-ip.org/osirion-data</a>
</p>
<p>
	Run the following command from within the main distribution directory to download
	the game data into the <i>data</i> subdirectory:
</p>
<div class="code">
svn checkout svn://intranifty.no-ip.org/osirion-data data
</div>

</div>

<div class="subtitle">
      Executing
</div>
<div class="text">
<p>
	The client and the dedicated server will look for game data in the <i>data</i> subdirectory 
	of the current working directory. Since the binaries are build in the <i>src</i> you will
	have to copy them with the <i>src/</i> prefix.
</p>
<p>
	To start the client:
</p>
<div class="code">
src/osirion
</div>
<p>
	To start the dedicated server:
</p>
<div class="code">
src/osiriond
</div>
<p>
	If you are using windows, the binaries will be called <i>osirion.exe</i> and <i>osiriond.exe</i>.
</p>
</div>

<div class="subtitle">
	Updating
</div>
<div class="text">
<p>
	If you downloaded and compiled the game and the game data fomr the subversion repository,
	there is no need to re-download the entire distribution when there are updates available.
	You can update your local copy and rebuild it.
<p>
	Update the source code:
<div class="code">
cd osirion<br>
make clean<br>
svn update
</div>
<p>
	Update the game data:
</p>
<div class="code">
cd data<br>
svn update<br>
cd ..
</div>
<p>
	Rebuild the binaries:
<div class="code">
autoreconf<br>
./configure<br>
make
</div>
</div>

<div id="gtkradiant" class="title">
	GtkRadiant 1.5.0 support files (optional)
</div>
<div class="text">
<p>
	You can skip this section if you do not intent to create to create models with gtkradiant 1.5.
	Note that these files probably won't work with other versions. You can find precompiled
	gtkradiant 1.5.0 binaries for linux on my gtkradiant page:<br>
	<a href="http://ingar.satgnu.net/gtkradiant">http://ingar.satgnu.net/gtkradiant</a>
<p>
	These instructions assume gtkradiant is installed in the directory
	<i>/usr/local/games/gtkradiant-1.5.0</i>. If it is installed in a different 
	directory on your system, edit these instructions accordingly.
<p>
	Copy the support files to the gtkradiant folder:
</p>
<div class="code">
cd data<br>
cd gtkradiant<br>
cp -vr * /usr/local/games/gtkradiant-1.5.0
</div>
<p>
	Open the file <i>/usr/local/games/gtkradiant-1.5.0/games/osirion.game</i> in 
	your favourite editor. Look for a line that begins with:
</p>
<div class="code">
enginepath_linux="
</div>
<p>
	Make sure it points to your osirion data directory. For example,
	if you checked out the source code in <i>/home/yourname/osirion</i>, 
	then the data will be in <i>/home/yourname/osirion/data</i> and 
	the line should look like this:
</p>
<div class="code">
enginepath_linux="/home/yourname/osirion/data"
</div>
<p>
	Save the changes.
</p>
</div>

<div id="source_data" class="title">
	Source data (optional)
</div>
<div class="text">
<p>
	The .xcf and .svg source files used to create the game data
	can also be downloaded. Note that you do not need these files
	to play the game or to create .map models. You only have to 
	download them them if you want to create new game graphics.
</p>
<p>
	To download the source data from the subversion repository:
</p>
<div class="code">
svn checkout svn://intranifty.no-ip.org/osirion-data-src data-src
</div>
</div>

<div class="title">
Organization of the distribution
</div>
<div class="text">
<pre>
/doc 	Documentation

	index.html		Documentation content
	installation.html	Installation instructions (this file)

/src 	C++ source code

	/audio			audio library
	/auxiliary		auxiliary functions
	/client			osirion client
	/core			game-independent core library
	/dedicated		osiriond dedicated server
	/filesystem		filesystem library
	/game			game-specific functions 
		/base		base game module
		/example	example game module
		/intro		intro game module
	/math			mathematical classes and functions
	/sys			low-level system functions
	/render			render library
	/ui			user interface widget library

/data	Data files

	/base			game data files
		/bitmaps	essential bitmaps
		/ini		game world description files
		/maps		game world models
		/scripts	gtkradiant shader files
		/textures	game world textures

	/gtkradiant		gtkradiant support files
</pre>
</div>

</body>
</html>