Feb 18, 2006, 04:59 PM | |
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! ;) 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. |
Feb 19, 2006, 12:45 PM | |
Here's an example of the music player. It doesn't need any of the required JJ2 files, as the calls have been inserted before the file loads go about their business.
The music is (c) Necros. To change the music file, change 0xD1150 in the EXE to the music file's name. Remember, if it's J2b, do not include the .j2b extention. And remember to end the filename string with an 0x00.
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 19, 2006, 06:02 PM | |
O.o!
Yays! Now all we need is to make it into an application!
__________________
![]() nonne amicus certus in re incerta cernitur? /)_/)
(^.^) ((")(") |
Feb 19, 2006, 06:12 PM | ||
Quote:
1) make music load as an argument 2) remove unneeded code 3) try to handle CPU usage as sanely as possible without causing program errors
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 20, 2006, 07:48 AM | |
This is useful in the job of parsing J2b's because it is (-) faster than using j2b2it, plus it converts the samples correctly.
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 20, 2006, 07:58 AM | |
I argee with Stijn, isn't it possible to convert the code so you can choose a song?
__________________
Earth Mantra, for all your ambient music needs. |
Feb 20, 2006, 08:10 AM | |
I'm pretty sure it is from the command prompt. but now I must go to classes =(
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 20, 2006, 08:31 AM | |
2 reasons not to use XMPlay:
XMPlay can't handle: -- fake pwm effect in chiptunes -- j2bs la la la |
Feb 20, 2006, 05:34 PM | |
Command prompt stuff added. A new version should be up once I test this stuff with my registry editor.
EDIT: It is done! However, the thing will hate you if you use quotes to load a module file. This will often happen with the shell's built-in file association. To fix this, you'll need to do some registry tweaking: Change something like: C:\games\jazz2\jj2mplay.exe "%1" To: C:\games\jazz2\jj2mplay.exe %1 That should fix issues. Version 2 of the player is up, with a j2b, at this lovely little rapidshare page. =) Hey hey hey! I'm fat albert!
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. Last edited by UNKNOWNFILE; Feb 20, 2006 at 06:05 PM. |
Feb 21, 2006, 01:08 AM | ||
Quote:
And tried fiddling around with the settings?
__________________
|
Feb 21, 2006, 08:01 AM | |
um haze, it's not really an effect, it looks more like this:
Code:
C-4 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 |
Feb 21, 2006, 12:37 PM | ||
Quote:
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 22, 2006, 08:30 AM | |
I disabled registry reads and the splash screen. I also disabled winsock from starting up. The last thing I have to do is to get an error screen that says, "Music started successfully from $esi" where $esi is the parameters used.
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
Feb 22, 2006, 02:08 PM | |
Newest version released. This time, I put it on J2o. Download or I shall summon Ninja to go kung-fu on your worthless behinds.
__________________
I'm sick and tired of this community. So goodbye. PS: Unreal > JJ2. |
![]() |
«
Previous Thread
|
Next Thread
»
Thread Tools | |
|
|
All times are GMT -8. The time now is 05:25 AM.
Jazz2Online © 1999-INFINITY (Site Credits). Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats. Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Original site design by Ovi Demetrian. DrJones is the puppet master. Eat your lima beans, Johnny.