Reverse Engineering Sid Meier's Railroad Tycoon for DOS from 1990
113 points
3 days ago
| 9 comments
| vogons.org
| HN
KSteffensen
3 hours ago
[-]
Please fix the integer overflow. Total income over the game was tracked in a 32-bit signed int, so if you earned too much money suddenly the total would turn negative and your stocks would crash.
reply
jrs235
2 hours ago
[-]
I never found the bug in that direction. I discovered it the opposite way: when starting out, selling shares (or was it taking loans?) all the shares you can. Get around 30+ million in the hole and continue to lose money. Eventually an arithmetic overflow will occur and then suddenly you'll have a net worth of like $30-40 million and have the money form selling stock to build to your heart's content.
reply
saidnooneever
1 hour ago
[-]
hahah this was it! make so many debt ur suddenly rich haha. kinda like evil corpos do today no? hahahha
reply
boredhedgehog
1 hour ago
[-]
As described by the posts, the original used 16-bit signed integers. The fix was to switch to 32-bit.
reply
simonebrunozzi
6 hours ago
[-]
I loved this game so much. There was a "deluxe" version with small improvements.

I would love to play a modern version of this. Probably true for other strategy classics like Master of Magic, Master of Orion 2, Colonization.

Edit: ha, I remember that I used a really good tactic of playing with competitors' stocks, gaining majority, siphoning tons of money from them, and then selling the stocks. More profitable than running actual railroads.

reply
flohofwoe
5 hours ago
[-]
> I would love to play a modern version of this.

Steam and GoG have a version of Railroad Tycoon 2 which works well on modern machines:

https://store.steampowered.com/app/7620/Railroad_Tycoon_II_P...

https://www.gog.com/en/game/railroad_tycoon_2

Not quite as old-school as the first version, but IMHO gameplay-wise "just right".

reply
spockz
3 hours ago
[-]
I have been hooked on Transport Fever for a while now. My only gripe with it is that civilian vehicles will take roads intended for cargo/public transport traffic only. So the most profitable way is to disconnect entire cities by road and then use rail or road with disjunct depots to connect cargo to cities. This way you can force civilians to use public transport.
reply
amenhotep
1 hour ago
[-]
Using "civilian" to mean "a civilian who's not a cop" was already bad enough, but using it to differentiate private cars from trucks and buses? Public transport is practically the quintessential example of civilian infrastructure, you're really going too far now.
reply
boxed
6 hours ago
[-]
reply
Neil44
6 hours ago
[-]
I've been playing for the last year or two. Great game.
reply
Krutonium
6 hours ago
[-]
https://openloco.io/ too!

Chris Sawyer made a lot of games that have since been reverse engineered lmao.

reply
shevy-java
7 hours ago
[-]
It was a pretty cool game. Not as good as e. g. civilisation but nonetheless fun. I even managed to make profits with my railroads.

Young folks can use dosbox etc... but it just does not feel the same compared to how it was "originally". I could not get myself to want to play raildroad tycoon again; I found it easy to play games such as civilization or UFO: Enemy Unknown (oddly enough the first part is more playable than the second part here).

reply
suprjami
4 hours ago
[-]
OpenXcom adds a whole heap of wonderful conveniences to UFO/X-Com. It's probably my favourite open source game engine clone thing.

https://openxcom.org/

reply
snvzz
1 hour ago
[-]
Dolls / Girls Frontline 2: Exilium[0][1][2] is a modern take on the XCOM concept.

Free (but gacha.)

0. https://gf2exilium.sunborngame.com/main

1. https://gf2.haoplay.com/jp/

2. https://store.steampowered.com/app/3308670/GIRLS_FRONTLINE_2...

reply
suprjami
1 hour ago
[-]
> gacha

Hard pass.

reply
stoneforger
6 hours ago
[-]
Of the games you mention it's civilization that's kind of hard to replay for me. RR tycoon had fewer, worse, iterations. All Xcom games are super replayable with the exception of Xcom 3. Colonization is super replayable and it's only reiteration based on Civ 4 is not worth it.
reply
spockz
3 hours ago
[-]
To this day I’ve managed to win in every civ game but still have to figure out how to consistently beat Colonisation.
reply
fakedang
4 hours ago
[-]
XCOM 3?
reply
CyMonk
3 hours ago
[-]
The third game in the series is "X-COM: Apocalypse".

https://en.wikipedia.org/wiki/XCOM

reply
wodenokoto
2 hours ago
[-]
Maybe I’m reading it wrong, but it seems like all the struggles are in rendering and barely nothing in terms of game logic.

I don’t know. It just surprised me. Thought it would be the other way around.

reply
marticode
10 hours ago
[-]
I spent countless hours as a teen on that game. I feel it might be faster to rewrite it from scratch though than reverse engineer it.
reply
jaggederest
9 hours ago
[-]
It's trickier than you think! Even for the modern era, the railroad tycoon games are surprisingly deep and sophisticated economic simulations. I still haven't found one to equal Railroad Tycoon 3, which has this kind of neat reactive diffusion field pricing engine.

The modern equivalents (I'm thinking of Transport Fever 2) while they are fun games just lacks the ability to build and manipulate a real economy by doing things like e.g. putting an industry in a town and then transporting goods there to satisfy the industry, making both your train line and the industry wildly profitable.

reply
p0w3n3d
4 hours ago
[-]
I really admired Transport Tycoon which had those 3 additionals transport channels. Have you tried it? I love the shuttle buses which you can use to connect to an external (to the city) airport, railroad track that can go throughout the whole map, and the ships that transport mostly oil for fun and profit...
reply
nikitau
6 hours ago
[-]
There's also a whole, albeit niche, board game genera of so called 18xx game (eg. 1889 Shikoku) that deal with the economic aspects of 19th century railroads.

Usually dry as sand, but some of the heaviest games out there in terms of complexity.

reply
jrs235
8 hours ago
[-]
Loved that game. And Sid Meier's Colonization.
reply
p0w3n3d
4 hours ago
[-]

  Not a penny for those heretic swines! 

  No taxation without representation!
and

  Wery well, we shall withdraw our forces!
I was really disappointed when the both the remake and the open source versions lost those memorable quotes.
reply
vintermann
1 hour ago
[-]
Was "You may kiss our royal pinky ring" in them though?
reply
snvzz
1 hour ago
[-]
These days it's not PC to say that.

Because representation without taxation is a thing, and pointing at that, even as indirectly as this, is seen as "problematic".

reply
rc_kas
8 hours ago
[-]
Yeah so much fuzzy good memories of it. Now I want to play that game again.
reply
pimlottc
10 hours ago
[-]
The image links seem to all be broken but you can see some high-res maps in the video starting around 1m10s
reply
p0w3n3d
4 hours ago
[-]
Congratulations, that's something really good!
reply
LowLevelMahn
3 days ago
[-]
the developer 'Wilczek' is posting the progress on his Railroad Tycoon reversing in this Vogons-Thread
reply