LavaLit
  Home   Forum   WIKI SVN DOWNLOADS Help Donations Login Register  
* *

Donations

Quarterly Goal: $90.00
Due Date: Sep 30
Total Receipts: $10.00
Below Goal: $80.00
Site Currency: USD
 11%
Quarterly Donations
Jul-18 mozenwrath... EUR10.00
Jul-1 LeeBrother USD10.00
Advertisement

Links

Advertisement
Pages: [1] 2   Go Down
  Print  
Author Topic: New utilities: bor2wav and improved borplay  (Read 2592 times)
0 Members and 1 Guest are viewing this topic.
Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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 » Logged

Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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.
Logged

NickyP
Hero Member
*****
Offline Offline

Posts: 2063


You know, that guy with the pet drum?


WWW
« 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.
Logged

wiequadrat
Jr. Member
**
Offline Offline

Posts: 89



« 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 » Logged

--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet
RBO thread in lavalit
Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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 » Logged

Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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.
Logged

wiequadrat
Jr. Member
**
Offline Offline

Posts: 89



« 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 ?  Embarrassed

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...  Grin
----------------------------

just wandering the readme in bor2wav_borplay_0.2.zip
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
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
Logged

--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet
RBO thread in lavalit
Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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 » Logged

wiequadrat
Jr. Member
**
Offline Offline

Posts: 89



« 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.
Logged

--------------------
"i'm the best because i work with the best", Bruce Willis, Armageddon

my openBOR RBO projects folder in boxnet
RBO thread in lavalit
Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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 » Logged

Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« Reply #10 on: November 22, 2009, 08:10:57 PM »

Borplay is now in the LavaLit Downloads section!
Logged

NickyP
Hero Member
*****
Offline Offline

Posts: 2063


You know, that guy with the pet drum?


WWW
« Reply #11 on: November 25, 2009, 03:11:56 PM »

Huh? So uh, help me out here. How exactly do I use bor2wav?
Logged

Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« Reply #12 on: November 25, 2009, 08:15:45 PM »

Huh? 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:
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.
Logged

NickyP
Hero Member
*****
Offline Offline

Posts: 2063


You know, that guy with the pet drum?


WWW
« 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.
« Last Edit: November 25, 2009, 09:23:28 PM by NickyP » Logged

Plombo
Developer
*****
Offline Offline

Posts: 857


Your source for useful modding tools!


« 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. Wink
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 » Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Advertisement

Recent Topics

[July 31, 2010, 02:11:35 AM]

[July 31, 2010, 02:05:43 AM]

[July 31, 2010, 01:52:02 AM]

[July 31, 2010, 01:40:20 AM]

[July 31, 2010, 12:56:09 AM]

[July 31, 2010, 12:41:56 AM]

[July 31, 2010, 12:36:44 AM]

[July 31, 2010, 12:30:45 AM]

[July 31, 2010, 12:27:09 AM]

[July 31, 2010, 12:14:08 AM]

Online Status

Members
Stats
  • Total Posts: 67003
  • Total Topics: 4515
  • Online Today: 33
  • Online Ever: 117
  • (October 23, 2009, 03:29:26 PM)
Users Online
Users: 5
Guests: 22
Total: 27
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!
Page created in 0.19 seconds with 40 queries.

Google visited last this page July 18, 2010, 12:49:34 AM