Debian Codegraph @

README

raw
1
2 ** Welcome to lincity **
3
4
5 This is the README for lincity 1.13 (development version)
6
7
8 WHAT IS LINCITY
9 ===============
10
11 Lincity is a city/country simulation game for Linux (SVGALIB and X),
12 Solaris, FreeBSD, HPUX, AIX, SCO, IRIX, Compaq Tru64, BeOS, OS/2, VMS,
13 OS X, AtheOS, and Win32 (Win95, Win98, ME, NT, 2000, XP).
14
15 You are required to build and maintain a city. You must feed, house,
16 provide jobs and goods for your residents. You can build a sustainable
17 economy with the help of renewable energy and recycling, or you can go for
18 broke and build rockets to escape from a pollution ridden and resource
19 starved planet, it's up to you. Due to the finite resources available in any
20 one place, this is not a game that you can leave for long periods of time.
21
22 Lincity recently moved to sourceforge.net. This brings new CVS
23 access, mailing lists, and web pages. If you are subscribed to
24 [email protected], please also subscribe to the new
25 list, shown below, and make all of your posts there. Please also note
26 the new home page, which is not yet complete. Anyone with an eye for
27 design and a desire to help is welcome to make suggestions or design a
28 page to replace this one.
29
30 The lincity home page is now located at:
31
32 http://lincity.sourceforge.net
33
34 The official users mailing list (mailman) can be subscribed to by visiting:
35
36 http://lists.sourceforge.net/lists/listinfo/lincity-users
37
38 CVS commit notification can be had at:
39
40 http://lists.sourceforge.net/lists/listinfo/lincity-commits
41
42 Additionally, our sourceforge page is:
43
44 http://sourceforge.net/projects/lincity/
45
46
47 REQUIREMENTS
48 ============
49
50 * SVGALIB 1.3.0 (or greater).
51
52 OR X11.
53
54 OR A Win32 OS.
55
56 * The libpng and libz libraries.
57
58 I have tested with libpng versions 1.0.12 and 1.2.5. These
59 libraries are included in the windows version.
60
61 * A graphics card supported by your above choice.
62
63 * You probably need at least a 486DX2-66. (Even better for the X version
64 I suspect.)
65
66 * You probably need at least 8 MB memory (16 MB for X or win32).
67
68 * Other things? Send us an email.
69
70
71 INSTALLATION (UNIX)
72 ===================
73
74 To install lincity, (as root) untar the file lincity-1.12.0.gz
75
76 tar -xzvf lincity-1.12.0.tar.gz
77
78 You now want to compile the source
79
80 cd lincity-1.12.0
81 ./configure
82 make
83
84 Lincity will run out of the source directory. But if you want to install
85 you can do this:
86
87 make install
88
89 The old method choosing the install directory by setting LC_BINDIR and
90 LC_LIBDIR in the makefile no longer applies. To install to a different
91 directory, you must use the --prefix flag when you configure the package.
92 For example:
93
94 ./configure --prefix=/usr/mylocal
95
96 If you are installing a version downloaded from the cvs server, the
97 timestamps may be incorrect, which will cause the "make" to fail. In this
98 case, you need to run a script to fix the timestamps:
99
100 ./fix-timestamps.sh
101 ./configure
102 make
103 make install
104
105
106 INSTALLATION (WIN32)
107 ====================
108
109 Simply unpack the archive, and double click on the LINCITY.EXE icon.
110 You can get your free copy of UNZIP from the INFO-ZIP web page at
111
112 http://www.info-zip.org
113
114
115 UNINSTALLING (UNIX)
116 ====================
117
118 If you still have the configured source directory, you can do this:
119
120 make uninstall
121
122 Otherwise, do this (assuming you installed to /usr/local)
123
124 rm /usr/local/bin/lincity
125 rm /usr/local/bin/xlincity
126 rm /usr/local/man/man6/lincity.6
127 rm -rf /usr/local/share/lincity
128
129 In addition, if you ran lincity, you should delete these:
130
131 rm -rf $HOME/.lincity
132 rm $HOME/.lincityrc
133
134 If you have an older version, before 1.12pre54, you should delete this:
135
136 rm -rf $HOME/.Lin-city
137
138
139 UNINSTALLING (WIN32)
140 ====================
141
142 Like all good DOS programs, lincity runs within a single directory.
143 No files are copied to your "windows directory." The windows registry
144 is not used.
145
146 Simply delete the lincity directory to uninstall.
147
148
149 RUNNING LINCITY (UNIX)
150 ======================
151
152 Usually you will invoke the game with 'lincity' or 'xlincity'.
153 Typing 'lincity' will run the SVGA version, while typing 'xlincity' will
154 run the X Windows version. The SVGA version will not run under X.
155
156 lincity [opts]
157 xlincity [opts]
158
159 The following options apply to both.
160
161 -w Do some *crude* gamma correction to boost the red and blue.
162 This makes some 'washed out' displays a bit more colourful.
163 You have control of the individual values, see below.
164
165 -R <num>
166 -G <num>
167 -B <num>
168 These options allow you to boost the individual colours.
169 <num> is a number between 0.0 and 1.0
170 The default values for -w are 1.0 0.0 0.4 (ATTOW)
171
172 This option only applies to lincity.
173
174 -m <num>
175 Set the VGA mode. See below for choices of mode.
176
177 This option only applies to xlincity.
178
179 -r Add an extra border around the game.
180 -d Double the size of the window to 1280x960
181
182 -b *obsolete* omit border around game. Now on by default.
183
184
185 RUNNING LINCITY (WIN32)
186 ======================
187
188 Double click the LINCITY.EXE icon. The WIN32 version does not accept
189 command line arguments.
190
191
192 UPGRADING FROM VERSION 1.11
193 ===========================
194
195 Lincity 1.12 is forward compatible with lincity 1.11, in the sense
196 that 1.12 can read files generated in 1.11. However, please note
197 that you may need to copy over the save files. Save files can
198 be found in the following directories. UNIX users note the change!
199
200 Lincity 1.11 Lincity 1.12
201 ---------------- ----------------
202 UNIX $HOME/.Lin-city $HOME/.lincity
203 WINDOWS %LINCITY_HOME%\SAVED_GAMES %LINCITY_HOME%\SAVED_GAMES
204
205
206 THE LINCITY HOME DIRECTORY
207 ==========================
208
209 If you get a message such as "Error. Can't find LINCITY_HOME", this
210 means that lincity can't find its home directory. To find its
211 home directory, lincity searches for the file "colour.pal" in
212 the following three directories (in order):
213
214 The directory pointed to by the $LINCITY_HOME environment variable
215 The current working directory
216 The default directory
217
218
219 LINCITY CONFIGURATION FILE
220 ==========================
221
222 Lincity now has a configuration file for saving defaults. You can
223 find it in the following location:
224
225 UNIX: $HOME/.lincityrc
226 WINDOWS: %LINCITY_HOME%\lincity.ini
227
228 To reset to the "factory default" configuration, simply delete the
229 file. Lincity will regenerate the file if it is missing.
230
231
232 LINCITY ARTWORK
233 ===============
234
235 Starting with version 1.13, you can (more easily) customize the lincity
236 buildings and animations. To modify the artwork simply edit the
237 icon image file, located at opening/icons.png, with your favorite
238 image editor.
239
240 The icons.png file has a 256-color indexed format. The palette contained
241 within icons.png, however, is ignored by lincity. Instead, lincity
242 uses the file "Colour.pal" to determine the palette.
243
244
245 NOTES FOR SVGALIB VERSION
246 =========================
247
248 It is now possible to run at higher resolution. You can use the command
249 line to set the mode:
250
251 lincity ## default mode
252 lincity -m 10 ## mode 10, 640x480
253 lincity -m 11 ## mode 11, 800x600
254 lincity -m 12 ## mode 12, 1024x768
255 lincity -m 13 ## mode 13, 1280x1024
256
257 If not specified, lincity uses the default mode. The default mode
258 can be set according to the SVGALIB_DEFAULT_MODE environment variable.
259 See "man svgalib" for details on the svgalib default graphics mode.
260 If no default graphics mode has been specified, lincity will use
261 mode 10 (640x480, 256 colors).
262
263 As of version 1.12, lincity now uses the mouse settings in your
264 svga configuration file (i.e. /etc/vga/vga.config). Please use
265 this method to specify which make/model of mouse you are using,
266 and other mouse parameters.
267
268
269 NOTES FOR X VERSION
270 ===================
271
272 When playing in 256 colour (8bbp) display modes, when you go over the edge
273 of your window, the window manager changes the colour palette back to the
274 'normal' one, then back to the game's one when the mouse reenters the
275 window. This is what is supposed to happen, but can be a bit annoying when
276 trying to click on areas close to the edge and overshooting. For this
277 reason, I have added an extra border around the game to give players a bit
278 of 'breathing space'.
279
280 You can disable this feature by starting the game with a '-b' switch. ie.
281
282 xlincity -b
283
284 There is now a button that enables you to confine the mouse pointer within
285 the X window. ( xlincity -b, then confining the pointer and changing the
286 screen resolution to 640x480 gives you a 'full screen' game. :) )
287
288
289 NOTES FOR WIN32 VERSION
290 =======================
291
292 Lincity for Win32 automatically chooses whether or not to add a border
293 and/or perform pix doubling, depending on your resolution. Furthermore,
294 it will automatically maximize the window or even go into full screen
295 mode. Here is what you should see for some of the more popular
296 resolutions:
297
298 Resolution Window Style Border Pix Doubling
299 ------------ ------------ ------------ ------------
300 640 x 480 Full screen None No
301 800 x 600 Window Yes No
302 1024 x 768 Window Yes No
303 1152 x 864 Window Yes No
304 1280 x 1024 Window None Yes
305
306 If you are running 1280x1024, you may need to autohide the taskbar
307 in order to see pix doubling.
308
309 Lincity no longer uses a real windows font to draw text. Although this
310 gives a considerable speed improvement (about 20%), it sometimes
311 doesn't work correctly, for a reason that I haven't yet identified.
312
313 Save files are gzip compatible with the UNIX version of lincity. That is,
314 you will need to gzip/gunzip the save files when you transfer them to/from
315 your UNIX box.
316
317 The source code is distributed together with the binary distribution,
318 in the file source.tgz.
319
320
321 NOTES FOR CYGWIN
322 ================
323
324 Cygwin is fully supported. However, at the time of writing,
325 performance is very slow when X Windows is started in multiwindow
326 mode (which is the default setting). To fix this, you can
327 edit startxwin.bat to choose a different setting.
328
329 http://sources.redhat.com/ml/cygwin-xfree/2003-09/msg00485.html
330
331
332 INTERNATIONALIZATION UNDER LINUX
333 ================================
334
335 Lincity supports a modest amount of internationalization. Only languages
336 that can be represented using a iso8859-1 font are currently supported.
337 I have created a lincity-compatible iso8859-2 font also, but have not used
338 it yet because of no demand (send me an email if you would like to try).
339
340 If you wish to make a translation for your language, you will need to
341 download and install gettext 0.11.2 or higher.
342
343 The first task is to get the sample Italian translation to display
344 correctly. Download a fresh lincity (1.12pre53 or higher) from
345 sourceforge. Do a configure, make, and make install.
346
347 Next, download the Italian package. Install as described in README.it.
348 Run as follows:
349
350 export LANG=it_IT ## (on bash and similar)
351 setenv LANG it_IT ## (on csh and similar)
352 xlincity -D
353
354 Hopefully you will see something like this:
355
356 Setting entire locale to it_IT
357 Setting messages locale to it_IT
358 Query locale is it_IT
359 GUESS 1 -- intl_suffix is it_IT
360 Trying Message Path /home/gsharp/lincity/share/lincity/messages/it_IT/
361 Trying Help Path /home/gsharp/lincity/share/lincity/help/it_IT/
362 GUESS 2 -- intl_suffix is it
363 Trying Message Path /home/gsharp/lincity/share/lincity/messages/it/
364 Set Message Path /home/gsharp/lincity/share/lincity/messages/it/
365 Trying Help Path /home/gsharp/lincity/share/lincity/help/it/
366 Set Help Path /home/gsharp/lincity/share/lincity/help/it/
367 Bound textdomain directory is /home/gsharp/lincity/share/locale
368 Textdomain is lincity
369 DefaultVisual id=35 bp-rgb=8 map-entries=256
370
371
372 If you see this, then everything worked perfectly. You should see perfect
373 Italian. In particular, note the following:
374
375 (1) The opening screen (help page) is in Italian
376 (2) The month January will be written "Gen" instead of "Jan"
377 (3) Click on something that hasn't been invented yet, like a
378 power station or windmill. The message for "Not enough tech"
379 will be in Italian.
380
381 It is possible that you see English for (1) and (3). If so, you
382 are probably running from the directory you built from. Please cd
383 out of that directory, and try again.
384
385 If you are less lucky, maybe only (1) and (3) worked correctly and
386 but not (2). If so, you probably saw something like this:
387
388 Setting entire locale to (null)
389 Setting messages locale to (null)
390 Query locale is C
391 GUESS 1 -- intl_suffix is it_IT
392 Trying Message Path /usr/local/lincity/messages/it_IT/
393 Trying Help Path /usr/local/lincity/help/it_IT/
394 GUESS 2 -- intl_suffix is it
395 Trying Message Path /usr/local/lincity/messages/it/
396 Set Message Path /usr/local/lincity/messages/it/
397 Trying Help Path /usr/local/lincity/help/it/
398 Settling for help Path /usr/local/lincity/help/
399 Bound textdomain directory is /lincity/share/locale
400 Textdomain is lincity
401 DefaultVisual id=35 bp-rgb=8 map-entries=256
402
403 If this happens, it means that your system is missing some files which
404 are require to "set the locale" of your system to "it_IT". Probably
405 you are running Linux -- I don't think other Unix's have this peculiar
406 requirement.
407
408 To check if this is the problem (on Linux), look for the directory
409 /usr/lib/locale/it_IT. If this directory doesn't exist, you have this
410 problem. To fix it, do the following:
411
412 1) Make a backup of the directory /usr/share/i18n/charmaps
413 2) Make a backup of the directory /usr/share/i18n/locale
414 3) cd /usr/share/i18n/charmaps
415 4) gunzip UTF-8.gz
416 5) gunzip ISO-8859-1.gz
417 6) cd /usr/share/i18n/locale
418 7) localedef -f ../charmaps/UTF-8 -i it_IT it_IT.UTF-8
419 8) localedef -f ../charmaps/ISO-8859-1 -i it_IT it_IT
420
421 Now check for the directory /usr/lib/locale/it_IT. It will be there.
422
423 OK, now you are ready to make translations for a new language.
424 There are three parts to making a translation:
425 making help files
426 making message files
427 making a .po file.
428
429 The messages and help files are just a matter of editing the ASCII
430 files, and installing them. If your language is "it", you should
431 create two directories such as /usr/local/share/lincity/messages/it
432 and /usr/local/share/lincity/help/it. Copy the English language
433 help and message files to these directories, and translate them.
434
435 The .po file is a matter of translating these and getting them to compile
436 correctly. First, edit the file po/LINGUAS, and add your language
437 (e.g. "it") to the list. Next, create the .po file. For the language
438 "it", the command looks like this like this:
439
440 cd po
441 msginit -l it
442
443 You should now see the file "it.po". Edit this file. Specifically,
444 you should edit what comes after "msgstr". Don't erase any of the
445 other stuff such as "msgid" or "#: cliglobs.c:54" or that stuff.
446 If you are using emacs, there is a "po-mode" to facilitate
447 (or obstruct) this task.
448
449 When you are done editing this file, you need to compile this file.
450 Simply type "make" in the po directory to compile. This will
451 create the file "it.gmo". Finally, you will need to install this file.
452 To install, you will copy this file to the following location:
453
454 cp it.gmo /usr/local/share/locale/it/LC_MESSAGES/lincity.mo
455
456 Now, you are ready to go. Set the LANG environment variable and
457 lincity should run using your translations.
458
459 Email to [email protected] for comments about this process.
460
461
462 INTERNATIONALIZATION UNDER WINDOWS
463 ==================================
464
465 The situation under windows is similar. Download lincity
466 binary package, version 1.12pre53 or newer, and also download
467 the Italian translation pack.
468
469 Install the Italian translation pack directly into the lincity
470 directory. Then run the batch file:
471
472 c:\lincity> lincity-it
473
474 Now, you should see:
475
476 (1) The opening screen (help page) is in Italian
477 (2) The month January will be written "Gen" instead of "Jan"
478 (3) Click on something that hasn't been invented yet, like a
479 power station or windmill. The message for "Not enough tech"
480 will be in Italian.
481
482 If the above procedure doesn't work "out of the box", email
483 to [email protected].
484
485 OK, now you are ready to make translations for a new language.
486 There are three parts to making a translation:
487 making help files
488 making message files
489 making a .po file.
490
491 The messages and help files are just a matter of editing the ASCII
492 files, and installing them. If your language is "it", you should
493 create two directories such as /usr/local/share/lincity/messages/it
494 and /usr/local/share/lincity/help/it. Copy the English language
495 help and message files to these directories, and translate them.
496
497 The .po file is a matter of translating these and getting them to compile
498 correctly. First, make copy the file lincity.pot to your language
499 (e.g. "it.po" for Italian). If you do not have a lincity.pot file,
500 email [email protected] to get the latest one (or get it
501 directly from the CVS server on sourceforge).
502
503 You should now see the file "it.po". Edit this file. Specifically,
504 you should edit what comes after "msgstr". Don't erase any of the
505 other stuff such as "msgid" or "#: cliglobs.c:54" or that stuff.
506 If you are using emacs, there is a "po-mode" to facilitate
507 (or obstruct) this task.
508
509 When you are done editing this file, you need to compile this file.
510 Use the executable "msgfmt.exe" which is distributed with lincity
511 for this purpose:
512
513 c:\lincity> msgfmt it.po -o it.gmo
514
515 This should create the file it.gmo. You need to copy it to a
516 prespecified location, like this:
517
518 c:\lincity> copy it.gmo locale\it\LC_MESSAGES\lincity.mo
519
520 Create the appropriate subdirectories as necessary.
521
522 Now, you are ready to go. Set the LANG environment variable
523 and lincity should run using your translations.
524
525
526 INSTALLING PICEDIT
527 ==================
528
529 Picedit is deprecated. It may or may not compile. It will be removed
530 after the transition to png graphics is complete.
531
532 picedit is a simple drawing program that was used to draw all the icons
533 found within the game. You are free to play with this, and even send me
534 new icons that you have designed - although I cannot guarantee that any
535 icons sent to me will be included in later versions. If you intend to design
536 some that you feel should be included, please e-mail me first, this may save
537 a lot of wasted effort. The following commands
538
539 ./configure
540 make picedit (or make xpicedit)
541 make install
542
543 will compile and install picedit (or xpicedit). Most likely, you will
544 prefer to install picedit and lincity at the same time to avoid copying
545 all of the help and message files multiple times, like this:
546
547 ./configure
548 make lincity
549 make picedit
550 make install
551
552 By the way, xpicedit does not work on hi-color or full-color displays.
553
554
555 COMPILATION UNDER WIN32
556 =======================
557
558 I use both MS VC++ 4.0 and MS VC++ 6.0 on Win95 and Win98. I no longer
559 include the MSVC workspace files or makefiles, since these do not
560 seem to be particularly useful. If you would like them, I'd be glad
561 to send them to you.
562
563 You may need to generate your own Makefile. The file Makefile.am
564 contains the information about which files you need to compile.
565 As of version 1.12, you no longer need to link with your vendor
566 supplied versions VERSION.LIB or WSOCK32.LIB.
567
568 Lincity 1.11 was patched to compile with the Borland compiler
569 too. If this is not still working in 1.12, please send me a patch
570 and I'll be happy to add it to the archive.
571
572
573 RUNNING LINCITY (CLIENT/SERVER)
574 ===============================
575
576 Client/server version is disabled for this version. In fact, the code
577 was completely removed as of version 1.12pre50, so the last version to
578 contain the (non-functioning) network code was 1.12pre49.
579
580 If you are interested in working on a client/server version, please send
581 your email to the current maintainer or to the lincity mailing list.
582 We are still interested in doing this!
583
584
585 BUGS
586 ====
587
588 Many. See the file TODO.
589
590 If you wish to report a bug, you can send to directly to the current
591 maintainer or to the lincity mailing list.
592
593
594 HISTORY
595 =======
596
597 Ian Peters started writing lincity in June 1995 as an exercise in
598 mouse control in SVGALIB. It quickly became a usable, then even fun,
599 game to play. Over the next 18+ months it evolved into a challenging
600 and stable game which, in a number of people's opinion, is worth uploading
601 to the net.
602
603 In late 1997, lincity developers made grand plans for lincity version 2,
604 an intergalactic space simulation with all the trimmings. But from
605 1998-1999, lincity underwent a period of hibernation, with only minor
606 patches being applied.
607
608 Development was restarted in late 1999 by Greg Sharp to provide
609 some moderate improvements, including networking support, GUI
610 improvements and additional gameplay developments. Networking
611 support was subsequently dropped in 2001.
612
613 In mid-2001, Greg was joined by Corey Keasling, who helped to bring
614 the game to sourceforge.net. In late 2001, Corey became
615 co-maintainer. Version 1.12 was released in December 2003.
616
617
618 COPYRIGHT
619 =========
620 Lincity is copyrighted software.
621 Copyright (c) I J Peters 1995-1997.
622 Copyright (c) Greg Sharp 1997-2003.
623 Copyright (c) Corey Keasling 2000-2003.
624
625 You may freely copy, distribute and modify lincity under the terms of the
626
627 GNU GENERAL PUBLIC LICENSE
628
629 Please read the file COPYING for the GPL.
630
631 THANK YOU
632 =========
633 This game could not have been possible without the patches, scripts,
634 bug reports, suggestions, and other contributions from hundreds of
635 developers and users around the world. Please read the file
636 'Acknowledgements' for details.
637
638 And a special thanks to *you* for playing and enjoying lincity!