JJ2 Music Player
For no reason whatsoever, I used my 1337 45m skillz and hacked JJ2 into just playing music on bootup.
Laugh as you may, it works. The access violation was purposefully inserted to prevent a huge CPU loop from eating up the system's resources.
Here is the ASM code to get the player working:
Insert this into 0048C681.
Code:
/*
Jazz Jackrabbit 2 Music Player
uses an actual copy of JJ2
*/
.text:0048C681 push offset 4D2950 ; song filename
.text:0048C686 call loc_465370
.text:0048C68B add esp, 4
.text:0048C68E call near ptr unk_4791A0
.text:0048C693 nop
.text:0048C694 retn ; Causes an access violation, but the music plays! ;)
You'll also need to patch the volume controller up. The offset it is in in Jazz2.exe is 0xA1CA0, but I can't remember the offset in memory. Patch 0xC39090 to this offset.
To load a file, you will need to set 0x4D2950 to whatever you want. If it is a J2B file, DO NOT INCLUDE THE EXTENSION.
J2B2IT, move over!
__________________
I'm sick and tired of this community. So goodbye.
PS: Unreal > JJ2.
|