
King Karolus
Posts: 1233
Joined: 01 May 2006, 22:00
Website: http://www.knightsandmerchants.net
Location: Finland
Decompiled TPR and fixed it up
Anyway, I briefly delved into x86 assembly some years ago and then started decompiling The Peasants Rebellion as a personal curiosity and as an opportunity to learn a bit more about x86 assembly. Initially I did not expect to achieve much at all, but eventually I had managed to decompile large parts of the game logic. Then I figured why not try fixing many of the bugs that were still present in the latest version of the game. To date, I would say that I have managed to figure out about 90% of the game logic. This has allowed me to fix major issues with the original game such as the infamous "drunk soldiers" bug and various bugs plaguing the build-up AI and a lot of less severe bugs. I also added some new features such as windowed mode support.
I do realize that the original game is pretty much obsolete due to the KaM Remake, but I really did this as a personal project to learn assembly and to see if I could fulfill my "childhood dream" of a bug free TPR and figured maybe someone still likes playing the original.
Some of the more notable changes:
- Fixed drunk soldiers bug
- Fixed various issues with the town hall (e.g. sleepy soldiers, buttons not working properly...)
- Fixed build-up AI not working after saving/loading; getting stuck in various situations; minor improvements to build-up logic
- Added windowed mode support (toggleable by pressing Alt+Enter)
- Removed the limit of max 3 construction sites getting their wares delivered
- Fixed various bugs which made archers unable to fire at their target
- Fixed melee soldiers sometimes freezing next to enemies instead of instantly engaging in battle
- The AI now knows how to use town halls and siege workshops
- Expanded statistics to have separate military and economy statistics
- Added battle tutorial to main menu
- Nicer saved game names, no longer plagued with magic numbers
- Serfs no longer drop their current resource when walking over a construction site
- Improved sound effect and music quality; sound mixing rate increased from 22050 Hz to 44100 Hz and music now has a higher bitrate
Here is a pretty complete changelog.
Download (242 mb)
This patch is in English only, but the patch can be applied on top of any language version of the game resulting in an English game.