… | |
… | |
16 | |
16 | |
17 | |
17 | |
18 | REQUIREMENTS |
18 | REQUIREMENTS |
19 | |
19 | |
20 | For UNIX, a modern C++ compiler with some extensions is required to |
20 | For UNIX, a modern C++ compiler with some extensions is required to |
21 | compile this game. In addition, you will need the Perl development |
21 | compile this game (g++ 4.x works). In addition, you will need the Perl |
22 | libraries along with the following Perl modules (the server is tested |
22 | development libraries along with the following Perl modules (the server |
23 | with perl 5.8.8 and 5.8-maint). |
23 | is tested with perl 5.8.8 and 5.8-maint) and their dependencies. (the |
|
|
24 | minimum versions below may not be up-to-date, the configure script will |
|
|
25 | check them all, though). |
24 | |
26 | |
|
|
27 | - AnyEvent >= 2.52 |
25 | - BDB >= v0.1 |
28 | - BDB >= v0.1 |
26 | - Compress::LZF >= v1.71 |
29 | - Compress::LZF >= v1.8 |
27 | - Coro >= v3.62 **SEE IMPORTANT NOTICE BELOW** |
30 | - Coro >= v3.62 **SEE IMPORTANT NOTICE BELOW** |
28 | - Coro::Event >= v2.1 |
31 | - Coro::Event >= v2.1 |
29 | - Crossfire >= v0.97 |
32 | - Crossfire >= v0.99 |
30 | - Digest::MD5 >= v2.0 |
33 | - Digest::MD5 >= v2.0 |
31 | - Event >= v1.08 |
34 | - Event >= v1.08 |
32 | - IO::AIO >= 2.32 |
35 | - IO::AIO >= 2.4 |
33 | - JSON::XS => 1.11 |
36 | - JSON::XS => 1.21 |
34 | - Pod::POM >= v0.17 |
37 | - Pod::POM >= v0.17 |
35 | - Safe::Hole >= v0.10 |
38 | - Safe::Hole >= v0.10 |
36 | - Storable >= v2.0 |
39 | - Storable >= v2.0 |
37 | - Time::HiRes >= v1.0 |
40 | - Time::HiRes >= v1.0 |
38 | - YAML::Syck >= v0.71 |
41 | - YAML::Syck >= v0.71 |
39 | |
42 | |
40 | **NOTICE**: Crossfire uses an alternative signal stack, so you have to |
43 | **NOTICE**: Crossfire uses an alternative signal stack, so you have to |
41 | use either the "u"context method or "a"ssembly when configuring Coro. |
44 | use either the "u"context method (slow) or "a"ssembly when configuring Coro. |
42 | |
45 | |
43 | Furthermore, you will need the following programs and libraries: |
46 | Furthermore, you will need the following programs and libraries: |
44 | |
47 | |
45 | - gperf, the GNU perfect hash generator >= v3.0 |
48 | - gperf, the GNU perfect hash generator >= v3.0 |
46 | - glib-2.0 >= v2.10 |
49 | - glib-2.0 >= v2.10 |
47 | - libpng >= v1.2 |
50 | - libpng >= v1.2 |
48 | - ImageMagick >= v6.0 |
51 | - ImageMagick >= v6.0 (possibly higher, depending on its bugs) |
49 | - optipng => v0.5.5 (http://optipng.sf.net) |
52 | - optipng => v0.5.5 (http://optipng.sf.net) |
50 | - pngnq >= 0.4 (http://freshmeat.net/redir/pngnq/53146/url_homepage/pngnq.html) |
53 | - pngnq >= 0.4 (http://freshmeat.net/redir/pngnq/53146/url_homepage/pngnq.html) |
51 | - rsync >= 2.6 (a must have anyways) |
54 | - rsync >= 2.6 (a must have anyways) |
52 | |
55 | |
53 | Your compiler must support the Library Technical Report 1 extensions and |
56 | Your compiler must support the Library Technical Report 1 extensions and |
… | |
… | |
57 | On Debian GNU/Linux, you might get away with something like this for many of the |
60 | On Debian GNU/Linux, you might get away with something like this for many of the |
58 | above dependencies: |
61 | above dependencies: |
59 | |
62 | |
60 | apt-get install gperf optipng pngnq rsync imagemagick libglib2.0-dev libpng12-dev |
63 | apt-get install gperf optipng pngnq rsync imagemagick libglib2.0-dev libpng12-dev |
61 | apt-get install libpod-pom-perl libsafe-hole-perl libevent-perl |
64 | apt-get install libpod-pom-perl libsafe-hole-perl libevent-perl |
|
|
65 | |
|
|
66 | If you want to get sensible backtraces for error conditions at runtime |
|
|
67 | to be logged you also need the external addr2line program (part of GNU |
|
|
68 | binutils) in your PATH. |
62 | |
69 | |
63 | |
70 | |
64 | COMPILING |
71 | COMPILING |
65 | |
72 | |
66 | Crossfire has been known to compile on a wide variety of systems. It should |
73 | Crossfire has been known to compile on a wide variety of systems. It should |
… | |
… | |
74 | Crossfire runs on a client/server model. You will also a client to |
81 | Crossfire runs on a client/server model. You will also a client to |
75 | play. You can either connect to a server someone else has set up, or |
82 | play. You can either connect to a server someone else has set up, or |
76 | run your own server and connect to that. There are a number of clients |
83 | run your own server and connect to that. There are a number of clients |
77 | available, but the recommended one is CFPlus (see below for URL). |
84 | available, but the recommended one is CFPlus (see below for URL). |
78 | |
85 | |
79 | To run your own server, you need to make the crossfire binaries and |
86 | To run your own server, you need to build the crossfire server binaries |
80 | install them, and then run the crossfire program. This now creates a |
87 | and install them, then you will have to download and install map and |
81 | server which you/other people can connect to. First you have to download |
88 | archetype packs: |
82 | and install maps and archetype packs, though. |
|
|
83 | |
89 | |
84 | Download both the cfmaps-<version> and cfarch-<version> archives, then use cfutil |
90 | Download both the cfmaps-<version> and cfarch-<version> archives, then |
85 | to install both: |
91 | use cfutil to install both (the source directories must be writable for |
|
|
92 | this to work): |
86 | |
93 | |
87 | cfutil --install-maps path/to/cfmaps-<version>/ |
94 | cfutil --install-maps path/to/cfmaps-<version>/ |
88 | cfutil --install-arch path/to/cfarch-<version>/ |
95 | cfutil --install-arch path/to/cfarch-<version>/ |
89 | |
96 | |
90 | Both processes can take some time, depending on your resources :) |
97 | Both processes can take some time, depending on your resources :) If you |
|
|
98 | plan to repeat the installation you should specify the --cache option |
|
|
99 | which will keep costly-to-generate files around for further runs of |
|
|
100 | cfutil. |
|
|
101 | |
|
|
102 | Atfer this you can then run the crossfire executable. This starts a |
|
|
103 | server which you/other people can connect to. |
91 | |
104 | |
92 | |
105 | |
93 | WEB SITES: |
106 | WEB SITES: |
94 | |
107 | |
95 | The following web addresses have crossfire information that you may find |
108 | The following web addresses have crossfire information that you may find |
… | |
… | |
107 | |
120 | |
108 | Bugs should be filed using the following email address: |
121 | Bugs should be filed using the following email address: |
109 | crossfire@schmorp.de |
122 | crossfire@schmorp.de |
110 | |
123 | |
111 | When reporting bugs, make sure you include the following: |
124 | When reporting bugs, make sure you include the following: |
|
|
125 | |
112 | o What version of crossfire did you use? |
126 | * What version of crossfire did you use? |
113 | o What type of computer did you use (CPU type) |
127 | * What type of computer did you use (CPU type) |
114 | o What is the version of the OS? |
128 | * What is the version of the OS? |
115 | o What windowing system are you using (e.g. openwindows, X.org, XFree86) |
129 | * What windowing system are you using (e.g. openwindows, X.org, XFree86) |
116 | o What compiler (and its version) did you use (e.g. gcc, acc)? |
130 | * What compiler (and its version) did you use (e.g. gcc, acc)? |
117 | o Which flags did you give it? |
131 | * Which flags did you give it? |
118 | o If the bug happens when compiling crossfire, send an EXACT copy of the |
132 | * If the bug happens when compiling crossfire, send an EXACT copy of the |
119 | compiler line, as well as the errors it puts out. Sending bugs of the |
133 | compiler line, as well as the errors it puts out. Sending bugs of the |
120 | sort 'it failed with a line like ...' doesn't help any. |
134 | sort 'it failed with a line like ...' doesn't help any. |
121 | o If the bug happened while running crossfire: |
135 | * If the bug happened while running crossfire: |
122 | - Include any output before to the bug. |
136 | - Include any output before to the bug. |
123 | - Give a description of what you did before the bug occured. The better |
137 | - Give a description of what you did before the bug occured. The better |
124 | detailed the description, the better chance I have of figuring |
138 | detailed the description, the better chance we have of figuring |
125 | out where the bug happened, or how I can recreate the bug. |
139 | out where the bug happened, or how we can recreate the bug. |
126 | - If possible, a stack trace from gdb (or other debugger) is very |
140 | - If possible, a stack trace from gdb (or other debugger) is very |
127 | helpful. |
141 | helpful. |
128 | |
142 | |
129 | The more information provided, the better chance of the bug being fixed in |
143 | The more information provided, the better chance of the bug being fixed |
130 | a timely fashion. |
144 | in a timely fashion. |
131 | |
145 | |
132 | SUBMITTING PATCHES: |
146 | SUBMITTING PATCHES: |
133 | |
147 | |
134 | Patches should be submitted to email address: |
148 | Patches should be submitted to email address: |
135 | crossfire@schmorp.de |
149 | crossfire@schmorp.de |
136 | |
150 | |
137 | PUBLIC SERVERS: |
151 | PUBLIC SERVERS: |
138 | |
152 | |
139 | The best way to find a server to play is to run the client |
153 | The best way to find a server to play is to run the client |
140 | and hit "Server List" in the setup dialog (this varies |
154 | and hit "Server List" in the setup dialog (this varies |
141 | depending on your client). You can also see a list at |
155 | depending on your client). You can also see a list at |
142 | http://crossfire.real-time.com/metaserver/. |
156 | http://crossfire.real-time.com/metaserver/. |
143 | |
157 | |
144 | The canonical server for use with Crossfire and CFPlus is |
158 | The canonical server for use with Crossfire and CFPlus is |
145 | crossfire.schmorp.de, port 13327 (default). |
159 | crossfire.schmorp.de, port 13327 (default). |
146 | |
160 | |
147 | COPYRIGHT |
161 | COPYRIGHT |
148 | |
162 | |
149 | Copyright (C) 2007 Crossfire Development Team |
163 | Copyright (C) 2006,2007 Crossfire TRT Development Team |
150 | Copyright (C) 2000, 2006 Mark Wedel |
164 | Copyright (C) 2000,2006 Mark Wedel |
151 | Copyright (C) 1992 Frank Tore Johansen |
165 | Copyright (C) 1992 Frank Tore Johansen |
152 | |
166 | |
153 | This program is free software; you can redistribute it and/or modify |
167 | This program is free software; you can redistribute it and/or modify |
154 | it under the terms of the GNU General Public License as published by |
168 | it under the terms of the GNU General Public License as published by |
155 | the Free Software Foundation; either version 2 of the License, or |
169 | the Free Software Foundation; either version 2 of the License, or |
156 | (at your option) any later version. |
170 | (at your option) any later version. |
157 | |
171 | |
158 | This program is distributed in the hope that it will be useful, |
172 | This program is distributed in the hope that it will be useful, |
159 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
173 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
160 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
174 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
161 | GNU General Public License for more details. |
175 | GNU General Public License for more details. |
162 | |
176 | |
163 | You should have received a copy of the GNU General Public License |
177 | You should have received a copy of the GNU General Public License |
164 | along with this program; if not, write to the Free Software |
178 | along with this program; if not, write to the Free Software |
165 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
179 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
166 | |
180 | |
167 | The authors can be reached via e-mail to crossfire@schmorp.de |
181 | The authors can be reached via e-mail to crossfire@schmorp.de |