Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   I'd like some help interpreting this binary file. (http://www.programmingforums.org/showthread.php?t=8115)

Sane Jan 25th, 2006 5:41 PM

I'd like some help interpreting this binary file.
 
http://jammersbase.ath.cx/download?filename=o2ma100.ojn

This is for a game I play. These files contain all the information for the individual songs you can play in the game.

I've done some work in the hex editor to figure out how to find certain general attributes of the song, but I have got nowhere trying to decode the actual notes.

If someone has the time to help me, please add me at drsane_@hotmail.com as I assume this will be an indepth process of comparing the desired result with the binary file. If the process is complicated enough, I will of course offer money to those who help.

All help is greatly appreciated.

By the way, this is not for anything illegal or abusive. I'm designing a program that will draw a chart of the notes in the song for people to download from my website for help. :)

DaWei Jan 25th, 2006 6:29 PM

If the file is playable music (it could be some other encoding scheme), you aren't going to be able to pick notes from binary values alone. After all, it could be a chord. If it's playable music you'll just need to do frequency analysis. I don't download unknown stuff, so I don't know what kind of file it is.

Sane Jan 25th, 2006 6:46 PM

No. Sorry if I gave the wrong impression.

Each song is broken up into three files
> Graphics
> Music
> Notes

This is the Notes file. It contains the keys you must hit while the music plays (this is a rhythm game, much like DDR or IIDX).

It should be fairly easy to extract which notes should be played, since the game must do it every time you play a song. And other people before me have made similar programs.

DaWei Jan 25th, 2006 8:35 PM

This is a quote I found through Google. I can't vouch for diddly squat.
Quote:

Originally Posted by Unlinked dot Net
Hell Fire 27-11-2004 05:53 PM
Er, try this software that can play ur .ojn file =)
http://www.angelfire.com/musicals/ha.../ojmplayer.rar
But u must have ur malaysia o2jam installed in ur computer =)

Once u downloaded, copy the 2 thingy in the zip file to ur o2jam folder
C:\Program Files\e-Games\O2Jam

Then open the OJM播放器v0.76b, then drag all the .OJN file into the playlist. You can also listen to the song, and you can also view the key note =)


Sane Jan 26th, 2006 12:37 AM

Yep, that's one of my references when I said someone's done this already.

But that is in a realtime output. I want to basically remake it as a LEGAL program (yes, that program is illegal for copyright infringement), and have it ouput as a still image.

Good find though, heh.

Arevos Jan 26th, 2006 2:46 AM

You could try playing songs with certain notes, and then seeing how the output changes. Beyond that, I couldn't hazard a guess.

Sane Jan 26th, 2006 7:26 AM

Yeah exactly Arevos.

"If someone has the time to help me, please add me at drsane_@hotmail.com as I assume this will be an indepth process of comparing the desired result with the binary file."

>_>;;

Arevos Jan 26th, 2006 7:28 AM

Missed that part :o

Sane Jan 26th, 2006 6:38 PM

Okay. I'm starting to get much more desperate. If I can't get it soon I think I might offer around $30 for someone's help.

andro Jan 26th, 2006 7:10 PM

Best I found out is that you can unpack it using a program called Dragon Unpacker, and you get 2 files. A .bmp with the song name or something on it, and a .669 file. You can open the .669 file with Modplug Tracker or something like that, anything that plays MOD files I guess. You can view a pattern using Modplug Tracker, but I have no idea what it means.

http://home.comcast.net/~chefninja/pattern.jpg


All times are GMT -5. The time now is 7:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC