Jump to content
Sign in to follow this  
drunkenjawa

Altering another PBO's config

Recommended Posts

Hi guys!

I was wondering if I could get some help. With the guidance of Corporal_Lib I recently fixed a small error inside the HAFM_Air pbo for the HAFM jets mod, done by Aplion. As most of you will know, Aplion has taken a bit of a break from Arma 3 lately, unfortunately. Due to this, I can't seem to be able to get a hold of him to get permission to edit the config inside the PBO, to fix the issue.

Oh, the issue being, that the RWR warning sound and radar animations for the combat jets, do not work. So, AI when piloting do not fire flares and go down the first AA missile that comes their way. Players also do not see the visual alert on the radar with the red M tracking towards them, and also do not hear the bitchin betty when it starts squarking at them. Basically, you currently need to use the old eyeball Mk1 to spot any AA missiles coming your way, effectively making these great planes worthless in any type of AA type situation without a lot of (un-necessary) work.

So, I fixed the config now, and the radar warnings work, the bitchin betty works, and also the AI fire flares now as well which makes them far more useful in missions. However, the only issue is that since Aplion did not give his specific permission to edit his PBO, I was advised to create my own PBO, with the config fix inside, so the HAFM_Air.pbo itself remains unaltered, however the small config issue can be fixed. I have tested this (by directly editing the hafm_air.pbo, naughty, I know) and it fully works with all combat jets in the mod itself. This has now made this mod actually viable for PVP if you wanted, and viable for combat situations where a lot of AA would be coming your way.

Now, the question I ask, is how do I create a pbo, that would overwrite another PBO's config file in the way that I was wanting it to? I have no idea where I'd start.

Edited by drunkenjawa

Share this post


Link to post
Share on other sites

I am pretty sure he released his addons for free to everybody to use, read the thread when he announced his leaving,

I think he even provived unbinarized stuff too. (don't quote me on that)

Seriously though, go take a look at it if you haven't.

Share this post


Link to post
Share on other sites

set in requiredAddons his cfgPatces class to make your config load after this and thus overwrite this definitions

Share this post


Link to post
Share on other sites
I am pretty sure he released his addons for free to everybody to use, read the thread when he announced his leaving,

I think he even provived unbinarized stuff too. (don't quote me on that)

Seriously though, go take a look at it if you haven't.

Yep all the A2 ported stuff like the helis etc was free game. Not his Jets mod though, he never says anything about the jets. I previously uploaded the fixed HAFM_Air PBO but it was taken down due to that, so this is the only option for now till he comes back or I'm able to get a hold of him somehow.

.kju - awesome thanks, I'm still a little confused though sorry, wouldn't that mean still having to alter his PBO, to include my PBO as a required addon? I've most likely misunderstood that though. This part of editing is completely new to me, I just basically want to get that fix out there for all to be able to use hehe

Share this post


Link to post
Share on other sites

No, you create a class cfgPatches for your addon, and in the requiredAddons[] array section of your cfgPatches, you list the class name from the cfgPatches section of the addon you want to alter with your own config values.

For example the addon you want to alter has a cfgPatches class called class HAFM_Air

So the cfgpatches in your addon would look like this:

class cfgPatches
{
class YOUR_addon
{
	units[] = {""};
	weapons[] = {""};
	requiredVersion = 1.0;
	requiredAddons[] = {"HAFM_Air"};
	version = 1;
};
};

Plus any other required addons you might need to call.

After that you just call the vehicle classes from that addon that you want to modify, and write the in all the lines with the additional or replacement values that you want to apply to that vehicle.

Share this post


Link to post
Share on other sites
No, you create a class cfgPatches for your addon, and in the requiredAddons[] array section of your cfgPatches, you list the class name from the cfgPatches section of the addon you want to alter with your own config values.

For example the addon you want to alter has a cfgPatches class called class HAFM_Air

So the cfgpatches in your addon would look like this:

class cfgPatches
{
class YOUR_addon
{
	units[] = {""};
	weapons[] = {""};
	requiredVersion = 1.0;
	requiredAddons[] = {"HAFM_Air"};
	version = 1;
};
};

Plus any other required addons you might need to call.

After that you just call the vehicle classes from that addon that you want to modify, and write the in all the lines with the additional or replacement values that you want to apply to that vehicle.

Awesome, thank you very much - and just so I'm completely good to go - would I just put that in a .cpp file, then call it from somewhere? Sorry if these are stupid questions, I will need to do some research into cfgPatches and how that works I think. The only way I've called these types of classes is via description.ext for a mission, not entirely sure how to actually call it with my own pbo (have only called them in missions I've made during the past). Or do I not even need to call it? Just add a .cpp file (or .bin file I guess in this case, because I want to replace the config.bin) and it will simply automatically overwrite the configs based on the classnames that are put in the editor / spawned on the server?

In regards to the actual changes that are to be made, do I place those directly underneath that class cfgPatches section, in the same format as they are written in the config.bin that I'm altering? Also, would I need to put the entire plane config in there, or just the altered lines? me = stoopid.

Just to clarify: I want to alter the config.bin file of the HAFM_Air pbo with only a few lines of text.

Share this post


Link to post
Share on other sites

After scratching my head for a bit, I think I'm probably overthinking this too much. I will just add the config file correction to the end of that cfgPatches section, I'm assuming that the game will then load my single config file over top of the config from the HAFM_Air pbo has already loaded, and that I only need the config.bin file in my pbo? Trial and error for a bit I think! Just at work at the moment so cant' try any of this just yet. The only other thing that I seemed to be able to find was another thread that you'd posted in actually - http://forums.bistudio.com/showthread.php?162880-Little-question-about-cfgpatches which also shed a bit more light on cfgPatches for me :)

Share this post


Link to post
Share on other sites

you create a new folder

name it MyAddonXYZ

put the config.cpp in there

use a tool like makepbo/eliteness to build a pbo

done

Share this post


Link to post
Share on other sites
;2723035']you create a new folder

name it MyAddonXYZ

put the config.cpp in there

use a tool like makepbo/eliteness to build a pbo

done

Aweomse, yeah apparently I was thinking waaaay too much into this hehe, thanks .kju I will try that when I get home tonight :)

Share this post


Link to post
Share on other sites

Wow yeah ok, that was much, much easier than I was expecting hehe. Thanks for all your help guys, I will be uploading the fix very soon!

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  

×