Jagged Alliance 2 Devlog — Live Handheld Playtest Part 1: Omerta Combat, Rebel Hideout, Ira & Wayland Fix

Jagged Alliance 2 Devlog — Live Handheld Playtest Part 1: Omerta Combat, Rebel Hideout, Ira & Wayland Fix

· · blog

Following our I.M.P. body, rifle stance, and classic quiz update, we put our native 64-bit C++17 & SDL2 port of Jagged Alliance 2: Arulco Revisited through an extended live campaign test directly on the MSI Claw handheld at native 640×480 (4:3 unstretched fullscreen, GLES2 RGB565 direct texture path).

Instead of synthetic scripted checks, this playthrough started from a fresh campaign with a custom I.M.P. mercenary (Ghost, carrying Enrico's Letter) and three hired A.I.M. mercs (Grunty, Igor, and Fox), playing through combat, NPC quests, underground levels, and real-time/turn-based transitions right on the handheld screen.

Inside A10-1: Rebel Hideout — Fatima has delivered Enrico's Letter to Miguel Cordona, unlocking the Drassen Food Route briefing (Father Walker) and rebel trust.

1. Turn-Based Tactical Combat & Real-Time Return (A9: Omerta)

Dropping into A9: Omerta with Arulco Revisited 1.4 verified the full tactical combat loop under 640×480 Wayland fullscreen:

Turn-based tactical combat in A9: Omerta with Ghost, Grunty, Igor, and Fox

Tactical HUD and camera panning across A9: Omerta during combat — custom I.M.P. Ghost alongside Grunty, Igor, and Fox with AP counters, weapon slots, minimap markers, and battle damage decals.

  • Stances, Action Points & Aiming: Standing, crouching, prone, running toggle, AP path previews, and multi-level aiming ticks behave accurately across every squad member, including JA2 1.13's ammo-count hiding (??) when wisdom/dexterity rules apply.
  • Enemy AI & Environmental Effects: Red-shirt defenders take cover behind sandbags, flank across destroyed buildings, bleed onto ground tiles, and drop tactical gear upon defeat.
  • Automatic Return to Real-Time: Once the final defender fell and consecutive no-sight turns elapsed (CheckForEndOfCombatMode), the engine cleanly triggered the post-combat automatic first-aid prompt, updated the Laptop History Log, and exited combat back to real-time controls.

A9: Omerta cleared and returning cleanly to real-time with automatic first-aid prompt

Sector A9: Omerta cleared — EXIT COMBAT MODE and HISTORY LOG UPDATED. confirmed with the post-battle first-aid dialog rendered cleanly over the tactical map.

2. Inventory, Quest Item Handoff & Multi-Sector NPC Escort (A9 -> A10)

With A9: Omerta secure, we tested single-merc inventory interaction, civilian discovery behind closed interior doors, and cross-sector scripting:

Ghost holding Enrico's Letter indoors after locating Fatima in A9: Omerta

Single-merc inventory panel open inside A9: Omerta — paperdoll stats, armor coverage, magazine slots, and item cursor interaction worked as expected.

  • Indoors Visibility & Door Controls: Opening the closed central house immediately peeled the roof and revealed Fatima and Pacos inside.
  • Enrico's Letter & Escort: Handing Enrico's Letter to Fatima triggered her quest dialogue and scripted eastward escort out of A9 into A10: Omerta Rebel Hideout.
  • Rebel Surface Greeting: Entering A10 found Dimitri guarding the ruined rebel house, waiting for Fatima to arrive at the doorway before triggering the basement sequence.

3. Underground Rebel Hideout (A10-1), Dialogue & Recruiting Ira

Once Fatima reached Dimitri at the A10 rebel house doorway, NPC_ACTION_GOTO_HIDEOUT smoothly executed the fade-out transition into underground sector A10-1: Rebel Hideout:

  • Miguel Cordona Briefing: Fatima automatically handed Enrico's Letter to Miguel, unlocking his briefing about Father Walker's Drassen Food Route quest and switching the hideout rebels to friendly status.
  • Ira Joins Squad 1: Talking to Ira Smythe and selecting Recruit added her seamlessly to slot 5 of Squad 1 with full portrait, AP/HP bars, initial loadout, and voice/dialogue feedback.
  • Dimitri Status: Talking to Dimitri confirms his standard JA2 1.13 / Arulco Revisited progression (EARLY_REBELS_RECRUITMENT = 3) — after guiding the squad to the hideout, full Dimitri recruitment unlocks once Drassen's Food Route / town liberation milestone progresses.
  • Clean Return to Surface: Ascending the hideout exit brought the expanded five-merc squad (Ghost, Grunty, Igor, Fox, and Ira) cleanly back into A10 at Day 1, 09:12 ready for strategic operations.

Five-merc squad with newly recruited Ira back on the A10 surface

Back on the surface in A10: Omerta — five active portraits in Squad 1 with Ira recruited and ready for our push toward militia training.

4. Live Bug Caught & Fixed Mid-Campaign: Wayland Pointer Lock (sdl_win.cpp)

Playing live on the MSI Claw under Wayland (SDL 2.32.10) exposed a subtle platform bug we hadn't hit in short automated boot checks:

  • The Symptom: Double-clicking on Fox to enter ADJUST_STANCE_MODE permanently froze cursor movement across tactical and menu screens.
  • Root Cause: Handle UI.cpp calls SimulateMouseMovement() -> SetCursorPos() -> SDL_WarpMouseInWindow() (src/platform/sdl_win.cpp). On SDL2 Wayland, the default hint SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP=1 locks the pointer via zwp_pointer_constraints_v1 when warped, suppressing subsequent wl_pointer::motion events from absolute pointer devices.
  • The Fix: In src/platform/sdl_win.cpp:
  1. Set SDL_SetHint("SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP", "0") before SDL_Init in CreateWindowExA().
  2. In SetCursorPos(int x, int y), when SDL_GetCurrentVideoDriver() is "wayland", synthesize a logical SDL_MOUSEMOTION event at (x, y) instead of calling SDL_WarpMouseInWindow().
  • Verification: Added unit coverage (cursor_warp_test, 24/24 unit tests passing), rebuilt the static release binary, hot-deployed directly to the MSI Claw mid-campaign, loaded QuickSave.sav, and verified stance selection and options menus left the pointer completely free.

What's Next (Part 2)

From this live $20,894 five-merc save, our playthrough is continuing directly onto the Strategic Map to test town loyalty, assign merc trainers to recruit the campaign's first Town Militia squad, fast-forward strategic time, and verify spawned militia units in tactical view!


Need setup steps for your own legal GOG or CD installation? See the Jagged Alliance 2 Port Overview.