Help with .BOR Music

AdamGamez

New member
Hi, I've been testing around with existing .Pak files to see how an OpenBOR Game would be set up. I recently tried to see if i could change one of the .BOR music files with my .BOR track I've done with Wav2Bor. It did play well with the BOR Play executable, but when I replace the existing "remix.bor" with my remix.bor on the Data, It would play the original track before it was replaced after I compile the data to a "test.pak". Any help?
 
Viper Snake said:
An extracted DATA folder will load over files in a pak. You don't need to compile to pak just to test, just have a blank .pak file instead.

So don't use the packer (that came with openBOR), but go with an alternate route? How would I do that?
 
Create a new .txt file. Change the extension to .pak. Put this inside the paks folder and remove anything else inside it. You can launch openbor and it will read from the data folder instead of the pak, so you can just edit the data folder contents to see changes.
 
Viper Snake said:
Create a new .txt file. Change the extension to .pak. Put this inside the paks folder and remove anything else inside it. You can launch openbor and it will read from the data folder instead of the pak, so you can just edit the data folder contents to see changes.

Thanks! Now, how would i find the points to loop a curtain part of a .bor song? Noticed some parts delayed before the song starts.
 
Here's one for a .bor song for looping:

http://www.chronocrash.com/forum/index.php?topic=610.msg7056#msg7056

In case you're confused, you need a music editor like Goldwave, Audacity, or any of it to find a loop point for your song. If bor files can't play in your music editor, at least use a wav file before or after you convert it. You need to edit your wav file if you want to remove the fade from the end in it.

Here's an example:

total bytes of a file size * loop point time / total time of song

3215968 * 75.662 / 145.842

3215968 * 75.662 / 145.842 = 1668425.90

Right click on the bor file (after highlighting it) and select Properties. Here you see this. (I circled the one I use.)

3_10_16_8_50_33_AM.png


I don't make up a number loop point myself. I use Goldwave or Audacity to look for looping.

Here I used Goldwave:
3_10_16_10_57_33_AM.png


Song example with loop:
https://www.dropbox.com/s/0l2czm5bvye22c9/yuka1-1668425.90.bor?dl=0

music data/music/stg1-1.bor 1668425.90

If you're going to place a .bor song in the level txt, do not put the music path where 'background' and 'panel' are because it will loop to the very beginning.

Code:
music		data/music/stg1-1.bor 1668425.90 #how to set loop point for bor file. total bytes of the file x loop point time / total time (e.g. 3,215,968 bytes x 5.560 loop point / 145.842 total time of song = 17880782.08/145.842 = 122603.79)
#1:00 = 60.00; 2:00 = 120.00; 2:25.842 = 145.842
#3,215,968 * 75.662 / 145.842
background	data/bgs/city/dark.gif
panel		data/bgs/city/street2.gif
order	a
settime 0

Instead, use this:

Code:
music		data/music/stg1-1.bor 1668425.90
at 0

wait
at	0

group	1 1
at	0

spawn	Flogger
coords	-30 230
at	0

Mine might not be accurate in looping, but it's to show you how looping goes for .bor files.
 
Back
Top Bottom