Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 9
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: New utilities: bor2wav and improved borplay  (Read 6886 times)

0 Members and 1 Guest are viewing this topic.

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
New utilities: bor2wav and improved borplay
« on: November 09, 2009, 09:06:30 pm »
I've written two utilities for BOR music files.

Bor2wav is the reverse of Wav2bor 1.1: it converts any mono or stereo BOR music file losslessly to an equivalent WAV file.

Borplay is a utility whose interface mimics that of the "borplay" utility available in the Downloads section. My borplay, however, can correctly decode stereo ADPCM, whereas the one in the downloads section assumes that everything is mono.

My borplay is written completely from scratch and is not derived from anything else on this site.

Questions, comments, and other feedback would be appreciated.

MAJOR EDIT:
Now attached is a completely different version of borplay.  Specifically, this version is based on the borplay utility available in the LavaLit downloads section, originally written by Luigi Auriemma.  I highly recommend using the borplay version in "borplay.zip" over the one in "bor2wav_borplay.zip".
« Last Edit: November 12, 2009, 09:11:55 pm by Plombo »

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #1 on: November 12, 2009, 09:12:44 pm »
Edited the above post with a VASTLY improved version of borplay based on the original from the Downloads section.

Please download and give feedback.  I would like some evidence that someone actually notices my work.

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: New utilities: bor2wav and improved borplay
« Reply #2 on: November 12, 2009, 10:06:04 pm »
Well I haven't downloaded them yet, but I do see great use in bor2wav. There's alot of old bor files I made that I'd like to edit (cut out fade parts, increase volume) and it'd be great if I didn't have to redownload the original songs etc.

Offline wiequadrat

  • Jr. Member
  • **
  • Posts: 90
Re: New utilities: bor2wav and improved borplay
« Reply #3 on: November 20, 2009, 11:30:12 am »
just download and tested it.

the borplay.zip = the borplay looks good. it can play bor files and bor that inside the PAK.

the bor2wav_borplay.zip
= borplay can only play the bor files..... when i play the bor inside PAK. it can't and there's an error.... see attachment. (i use the same PAK that i use before)
= bor2wav = OK it can convert the BOR into WAV.... but i dunno about stereo thingy.....

as usual.... have y ever though to make it as a windows based app rather than dos application?
« Last Edit: November 20, 2009, 11:31:49 am by wiequadrat »
--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #4 on: November 20, 2009, 04:53:45 pm »
the bor2wav_borplay.zip
= borplay can only play the bor files..... when i play the bor inside PAK. it can't and there's an error.... see attachment. (i use the same PAK that i use before)

Have you tried using data/music/swd_ab.bor (or wherever it is in the data folder) instead of just swd_ab.bor for the last parameter?

But thanks for pointing out that interface discrepancy; I missed it when I was trying to imitate the borplay interface.
« Last Edit: November 20, 2009, 05:28:45 pm by Plombo »

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #5 on: November 20, 2009, 07:54:41 pm »
Okay, the above issue is now fixed.  The new versions of bor2wav and the inferior version of borplay are attached to this post.  When playing/converting a BOR music file inside of a PAK file, both programs now  accept just the name of the music file, e.g., remix.bor.

The borplay version in borplay.zip in my first post should still be used instead of the borplay in this version; it's only included here for consistency with the original.

Offline wiequadrat

  • Jr. Member
  • **
  • Posts: 90
Re: New utilities: bor2wav and improved borplay
« Reply #6 on: November 20, 2009, 11:52:05 pm »
okay then

the borplay in 1st version of bor2wav_borplay.zip = can play the bor inside the pak if i use full path (borplay new.pak data/sounds/swd_ab.bor)

the borplay in 2nd version of bor2wav_borplay_0.2 = can play the bor inside the pak whether i use full path or not

thanks for the fix

----------------------------

about the borplay in borplay.zip

1. i accidentally press enter when i type "borplay new.pak" and it automatically play all the BOR in data/music ... at first i freak out because i though it will play all bor files inside the PAK without possibilities to cancel the process (dos app will run to finish no matter what). then i frantically press Escape and it stop... so glad that u capture the key press...and also i just realize that it only play everthing in data/music only.

i just think that the message "Press Escape to stop playing next files" should be included somewhere

2. see below attachment. i deliberately type the wrong folder. it show those message and of course not playing anything. i thinks there should be an error message saying "Cannot find the files" or something like that.

3. can i request for command to show all the bor inside the pak. coz when i got new pak files then i don't know the bor filename inside the pak and i will paxplode it to find out. then the borplay feature to play bor inside the pak will be useless since i already paxplode...u know what i mean ?  :-[

4. another request if no 3 is okay. i got this idea when i accidentally press enter in no 1. can u add command to play all bor inside the specific folder. such as "borplay data/sounds/sword/" then it will play all bor inside the "data/sounds/sword/*.bor"

i think that's all folks...  ;D
----------------------------

just wandering the readme in bor2wav_borplay_0.2.zip
Spoiler
THE BORPLAY VERSION IN THIS DISTRIBUTION IS OBSOLETE. Use my new version
based on Luigi Auriemma's borplay instead; you can find it at LavaLit.com. The
new version has all of the features of the one in this version, is much faster,
is less prone to bugs, and displays much more useful messages.

and
Spoiler
The borplay version in borplay.zip in my first post should still be used instead of the borplay in this version; it's only included here for consistency with the original.

if your borplay in borplay.zip is better then the other borplay then i suggest to combine the "better borplay" and "better bor2wav" in 1 package to avoid confusion which borplay should be use. and remove the old one... or at least separate it... *sigh* and you already done a good job in fixing the bug for the old borplay.....
 :teary_eyed:
--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #7 on: November 21, 2009, 01:39:23 pm »
I've incorporated all of those suggestions.  The new file is attached. It contains borplay (the new one), bor2wav, the old borplay (renamed to old_borplay to avoid confusion), and listmusic (your third request).
« Last Edit: November 27, 2009, 12:40:07 pm by Plombo »

Offline wiequadrat

  • Jr. Member
  • **
  • Posts: 90
Re: New utilities: bor2wav and improved borplay
« Reply #8 on: November 21, 2009, 02:10:07 pm »
yes just confirmed that all the function works. many thanks for the efforts and reply.
 :laughing:

humm i just check the GA.PAK (golden axe) and it has some bor files that have ~... but the mod it self work normally.... and of course borplay can play it using tilde. i guess the problem is in the mod.
--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #9 on: November 21, 2009, 11:41:03 pm »
humm i just check the GA.PAK (golden axe) and it has some bor files that have ~... but the mod it self work normally.... and of course borplay can play it using tilde. i guess the problem is in the mod.

Yeah, I did a bit of investigation (see the bottom half of this post by utunnels) and found that utunnels just decided to put a ~ character in some of his filenames; the character wasn't put there by packer like it is in most cases. That's why the music works in OpenBOR.
« Last Edit: November 22, 2009, 02:07:49 pm by Plombo »

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #10 on: November 22, 2009, 08:10:57 pm »
Borplay is now in the LavaLit Downloads section!

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: New utilities: bor2wav and improved borplay
« Reply #11 on: November 25, 2009, 03:11:56 pm »
??? So uh, help me out here. How exactly do I use bor2wav?

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #12 on: November 25, 2009, 08:15:45 pm »
??? So uh, help me out here. How exactly do I use bor2wav?
It's a command line utility.

The basic usage goes like this:
Code: [Select]
bor2wav <input-file.bor> <output-file.wav>
You can put that into a batch file if you don't want to use a command line window, or if you want to convert a bunch of bor files at once.

Offline NickyP

  • Hero Member
  • *****
  • Posts: 2772
  • You know, that guy with the pet drum?
    • Personal OpenBOR site.
Re: New utilities: bor2wav and improved borplay
« Reply #13 on: November 25, 2009, 08:53:11 pm »
Yeah, it worked. Attached is the .bat file I made for it. You guys can use it.

Put your bor file in the same folder as bor2wav and conmusic. Rename the bor file to "song" and run conmusic; poof, it's a wave now.

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: New utilities: bor2wav and improved borplay
« Reply #14 on: November 27, 2009, 12:27:55 pm »
Borplay and listmusic are now updated with several new UI enhancements:
  • Borplay no longer prints the line "" - "" if the artist and title are both unknown.
  • wiequadrat's 2nd suggestion in this post has now been implemented in borplay; it now says "no matching files found" if the file wasn't found in the packfile.
  • In borplay, underscores in artist and title names are now replaced with spaces.
  • Listmusic now displays the music files in alphabetical order instead of in whatever order it feels like. ;)
Get the new version from the Downloads section here or from my fifth post!
« Last Edit: November 28, 2009, 06:16:12 pm by Plombo »

 



 0%




SimplePortal 2.3.3 © 2008-2010, SimplePortal