Skip to content

Releases

Zombie Infection (PS Vita) — Release v1.1

Choose a tag to compare

@MetalSyntax MetalSyntax released this 29 Oct 14:10

Zombie Infection (PS Vita) — Release v1.1

Release v1.1 of the native iOS Mach-O loader port of Zombie Infection (Gameloft) for the PlayStation Vita. This release introduces hardware-accelerated H.264 cutscene video playback, eliminates visual glitches in in-engine cutscenes, overhauls the physical control mappings with dedicated buttons for holstering, jumping, healing and reloading, fixes edge-case crashes, activates triple buffering and shader patcher caching, and provides cross-platform compilation tooling.


📦 Release Package Contents

  1. zombieinfection.vpk (v01.10): PlayStation Vita application package containing the updated Mach-O loader, hardware video decoder integration, optimized vitaGL renderer, and complete physical input handling.
  2. rebase.bin: Binary relocation table (61,828 absolute 32-bit memory pointers) for the iOS ARM executable of Zombie Infection 1.0.0.

🚀 Key Improvements in v1.1

🎬 Hardware H.264 & AAC Video Player Subsystem

  • Hardware-accelerated cutscenes: Implemented a complete MP4/ISO-BMFF demuxer paired with the PS Vita hardware video decoder (SceVideodec / sceAvcdec), rendering directly into vitaGL CDRAM memory textures with 16:9 letterboxing.
  • High-fidelity audio decoding: Software AAC-LC decoding powered by FFmpeg (libavcodec, swresample, libavutil) streaming on a dedicated thread via SceAudioOut.
  • Integrated playback: Cutscenes (cinematic_02_lab.m4v, cinematic_03_fin.m4v) trigger seamlessly via MPMoviePlayerController and can be skipped at any time by pressing Cross (✖), Circle (●), or Start.
  • Bundle path probe: Automatic detection of video file extensions (.m4v, .mp4) when queries omit extensions.
  • Debug shortcut: Press L + R + Triangle during gameplay to trigger video playback verification.

🎨 Visual Glitch Elimination & vitaGL Optimizations

  • No speedhack regressions: Cleaned vitaGL compilation flags, removing DRAW_SPEEDHACK and SAMPLERS_SPEEDHACK which were causing polygon tearing, flickering and distorted textures during in-engine cutscenes.
  • Shader Patcher Cache (patched_vprog_cache): Added a 64-entry cache in ffp.c for GXM patched vertex programs, reusing compiled shaders in 0 ms and avoiding hundreds of redundant sceGxmShaderPatcherCreateVertexProgram calls per frame.
  • Compiler Null Safety: Guarded shark_compile_shader_extended against failed allocations, preventing memcpy(NULL) crashes and providing automatic fallback to the last valid shader in cache.
  • Expanded Matrix Stack: Raised GENERIC_STACK_DEPTH from 2 to 16 in vendor/vitaGL/source/shared.h, preventing matrix stack overflow in complex camera/lighting transformations.
  • Triple Buffering: Enabled vglUseTripleBuffering(GL_TRUE) to eliminate VBlank waiting stalls.
  • Memory thresholds: Reallocated memory pools with vglInitWithCustomThreshold reserving 32 MB RAM heap, 16 MB CDRAM, and 8 MB PHYCONT for smooth level transitions and video buffers.

🎮 Dedicated Controls Overhaul

  • D-Pad Down: Dedicated to Holster / unDraw weapon ({0x2c, 0x3c} → PlayerTest::unDrawWeapon / Back).
  • Triangle (▲): Dedicated to Jump (0x64).
  • D-Pad Left: Dedicated to Heal / Use Medikit (0x68).
  • D-Pad Right: Dedicated to Reload weapon (0x98 / MultiElement::ReloadBullets).
  • L Trigger: Contextual Dodge (0x60), with automatic fallback to Reload (0x98) when dodge is inactive.
  • Start / Select: Clean pause menu and game resume (CLevel::SetResume).
  • Select + D-Pad ↑/↓: Real-time right-stick camera sensitivity adjustment (levels 1–10, saved to disk).
  • L + R (held): Virtual on-screen touch controls hidden at 0% opacity by default for an unobstructed screen; hold L+R to toggle visible.

🛡️ Crash Fixes & Disk I/O Optimization

  • PlayerTest::isCarryingVaccineTank hook: Intercepted with macho_hook to add NULL pointer validation, fixing the crash when toggling pause/resume via Start/Select in menus or opening scenes.
  • Disk I/O latency resolved: Silenced thousands of missing texture probes (.tga, .bmp, .gif) in d_fopen and disabled fflush on DEBUG lines, eliminating severe stuttering and micro-freezes caused by synchronous memory card writes.

⚙️ Multiplatform Build System

  • New build.sh script with automatic detection of VITASDK on macOS (/Users/..., $HOME/vitasdk) and Linux (/home/...).
  • Portable multi-core parallel builds (sysctl -n hw.ncpu / nproc).
  • Clean handling of debug and release build targets.

🎮 Complete Controls Reference

PS Vita Input Action Behavior / Engine Mapping
Front Touchscreen Touch UI Full touchscreen input for menus and virtual buttons
Left Analog Stick Movement Drives game's HUD virtual analog stick (0x18)
Right Analog Stick Camera look Continuous touch-drag emulation with custom response curve
Cross (✖) / R1 Attack / Shoot Primary attack (0x74, 0x1c, 0x84, 0x80)
Square (◼) Secondary attack Melee / secondary attack (0x20)
Circle (●) Contextual action Interact, pick up items, open doors (0x24, 0x28, 0x30, 0x34)
Triangle (▲) Jump Jump over obstacles (0x64)
D-Pad Down (↓) Holster weapon Guardar arma ({0x2c, 0x3c} → PlayerTest::unDrawWeapon)
D-Pad Left (←) Heal (Medikit) Usar botiquín de primeros auxilios (0x68)
D-Pad Right (→) Reload weapon Recargar munición (0x98)
D-Pad Up (↑) Quick Turn Giro rápido de 180° (0x78)
L Trigger Dodge / Reload Esquivar si hay esquive activo (0x60), o recargar arma (0x98)
Start / Select Pause / Resume Menú de pausa y reanudar partida
Select + D-Pad ↑/↓ Camera sensitivity Ajuste de sensibilidad 1–10 (guardado en camera_sens.txt)
L + R (held) Toggle HUD visibility Alternar visibilidad de botones táctiles en pantalla (0% / 100%)

🚀 Player Installation Guide

  1. PS Vita Requirements:

    • Custom Firmware (Enso 3.60 / 3.65 recommended).
    • kubridge.skprx installed under *KERNEL in ur0:tai/config.txt.
    • libshacccg.suprx present in ur0:data/ (obtainable via ShaRKBR33D).
  2. Game Assets Setup:

    • Extract Payload/ZombieInfection.app/ from your decrypted iOS 1.0.0 .ipa.
    • Copy it to ux0:data/zombieinfection/ZombieInfection.app/.
    • Copy rebase.bin to ux0:data/zombieinfection/rebase.bin.
    • Required directory layout:
      ux0:data/zombieinfection/
      ├── ZombieInfection.app/
      │   ├── ZombieInfection (original iOS binary)
      │   ├── data.pack, audio_*.pack, gll_font.pak, ...
      │   └── *.png, *.plist, cinematic_*.m4v, ...
      ├── rebase.bin
      ├── saves/ (created automatically on first launch)
      └── logs/  (created automatically, one log per run)
      
  3. Install the VPK: Transfer and install zombieinfection.vpk (v01.10) using VitaShell.


📋 Changelog History

v1.1.0 (2026-10-29)

  • Cutscene Video Player: Added hardware H.264 video decoding (SceVideodec/sceAvcdec) and software AAC-LC decoding (libavcodec). Cutscenes .m4v play smoothly with audio and skip support.
  • Rendering & Cutscene Artifact Fix: Removed DRAW_SPEEDHACK and SAMPLERS_SPEEDHACK, increased GENERIC_STACK_DEPTH to 16, and implemented 64-entry patched_vprog_cache in vitaGL.
  • Controls Refinement: Reassigned D-Pad Down to weapon holstering, Triangle to Jump, D-Pad Left to Medikit heal, D-Pad Right to Reload, and L Trigger to contextual Dodge/Reload.
  • Crash Prevention: Hooked PlayerTest::isCarryingVaccineTank with null safety.
  • Disk I/O Optimization: Removed excessive logging in d_fopen and disabled fflush on debug lines.
  • Build System: Added multiplatform build.sh supporting macOS and Linux. Bumped SFO version to 01.10.

v1.0.0-beta (2026-10-19)

  • Initial native iOS Mach-O loader port reaching gameplay.
  • 61,828 rebase words applied at 0x98000000, 7,358 import slots resolved, 366 global constructors executed.
  • GLES 1.x over vitaGL with SOFTFP_ABI=1, 960×544 presentation.
  • OpenAL audio via openal-soft, FreeType font rendering, and analog stick camera look emulation.

Zombie Infection (PS Vita) — Beta Release v1.0

Choose a tag to compare

@MetalSyntax MetalSyntax released this 20 Oct 04:07

Zombie Infection (PS Vita) — Beta Release v1.0

First public beta of the native iOS Mach-O loader port of Zombie Infection (Gameloft) for the PlayStation Vita. The game boots, initializes its Irrlicht engine, reaches the in-engine intro and the tutorial/gameplay on real hardware.


📦 Release Package Contents

  1. zombieinfection.vpk: PS Vita application package containing the native Mach-O loader, hardware-accelerated OpenGL ES via vitaGL, FreeType text rendering, and physical/touch controls integration.
  2. rebase.bin: Binary relocation table (61,828 absolute 32-bit memory pointers) generated specifically for the iOS ARM executable of Zombie Infection (version 1.0.0).

🛠️ What is rebase.bin?

The iOS executable is a non-PIE (MH_EXECUTE) image hard-linked to a low virtual base address, and App Store builds ship with nlocrel = 0 (no local relocation records). The loader maps the image at MACHO_SLIDE = 0x98000000, so every absolute pointer in the data segments — plus the -mdynamic-no-pic literal pools and switch tables baked into __text — must be shifted by that constant.

rebase.bin is the compact lookup table telling the loader exactly which words to slide at startup. It is generated with the included tools/macho_prep.py:

python3 -I tools/macho_prep.py ux0_data/zombieinfection/ZombieInfection.app/ZombieInfection \
    ux0_data/zombieinfection/rebase.bin --report docs/macho_report.txt

(or use the automated tools/stage_data.sh pipeline).

File layout:

  • 0x00 — magic 'RBS1'
  • 0x04 — word count (61,828)
  • 0x08 — array of 32-bit vmaddr values to relocate

🚀 Player Installation Guide

  1. PS Vita Requirements:

    • Custom Firmware (Enso 3.60 / 3.65 recommended).
    • kubridge.skprx active under *KERNEL in ur0:tai/config.txt.
    • libshacccg.suprx present in ur0:data/ (obtainable via ShaRKBR33D).
  2. Game Assets Setup:

    • Extract Payload/ZombieInfection.app/ from your decrypted iOS 1.0.0 .ipa.
    • Copy it to ux0:data/zombieinfection/ZombieInfection.app/.
    • Copy rebase.bin to ux0:data/zombieinfection/rebase.bin.
    • Required layout:
      ux0:data/zombieinfection/
      ├── ZombieInfection.app/
      │   ├── ZombieInfection (original iOS binary)
      │   ├── data.pack, audio_*.pack, gll_font.pak, ...
      │   └── *.png, *.plist, ...
      ├── rebase.bin
      ├── saves/ (created automatically on first launch)
      └── logs/  (created automatically, one log per run)
      
  3. Install the VPK: transfer and install zombieinfection.vpk using VitaShell.


🎮 Controls

PS Vita Input Action Status
Front Touchscreen Full touch interface ✅ Working
Left Stick Movement (virtual analog stick) ✅ Working
Right Stick Camera look (touch-drag emulation) ✅ Working
Cross (✖) / R Attack ✅ Working
Square (◼) Secondary attack ✅ Working
Circle (●) Use / contextual action ✅ Working
Triangle (▲) Jump ✅ Working
D-Pad Up Rotate ✅ Working
D-Pad Down Holster / draw weapon ✅ Working
L Trigger Dodge ✅ Working
Start Back / Pause ✅ Working
L + R (held) Show / hide the on-screen touch controls ✅ Working
Select + D-Pad ↑/↓ Camera sensitivity (1–10, saved) ✅ Working

📋 Changelog (v1.0-beta)

  • Loader: fixed-base mapping via kuKernelAllocMemBlock; correct rebase of -mdynamic-no-pic literal pools and switch tables in __text (61,828 words); 366 global constructors run; 7,358 import slots resolved.
  • Runtime: real Objective-C 2.0 dispatch into the game's classes plus host Foundation/UIKit; emulated MainWindow.nib, run loop, NSTimer and EAGLContext/CAEAGLLayer.
  • I/O: emulated working directory (chdir/getcwd) so Irrlicht resolves relative asset paths from the bundle; Documents/ redirected to saves/.
  • Graphics: GLES 1.x → vitaGL with SOFTFP_ABI=1; full 960×544 presentation without stretching (3D gains FOV, HUD centered); per-array vertex/UV/color conversion and a corrected framebuffer depth-buffer re-attach to fix cutscene artifacts; native CgBI PNG decoding.
  • Audio: OpenAL mapped to openal-soft (alBufferDataStatic emulated); AudioSession stubbed.
  • Input: physical buttons and sticks drive the game's runtime HUD controls; right-stick camera model with dead zone, curve and selectable sensitivity.
  • LiveArea: generated from the game's own icon and splash screen.

⚠️ Known Issues (beta)

  • .m4v cutscenes are skipped.
  • Occasional distorted geometry/textures during in-engine cutscenes (under investigation).
  • Online/store and anti-piracy checks are bypassed by design.