Jump to content
Sign in to follow this  
redface

data/music.pbo replacement config

Recommended Posts

is it possible to make & load a music replacement config folder without replacing the actual music files in data/music.pbo & resistance music files in 0.pbo?

I have never done a config before

I don't want to load custom description.ext, just replace the music you hear in standard campaigns etc.

Share this post


Link to post
Share on other sites

I'll give it a try, but are you sure the AMORE music files kick in without previous declaring in the mission.sqm?

I want to play some campaigns without editing all the "RTracka1" etc references

after four years the standard BIS music - despite it being very good and atmospheric - begins to create weird spasms in my brain

Share this post


Link to post
Share on other sites
I'll give it a try, but are you sure the AMORE music files kick in without previous declaring in the mission.sqm?

You mean previously declaring them in Description.ext? Definitely no need.

Quote[/b] ]I want to play some campaigns without editing all the "RTracka1" etc references

I understood that. The question is if you define tracks with the same names using the AMORE method, will the AMORE definitions override OFP's defaults? Again, I think yes but I'm not certain. To test, create a single AMORE track setup, overriding one of the ingame tracks, run a mission that references the ingame track and see (or hear) what happens.

Share this post


Link to post
Share on other sites

I'm afraid I still don't get "what amore can do to you" :-)

AMORE does not contain any config which defines track names because it is based on the fact that the music is loaded as a separate addon folder and can thus be called for in a mission.sqm

I transfered my amore - folder from my old&crashed to my new PC, so I might be missing some essential files?

Share this post


Link to post
Share on other sites
I'm afraid I still don't get "what amore can do to you" :-)

AMORE does not contain any config which defines track names because it is based on the fact that the music is loaded as a separate addon folder and can thus be called for in a mission.sqm

Ah! Sorry! True!

You would have to add the name of the AMORE addon PBO file, containing the defintion statements, into the Addons declarations in the Mission.sqm file. So for this purpose, it's not an automatic and transparent replacement.

Share this post


Link to post
Share on other sites

thunderbird84 told me that the files are declared in the resource.cpp

where can I download the standard config in non-binarized format?

help.gif

Share this post


Link to post
Share on other sites

can you not just unpack the music .pbo and replace the music files in it with your files keeping the same names ,then make a mod folder IE.@music with a dta folder inside and put your newly repacked replacement music pbo in there and run it as a mod ?

wont that load your music pbo instead of the orig ?

Share this post


Link to post
Share on other sites

yes, but that won't replace the Resistance music stuffed into the 0.pbo which I would rather not recompile with the hisky-method

the FFUR mod has a tweaked non-binarized resource.cpp, where do I get a non-tweaked one?

Share this post


Link to post
Share on other sites

I checked with Binview now

but none of the config.bin or resource.bin files declares the Resistance Music Tracks. (stored in i.e 0/Music/)

so I still haven't found the answer to my initial question confused_o.gif

is there any other relevant file I can search for their declaration point?

Ondrej Matejka's music is very good, but when played on a daily basis for four consecutive years, it causes serious brain-damage

Share this post


Link to post
Share on other sites

The config.bin inside O.pbo defines the Resistance tracks:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class cfgMusic

{

class 7thDarken

{

name="Seventh - Darken";

sound[]={"\O\Music\Seventh_darken.ogg",1.000000,1.000000};

};

class 7thMyLife

{

name="Seventh - My Life";

sound[]={"\O\Music\Seventh_My_Life.ogg",1.000000,1.000000};

};

class RTrack1a

{

name="Resistance Track 1a";

sound[]={"\O\Music\res01a.ogg",1.000000,1.000000};

};

class RTrack1b

{

name="Resistance Track 1b";

sound[]={"\O\Music\res01b.ogg",1.000000,1.000000};

};

class RTrack2

{

name="Resistance Track 2";

sound[]={"\O\Music\res02.ogg",1.000000,1.000000};

};

class RTrack3

{

name="Resistance Track 3";

sound[]={"\O\Music\res03.ogg",1.000000,1.000000};

};

class RTrack4

{

name="Resistance Track 4";

sound[]={"\O\Music\res04.ogg",1.000000,1.000000};

};

class RTrack5

{

name="Resistance Track 5";

sound[]={"\O\Music\res05.ogg",1.000000,1.000000};

};

class RTrack6

{

name="Resistance Track 6";

sound[]={"\O\Music\res06.ogg",1.000000,1.000000};

};

class RTrack7

{

name="Resistance Track 7";

sound[]={"\O\Music\res07.ogg",1.000000,1.000000};

};

class RTrack8

{

name="Resistance Track 8";

sound[]={"\O\Music\res08.ogg",1.000000,1.000000};

};

class RTrack9

{

name="Resistance Track 9";

sound[]={"\O\Music\res09.ogg",1.000000,1.000000};

};

class RTrack10

{

name="Resistance Track 10";

sound[]={"\O\Music\res10.ogg",1.000000,1.000000};

};

};

Planck

Share this post


Link to post
Share on other sites

too bad confused_o.gif

is there a way to redeclare them without physically touching the 0.pbo?

Share this post


Link to post
Share on other sites
too bad confused_o.gif

is there a way to redeclare them without physically touching the 0.pbo?

Yeah, *haven't tried it yet, but it should work*

Create a new folder that will include your new songs you want to implement as .ogg.

Then replace the following path by yours:

<span style='color:red'>sound[]={"\O\Music\res10.ogg",1.000000,1.000000};</span>

try it, if it would work then do the same for the rest of paths.

Don't change the songs sound's level.

Good luck

Regards

TB84

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×