dax01 10 Posted May 16, 2011 I am trying to customize the barracks for the standard warfare mode using the warfare2_e template. I'm using a very simple setup with the Czech units as the only sub-faction for the West team. With the Config_Barracks.sqf and the Config_Teams.sqf units set accordingly, the units do not appear in the "purchase units" menu during gameplay. I've spent weeks researching the forums and other internet sources, un-PBO-ing others' custom warfare missions, and a lot of trial and error with no success. I'm assuming that there is a parameter somewhere that I am overlooking that needs to be set to "STR_FN_CZ" or "CZ", perhaps? I guess the question that myself and many other community members are asking is about what things must be taken into consideration in order to successfully modify the units available to a faction in the traditional warfare game mode. Share this post Link to post Share on other sites
Guess Who 10 Posted May 17, 2011 Have a look at "Config_Factions". It's inside the \Common\Configs ... folder. I was actually never able to get this to work. Please report back. Share this post Link to post Share on other sites
dax01 10 Posted May 17, 2011 Thank you for your input! I actually did give this a try. It originally reads BIS_WF_Common SetVariable ["WestFactions",[_westfaction]]; So I tried changing that line to BIS_WF_Common SetVariable ["WestFactions",[Localize "CZ"]]; The outcome turned out to be of no difference, probably because I've narrowed it down to just one sub-faction rather than the entire west faction. It seems as if the purchasable units and vehicles in the barracks and factories are only made available if they are USMC units (for Warfare module) or US units (for Warfare module [OA]). I'm making the assumption that there is a script somewhere in the config folder with a line calling for only those units (depending on if you are using warfare2.pbo or warfare2_e.pbo). Perhaps there is an argument somewhere limiting all western players to those sub-factions? Or rather there is a script somewhere else that defines which sub-factions are available to the barracks and factories? I am still yet to figure this out. Share this post Link to post Share on other sites
Guess Who 10 Posted May 18, 2011 Thank you for your input! I actually did give this a try. It originally reads BIS_WF_Common SetVariable ["WestFactions",[_westfaction]]; So I tried changing that line to BIS_WF_Common SetVariable ["WestFactions",[Localize "CZ"]]; The outcome turned out to be of no difference, probably because I've narrowed it down to just one sub-faction rather than the entire west faction. It seems as if the purchasable units and vehicles in the barracks and factories are only made available if they are USMC units (for Warfare module) or US units (for Warfare module [OA]). I'm making the assumption that there is a script somewhere in the config folder with a line calling for only those units (depending on if you are using warfare2.pbo or warfare2_e.pbo). Perhaps there is an argument somewhere limiting all western players to those sub-factions? Or rather there is a script somewhere else that defines which sub-factions are available to the barracks and factories? I am still yet to figure this out. Well, as I said before, I never got this to work either. For instance, I tried to make two factions (like US and GER) to work in Warfare. I assume, you put that modified "Config_Factions" into your misions's structure and added it to the "Config_Common" so it gets loaded for the mission? When I tried to put "BIS_GER" as a faction into the Config_Factions as a "replacement" for the US faction like: BIS_WF_Common SetVariable ["WestFactions",["BIS_GER"]]; it kinda works. Just never did, when I tried to get more than one faction into one side of the mission. I would love to get this to work. Share this post Link to post Share on other sites
dax01 10 Posted May 19, 2011 Interesting. To what extent did this work for you? Did you try something like BIS_WF_Common SetVariable ["WestFactions",["BIS_GER","US"]]; Were you at least able to purchase the German units from the factories? If I remember correctly, I believe someone got this to work for both USMC and CDF units, but it may have been with Benny Edition. I'll have a look at it if I can find it. ---------- Post added at 03:20 AM ---------- Previous post was at 03:08 AM ---------- I believe it was [ASA]Oden's Cold Oden Warfare found here: http://www.armaholic.com/page.php?id=6606 He uses a very complex "Functions" folder with over a hundred .sqf files that serve different purposes, most notably one called "Common_AddTeamToMission.sqf", and then an Init_Common.sqf to compile them all. It is a very complex and detailed structure, but it is based off of the standard warfare2. Share this post Link to post Share on other sites
Guess Who 10 Posted May 19, 2011 Interesting. To what extent did this work for you? Did you try something like BIS_WF_Common SetVariable ["WestFactions",["BIS_GER","US"]] Were you at least able to purchase the German units from the factories? If I remember correctly, I believe someone got this to work for both USMC and CDF units, but it may have been with Benny Edition. I'll have a look at it if I can find it. No, not the kind with multiple factions. But I seem to remember to get it to work with one faction as a replacement for the original faction built into the mission. Well, I tried a lot of things and sometimes you get lost in that "trial and error" part, you know. I'm currently at work, so no access to ArmA at the moment. I will try to replicate the situation on the coming weekend and report the results back here. Keep the research going ... Share this post Link to post Share on other sites
dax01 10 Posted May 20, 2011 Thanks once again for your input. I'm quite determined myself to get this to work. But I know exactly all about the "trial and error" and sometimes you forget what changes you've made end and up completely starting it over. I'll keep this thread updated if I find anything new. Share this post Link to post Share on other sites
johnnydime 10 Posted May 30, 2011 Hey guys. I'm bringing my thread over here since no one was responding to me anyway. I am trying to do the same basic thing. Essentially, I am trying to create a situation where the Resistance Faction is combined with PMC and maybe some units from FDF or BAF. I figured out how to add weapons to the barracks, and can add/duplicate units as long as they are from the same faction, but still no luck with combining factions or adding units to an existing faction. I'm still working on it, and will update this thread with whatever I find. Share this post Link to post Share on other sites
dax01 10 Posted June 21, 2011 Sorry, johnnydime, I've been out of town. But I appreciate your contribution and I am looking forward to seeing where we can go with this. Share this post Link to post Share on other sites
o.Solei.o 10 Posted July 10, 2011 Any news on this front? Share this post Link to post Share on other sites
Guess Who 10 Posted July 10, 2011 Any news on this front? Nope, seems impossible with the actual incarnation of Warfare. You can only recruit troops of one faction. My workaround: a small replacement config for the troops I want to play making them the same faction. There may be scripted workarounds as well. Share this post Link to post Share on other sites
o.Solei.o 10 Posted July 22, 2011 This gentleman (DB) has been extraordinarily helpful with this process, and seems to be the only person delving into these mysteries and sharing his findings with the rest of us scripting plebians. :) http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-1 http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-2 http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-3 Those are some of his articles on how to add UNITS to warfare factories, even those from different factions! If you drop by, give him a big thank you for the aid he has provided and continues to provide to us aspiring warfare editors! Share this post Link to post Share on other sites
Guess Who 10 Posted July 22, 2011 This gentleman (DB) has been extraordinarily helpful with this process, and seems to be the only person delving into these mysteries and sharing his findings with the rest of us scripting plebians. :)http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-1 http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-2 http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-3 Those are some of his articles on how to add UNITS to warfare factories, even those from different factions! If you drop by, give him a big thank you for the aid he has provided and continues to provide to us aspiring warfare editors! I know his site and his articles. And DB has been around here sometimes. But what you see over there is not the topic of this thread! We were discussing the possiblities of adding purchasable infantry of different factions in BIS Warfare. And there's definately no solution to this problem at this moment. Share this post Link to post Share on other sites
dbrant 0 Posted July 25, 2011 (edited) Each factory has a Faction associated with it (by default USMC & RU). It's set by the warfare module in the script Common\Config\Config_Structures.sqf as an array. _f = [[Localize "STR_FN_USMC"]]; if my understanding is correct, you could have multiple factions for a factory and it would pull the appropriate units from the Config_Barracks.sqf I haven't verified this yet, it's on my list of things to try this week. ok I tested & it worked To have both USMC & CDF factions in the barracks I changed the entry for the west barracks in Config_Structures.sqf to: _f = _f + [[Localize "STR_FN_USMC",Localize "STR_FN_CDF"]]; If anyone is interested I've uploaded a sample mission. http://sandbox.darrenbrant.com/?attachment_id=1516 db Edited July 26, 2011 by dbrant It worked Share this post Link to post Share on other sites
MadM0nkey 1 Posted September 8, 2013 firstly, yes I realize this is a very old post however I do not want to start a new thread on the exact topic so.. dbrant's method does work so what I am stuck trying to figure out here is how to add a Custom troop faction in replace of blueforce faction STR_FN_USMC Basically what I am trying to do here is figure out how to add in Delta Hawks US Military Mod (80s, 90s) troops as a replacement faction for the USMC so that I can buy his custom troops from the barracks. If I can figure that out I can try adding in LoBo Mod Iraqi Republican Guard troops in replacement for the Russian faction, walah I now have a Gulf Warfare Mod. so, how would I go about creating a custom faction from his specific class of troops? class CfgfactionClasses { class usm_usmarinecorps { displayName = "US Marine Corps (USM)"; so that it looked something like this _f = _f + _f = [[Localize "STR_FN_ usm_usmarinecorps"]]; if anyone would care to share some insight I would greatly appreciate it. Thanks. Share this post Link to post Share on other sites