Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Gaming & Leisure
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Gaming & Leisure
A section for users who strive to play the latest games on linux.

 
Thread Tools Display Modes
Old January 12th, 2008   #1
petriborg
5 Cups of Ubuntu
 
Join Date: Jun 2006
Location: DC
Beans: 20
Ubuntu 8.04 Hardy Heron
Send a message via AIM to petriborg
HOWTO: Micropolis aka, SimCity

Micropolis is SimCity open sourced for the OLPC XO. It in theory should work Linux in general.


First you'll need the source code from:
http://www.donhopkins.com/home/micropolis/

Direct link to the code:
Untar the source:
Code:
$ tar -zxf micropolis-activity-source.tgz
Install the compiling base and then some:
Code:
$ sudo apt-get install libx11-dev libxpm-dev freebsd5-buildutils x11proto-xext-dev libxext-dev
Add yacc to your path:
Code:
$cd /usr/local/bin
$sudo ln -s /usr/lib/freebsd/yacc
Compile the code:
Code:
$cd micropolis-activity/src
$ make && make install
Running the game:
Turn off num-lock, there is a bug in Tcl/tk which breaks mouse events when that is on (thanks to Captain Frisbee).
Code:
$cd micropolis-activity
$./Micropolis

And go play!
At least, hopefully... Its currently work only 'sort of' working for me in Gusty. It will start up and you can click some on the main screen, but the game area doesn't display anything - attached is a picture...
Attached Images
File Type: png Screenshot-3.png (114.0 KB, 641 views)

Last edited by petriborg; January 13th, 2008 at 03:33 PM.. Reason: More details added...
petriborg is offline   Reply With Quote
Old January 12th, 2008   #2
ivotedforkodos
5 Cups of Ubuntu
 
Join Date: Jun 2006
Location: New York City
Beans: 27
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Micropolis aka, SimCity

Will there be a .deb for this at some point? Will this be incorporated in into Hardy as a new package?
ivotedforkodos is offline   Reply With Quote
Old January 12th, 2008   #3
petriborg
5 Cups of Ubuntu
 
Join Date: Jun 2006
Location: DC
Beans: 20
Ubuntu 8.04 Hardy Heron
Send a message via AIM to petriborg
Re: HOWTO: Micropolis aka, SimCity

Quote:
Originally Posted by ivotedforkodos View Post
Will there be a .deb for this at some point? Will this be incorporated in into Hardy as a new package?
Could be, its been released GPL3. That would assume that some of its issues can get ironed out.
petriborg is offline   Reply With Quote
Old January 12th, 2008   #4
InspirationDate
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Toronto
Beans: 19
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Micropolis aka, SimCity

I'm having trouble trying to figure out how to run it at 1024 x 768. It seems to be running at 1152 x 864. I'm on a laptop so I don't have a lot of options.

Also, I'm able to create a city, but once I'm in, the main window only displays a blank brown screen. The map appears fine...

Can't wait to get this running
InspirationDate is offline   Reply With Quote
Old January 12th, 2008   #5
pelo8280
5 Cups of Ubuntu
 
pelo8280's Avatar
 
Join Date: Apr 2007
Location: Harrisburg, PA USA
Beans: 23
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to pelo8280
Re: HOWTO: Micropolis aka, SimCity

Quote:
Originally Posted by InspirationDate View Post
I'm having trouble trying to figure out how to run it at 1024 x 768. It seems to be running at 1152 x 864. I'm on a laptop so I don't have a lot of options.

Also, I'm able to create a city, but once I'm in, the main window only displays a blank brown screen. The map appears fine...

Can't wait to get this running
Same here.
pelo8280 is offline   Reply With Quote
Old January 12th, 2008   #6
cyberix
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 2
Re: HOWTO: Micropolis aka, SimCity

I filed a packaging request...
https://bugs.launchpad.net/ubuntu/+bug/182455
cyberix is offline   Reply With Quote
Old January 12th, 2008   #7
jonathanhowell
First Cup of Ubuntu
 
Join Date: Oct 2006
Beans: 5
Ubuntu 7.10 Gutsy Gibbon
Re: HOWTO: Micropolis aka, SimCity

I get the same brown screen as the main activity screen. The mini-map shows as if it were rendered at a very low res. No sounds at all.

I'm on Gutsy on a Thinkpad T42.

Here's what's happening on the terminal:
Quote:
Starting Micropolis in /home/jonathan/micropolis/micropolis-activity ...
Welcome to X11 Multi Player Micropolis version 4.0 by Will Wright, Don Hopkins.
Copyright (C) 2002 by Electronic Arts, Maxis. All rights reserved.
sh: Syntax error: Bad fd number
sh: Syntax error: Bad fd number
Adding a player on :0.0 ...
Cool, I found the shared memory extension!
PlaySound Siren
PlaySound Siren
PlaySound Monster
PlaySound Monster
PlaySound HonkHonk-Low
PlaySound HonkHonk-Med
PlaySound Siren
PlaySound Siren
PlaySound HonkHonk-Low
QuitMicropolis
This'll be fun to try and figure out.
- Jonathan
jonathanhowell is offline   Reply With Quote
Old January 13th, 2008   #8
rrusaw
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 1
Re: HOWTO: Micropolis aka, SimCity

The Bad fd number comes from the fact that /bin/sh is not bash on Ubuntu.

Code:
sh: Syntax error: Bad fd number
rrusaw is offline   Reply With Quote
Old January 13th, 2008   #9
hikaricore
RIP ~ Fluffy ~ 2006-2008
 
hikaricore's Avatar
 
Join Date: Aug 2006
Location: lewis center, ohio
Beans: 5,734
Kubuntu Development Release
Send a message via ICQ to hikaricore Send a message via AIM to hikaricore Send a message via MSN to hikaricore Send a message via Yahoo to hikaricore
Re: HOWTO: Micropolis aka, SimCity

Should be a simple tweak to the make files and such to substitute in dash right?
hikaricore is offline   Reply With Quote
Old January 13th, 2008   #10
Hachi
5 Cups of Ubuntu
 
Join Date: Dec 2005
Location: Scotland
Beans: 13
Ubuntu 7.04 Feisty Fawn
Re: HOWTO: Micropolis aka, SimCity

According to this article - SimCity Source Code Released to the Wild! Let the ports begin...

Quote:
The Micropolis engine can load a SimCity save file and run it, and use the TileEngine to draw it, but you can't actually interact with it or edit the map yet, since the user interface and other views haven't been implemented, just a scrolling zooming view of its tiles.
Hachi is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:15 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry