![]() |
JJ2 Music Player
For no reason whatsoever, I used my 1337 45m skillz and hacked JJ2 into just playing music on bootup.
[img]http://img462.imageshack.us/img462/1159/jj2mplay0xh.jpg[/img] 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:
/*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! :) |
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. |
O.o!
Yays! Now all we need is to make it into an application! |
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 |
Or just use xmplay.
|
This is useful in the job of parsing J2b's because it is (-) faster than using j2b2it, plus it converts the samples correctly.
|
I argee with Stijn, isn't it possible to convert the code so you can choose a song?
|
I'm pretty sure it is from the command prompt. but now I must go to classes =(
|
2 reasons not to use XMPlay:
XMPlay can't handle: -- fake pwm effect in chiptunes -- j2bs la la la |
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! |
Quote:
And tried fiddling around with the settings? |
um haze, it's not really an effect, it looks more like this:
Code:
C-4 1 |
The main advantage of J2B2IT is that .it files can be read and edited in a tracker, such as Modplug Tracker. Therefore, if you want to make a remix of a Jazz 2 song or if you need a melody, you don't have to copy it by ear.
|
Quote:
|
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.
|
Newest version released. This time, I put it on J2o. Download or I shall summon Ninja to go kung-fu on your worthless behinds.
|
| All times are GMT -8. The time now is 09:14 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online