Heroes of Might and Magic 1 Reverse Engineering — Castle Screen UI: Sprites, Offsets & Click Bugs
In this episode, we continue reverse engineering Heroes of Might and Magic 1 by building out the castle screen from scratch in C++. We start by exploring the game's asset structure — ICN files, strip icons, town background images, and how the castle screen layers multiple sprites together, including the hero portrait, hero crest, garrison creatures, and resource display. Using the existing hero screen as a reference, we feed the AI a detailed spec and get a first working build up quickly. From there, the bulk of the video is hands-on debugging: fixing a misaligned hero portrait, manually tweaking pixel offsets for the garrison rows, crest, name bar, and exit button through iterative recompilation. We also track down and fix a castle click bug — a keyboard scroll guard and castle click guard were blocking the castle entrance interaction — and then resolve a faction index bug where the wrong castle background was being displayed for certain hero factions (e.g., a sorceress hero showing a barbarian castle). The fix involves remapping the faction index values at runtime. By the end, the castle screen is functional: clickable from the map, showing the correct town background per faction, hero portrait, crest, garrison creatures, and resource layout — all reasonably aligned. If you know any HoMM1 castle names or hero short names, drop them in the comments!
آپ کو یہ بھی پسند آ سکتا ہے
Miraculous: Tales of Ladybug and Cat Noir Season 6 Highlights (So Far!) 🐞🐾|@disneychannelanimation
Mr Bean's Restaurant Disaster and Missing Cat Hunt | Mr Bean
ZOOTOPIA 2 RECAP CARTOONS AND ANIMATIONS! FUNNY
HIGHLIGHTS #111 | PUBG MOBILE | IPHONE 16 PRO MAX
Jujutsu Kaisen All Bundles Review 🔥 | Jujutsu Kaisen Event Free Fire | Jujutsu Kaisen Collab Event .
Mr Bean Trophy Competition and Cat Show Chaos | Mr Bean Animated
The Mafia Boss Hid His Secret—Until One Night With a Waitress Changed Everything
Sun Wukong Inner Demon CG “Self-Salvation” | Honor of Kings Cinematic
Fortnite (PS5 Pro) 4K 120FPS HDR Gameplay | Skin Spider-Man Noir
Kung-fu Panda | Ducati | Kishin Densetsu | Street Fighter | Aspirant | Eternal Season | June July CC
Peppa Pig Tales 2026 🪞 Peppa's FUTURISTIC Mirror 🕶️ Learning About Reflections! ✨ NEW Peppa Pig
JOHN WICK Gameplay Wins Zero Build (NEW FORTNITE CHAPTER 7 SEASON 3)
SPIDER-NOIR FINALE REACTION - Man-Spider is the Stuff NIGHTMARES are Made of!!
WORLDS FUNNIEST PEPPA PIG ANIMATIONS EVER! (Funny Cartoons)
Mafia Boss Saw a Bride Fleeing Her Wedding and Said, “Perfect. She’s Mine”
HOK : CGI CINEMATIC NEW HERO LIU ER - HONOR OF KINGS
WE'RE Batman | LEGO Batman: Legacy of the Dark Knight
NEW THE MANDALORIAN (Pen & Ink) Skin Gameplay In Fortnite!
I Attempted the Ultimate Airsoft Sniper Battle (Terrifying)
🔴LIVE : BRAZIL vs MOROCCO | eFootball PES 2021 Video Game Simulation PC
God of War Laufey - Cory Barlog Interviews Game Director | PS5 Games
Liu Er: The Six-Eared Macaque is coming in Honor of Kings CN!
Fortnite x Invincible Wave 3
NEW HERO HOK LIU ER ! Full Entrance Animation, Skills, Combos & Gameplay Showcase - Honor of Kings
تبصرے
2 تبصرے
