LinCity

Lincity is a city/country simulation game for X and Linux-SVGALib. It is (c) Copyright IJ Peters 1995,1997 (ijp@floot.demon.co.uk) but may be freely distributed under the terms of the GNU General Public License - a copy of which is included with the game.

Welcome.

LinCity is a city/country simulation game for X and Linux SVGALib.


[Last updated 19 September 2001 - More fix info]
Gregory Sharp is still the maintainer and is currently working on a new development version. Please note that this is untested and unstable and people just wanting to play should get version 1.11 (below). However, it is there for testing, and available at Greg's site via HTTP or FTP. Please report bugs or suggestions to Greg or myself, cheers.
Greg is also the porter/maintainer of the WIN32 version.


You may encounter problems compiling on recent versions of Linux due to the missing function prototype:

main.cxx: In function `void do_save_city ()':
main.cxx:689: `strcpy' undeclared (first use this function)
...
make: *** [xmain.o] Error 1

To fix this, add the following line to the top of all affected files:

#include <string.h>

This will be fixed in the next release

You may also encounter problems compiling on recent versions of gcc due to the missing typecast:

lcx11.cxx: In function `void refresh_screen (int, int, int, int)':
lcx11.cxx:720: cannot convert `char *' to unsigned char *' for
argument to `fgl_putbox_low (long unsigned int, int, int, int, int,
int, int, unsigned char *, int, int, int)'

To fix this, change line 720 from this:

pixmap, (640 + BORDERX),

to this:

(unsigned char*) pixmap, (640 + BORDERX),

This will be fixed in the next release

A patched distribution containing both the missing include directives and the missing prototype can be downloaded here lincity-1.11-patch1.tar.gz

Supported platforms are:

The current release version is 1.11

Some people are experiencing problems compiling version 1.11 with Redhat 5.2 - After typing 'make lincity' the compile fails with:
... cannot exec cc1plus: No such file or directory.
To get round this, simply change line 23 of the Makefile (in Lincity) from 'CC = gcc' to 'CC = g++'
Please let me know if that doesn't cure it.
Even though, technically, it is not a bug in Lincity, it will be 'fixed' in 1.12.

The changes are:

- Integrate X11 and Win32 code
- Greyscale X11 support added
- X11 performance enhancements
- Fix mouse offset problem
- Fix integer overflow problems at high tech levels
- Fix crashes when right clicking on grass squares
- The code has been "cleaned" using indent
- Some reworking of the Load/Save logic

You can:


You can look at the CHANGES file for version 1.09 and lower.

You may download tga2lcpal01.tar.gz. This is a small program to convert the colour palette of 24bit TGA pictures into the lincity colour palette. Ugg... This is experimental code, and you probably don't want it unless you actually came here for it.

ijp@floot.demon.co.uk