Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Adding Units/Weapons/Vehicles

  1. #21
    Hallo there,

    I am completely new to the arma warfare editing scene,

    I read through the things you guys were talking about, I found all the coding and stuff but it seems I still don't have a clue how it all works.

    I am trying to add some of the Bush conflict (Border war mod) units and weapons into warfare.

    It seems I don't know where to put the weapon and unit files and how to compile the files so that it actually works.
    My saralite.pbo file shows up in the multiplayer screen but it won't run.

    for example: (I quoted this from the previous reply)

    _weapon = "6G30"
    _ammo = "6Rnd_HE_6G30"
    _w = _w + [_weapon]
    _n = _n + [GetText (configFile >> "CfgWeapons" >> _weapon >> "displayName")]
    _i = _i + [GetText (configFile >> "CfgWeapons" >> _weapon >> "picture")]
    _c = _c + [40]
    _a = _a + [_ammo]
    _an = _an + [GetText (configFile >> "CfgMagazines" >> _ammo >> "displayName")]
    _ai = _ai + [GetText (configFile >> "CfgMagazines" >> _ammo >> "picture")]
    _as = _as + [GetNumber (configFile >> "CfgMagazines" >> _ammo >> "type") / 256]
    _ac = _ac + [5]

    I not sure how this part works.

    It would be really awesome if someone could help me out.

    Thanks
    Last edited by Blatjang; Oct 18 2009 at 10:00.

  2. #22
    Banned
    Join Date
    Sep 14 2009
    Posts
    56
    Author of the Thread
    Sure man, I'd be glad to.

    So with the Bush Wars you mean this right?:
    http://www.armaholic.com/page.php?id=4926

    Dope weapons man, especially that 75mm rocket propelled grenade launcher right on your R1

    So from units what do you want exactly? On their site I see choppers, 3, and soldiers?!

    So lets pull out everything, you want all weapons right from the start right?
    Best probably to start wtih a clean version of warfare, preferably v1.1, either 8 people or the 32 version up to your choice.

    So if thats what you want I can just copy the whole thing with all weapons here and you can copy it to where you are supposed to.
    Do you have/use any tools so far?

    Anyway all you need is this:
    http://www.armaholic.com/page.php?id=1455
    http://sourceforge.net/projects/notepad-plus/
    http://www.armaholic.com/page.php?id=411

    ArmA Edit, c++ notepad and Cpbo, thats all.

    Than just make yourself a mod folder from which we work, put the cpbo.exe in it and just run it once, thats all. ArmA Edit you have to install and it comes as a normal install. And C++ Notepad as well.

    Once you did that and answered the rest we'll continue.
    Last edited by zachhox; Oct 18 2009 at 15:10.

  3. #23
    Hey there, thanks again.

    Yeah that is the mod, here is the url of the mod's website:

    http://www.armedassault.info/_hosted...ars/index.html

    (just for some more info if you need any)

    They started to make the mod for ARMA, but before they could finish it ARMA2 was released, so they decided that they would continue work for ARMA2 only, so they stopped the ARMA work.

    ARMA2 has not been released yet in south africa, so i'm still waiting on that, and my pc would'nt be able to run it anyway lol

    But so far I actualy got the weapons to work (a few of the rifles), or I can buy them in the buy menu, and you cannot see the icons in the buy menu but you see it when you press "G" for gear.
    And I added some of the choppers hehe.
    (Also cannot see their icons in the buy menu)

    (And when I buy the weapon I get a message that says something like
    You cannot play/edit this mission, it relies on downloadable content that has been deleted... but the game still works, you can continue playing)

    I can't figure out how to add new soldiers though, i tried adding a soldier and it's price appears in the buy menu.
    If you try to buy it, you lose your money and it says it's been added to the qeue, but the soldier never spawns.

    I have not yet planned so far ahead as to know what I want do do with it all.
    (maybe replace all the soldiers or just one of the sides' soldiers, not sure yet)

    The the version I'm using is V1.1 the 8 player one.

    These are the tools that I have:

    Cpbo

    And the BI tools that you can download, it contains:
    Oxygen2 Personal edition
    BinPBO Personal edition
    Texview2
    BinMake
    Visitor3

    Just another thing, My exams start next week so I might dissappear for a while, just a notice in case I don't reply to any messages.
    Last edited by Blatjang; Oct 19 2009 at 09:24.

  4. #24
    Banned
    Join Date
    Sep 14 2009
    Posts
    56
    Author of the Thread
    Alright first stop , the weapons.

    For that you could best use the C++ Notepad I posted the link for. So install it and right click and open it with c++ notepad.

    Than you'll see this right up top from the start:
    version=11;
    class Mission
    {
    addOns[]=
    {
    "cacharacters",
    "CABuildings",
    "caweapons3_m16a4_acg",
    "caweapons3_m107",
    "Warfare",
    "caair",
    "caa10",
    "caair3_su34",
    "saralite",
    "causmcd",
    "WarfareBuildings",
    "mk19_tripod",
    "CA_Hotfix",
    "cti_buildingsm113_hq",
    "cti_buildingsbmp2_hq",
    "warfarebuildings_stinger_twice_static",
    "WarfareBuildings_TOW_Tripod",
    "WarfareBuildings_T72_RACS",
    Alright, now those are the addons that it loads. So to load the Bush Weapons add this:
    "bwc_weapons",
    Don't forget to put a coma to the one above just like in the example.

    Than scroll down to autoaddons and add it as well:
    addOnsAuto[]=
    {
    "causmcd",
    "cacharacters",
    "cti_buildingsm113_hq",
    "WarfareBuildings",
    "cti_buildingsbmp2_hq",
    "CABuildings",
    "saralite",
    "bwc_weapons",
    So that is to load it so it works properly.

    What you also need and most important is a modfolder.
    If you don't have one, you probably do but in any case, make one. Call it example "@BWC". In the main arma folder, call it whatever you like as long as it starts with "@".
    In that folder make a folder called "Addons" and put the bwc_weapons.pbo file in there.

    And than modify your arma shortcut, first of all copy it somewhere else and rename it to for example "ArmA +@BWC". Than right click, properties and at "Target" add this at the end -mod=@BWC, don't forget the space
    "....exe" -mod=@BWC
    .

    To put an example of one of the weapons:
    _weapon = "bwc_R1"
    _ammo = "bwc_R1_mag"
    _w = _w + [_weapon]
    _n = _n + [GetText (configFile >> "CfgWeapons" >> _weapon >> "displayName")]
    _i = _i + [GetText (configFile >> "CfgWeapons" >> _weapon >> "picture")]
    _c = _c + [40]
    _a = _a + [_ammo]
    _an = _an + [GetText (configFile >> "CfgMagazines" >> _ammo >> "displayName")]
    _ai = _ai + [GetText (configFile >> "CfgMagazines" >> _ammo >> "picture")]
    _as = _as + [GetNumber (configFile >> "CfgMagazines" >> _ammo >> "type") / 256]
    _ac = _ac + [5]
    But you probably put that correctly so I'll leave it.
    In any case at the _weapons you put the classname of the weapon and at _ammo you puts it ammo or magazines.


    And about the soldiers, you wanna put it so you use the unit yourself right? That is the idea, yes?

    Ok, moving onto the choppers:
    "bwc_puma330",
    "bwc_AlouII",
    "BWC_AlouIII",

    Put that in the mission.sqm file alike I before, to both addons/autoaddons.

    _u = _u + ["bwc_AlouII"]
    _d = _d + ["Alouette II SE-313"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\BWC_AlouII\ico\alouII_icon.paa"]

    _u = _u + ["bwc_AlouIII_Gcar"]
    _d = _d + ["Alouette III Gcar (FNMAG)"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\BWC_AlouIII\data\ico\alouIII_gcar_ico.paa"]

    _u = _u + ["bwc_AlouIII_Kcar"]
    _d = _d + ["Alouette III Kcar (Ga1 20mm)"]
    _c = _c + [1000
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\BWC_AlouIII\data\ico\alouIII_gcar_ico.paa"]

    _u = _u + ["bwc_AlouIII_SOM"]
    _d = _d + ["Alouette III SOM (AS12 Missiles)"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\BWC_AlouIII\data\ico\alouIII_gcar_ico.paa"]


    _u = _u + ["bwc_AlouIII_SR"]
    _d = _d + ["Alouette III SA316 (Search & Rescue)"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\BWC_AlouIII\data\ico\alouIII_gcar_ico.paa"]

    _u = _u + ["bwc_puma330_c"]
    _d = _d + ["Puma 330C (CASEVAC)"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\bwc_puma330\data\ico\puma_ico.paa"]

    _u = _u + ["bwc_puma330_l"]
    _d = _d + ["Puma 330L (FNMAG)"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\bwc_puma330\data\ico\puma_ico.paa"]

    _u = _u + ["bwc_oryx"]
    _d = _d + ["Atlas Oryx"]
    _c = _c + [1000]
    _m = _m + [1000 + (westBarracksCosts Select WPILOTTYPE)]
    _t = _t + [10]
    _p = _p + [4]
    _o = _o + [true]
    _i = _i + ["\bwc_puma330\data\ico\puma_ico.paa"]
    After some hard work, here they are. With icon and all.

    Put that in Common\Config\Config_AircraftFactory.sqs.
    You know put it at the bottom or after the Blackhawk or after the AH6. As long as you don't first.

    And btw, download all of them, the files from the site and put the .pbo files in the @BWC/Addons folder right.

    Now, since it says you need the Pilots too, put that in there too and here is the code.

    "bwc_pilots",
    This for the mission.sqm file.

    Put this in Config_Barracks.sqs file in the same directory.
    _v = _v + ["SoldierWPilot"]
    _u = _u + ["bwc_helipilot"]
    _d = _d + ["Men/Helicopter Pilot"]
    _c = _c + [20]
    _t = _t + [5]
    _p = _p + [5]
    _i = _i + ["bwc_pilots\data\helipilot_co.paa"]
    Well that is it. :P
    I am just not sure about the last icon for the pilots.

    Anyway tell me if it works and if you like it.

    Good luck with your exams.
    Last edited by zachhox; Oct 19 2009 at 10:39.

  5. #25
    Hey there thanks again,

    And yes it works

    There is just a tiny problem with the pilot's "bwc_pilots\data\helipilot_co.paa" line, it says in the game it cannot find that .paa thing?

    But everything else is working great thanks

    I can even recruit the pilot

    But I still cannot add just a normal rifleman from the SADF_Soldier pbo file.
    I don't know what the difference is supposed to be...

    But if you could show me how to add them to the recruiting list, and how to replace the normal starting soldiers that would be awesome, then I can play around it and find a combination that works for me.

    Just another thing... the sadf_soldiers are listed as Bluefor, can they still be added to the EAST side to fight against the WEST in Warfare?

    Thanks again for your help and patience, I realy appreciate it



    Nevermind, I think I got the rifleman thing sorted out, I used the ingame mission editor to find out what i must type in to get the soldiers to work.

    So you don't have to use your free time to help me figure it out

    Thanks
    Last edited by Blatjang; Oct 20 2009 at 15:44.

  6. #26
    Banned
    Join Date
    Sep 14 2009
    Posts
    56
    Author of the Thread
    Yes the pilot was a lucky guess. But try putting this "\bwc_pilots\data\helipilot_co.paa" as a last try or just put the regular one "\Ca\characters\data\Ico\i_null_CA.paa" and as its icon it just looks like a regular pilot.
    I forgot to add the "\" at the beginning.

    "BWC_SADF",
    Put that in the mission.sqm just as the others.
    Than scroll down and you will find the first slot, WestSlot1.
    items=1;
    class Item0
    {
    side="WEST";
    class Vehicles
    {
    items=1;
    class Item0
    {
    position[]={5427.843262,56.671028,4407.145508};
    id=0;
    side="WEST";
    vehicle="USMCD_Soldier_R";
    player="PLAYER COMMANDER";
    leader=1;
    rank="CAPTAIN";
    skill=100;
    text="WestSlot1";
    };
    };
    };
    Open the pdf file that came with the download and on the second page you will find all classnames. Put for example "BWC_SADF_Teamleader" instead of "USMCD_Soldier_R" and you have replaced the unit so you can play with it.

    if you wanna be able to buy it than:
    _v = _v + ["Name it something"]
    _u = _u + ["Classname"]
    _d = _d + ["what it will say at the buying menu"]
    _c = _c + [20]
    _t = _t + [1]
    _p = _p + [5]
    _i = _i + ["\Ca\characters\data\Ico\i_null_CA.paa"]
    Simply fill in this and put it at the baraks file in the same location as the choppers and other stuff.

    I don't know the icon exactly and can't find it so I guess use an original one. So basically leave that part when you copy it.

    I guess that will do.

    Good luck

  7. #27
    Hallo there again, it's been a couple of days since my last posting...

    Thanks for that last reply, it helped

    I replaced all of the soldiers with the SADF soldiers and it works,
    there is just a little problem that came up though,
    sometimes when the AI units buy some of the soldiers those soldiers spawn with the M16A2 rifle instead of the weapon they are supposed to have...
    any ideas on that? Could I have made a mistake somewhere?

    here is a piece of the barracks entry:


    ;WEST
    _v = ["WSOLDIER"]
    _u = ["BWC_SADF_Rifleman"]
    _d = ["BWC Rifleman"]
    _c = [80]
    _t = [5]
    _p = [5]
    _i = ["\Ca\characters\data\Ico\i_null_CA.paa"]

    _v = _v + ["WATSOLDIER"]
    _u = _u + ["BWC_SADF_AT"]
    _d = _d + ["BWC AT Soldier"]
    _c = _c + [180]
    _t = _t + [7]
    _p = _p + [7]
    _i = _i + ["\Ca\characters\data\Ico\i_null_CA.paa"]

    _v = _v + ["WAASOLDIER"]
    _u = _u + ["BWC_SADF_soldier_m82"]
    _d = _d + ["BWC PARA Trooper"]
    _c = _c + [150]
    _t = _t + [7]
    _p = _p + [7]
    _i = _i + ["\Ca\characters\data\Ico\i_null_CA.paa"]

    _v = _v + ["WMGSOLDIER"]
    _u = _u + ["BWC_SADF_MG"]
    _d = _d + ["Machine gunner"]
    _c = _c + [140]
    _t = _t + [6]
    _p = _p + [6]
    _i = _i + ["\Ca\characters\data\Ico\i_null_CA.paa"]


    As you probably noticed, I only replaced the unit class names and kept everything else the same lol the lazy method

    But there is another reason for that though.
    When I create my own references for the units and create my own AI teams the AI won't buy them. I don't know how to fix these problems or I'm just not seeing the error.

    Here is an entry for the AI teams file:


    _n = _n + ["Infantry"]
    _d = _d + ["Btn32 Soldiers"]
    _u = [W32SOLDIER]
    _u = _u + [W32ATSOLDIER]
    _u = _u + [W32MGGSOLDIER]
    _u = _u + [W32GSOLDIER]

    WestAITeamTemplates = WestAITeamTemplates + [_u]
    WESTAIINFANTRYTEAMTYPE = Count WestAITeamTemplates - 1
    WestInfantryTeamTypes = WestInfantryTeamTypes + [WESTAIINFANTRYTEAMTYPE]
    WestDefenseTeamTypes = WestInfantryTeamTypes + [WESTAIINFANTRYTEAMTYPE]


    _n = _n + ["FS"]
    _d = _d + ["FS"]
    _u = [WAASOLDIER]
    _u = _u + [WAASOLDIER]
    _u = _u + [WMGSOLDIER]
    _u = _u + [WMGSOLDIER]
    _u = _u + [WGSOLDIER]

    WestAITeamTemplates = WestAITeamTemplates + [_u]
    WESTAIFSTEAMTYPE = Count WestAITeamTemplates - 1
    WestInfantryTeamTypes = WestInfantryTeamTypes + [WESTAIFSTEAMTYPE]

    ;AI commander preferences for AI teams. Note this should be at least the size of the total amount of playable teams in game.
    _t = [WESTAIDEFAULTTEAMTYPE]
    _t = _t + [WESTAIATTEAMTYPE]

    _t = _t + [WESTAIM113TEAMTYPE]

    _t = _t + [WESTAIINFANTRYTEAMTYPE]

    _t = _t + [WESTAIFSTEAMTYPE]

    _t = _t + [WESTAIHMMWVTEAMTYPE]

    _t = _t + [WESTAISNIPERTEAMTYPE]

    _t = _t + [WESTAIBLACKOPSTEAMTYPE]

    _t = _t + [WESTAIDEFAULTTEAMTYPE]

    _t = _t + [WESTAIATTEAMTYPE]

    _t = _t + [WESTAIFSTEAMTYPE]

    _t = _t + [WESTAISNIPERTEAMTYPE]

    _t = _t + [WESTAIBLACKOPSTEAMTYPE]

    _t = _t + [WESTAIM113TEAMTYPE]

    I dont know how the quoting thing works lol sorry if my style is annoying.

    Thanks again in advance.

  8. #28
    Banned
    Join Date
    Sep 14 2009
    Posts
    56
    Author of the Thread
    Well I tried it, worked just fine so far.
    Even made a special test warfare .

    The AI team units is what you need the "_v = ["WSOLDIER"]" for from the barracks as it seems.
    And only put your own soldiers there, don't put the others. And replace it with V, the V from the barracks.

    I have the ai disabled so I buy it all myself. So you could try taking command yourself and see.
    The way you did it is just fine though. And you can add as many units as you like.

  9. #29

    Wierd spawning choppers.

    Hoping someone could steer me in the right direction.

    Trying to add my own vehicle addons into warfare map.

    This is what I have done from the beginning:

    1. Created @PMC folder and added to shortcut.
    2. Inside @PMC folder is :
    addons\pmc_apache.pbo
    addons\pmc_apache.pbo.PMC.bisign
    keys\PMC.bikey
    3. Unpacked Warfare map.
    4. Under Common\Config\Config_AircraftFactory.sqs I have added:

    _u = _u + ["pmc_apache_multirole"]
    _d = _d + ["PMC Apache Multirole"]
    _c = _c + [200]
    _m = _m + [200 + (westBarracksCosts Select WPILOTTYPE) * 2]
    _t = _t + [55]
    _p = _p + [50]
    _o = _o + [false]
    _i = _i + ["\PMC_APACHE\icons\iah64.paa"]

    _u = _u + ["pmc_apache_closesupport"]
    _d = _d + ["PMC Apache Close Support"]
    _c = _c + [200]
    _m = _m + [200 + (westBarracksCosts Select WPILOTTYPE) * 2]
    _t = _t + [55]
    _p = _p + [50]
    _o = _o + [false]
    _i = _i + ["\PMC_APACHE\icons\iah64.paa"]

    _u = _u + ["pmc_apache_groundsuppres"]
    _d = _d + ["PMC Apache Ground Suppress"]
    _c = _c + [200]
    _m = _m + [200 + (westBarracksCosts Select WPILOTTYPE) * 2]
    _t = _t + [55]
    _p = _p + [50]
    _o = _o + [false]
    _i = _i + ["\PMC_APACHE\icons\iah64.paa"]


    Being the three models I wish to use(obviously).

    5. Under Missions.sqm I have added "PMC_APACHE"
    under "addOns []=" AND "addOnsAuto []="
    (Yes there is a comma after the last entry).

    Contents of PMC_APACHE.PBO:
    \icons\iah64.paa
    \sounds\engine_ah64.wss
    \tex\*(whole heap o texture files)*
    $PBOPREFIX$
    config.bin
    pmc_apache_closesupport.p3d
    pmc_apache_groundsuppres.p3d
    pmc_apache_multirole.p3d

    From what I can gather this is all correct.
    I can start the warfare map and even select the chopper from the Buy Screen (even the description is there). What appears to happening is that the helicoptors are spawning around 21.5km away from my base. (Off the coast of the South Island) Always in the same spot. Ker-Plunk. Splashy Death.

    Oh, and the icons aren't working. That's no biggy. (but a fix would be appreciated)


    Any assistance would be appreciated.

    Cheers,

    StingerMeGood

  10. #30

    h

    how you modify the ammo type for su34b?i want put missile

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •