Jump to content
Sign in to follow this  
bracer

OA vehicles in A2 warfare.

Recommended Posts

Hi!

I'm trying to make the OA light vehicles buyable in the USMC lighfactory in warfare.

I'm using the A2 warfare module, and not the WarfareOA one.

Mission template is BIS Urban Warfare.

What I've done is to simply copy/paste from the OA warfare config_lightfactory.sqf, and put into my config_lightfactory.sqf.

But the units don't show up as buyable.

I'd did like that with weapons without any problem.

But what more needs to be done to get both A2 and OA vehicles buyable from one lightfactory?

Cheers!

Share this post


Link to post
Share on other sites

Look for Common_Config or CommonConfig in your Warfare directory. You have to add the Light_Factory config file to the custom load list in there. Most statements are self explanatory commented by BIS.

I'm at work right now, so I can't post an example, sorry.

Share this post


Link to post
Share on other sites

I can't find the file common_config or commonConfig, but there's a directory Common\Config.

I can add units to the aircraft factory, by copying the units information into a new Config_AircraftFactory.

And put this

[] Call Compile PreprocessFile ("Common\Config\Config_AircraftFactory.sqf");

in the Init_Common.

But it doesn't work for other vehicle factories.

I'd really like to add more units to the vehicle factories.

Share this post


Link to post
Share on other sites
I can't find the file common_config or commonConfig, but there's a directory Common\Config.

I can add units to the aircraft factory, by copying the units information into a new Config_AircraftFactory.

And put this

[] Call Compile PreprocessFile ("Common\Config\Config_AircraftFactory.sqf");

in the Init_Common.

But it doesn't work for other vehicle factories.

I'd really like to add more units to the vehicle factories.

Sorry, that's the file I actually meant. One of the challenges in modifying Warfare lies within the factions. The feature of buying unit from all factions at the factories of another is not fully implemented. So you may be able to add a US vehicle to a US Light Factory and buy without a hazzle but won't be able to buy a BAF vehicle at the same factory. It's unfortunately a limitation of the implementation of factions in Warfare.

There is another thread around in this forum that discusses the same thing.

Edit: here is the link http://forums.bistudio.com/showthread.php?t=119025

Edited by Guess Who

Share this post


Link to post
Share on other sites
Sorry, that's the file I actually meant. One of the challenges in modifying Warfare lies within the factions. The feature of buying unit from all factions at the factories of another is not fully implemented. So you may be able to add a US vehicle to a US Light Factory and buy without a hazzle but won't be able to buy a BAF vehicle at the same factory. It's unfortunately a limitation of the implementation of factions in Warfare.

There is another thread around in this forum that discusses the same thing.

Edit: here is the link http://forums.bistudio.com/showthread.php?t=119025

The default units are already in the factory. I'm trying to add US light units into USMC light factory.

With that thread you posted, there are links to DB's blog, which shows how to add units ( in this case BAF aircrafts) to the USMC aircraft factory. I can confirm it works and I've also added US aircraft too.

The procedure unfortunately, didn't work for light and heavy factories, which is what I need help with.

Share this post


Link to post
Share on other sites
The default units are already in the factory. I'm trying to add US light units into USMC light factory.

With that thread you posted, there are links to DB's blog, which shows how to add units ( in this case BAF aircrafts) to the USMC aircraft factory. I can confirm it works and I've also added US aircraft too.

The procedure unfortunately, didn't work for light and heavy factories, which is what I need help with.

I normally don't deal that much with aircraft in Warfare. Only in light vehicles and infantry. What I miss in Darren's blog is the factions statement in the unit definition. Look for "_f = " line in the definitions. That determines to what faction the unit is buyable/belongs.

Unfortunately that feature is not fully implemented. For example infantry does not follow that logic. In Config_Barracks.sqf the factions are defined within that file not through the Config_Factions.sqf. Thats's part of the problem. So unfortunately the only way to make "foreign" infantry buyable is to make them the same faction; that's only possible by a replacement addon, which is how I do it as a workaround.

Maybe you will come up with something better. I'll be interested in any new solution. Good Luck.

Share this post


Link to post
Share on other sites
So unfortunately the only way to make "foreign" infantry buyable is to make them the same faction; that's only possible by a replacement addon, which is how I do it as a workaround.

Maybe you will come up with something better. I'll be interested in any new solution. Good Luck.

Can you please explain the replacement addon?

I just want to able to buy the vehicles of different fractions even if they're put in the same faction.

Its unlikely I can come up with a better solution without help.

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  

×