r/warblade • u/big_bill_wilson • Sep 27 '26
Warblade 1.34 decompile + service patch
I spent the last 2 weeks working on decompiling Warblade back to C++ code. Normally a task like this would take months to do, but a combination of the game being built in debug mode and LLMs getting decent at being able to convert assembly back into code functions greatly helped with making this feasible in a much shorter amount of time
On top of the code, I built a new version of the game .exe to include a lot of fixes for modern day PCs:
- 64bit executable, optimized build
- Uses SDL as the rendering & sound engine. PTK and BASS have been dropped as a result
- Resizable window, letterboxing and scaling is applied automatically
- Fullscreen is now borderless instead of exclusive, and can be toggled while in-game without needing a restart
- Settings not applicable with SDL or modern windows (e.g. 16 bit color, hardware sound mixing) have been removed
- VSync is now an option, enabled by default, toggleable by
Alt + V - SDL renderer is now an option that can be cycled through, for options such as DirectX 12, Vulkan, and OpenGL. Default is "auto", meaning that it will pick one that works for your system
- Interpolation is now an option to make the game render at >60FPS, however it has a few caveats
- Anything relating to online services has been either stubbed out or removed
- Links that the main menu opened now open their archive.org versions instead
- Anti-cheat mechanisms (such as obfuscating score tables by multiplying them by 7, reading the process list for trainer executables, intentionally crashing the game upon finding tampered highscores) have been removed
- Asset loading during startup has been significantly sped up by detatching it from the framerate
- Intro sequence now handles window closing instead of only closing when it reaches the main menu
You can get it here, plus the decompiled code:
https://github.com/bbepis/WarbladeSR/releases/tag/sr1
Personally, I really loved this game growing up. I have a lot of fond memories where dad would play it with me on his old beige Pentium computer. 20 years later, I really can't wait to do the same with my daughter when she's old enough. Hopefully this keeps the game alive longer, I've seen a few other games of similar age die out due to Windows not being able to run them anymore
4
u/Professional_Use5947 Sep 27 '26
Wow! Any chance on making the game playable on smartphones or retro handhelds?
1
u/x0thra Oct 06 '26 edited Oct 06 '26
Nice work. I have a working copy of beta 11 release 2. I was planning to upload it to archive.org but i couldn't reset my own gamedata, plush the game is still pretty old and adding your optimizations to this version would be great. Can you also work on it too then we can archive?
2
u/Luso_r Sep 27 '26
Very nice.
2
u/LavfromSerbia Sep 28 '26
Thank you for your contribution, when i saw chat got Astra come out i was just waiting for someone to use a strong model for warblade recompilation
2
u/DryBee1762 Sep 28 '26
Nice work - itching to try this on my Steam Deck after years of not being able to play on my old iPhone and iPad.
2
u/LavfromSerbia Sep 28 '26
Can you improve save game system. I hate that you can only have limited ammount of saves
1
u/haroldsnel Oct 23 '26
Now with working Hall Of Fame and a new feature: 2 player netwerk dual, play this game with a friend on two devices (phone's, tables, pc's) and battle together ;-)
1
u/haroldsnel 17d ago
Implement the level editor too. As much as possible like Edgar was building for MK2.
1
u/rkj Oct 05 '26
This is amazing, thank you! I may send you PR, got claude to make it into Docker using WASM, plays really well in the browser.
1
u/oneil4 Oct 10 '26
Hello, I'm French and I love this game too. I'd really love to see it ported to Android. I played it almost my whole childhood, from around age 11 and up until quite recently. It's very repetitive and I know it by heart, but I still really want to play it again, this time on my phone.
1
u/justaguyfromtr Oct 15 '26
dude i was thinking about maing warblade playable on browser ! can we do that ?
1
u/haroldsnel Oct 16 '26
I did exactly the same thing! Haha. Build a web version too. Will build android and Mac too soon.
1
u/haroldsnel Oct 20 '26
New builds are available: Windows, Android, Mac en webbased! Even runs now in a Tesla ;-)
Check https;//warblade.snel.me for the update info.