| 1 |
------------------------------------------------------------------------------ |
| 2 |
README for OpenCity 0.0.7dev |
| 3 |
------------------------------------------------------------------------------ |
| 4 |
Last modified: |
| 5 |
$Id: README 421 2009-10-10 12:22:14Z neoneurone $ |
| 6 |
|
| 7 |
Audience: |
| 8 |
# End-users: |
| 9 |
You can find a lot of useful information in this file. So read it ! |
| 10 |
|
| 11 |
# Packagers: |
| 12 |
This file contains useful information about command line options. |
| 13 |
For compilation and installation notes please refer to the |
| 14 |
INSTALL file. |
| 15 |
|
| 16 |
Description: |
| 17 |
This is just another city simulation. The idea is simple: you have to |
| 18 |
build a city with 3 types of "zones" Residential, Commercial and Industrial. |
| 19 |
They depend on each other during their development. Try to give them what |
| 20 |
they need and watch your city growing up. |
| 21 |
|
| 22 |
|
| 23 |
------------------------------------------------------------------------------ |
| 24 |
Hardware requirements: |
| 25 |
------------------------------------------------------------------------------ |
| 26 |
Processor: |
| 27 |
never mind |
| 28 |
|
| 29 |
Speed: |
| 30 |
whatever |
| 31 |
|
| 32 |
Graphic card: |
| 33 |
3D accelerated card with OpenGL support is strongly recommended |
| 34 |
|
| 35 |
Required OpenGL extensions: |
| 36 |
GL_EXT_texture3D |
| 37 |
|
| 38 |
Sound card: |
| 39 |
anything that can work with SDL_mixer |
| 40 |
|
| 41 |
Network: |
| 42 |
experimental support |
| 43 |
|
| 44 |
|
| 45 |
------------------------------------------------------------------------------ |
| 46 |
Software requirements: |
| 47 |
------------------------------------------------------------------------------ |
| 48 |
Operating System: |
| 49 |
Linux (recommended) |
| 50 |
or Mac OS or later |
| 51 |
or Microsoft Windows XP/2000 or later |
| 52 |
or Wine |
| 53 |
|
| 54 |
Graphic User Interface: |
| 55 |
X Windows with DRI activated (recommended) |
| 56 |
or Darwin |
| 57 |
or Microsoft Windows with OpenGL support |
| 58 |
or Wine |
| 59 |
|
| 60 |
Libraries: |
| 61 |
GL (OpenGL) |
| 62 |
GLU |
| 63 |
SDL |
| 64 |
SDL_image |
| 65 |
SDL_net |
| 66 |
SDL_mixer (optional) |
| 67 |
|
| 68 |
|
| 69 |
------------------------------------------------------------------------------ |
| 70 |
Linux autopackage release's notes: |
| 71 |
------------------------------------------------------------------------------ |
| 72 |
Have you just downloaded the "opencity-x.y.zsomething.package" stuff ? |
| 73 |
Give it the run permission by issuing the correct "chmod" command (refer to |
| 74 |
your Linux distribution for more information about the "chmod" command) |
| 75 |
|
| 76 |
Now run it from the console or in a file browser like Konqueror. OpenCity |
| 77 |
will be installed on your computer, and an icon will be created inside the |
| 78 |
"Game" group. |
| 79 |
|
| 80 |
After installation, you can launch OpenCity by clicking on its icon or |
| 81 |
typing "opencity" in your favorite console. |
| 82 |
|
| 83 |
|
| 84 |
------------------------------------------------------------------------------ |
| 85 |
Microsoft Windows binary release's notes: |
| 86 |
------------------------------------------------------------------------------ |
| 87 |
In order to play the game, you must install it first. Once it's done, |
| 88 |
click on the OpenCity's icon in the start menu to begin. |
| 89 |
|
| 90 |
|
| 91 |
------------------------------------------------------------------------------ |
| 92 |
Keys' description |
| 93 |
------------------------------------------------------------------------------ |
| 94 |
Hotkey: |
| 95 |
n: "Blank" tool |
| 96 |
r: Zone Residential tool |
| 97 |
c: Zone Commercial tool |
| 98 |
i: Zone Industrial tool |
| 99 |
p: Lay Paths tool |
| 100 |
l: Lay electric Lines tool |
| 101 |
x: Destroy tool |
| 102 |
q: Query tool |
| 103 |
e: Build a coal power plant |
| 104 |
ctrl: cancel the zoning tool action |
| 105 |
|
| 106 |
u / d: raise / lower cells tool |
| 107 |
|
| 108 |
Navigation: |
| 109 |
up / down / left / right: move the map |
| 110 |
pageup / pagedown: rotate the map |
| 111 |
insert / delete: zoom in/out |
| 112 |
alt: multiply the effects of the buttons above by 10 |
| 113 |
|
| 114 |
h: as Home |
| 115 |
escape: toggle the main menu |
| 116 |
|
| 117 |
Option: |
| 118 |
b: Toggle building display on/off |
| 119 |
g: Toggle grid display on/off |
| 120 |
k: Toggle the main status bar display on/off |
| 121 |
f: Toggle wire frame mode display on/off |
| 122 |
o: Toggle perspective/orthogonal projection |
| 123 |
t: Toggle terrain display on/off |
| 124 |
w: Toggle water display on/off |
| 125 |
|
| 126 |
Sound & music: |
| 127 |
< / >: play previous / next music |
| 128 |
m: music on / off |
| 129 |
s: sound on / off |
| 130 |
|
| 131 |
Experimental: |
| 132 |
F2: Save |
| 133 |
F6: Load |
| 134 |
|
| 135 |
Undocumented features, try it at your own risks: |
| 136 |
a: various test codes menu |
| 137 |
v: MAS test menu |
| 138 |
z: connect to the local ZeN server |
| 139 |
|
| 140 |
|
| 141 |
------------------------------------------------------------------------------ |
| 142 |
Sound & music |
| 143 |
------------------------------------------------------------------------------ |
| 144 |
OpenCity uses SDL_mixer for playing sound & music. Thus, it supports |
| 145 |
all file types that SDL_mixer supports. |
| 146 |
|
| 147 |
If you don't hear any sound, try to modify "sound.m3u" and |
| 148 |
set the path accordingly to the "opencity" executable file. Please note |
| 149 |
that OpenCity automatically appends a prefix to all the sound filenames. |
| 150 |
The prefix is where the installation procedure has put all OpenCity's data |
| 151 |
files. |
| 152 |
|
| 153 |
However, you can put a file called "music.m3u" in the "music" directory |
| 154 |
and OpenCity will load and play your favorite musics. If you don't find |
| 155 |
any "music" directory just create it then put your list "music.m3u" in it. |
| 156 |
|
| 157 |
I'd like to warn you that SDL_mixer is not that stable. It can hang |
| 158 |
OpenCity while playing few kinds of ".mp3" song. Blame the SDL_mixer's |
| 159 |
guys not me ;) If you experience such a problem, just turn the music |
| 160 |
off (key 'm'). |
| 161 |
|
| 162 |
|
| 163 |
------------------------------------------------------------------------------ |
| 164 |
Mouse action |
| 165 |
------------------------------------------------------------------------------ |
| 166 |
In OpenCity, whenever you click the RMB (Right Mouse Button), you will |
| 167 |
open the toolcircle. Click RMB again to hide the toolcircle. I try to make |
| 168 |
everything simple and handy. But sometimes you still need your keyboard. |
| 169 |
|
| 170 |
OpenCity also understands the mouse's wheel ! Push the wheel forward |
| 171 |
does a zoom in (as 'Insert' key) and roll the wheel backward does a |
| 172 |
zoom out (as 'Delete' key). |
| 173 |
|
| 174 |
When you hold 'Shift' and play with your mouse's wheel you'll notice |
| 175 |
that it translates the map in some direction. Whereas the 'Ctrl' button |
| 176 |
translates the map along another axis. |
| 177 |
|
| 178 |
|
| 179 |
------------------------------------------------------------------------------ |
| 180 |
Main config file "opencity.xml" |
| 181 |
------------------------------------------------------------------------------ |
| 182 |
See the in-line comments for more details. |
| 183 |
|
| 184 |
|
| 185 |
------------------------------------------------------------------------------ |
| 186 |
Command-line options |
| 187 |
------------------------------------------------------------------------------ |
| 188 |
In OpenCity, you can overwrite the config file's options with the |
| 189 |
command-line options. Few options are available in both short and long format. |
| 190 |
|
| 191 |
-fs | --full-screen |
| 192 |
Enable fullscreen mode. The video resolution is read from the config.xml |
| 193 |
file. If the resolution width and height are both 0, OpenCity will try to |
| 194 |
autodetect the best available fullscreen resolution. |
| 195 |
|
| 196 |
-glv | --gl-version |
| 197 |
Show the OpenGL driver information (vendor, renderer, version and extension) |
| 198 |
|
| 199 |
-gld | --gl-driver openGLDriverName |
| 200 |
Try to load the given driver name. Under Windows, it should be something |
| 201 |
like opengl32.dll |
| 202 |
|
| 203 |
-dd | --data-dir newDataPath |
| 204 |
Specify to new path to OpenCity's data. For example: |
| 205 |
Under linux: --data-dir /home/foo/bar/share/opencity/ |
| 206 |
Under win32: --data-dir "C:/Program Files/OpenCity/share" |
| 207 |
|
| 208 |
-cd | --conf-dir newConfigPath |
| 209 |
Specify to new path to OpenCity's config. For example: |
| 210 |
Under linux: --conf-dir /home/foo/bar/etc/opencity/ |
| 211 |
Under win32: --conf-dir "C:/Program Files/OpenCity/etc" |
| 212 |
|
| 213 |
-na | --no-audio: |
| 214 |
Disable the audio system |
| 215 |
|
| 216 |
--generator-seed seed |
| 217 |
The seed is the random integer seed used by the map generator |
| 218 |
|
| 219 |
--generator-map MAP-TYPE |
| 220 |
MAP-TYPE : 0=plain (default), 1=hill, 2=mountain |
| 221 |
|
| 222 |
--generator-water WATER-TYPE |
| 223 |
WATER-TYPE : 0=dry, 1=lake (default), 2=coast |
| 224 |
|
| 225 |
--generator-map-shape MAP-SHAPE-TYPE |
| 226 |
MAP-SHAPE-TYPE : 0=none (default), 1=island, 2=volcano, 3=crater |
| 227 |
|
| 228 |
--generator-tree-density TREE-DENSITY-TYPE |
| 229 |
TREE-DENSITY-TYPE: 0=sparse (default), 1=normal, 2=dense |
| 230 |
|
| 231 |
--generator-height-map heightMapPicture |
| 232 |
Load a gray-level picture as height map (PNG). The water level is gray |
| 233 |
level 128, each map level is one gray level. That's why the whole picture seems |
| 234 |
to be in a medium gray, because there's only a minor difference between the |
| 235 |
pixels. You can draw yourself the height-map or generate from any map sources. |
| 236 |
The interesting data for this work are the DEM satellite data. The map |
| 237 |
generator in OpenCity will crop the picture if it's too big. |
| 238 |
|
| 239 |
|
| 240 |
------------------------------------------------------------------------------ |
| 241 |
Heightmap package |
| 242 |
------------------------------------------------------------------------------ |
| 243 |
OpenCity is packaged with few heightmaps which are generated from |
| 244 |
satellite's data. Here is the full list: |
| 245 |
|
| 246 |
Athenes-1024x1024.png |
| 247 |
Athenes-51x51.png |
| 248 |
Dakar-51x51.png |
| 249 |
Ibiza-101x101.png |
| 250 |
Istanbul-1025x1025.png |
| 251 |
Mallorca-93x61.png |
| 252 |
Palermo-51x51.png |
| 253 |
Sao_Tome-101x101.png |
| 254 |
Strasbourg-1025x1025.png |
| 255 |
Woodstock-51x51.png |
| 256 |
|
| 257 |
In order to load those heightmaps, you have to give a command-line option |
| 258 |
to OpenCity. For example: |
| 259 |
|
| 260 |
opencity --generator-height-map map/heightmap/Athenes-51x51.png |
| 261 |
|
| 262 |
Currently, heightmap loading still is an experimental feature, try |
| 263 |
at your own risks. |
| 264 |
|
| 265 |
|
| 266 |
------------------------------------------------------------------------------ |
| 267 |
Save/Load issues |
| 268 |
------------------------------------------------------------------------------ |
| 269 |
The following directory is used for save/load |
| 270 |
|
| 271 |
* GNU/Linux: |
| 272 |
$HOME/.OpenCity/ |
| 273 |
|
| 274 |
* Windows: |
| 275 |
C:\Documents and Settings\username\Application Data\OpenCity\ |
| 276 |
If you are running a localized version of Windows, the above |
| 277 |
path may be different |
| 278 |
|
| 279 |
* Windows Vista: |
| 280 |
C:\Users\username\AppData\Roaming\OpenCity\ |
| 281 |
|
| 282 |
|
| 283 |
------------------------------------------------------------------------------ |
| 284 |
Known issues |
| 285 |
------------------------------------------------------------------------------ |
| 286 |
In the ExtentensionManager, GCC complains about the ISO C++ casting |
| 287 |
with the following message: |
| 288 |
|
| 289 |
"warning: ISO C++ forbids casting between pointer-to-function and |
| 290 |
pointer-to-object" |
| 291 |
|
| 292 |
Currently, there's nothing that we can do about this because it's a |
| 293 |
limitation of the C++ standards. |
| 294 |
|
| 295 |
|
| 296 |
------------------------------------------------------------------------------ |
| 297 |
Troubleshootings |
| 298 |
------------------------------------------------------------------------------ |
| 299 |
1) I have a ATI Radeon 9000 M video card on my machine. |
| 300 |
When I tested the game with "EnablePageFlip" ( see man radeon ) |
| 301 |
the game works weirdly. If you encounter the same problem, |
| 302 |
try to disable this feature of the XFree server ( see man XF86Config ) |
| 303 |
|
| 304 |
2) With ATI Radeon 9000M video card, the SmoothVision(tm) |
| 305 |
must be deactivated in order to run OpenCity correctly. |
| 306 |
|
| 307 |
3) Here is the version of my X server |
| 308 |
|
| 309 |
- XFree86 Version 4.3.0 |
| 310 |
- Release Date: 9 May 2003 |
| 311 |
- X Protocol Version 11, Revision 0, Release 6.6 |
| 312 |
- Build Operating System: Linux 2.4.18-23mdksmp i686 [ELF] |
| 313 |
- Build Date: 10 September 2003 |
| 314 |
|
| 315 |
It seems that the driver for my ATI Radeon 9000 M is |
| 316 |
very buggy. If you experience any trouble, try to type this |
| 317 |
in the shell (bash) before launching OpenCity. |
| 318 |
"export R200_NO_VTXFMT=" |
| 319 |
|
| 320 |
Or you should try a newer XFree. |
| 321 |
|
| 322 |
|
| 323 |
------------------------------------------------------------------------------ |
| 324 |
Duong Khang (neoneurone) NGUYEN |
| 325 |
|
| 326 |
|