Repository navigation
Releases
Zombie Infection (PS Vita) — Release v1.1
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
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.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 viaSceAudioOut. - Integrated playback: Cutscenes (
cinematic_02_lab.m4v,cinematic_03_fin.m4v) trigger seamlessly viaMPMoviePlayerControllerand 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_SPEEDHACKandSAMPLERS_SPEEDHACKwhich were causing polygon tearing, flickering and distorted textures during in-engine cutscenes. - Shader Patcher Cache (
patched_vprog_cache): Added a 64-entry cache inffp.cfor GXM patched vertex programs, reusing compiled shaders in 0 ms and avoiding hundreds of redundantsceGxmShaderPatcherCreateVertexProgramcalls per frame. - Compiler Null Safety: Guarded
shark_compile_shader_extendedagainst failed allocations, preventingmemcpy(NULL)crashes and providing automatic fallback to the last valid shader in cache. - Expanded Matrix Stack: Raised
GENERIC_STACK_DEPTHfrom 2 to 16 invendor/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
vglInitWithCustomThresholdreserving 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::isCarryingVaccineTankhook: Intercepted withmacho_hookto 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) ind_fopenand disabledfflushonDEBUGlines, eliminating severe stuttering and micro-freezes caused by synchronous memory card writes.
⚙️ Multiplatform Build System
- New
build.shscript with automatic detection ofVITASDKon macOS (/Users/...,$HOME/vitasdk) and Linux (/home/...). - Portable multi-core parallel builds (
sysctl -n hw.ncpu/nproc). - Clean handling of
debugandreleasebuild 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
-
PS Vita Requirements:
- Custom Firmware (Enso 3.60 / 3.65 recommended).
kubridge.skprxinstalled under*KERNELinur0:tai/config.txt.libshacccg.suprxpresent inur0:data/(obtainable via ShaRKBR33D).
-
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.bintoux0: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)
- Extract
-
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.m4vplay smoothly with audio and skip support. - Rendering & Cutscene Artifact Fix: Removed
DRAW_SPEEDHACKandSAMPLERS_SPEEDHACK, increasedGENERIC_STACK_DEPTHto 16, and implemented 64-entrypatched_vprog_cachein 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::isCarryingVaccineTankwith null safety. - Disk I/O Optimization: Removed excessive logging in
d_fopenand disabledfflushon debug lines. - Build System: Added multiplatform
build.shsupporting macOS and Linux. Bumped SFO version to01.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
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
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.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-bitvmaddrvalues to relocate
🚀 Player Installation Guide
-
PS Vita Requirements:
- Custom Firmware (Enso 3.60 / 3.65 recommended).
kubridge.skprxactive under*KERNELinur0:tai/config.txt.libshacccg.suprxpresent inur0:data/(obtainable via ShaRKBR33D).
-
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.bintoux0: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)
- Extract
-
Install the VPK: transfer and install
zombieinfection.vpkusing 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-picliteral 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,NSTimerandEAGLContext/CAEAGLLayer. - I/O: emulated working directory (
chdir/getcwd) so Irrlicht resolves relative asset paths from the bundle;Documents/redirected tosaves/. - 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 (
alBufferDataStaticemulated); 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)
.m4vcutscenes are skipped.- Occasional distorted geometry/textures during in-engine cutscenes (under investigation).
- Online/store and anti-piracy checks are bypassed by design.