Repository navigation
Badland 2 — PS Vita Port v1.0
Badland 2 — PS Vita Port v1.0
First official playable release of Badland 2 for the PlayStation Vita and PlayStation TV!
Changes since v1.0
- Touchscreen fixed: the game only tracks pointer ids 0–4, but the loader passed the Vita's ever-growing touch report id, so touches were dropped. Fingers are now mapped to free slots 0–4 with per-finger DOWN/UP events (multi-touch works).
- Touch input lag fixed: the input queue re-polled the hardware on every read, so a held finger generated MOVE events forever and the game's input loop never finished. Polling is now capped to once per ~8 ms.
- Audio fixed:
supportsLowLatency()returned true, making FMOD pick OpenSL ES, which the loader refuses (FMOD error 51). It now returns false, so FMOD uses the AudioTrack →SceAudioOutbridge. - FPS drops fixed: the logger called
sceIoSyncByFdon every line from the game thread (~9 ms each). INFO/DEBUG lines are now synced at most every 200 ms. - Save crash fixed: hooking the 4-byte
FacebookAndroid::getStateoverwrote the prologue of the adjacentJNI_getUserId, crashing on every save. The hook now targetsJNI_getLoginState. - Buttons: Start opens the pause menu; Circle is unmapped.
- Known issue: physical flap buttons (L / R / D-Pad / Stick / Cross) barely move the creature in gameplay; use the touchscreen.
Highlights & What's New in v1.0
In-Game Milestone & 60 FPS Performance
- Badland 2 runs natively at 960x544 resolution at 60 FPS.
- Full physics simulation, particle effects, lighting, and ambient world shaders fully rendered with custom vitaGL integration.
- Native persistent shader cache enabled (
HAVE_SHADER_CACHE=1) underux0:data/badland2/cache/, preventing stutter during level transitions.
Comprehensive Dual-Flap Controls
- Badland 2's signature two-finger / directional flapping is fully translated to PS Vita physical controls:
- L Trigger / D-Pad Left / Left Stick Left: Flap towards the left.
- R Trigger / D-Pad Right / Left Stick Right: Flap towards the right.
-
Cross (
$\times$ ) / Up: Dual-flap (ascend straight up). - Start: Pause game.
- Full native multi-touch touchscreen input with pointer tracking; touching the screen immediately takes priority.
Full Audio System Fixed (FMOD Studio → SceAudioOut)
- Resolved FMOD Error 51 (
FMOD_ERR_OUTPUT_INIT):- FMOD calls JNI
org.fmod.FMOD.getOutputSampleRate()andgetOutputBlockSize()to configure its output device. - Implemented these callbacks in
source/java.creturning44100Hz and512frames per buffer, andsupportsLowLatency()= false so FMOD uses its AudioTrack output, bridged toSceAudioOut. - All music tracks, ambient atmospheric sounds, and sound effects now play clearly.
- FMOD calls JNI
Stability & Crash Triage Patches
- Fixed Pause Crash (
badland2_013.log/0x985d0cc8):- When pausing,
b::StateGamePause::requestFacebookFriendsInfodereferenced a NULL global online manager pointer due to missing offline checks. - Root cause resolved: missing
JNI_IsNetConnectedandJNI_getLoginStatein FalsoJNI previously defaulted to1(true), falsely signaling active internet and Facebook login. - Hooked
b::IAP::isNetConnected()andIAPAndroid::IsNetConnected()to return0(offline). - Hooked
b::StateGamePause::requestFacebookFriendsInfo,requestChallengeRankInfo, andrequestRushFriendsInfoto safe no-ops. - Added complete
FacebookManagerJNI method bridges insource/java.c(JNI_getUserId,JNI_getUserTokenString,JNI_getLoginState, etc.).
- When pausing,
Installation Guide
- Install
badland2.vpkon your PS Vita using VitaShell. - Ensure you have
kubridge.skprx,fd_fix.skprx, andlibshacccg.suprxinstalled on your system. - Extract
libbadland2.so,libfmod.so, andlibfmodstudio.sofrom your Android.apk(lib/armeabi-v7a/). - Extract all asset folders from
assets/in the APK. - Copy everything to
ux0:data/badland2/:ux0:data/badland2/ ├── libbadland2.so ├── libfmod.so ├── libfmodstudio.so ├── audio/ ├── config/ ├── level/ ├── scene/ └── textures/ - Launch Badland 2 from LiveArea and enjoy!
Known Notes
- First boot will take a few extra seconds while the game compiles and caches its runtime shaders. Subsequent launches are much faster.
- Online leaderboards and cloud saves are unavailable due to server retirement.