Repository navigation
Releases
spacehulk_nx v0.1.5
v0.1.5 — smoother missions
- Hitches when animations start or end are gone: the game asked Unity to unload unused assets nearly twice a second, freezing ~90 ms each time; one a minute is let through now.
- Mono (the game's C# runtime) now runs from mono-opt/libmono.so: Unity's own Mono for this game, rebuilt from the same source with optimization. Garbage-collection pauses are about half as long.
- The graphics driver (Mesa) is built with a profile of the game: about 20% less render time per frame.
- The game's code runs in 2 MB memory pages (fewer TLB misses).
- Fixed: textures (weapons) drawn flat grey after a graphics-driver update.
Update: copy spacehulk_nx.nro and the mono-opt folder into sd:/switch/spacehulk_nx/. The first mission load after the update is longer (shaders are compiled again once).
spacehulk_nx v0.1.4
spacehulk_nx v0.1.4
- Undo is instant: the undo button now takes about 0.2 s instead of 2.4 s. After restoring the previous move, the game waited one frame for every unit of the mission while rebuilding the board, even for units already there.
- Finer lighting by default: 2 dynamic lights per pixel again. At the 30 fps default the frame rate holds. Settings written by v0.1.3 (
pixel_lights = 0) are moved back to 2; set it to0if you play atframe_rate = 60. - DLC campaigns (
[game] unlock_dlc_campaigns, off by default): unlocks the DLC campaigns the game build carries, for players who own them. - Intro movies: no crash when the display gives no frame buffer.
Install / update
Unzip to the root of your SD card and replace spacehulk_nx.nro. Your config.ini, APK, OBB and saves are kept.
spacehulk_nx v0.1.3
spacehulk_nx v0.1.3
A steady 30 fps, half the work
- 30 fps cap by default (
[display] frame_rate). A picture every other display refresh: the game holds a steady 30 fps in big missions instead of swinging between 40 and 60, and the CPU and GPU do half the work — less heat, longer battery. Space Hulk is turn-based; setframe_rate = 60inconfig.inifor the old behaviour. - Dynamic lights drawn per vertex by default (
[graphics] pixel_lights = 0). A mission has about 130 dynamic lights, and each one drawn per pixel draws what it touches again: at 2, the render thread (the bottleneck) made ~40% more draw calls. Setpixel_lights = 2for finer lighting at a lower frame rate.
Updating from v0.1.2
Replace spacehulk_nx.nro in sd:/switch/spacehulk_nx/. Your OBB and saves are kept. config.ini is updated on the first start: pixel_lights moves from the old default 2 to 0 (any other value you chose is kept), and frame_rate = 30 is added.
For tinkerers
[debug] perf_bench = truecycles the pixel lights 2/1/0 every 20 s in a mission and logs each one's frame rate and draw calls per frame.
You still need your own APK and OBB of Space Hulk for Android (versionCode 7, armeabi-v7a): no game files are included.
spacehulk_nx v0.1.2
spacehulk_nx v0.1.2
Smoother missions
- No more freeze at each marine move. Before every undoable action the game copies its whole state for the Undo button, and did it on the main thread: the picture froze for 300-500 ms (more on big maps). The copy is now made on a worker thread, and the game's serialization code is replaced by an equivalent one without its per-object reflection and exceptions: a copy takes ~45 ms instead of ~270 ms, and much less garbage means fewer garbage-collector pauses. Undo, saves and loads write and read the same data as before: existing saves keep working.
Fixes
- Out-of-memory crash when loading another mission. GPU buffers (textures, meshes) were mixed in the heap with the game's small allocations, which fragmented it until a texture found no room. They now get memory of their own. Several missions in a row load fine.
- Intro movie sound: the music no longer has hiss and echo. It is resampled properly from 44.1 to 48 kHz, and decoded apart from the pictures, so it is never late. (The NVIDIA logo movie has no sound: its audio track is silent.)
Updating from v0.1.1
Replace spacehulk_nx.nro in sd:/switch/spacehulk_nx/. Your OBB, saves and config.ini are kept (one new option is added: [performance] gpu_buffer_pool).
You still need your own APK and OBB of Space Hulk for Android (versionCode 7, armeabi-v7a): no game files are included.
spacehulk_nx v0.1.1
spacehulk_nx v0.1.1
Fixes
- Doors now open visibly. The missions were built with the door leaves merged into the static scenery, so doors opened in the game (line of sight included) but were still drawn shut, even doors open from the start of a mission. Each leaf is now drawn where its animation puts it.
- Crashes when restarting a mission. The port asked the Mono garbage collector for a large starting heap, which left too little memory after several mission reloads. The collector now uses its own default.
- Intro movies with
threaded_rendering = falsecould restart the console. The movies are now skipped in that mode, and made safer in the default (threaded) mode.
Faster first start
- The OBB optimization of the first start now runs on three cores: about 85 s instead of 160 s on the console.
Updating from v0.1.0
Replace spacehulk_nx.nro in sd:/switch/spacehulk_nx/. Your OBB, already optimized, is kept: nothing is converted again. Your saves and config.ini are kept too.
You still need your own APK and OBB of Space Hulk for Android (versionCode 7, armeabi-v7a): no game files are included.
spacehulk_nx v0.1.0
spacehulk_nx, an unofficial Nintendo Switch port of the Android version of Space Hulk (Hoplite Research), running the game's own Unity 5.3 engine on the android32 runtime.
No game files are included: you need your own copy of the game (Android, com.hoplite.spacehulk, versionCode 7, armeabi-v7a): its APK and its OBB main.7.com.hoplite.spacehulk.obb.
What works
- The whole game with the controller: menus, campaign, missions, saves
- 720p handheld, 900p docked, about 50-60 fps in missions
- Intro movies with sound, music and sound effects at 48 kHz
- Missions load in about 15 seconds
Installing
- Extract the zip to the root of your SD card.
- Put your APK in
sd:/switch/spacehulk_nx/(any name). - Put your OBB in
sd:/switch/spacehulk_nx/obb/. - In sphaira: Homebrew › spacehulk_nx › Install Forwarder, then start the game from its new HOME menu icon.
Requires Atmosphère and sphaira.
The first start takes about 3 minutes: the game's libraries are unpacked, then the OBB is optimized for the Switch once (progress bar from 0 to 100%; do not close the game while it runs). It needs about 1 GB free on the SD card while it runs, and the optimized OBB (about 0.9 GB) then replaces the original one: keep a copy of your original if you want it. Later starts go straight to the game.
Controls
| Switch | Game |
|---|---|
| A / B | Select / Back, undo |
| X / Y | Square / Triangle |
| L / R | Previous / next squad member |
| ZL / ZR | Rotate the camera |
| + | Menu |
| − | Strategic view |
Known limitations
- Textures are drawn at half resolution (the game was made for a 3 GB device; a 32-bit Switch program has 1 GB)
- Online features (Google Play Games, online multiplayer) are not available
Settings are in sd:/switch/spacehulk_nx/config.ini. If something goes wrong, please attach debug.log and crash.log from that folder to your report, and never share game files.
See the README for details and building instructions.
Credits: aks796 (android32 runtime, libnx32, mesa32, ffmpeg32, dcr_sea_nx), TheOfficialFloW and fgsfds (.so loader), xerpi (vita2hos), the switchbrew authors, Mesa, FFmpeg, miniz.
Space Hulk is © Hoplite Research / Full Control. Warhammer 40,000 and Space Hulk are trademarks of Games Workshop. This project is not affiliated with them.