Video Games

 

Micropolis

a.k.a. OLPC SimCity

created and published by Don Hopkins in 2008-01, running on Linux
type: strategy, simulation, manag./econ.
genre: City-building
series: SimCity
perspective: bird's-eye push-scroll
player options: single player
other: Freeware, Free OpenSource Software
languages: eng

Buy from Amazon.com by Title by Title+Plat.
Descriptions (2)

These instructions are more complicated than they need to be but I'm trying to cover every contingency I can think of. This was tested on Ubuntu Hardy, Intrepid, and Jaunty (EDIT: Micropolis is included in Karmic repos), but should also work basically the same for other distros. Note, other distors might use a different package manager than apt. Note that obtaining the other required softwares for other distros may involve additional steps. If freebsd5-buildutils and the freebsd version of yacc packages are not in your repositories, then chances are build-essential and byacc has the required replacements. But this may not be the case. You only need yacc or byacc, not both. Note that this example uses Don Hopkin's 'official' version of Micropolis and may not include some of the tweaks and enhancements that unaffiliated developers have added. If you want one of those, get their source and follow their instructions.
This process will create a directory called micropolis-activity in your home directory but install the application system wide. You can use another directory if you wish (change "cd ~" to "cd /here/instead/"). The leftover micropolis-activity directory will contain a .deb file that is specific to your computer and existing software, you may want to keep it (it is of little use for redistribution, unless installing to many 'software identical' systems such as in a school computer lab'). Otherwise the leftover micropolis-activity directory can be trashed after the game is confirmed to run. If checkinstall is not available to you then use "sudo make install" and there will be no .deb created and uninstalling must be done manually. These commands are meant to be typed into a terminal (command-line).

So it begins:

sudo apt-get install libx11-dev libxpm-dev x11proto-xext-dev libxext-dev wget tar build-essential checkinstall freebsd5-buildutils byacc yacc

cd /usr/local/bin

sudo ln -s /usr/lib/freebsd/yacc

cd ~

wget http://www.donhopkins.com/home/micropolis/micropolis-activity-source.tgz

tar -zxf micropolis-activity-source.tgz

cd micropolis-activity/src

make clean

make

sudo checkinstall


checkinstall will ask you several questions before it makes a .deb file based on your answers. If you don't answer them correctly, checkinstall will kick a small dog. If checkinstall doesn't work, or you start feeling guilty over repeatedly kicking a dog, then use this instead:
sudo make install

It should be ready to play
./Micropolis


If something went wrong with make:
Pay no attention to warnings, but if you got any of the following or similar error messages:
btyaccpa.ske:111: error: expected specifier-qualifier-list before ‘yyparsestate’
btyaccpa.ske:257: erreur: ‘yypath’ undeclared (first use in this function)
tclxgdat.y:67.15: syntax error, unexpected =
tclxgdat.y:86.32-33: valeur $ invalide : $3

Then you have used the wrong yacc or byacc, install the other one and try again. If it still doesn't work you may have to remove bison, and/or btyacc, at least for the moment, then try again (You can reinstall them after Micropolis works. Sloppy, but effective)
sudo apt-get remove bison
sudo apt-get remove btyacc


if something wen wrong with running Micropolis:
but if you get a Bad fd error then you will need to uninstall, replace sh with bash in the source code, then recompile, like this:
sudo apt-get remove Micropolis
sudo apt-get install rpl
cd micropolis-activity
rpl -R "/bin/sh" "/bin/bash" *
cd /src
make clean
make
checkinstall

(Zerothis) - # 2009-05-15 09:18:20
That's right! GPL code from Electronic Arts. This is the Linux version from the original SimCity code cleaned up and modified for C++, ANSI, and Tcl/Tk. EA trademarks and other intellectual property have been removed. By all legal definitions, its a different game. EA has stated the future developments based on the Micropolis code may be approved to include EA trademarks.

Tags
This game was rebranded from the original EA version; more precisely, it was unbranded. Not sure if the simcity tag applies. Planning, building, and managing cities is the point o the game. This game only exists in its current form because EA was encouraged to contribute a game to the One Laptop Per Child project. The source code is originally ANSI C++, later developers have contributed Python code. It makes use of the Tk GUI toolkit extension to the Tcl scripting language. The game is easily compiled for Fedora and Solaris and 32-it or 64-bit 386 CPUs (many clear and easy to follow tutorials are readily available).
(Zerothis) - # 2009-01-15 00:02:37
Comment
The game is in process of being converted from C and Tcl/Tk into C++ and Python which supposedly will allow the game to be ported to wider variety of systems.
Sanguine # 2010-05-04 06:08:07
Technical specs
additional hardware: x86-64 CPU,
display: raster
Authors / Staff

coding

Don Hopkins (porting)
Don Hopkins (code update)
Contributors (2)
zerothis
Sanguine

Post an anonymous comment / review about this game.

Rate and review

LIKE
PLAYED
FINISHED
-
OWN
PLAYING
WANT
Micropolis in-game screen.
Micropolis ()
View the full gallery