
 THIS PACKAGE COMES WITH ABSOLUTELY NO WARRANTY OF ANY KIND, EITHER EXPRESS OR
 IMPLIED, STATUTORY OR OTHERWISE. THE ENTIRE RISK AS TO USE, RESULTS AND
 PERFORMANCE OF THE PACKAGE IS ASSUMED BY YOU AND IF THE PACKAGE SHOULD PROVE
 TO BE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING,
 REPAIR OR OTHER REMEDIATION.
 UNDER NO CIRCUMSTANCES, CAN THE AUTHOR BE HELD RESPONSIBLE FOR ANY DAMAGE
 CAUSED IN ANY USUAL, SPECIAL, OR ACCIDENTAL WAY, ALSO IF THE OWNER OR A THIRD
 PARTY HAS BEEN POINTED AT SUCH POSSIBILITIES OF DAMAGE.


 This install applies to "Space Hulk" (c) 1993 Electronic Arts.

 REQUIREMENTS:
 - Slave requires WHDLoad V17+.
 - Game requires 0.5Mb chip mem and 1.0Mb other mem 
   (+2.0Mb other memory for preload option)

 
 If you have problems with this installation please try and get a newer
 version of this package from the WHDLoad WWW-Page. If that doesn't help try
 some Tooltypes like NOCACHE, NOAUTOVEC, NOVBRMOVE, NOMMU, PAL or NTSC. If
 that also fails, please inform the author via the Bug-Report-Form which
 can be accessed on the WHDLoad WWW-Page or create a mantis issue directly
 at http://mantis.whdload.de 
 
 
 SUPPORTED VERSIONS
 ------------------
 
 - PAL Original Release v1.0
 - Hitsquad Budget Release v1.0
 - All 'Scene' versions

 Version 2.6 (27.11.2026) done by Ataribaby - audio and graphics fixes:

 Based on JOTD's 2.0 slave. This is a modification, not an official
 WHDLoad release. All fixes from the 2.1-2.5 builds are included.

 - Music: corrected Paula DMA restart delays and prevented the sound-effect
   interrupt handler from interfering with music playback.
 - Sound effects/voices: corrected the pending-channel mask so a new request
   does not discard pending sounds on other channels.
 - Terminators: corrected the rear walking leg offsets.
 - Removed eight stray white pixels around the feet, including their
   mirrored appearances, by cleaning the loaded graphics in memory.
 - Stabilized rear walking at small scales. Five rear leg frames now use
   equally sized, aligned canvases, with mirrors prepared before scaling.
   This prevents the remaining crop/mirror rounding jumps in distant views.
 - New in 2.6: corrected the two-pixel left shift of mirrored front legs
   and stabilized all five front poses with aligned 56 x 33 canvases.
 - New in 2.6: stabilized both side views with aligned 48 x 44 canvases.
   The original cropped images also caused jumps at small scales, most
   visibly on the mirrored side. The intended vertical walking bob stays.
 - Torso, arms, weapons, Genestealer rendering and the shared bitmap scaler
   are unchanged. The rear-view fix from 2.5 is retained.
 - Original game data and saved games are not modified by these fixes.

 The 15 leg canvases take 23,220 bytes in the slave and are prepared when
 graphics are loaded, not on every frame. No extra Chip RAM buffer is used.
 The slave remains 68000-compatible; declared game memory sizes are unchanged.

 Existing installation: replace SpaceHulk.Slave with version 2.6.
 No graphics files, saved games or tooltypes need to be replaced.

 Verified with the supplied 203088-byte hulk executable:
 SHA256 4e78f3c434bf8d27a38465a653069dd933f3d7b2247730a0e4a2586d30dd4f28

 Slave 2.6: 25300 bytes
 SHA256 89838e5ec213f985242c6341006a384c62bdb1cadf8aac4f31e53930b888f55f

 Validation included 25,580 original 68000 composite projections: all four
 views, five poses and 1,279 scales (2/256 through 1280/256). Cache pixels,
 masks, registers and write boundaries were checked at three addresses.
 Torso/arm/weapon submissions were compared with the original renderer.
 Audio, pixel-cleanup and pose-builder regression tests also passed.

 Native PUAE validation used a fresh boot and Classic Suicide Mission:
 160 size/pose cases across all four views, compared with a control in the
 same game state. All 40 rear-view screenshots remain identical. Marker
 tests at eight sizes verify stable horizontal positioning on both sides.
 These tests force poses/scales at fixed positions using the game's own
 renderer. They are emulator tests, not physical A600/A1200 tests.

 The original release history and historical notes follow below.

 Version 2.0 (18.06.2022) done by JOTD:
 
 - rewritten from scratch, using my JST source
 - fixed to be able to use 32 bit fast memory / 512k chip
   (game should be much faster now)
 - quitkey on 68000
 - no longer needs kickstart emulation
 - savegame feature restored
 
 Version 1.0 (14.07.2003) done by Galahad:

 - Full Loading from HD (Real Files)
 - Access Fault removed
 - Enable cache for greater loading speed
 - Quit Option (F10 key)
 
 Thanks to Tony Aksnes and Peter Wraighworth for the images
 Thanks to Frank for the installer and icons
 

 
 EXTRA NOTES
 -----------
 
 This game didn't like 32bit fastram, hence why it hasn't been activated.  
 Nice enough game, that is a little speedier with caches enabled, but the way
 that the game is coded doesn't lend itself to huge ingame speed increases.

 
 
Kindest Regards, Galahad, Tony, Peter and Frank

 BUILDING VERSION 2.6 ON WINDOWS
 -------------------------------

 From the project root, run:

   build.bat

 Source and verification scripts are in src. The required vasm 1.9a binary
 is in src/tools; the required NDK/WHDLoad include files are in src/include.
 This ReadMe is maintained in src/package.
 Python 3 must be available as "python" on PATH. Standard verification uses
 the original files in SpaceHulk/data and needs no additional Python modules.

 The update package in output contains only SpaceHulk.Slave, this ReadMe
 and the matching source in source/SpaceHulkHD.s. The assembler listing is
 temporary and is removed after verification. The build does not overwrite
 the working game's slave automatically. Copy output/SpaceHulk.Slave into
 an existing installation when updating it.

 Optional CPU regression tests (requires the Python unicorn package):

   build.bat -Emulate

 Custom tool or data locations can be passed to build.bat:

   -Vasm <assembler.exe> -Include <include-folder>
   -GameDirectory <original-game-data> -OutputDirectory <destination>

END.
