Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 25th, 2006, 5:41 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 25th, 2006, 6:29 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 25th, 2006, 6:46 PM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 25th, 2006, 8:35 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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 =)
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 26th, 2006, 12:37 AM   #5
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 26th, 2006, 2:46 AM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
You could try playing songs with certain notes, and then seeing how the output changes. Beyond that, I couldn't hazard a guess.
Arevos is offline   Reply With Quote
Old Jan 26th, 2006, 7:26 AM   #7
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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."

>_>;;
Sane is offline   Reply With Quote
Old Jan 26th, 2006, 7:28 AM   #8
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Missed that part :o
Arevos is offline   Reply With Quote
Old Jan 26th, 2006, 6:38 PM   #9
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is offline   Reply With Quote
Old Jan 26th, 2006, 7:10 PM   #10
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 294
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
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.

andro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:20 AM.

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