Reverse Engineering SimTower
110 points by patrickhulin 3 days ago | 17 comments
This is the story of building https://towers.world, a ~perfect, tick-for-tick reproduction of 1993 game SimTower.

I spent weeks reverse-engineering the original EXE and writing up a detailed spec of how the simulation actually works under the hood — population flow, elevator AI, the whole star-rating system. The specs are all on GitHub if you want to read them: https://github.com/phulin/tower-together/tree/main/specs

It's also collaborative. Multiple players can connect to the same tower, the simulation keeps running as long as anyone's connected, and build actions sync across clients in real time.

Because I rebuilt the UI, I could add features like shift-click to build grids of rooms - instead of painstakingly clicking to build rows of offices and hotels, shift-click allows a 10-floor grid to be built all at once.

The game runs on Cloudflare Durable Objects, one of my favorite web primitives.

Everything is open source: https://github.com/phulin/tower-together


MrPowerGamerBR 7 minutes ago
Just a fyi for anyone that doesn't know: A few years back Don Hopkins got the permission from Yoot Saito to open source Yoot Tower, SimTower's sequel: https://github.com/YootTowerManagement/YootTower

...however I don't think that the source was ever published anywhere, considering that the repository still doesn't have the source code yet. ("Please check out the YootTower repo, where I'll publish the source code once it's cleaned up, reviewed and approved by Yoot, and relicensed with the MIT licensed.")

reply
jlev1 4 hours ago
Wow!

There was a little-known sequel to SimTower called Yoot Tower (named after Yoot Saito). It was a commercial flop, but I played it in the 2000s and again in the 2010s and very much enjoyed it! It had a lot of added customizability (more choices of restaurants and shops, for one thing). I would love to see that game recreated.

reply
zamadatix 2 hours ago
Project Highrise is also worth checking out. It's a 2016 re-imagination of the same type of game. I'm not sure I enjoyed it as much as I did Yoot Tower... but I'm also not sure if that's just because Yoot Tower was a few decades younger back when I played :).
reply
pixelcort 4 hours ago
One of the maps in Yoot Tower is Kegon Falls. When I moved to Japan I found out it was a real place. Just took another day trip up there last month. Of course IRL it’s just an elevator but the view each season is amazing.
reply
thispbowden 4 hours ago
Love Yoot Tower! Can we clone it next?
reply
patrickhulin 4 hours ago
yes! I've been thinking about how to do it, but it will take some work!
reply
efromvt 2 hours ago
Can you still build a garage in the bottom corner to get more starting money??
reply
ryeguy_24 5 hours ago
Oh my gosh, this really brought me back. Haven't played that game in 30 years. What a great use of AI. Thanks for the trip down memory lane.
reply
findalex 5 hours ago
I loved this game so much. Can't wait to see Santa.
reply
taejavu 6 hours ago
Very cool! I used to play this game for a few minutes every morning at a friends place before school. With the clone being open source, would you be open to QoL patches? I don’t have anything specific in mind, just curious how close to the original you want to stay.
reply
patrickhulin 4 hours ago
Patches are welcome, especially for UI stuff - the simulation I'd like to keep matching exactly. I have one deviation already: the floors are 0-indexed and lobbies are on 15, 30, ..., which would be 16, 31, ... in the original game.
reply
schnebbau 5 hours ago
Amazing, loved this game when I was younger. I would keep restarting every time I thought of a more effective layout.

I don't think I ever made it to the cathedral though.

reply
yesitcan 3 hours ago
[flagged]
reply
iamjs 3 hours ago
This is an unnecessarily rude, dismissive, and low value comment. I loved this game growing up and I think it's fantastic to see this work. I don't find it particularly relevant whether or not a language model was involved.
reply
SuperNinKenDo 3 hours ago
God I loved this game back in the day. Thank you!

EDIT: Nevermind... [sigh]

reply
I_am_uncreative 2 hours ago
What's with the edit?
reply
cozzyd 2 hours ago
Judging from user's posting history, they're not the biggest fans of llms

This is kind of the perfect use case though -- it's a game who cares if it's right or not.

reply
DonaldPShimoda 18 minutes ago
Some people also have moral issues with LLMs. If the poster is such a person, the accuracy metric may simply be irrelevant.
reply