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.
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.
edit: turns out this was a fabrication, good thing I read my cited source!
"On September 8, 2020, Sid Meier's autobiography, Sid Meier's Memoir!: A Life in Computer Games, was released, containing confirmation that the Gandhi software bug was fabricated and a detailed background of the urban legend's formation"
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.
Civilization 4 (currently on sale for $6 at gog) includes a colonization mode. I don't like it as much as the original but that's probably my nostalgia bias
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.
Could someone refer to any good entry level DOS games reverse engineering materials? I dabbled a bit with NES hacking, but I'm finding it hard to get into DOS reverse engineering. What debugger to use? Any gotchas I should know in advance?
Borland's debugger (came with Borland C++) was very good, if you can get hold of it. I removed copy protection from several games I owned using it, and actually fixed mouse support for another game.
Spice86 has a pretty good built-in debugger. I found it much easier to work with than DosBox's debugger. Spice86's DOS emulation isn't as good as DosBox's yet, but it's getting better all the time. https://github.com/OpenRakis/Spice86
I second LowLevelMahn's recommendation for IDA 5 Free. It's a good disassembler for DOS applications and helps me navigate what I'm looking at in the Spice86 debugger. It also runs very well in Wine.
Tools:
IDA Pro 5 (Freeware) is the last Freeware version able to handle DOS executeables (official available by the ScummVM devs https://www.scummvm.org/news/20180331/) - IDA Pro still supports DOS-stuff with latest release - but not the freeware
or Ghidra - but the DOS/16bit support is sometimes lacky - but the decompiler is builtin
Gotcha: once you get into it, hacking the game gets to be way more fun than actually playing it. Way back in the day I used the DOS debug utility to edit my Bard’s Tale savegames. But once everybody has 127 hit points and -10 AC, the game gets way less interesting.
I'll add another recommendation for the freeware version of IDA 5, a copy of which the ScummVM project has permission to host. Although it's Windows-only and its UI feels a bit clunky today, the keyboard shortcuts allow an experienced user to be pretty efficient in navigating code, assigning data types, changing symbol names, etc.
I was especially pleased with IDA 5's ability to find and organize all the segments in just about any MZ EXE I've used it to reverse. It was even able to deal with the overlay segments in a Borland VROOMM / FBOV executable, and that was a pretty short-lived endeavor that faded to obscurity as soon as DOS/4G was on the scene.
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).
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.
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.
Loved watching my brother play this game growing up, it was a bit too complex for me!
I've played OpenTTD a bit and seems quite similar.
A question I've always had with these reverse engineering projects, can someone build off their work to do a clean room reimplantation if they avoid any code/dissembly ?
KSteffensen|11 days ago
jrs235|11 days ago
zeristor|11 days ago
https://en.wikipedia.org/wiki/Nuclear_Gandhi
edit: turns out this was a fabrication, good thing I read my cited source!
"On September 8, 2020, Sid Meier's autobiography, Sid Meier's Memoir!: A Life in Computer Games, was released, containing confirmation that the Gandhi software bug was fabricated and a detailed background of the urban legend's formation"
from the above link
boredhedgehog|11 days ago
simonebrunozzi|11 days ago
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.
flohofwoe|11 days ago
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".
ksherlock|11 days ago
boxed|11 days ago
spockz|11 days ago
avhception|11 days ago
butz|11 days ago
zabzonk|11 days ago
Rayosay|10 days ago
I second LowLevelMahn's recommendation for IDA 5 Free. It's a good disassembler for DOS applications and helps me navigate what I'm looking at in the Spice86 debugger. It also runs very well in Wine.
LowLevelMahn|11 days ago
or Ghidra - but the DOS/16bit support is sometimes lacky - but the decompiler is builtin
here is a list of articles to read: https://forum.stunts.hu/index.php?topic=4287.0
sevensor|11 days ago
trollbridge|11 days ago
colinmb|9 days ago
I was especially pleased with IDA 5's ability to find and organize all the segments in just about any MZ EXE I've used it to reverse. It was even able to deal with the overlay segments in a Borland VROOMM / FBOV executable, and that was a pretty short-lived endeavor that faded to obscurity as soon as DOS/4G was on the scene.
shevy-java|11 days ago
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).
suprjami|11 days ago
https://openxcom.org/
stoneforger|11 days ago
unknown|11 days ago
[deleted]
marticode|12 days ago
jaggederest|11 days ago
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.
pimlottc|12 days ago
brettermeier|11 days ago
jrs235|11 days ago
p0w3n3d|11 days ago
rc_kas|11 days ago
rustyhancock|11 days ago
I've played OpenTTD a bit and seems quite similar.
A question I've always had with these reverse engineering projects, can someone build off their work to do a clean room reimplantation if they avoid any code/dissembly ?
wodenokoto|11 days ago
I don’t know. It just surprised me. Thought it would be the other way around.
LowLevelMahn|15 days ago
nprateem|11 days ago
p0w3n3d|11 days ago
huflungdung|11 days ago
[deleted]