Hack Micropolis (a.k.a. SimCity) and get $2,147,483,647!
Micropolis (The original SimCity) is old game (published in 1989) and newly freed game (released GPLv3 in 2008.) You can download the source code from Don Hopkins' Micropolis Downloads page. Michael Gernoth's micropolis git repository is also useful.
How To Get $2,147,483,647
The amount of funds is written in cty file at offset 0x0BA4. To get $2,147,483,647, follow these steps:
- Open the cty file with a hex editor.
- Jump to 0x0BA4, and
- Modify 0x7FFFFFFF (signed 4-bytes)
0011 2233 4455 6677 8899 aabb ccdd eeff 0123456789abcdef 00000ba0: 0000 00000000 893d0001 0001 0000 0001 .......=........ | v 00000ba0: 0000 0000 7fff ffff 0001 0001 0000 0001 ................
cty file format
Micropolis's cty file format is as following:
Note: short
is a Big-Endian (signed) 16-bits number.
For example, Map
data is written in cty file at offset 0x0C30.
(0x0C30 = 3120 = HISTLEN * 6 + MISCHISTLEN)
Total funds is MiscHis[50]
and MiscHis[51]
as a signed 32-bit number.
MiscHis[50]
is high-order word and MiscHis[51]
is
low-order word.
This is written at micropolis's source code
(src/sim/s_fileio.c#loadFile(char*)
) as follows:
See also
- Don Hopkins' Micropolis Downloads page
- The original SimCity is now the open source Micropolis - Linux.com 2008-01-31
- Microplis hack : Unlimited city funds at 0xBA4 in Micropolis *.cty files. - jaysonking.com