PDA

View Full Version : Adding Units/Weapons/Vehicles



zachhox
Sep 14 2009, 12:15
How can I add units/vehicles or weapons to for example warfare v1.1 and make my own addon/mod sort of?

So far I got the part of extracting the .pbo using cpbo and of course have all my units, vehicles, weapons and stuff ready.
And I know how to run/make a mod folder, its in there already basically. :)

I'd really like to have some extra stuff in it. ;)


Thanks.

zGuba
Sep 14 2009, 18:12
Check common\config directory.

zachhox
Sep 14 2009, 22:43
Yes I did that.

So this would be the code than I presume:


_u = ["Vulcan"]
_d = [Localize "STR_DN_VULCAN"]
_c = [800]
_m = [800 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [20]
_p = [25]
_i = ["\ca\tracked\Data\ico\m163_vulcan_CA.paa"]
_o = [false]


So lets say I wanna add this unit, all 3 of them? The Bradly.
http://www.armaholic.com/page.php?id=3283

What would I put in exactly? I tried it once but it didn't work. What I did was simply copy it and change/modify the code of course.

And the bradly mod I would run simply by mod folder with other stuff. But to take this as an example.

Computica
Sep 14 2009, 22:53
Ok I got you kid, hold up...

Ok, You would replace "Vulcan" (Which is the class name) with "VILPAS_BRADLEY". YOU DO NOT HAVE TO REPLACE IT! Just copy this as a base:
-----------------------------------
_u = ["Vulcan"]
_d = [Localize "STR_DN_VULCAN"]
_c = [1000]
_m = [1000 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [30]
_p = [25]
_i = ["\ca\tracked\Data\ico\m163_vulcan_CA.paa"]
_o = [false]
-------------------------------------
And turn it into this:
-------------------------------------------
_u = ["VILPAS_BRADLEY"]
_d = ["You can type the name of the Vehicle hear"]
_c = [1000]
_m = [1000 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [25]
_p = [30]
_i = ["\ca\tracked\Data\ico\m163_vulcan_CA.paa"]
_o = [false]
------------------------------------------------------
Ok I'll explain what some of the values mean which are:
--------------
Units = _u ; Descriptions = _d ; Costs = _c ; MannedCosts = _m ; Times = _t ; Points = _p ; Images = _i
--------------
Pretty self explanitory huh? The "_m" is meant for the extra cost If it has a driver and/or a gunner. If you know that the vehicle doesn't have a gunners seat then you can leave the "_m" section like this:
------------------
_m = [1000 + (westBarracksCosts Select WCREWTYPE)]
-------------------
That means that your paying 1000 + (The cost of a West Crew Man).

zachhox
Sep 15 2009, 04:29
Well that doesn't work.

And another thing, there are 3 versions.

And I know what the values mean. I read it in the wiki page.

Computica
Sep 16 2009, 03:09
Well you need to know what the 3 class names are for the bradley and you have to add the addon files in the addon list inside the "mission.sqm" file. Tell me if you get any warning messages. Make sure you have a PBO extracting program so you can look at the config for the bradley tank.

EDIT:
I've been trying to correctly add the 6g30 Grenade Launcher for the east side, I can't figure out how to get the weapons ammo in the list.

zachhox
Sep 16 2009, 09:14
AH Boom, Binga Binga Binga, there you go, thats my man... :P

Exactly. The 3 class names. Well in the meantime I added the bradly to the mission list.
I had the bradly extracted as well but there are alot of files, but I pressed "I'm feeling lucky" on google and got lucky. :)
The lucky file was config.cpp.

Class Name: VILPAS_Bradley : VILP_Tank
Description: M2 Bradley
picture = "\desert_bradley\bradley_icon.paa";

Class Name: VILPAS_BRADLEY_06 : VILPAS_Bradley
Description: M2A2 Bradley

Class Name: VILPAS_BRADLEY_ERA : VILPAS_Bradley
Description: M2A2 Bradley (ERA)

And in the mission.sqm, I added:

"mk19_tripod", regular what it said
"dshkm_mini", regular what it said
"desert_bradley"
So basically I added, comma (,), new line and "desert_bradley". In both AddOns parts btw.

So I tried both "VILPAS_BRADLEY_ERA : VILPAS_Bradley" and "VILPAS_BRADLEY_ERA".

Here is what I input;


_u = ["VILPAS_BRADLEY_ERA"]
_d = [Localize "M2A2 Bradley (ERA)"]
_c = [800]
_m = [800 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [20]
_p = [25]
_i = ["\desert_bradley\bradley_icon.paa"]
_o = [false]



And still, nothing, doesn't add it to the menu somehow.. ???

I get no error messages. I had a few doing some other stuff with the weapons cost and commander thing but I fixed those easily. :D
I actually have zero error messages believe it or not, no headbug either. I made sure of that. :D

So any ideas?
Are we missing something...

I see you've been trying the same thing with the grenade launcher.
I looked for it but couldn't find that particular weapon so I guess its inside a larger or another addon, but:


_w = _w + ["Rnd_HE_M203"]
_workaround = Count _w - 1

_weapon = "1Rnd_HE_M203"
_c = _c + [5]
_is = _is + [true]
_n = _n + [GetText (configFile >> "CfgMagazines" >> _weapon >> "displayName")]
_i = _i + [GetText (configFile >> "CfgMagazines" >> _weapon >> "picture")]
_s = _s + [GetNumber (configFile >> "CfgMagazines" >> _weapon >> "type") / 256]

I guess just change it with the HE frag grenades from your weapon.

Unless you mean the ammu alone.


_ammo = "30Rnd_556x45_Stanag"

And input the grenade launcher, without using the HE thing from above.

But you probably tried that I guess. :)

I'll look further if you tell me the addon if you want.

Thanks for checking my problem out btw.

Computica
Sep 16 2009, 13:21
OK, Let's deal with your situation first, I might have to try it out myself but I see under "_d" you have the "Localize" command still there. That's only meant if your going to call a string name (STR___) try this:
-----------------------------
_u = ["VILPAS_BRADLEY_ERA"]
_d = ["M2A2 Bradley (ERA)"]
_c = [800]
_m = [800 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [20]
_p = [25]
_i = ["\desert_bradley\bradley_icon.paa"]
_o = [false]
-------------------------------
This way you should be able to pull it up, tell me if that works...

zachhox
Sep 17 2009, 06:59
Nope, still nothing. Its like there is nothing there... I don't know.
Are these the only things where you need to add this stuff? Not like in a menu script or whatever, just to like add it to the menu.
Because I would suspect it would show something at least, than perhaps an error message or whatever but like seriously zero.

Computica
Sep 17 2009, 11:39
Did you put the right files in the right folders?

zachhox
Sep 17 2009, 14:42
Yep, desert_bradley.pbo and desert_bradley.pbo.PAULS.bisign in the modfolder. Well the regular MP mission in the MPMission folder of course.

I did have alot of success wiht adding other things though so what we discussed SHOULD work, talking about the menu thing and stuff I mentioned.

I added 20 apaches, 3 chinhooks, BTR80/A/90, Xtra units, both CU M1A1CH and CHT72 packs and the K52 Kamov successfully.
Tried them, flew them and had fun. :)

I did run into some problems with some stuff. The AWS tank I cannot run, Russian Armor Pack doesn't run (smurf pack) and I need to change my rank to Captain right from the start, I don't know where to look for that.

But its looking nice so far. :P

Computica
Sep 17 2009, 15:58
hmm... Do you use notepad++ if you don't you should use that. Don't mod warfare 1.2 use warfare 1.1b from armaholic. Warfare 1.2 is missing files :P so it's kinda hard to make a perfect mod. zGuba mad an excellent mod. As far as the "Bradley" goes, it must be something with the type of vehicles it is. Cheers on the rest of your accomplishments though, I'm glad you were able to work the heli's out.

Hey Keep me posted on your progress kid...

zachhox
Sep 18 2009, 10:37
Well I can tell you about so far :).




Here is a list:

Heavy Units;
Stryker ICV (FIM-92)
M1 Abrams (CH)
M1A1HC Abrams
M1A1HC Abrams NATO
M1A1HC Abrams Desert

SA6
BMP2 (Strela)
BTR-80
BTR-80A
BTR-90
T72M (CH)
T72M1V (CH)
T90M
T90S Shtora

And BRDM-2 (Strela) [Lightvehicle]

Choppers;
- AH-64A (Combat)
- AH-64A (Multi Role)
- AH-64A (Ground Support)
- AH-64A (Ground Support M229)
- AH-64A (Ground Support Mixed)
- AH-64A (Close Combat)
- AH-64A (Maverick 2x)
- AH-64A (Maverick 4x)
- AH-64A (Sidewinder 6x)
- AH-64A (TOW)
- AH-64A (Close Combat) Black
- AH-64A (Ground Support) Black
- AH-64A (Ground Support M229) Black
- AH-64A (Ground Support Mixed) Black
- AH-64A (Maverick 2x) Black
- AH-64A (Maverick 4x) Black
- AH-64A (Sidewinder 6x) Black
- AH-64A (TOW) Black
- CH-47D (transportiert 24 Soldaten)
- CH-47D Cargo (tranportiert 12 Soldaten)
- CH-47D MediVac (transportiert 24 Verwundete und 2 Sanitäter)
NH-90 (Transport)
V22 Osprey
MV22
MV22-2
MV22 Special

Mi24D
Ka-52

Planes:
F22
F16 CAS
F35 US Airforce
F-35 USAF Strike
F-35 US Navy Strike
F-35 US Marines VTOL
F-35 RAAF Strike
F-35 USAF (Stealth)
Eurofighter Typhoon (All 8 of them but in a/b/c/d/e/f/g/h format unfortunately so far so I will have to fix that but can't find the exact different descriptions for them but they are different, I tried)
F/A-18E Super Hornet
F/A-18F Super Hornet


So that is what I did so far, unfortunately still no bradley :).
I am gonna add the SU's now.
Later weapons too, so if u give me your pack or problem I can look at it and hopefully solve it.

Btw, also I modified the gameplay and set different rules, now it is finally as Warfare should be.
Very simply, "Warfare". Its that simple. :)

Problems, well I had some. Basically with running the AddOns in the mission script which seemed not to work.:

AWS Tank
The smurfc_era in Russian Armor Pack.
Comanche, and also turned in a mess.
F15, too confusing where class names and acutal units are concerned, and I am talking about all of them. It just doens't add up. More declared units than classnames. So...
C130, doens't run as AddOn.
F117 crashes when I buy one.

I wanted to add teh Rafele, Z9 chopper and Tiger chopper but couldn't find them.

Well I'll let you know how it further turns out with the SUs.

PS, I am 26, not a kid. :D

Thx for all the help so far. All I wanted to know at first was just how to do it once basically and than I could find all of them of course, that was my intention. :) But its working out well.

Btw, I forgot to add I need to change the ranks to captain but don't know where to find it.
And second I want a like "dynamic destruction" script that removes all destroyed vehicles and people immediately.
Now I found one but the author removed it, but the code is still alive.
http://www.armaholic.com/page.php?id=1879
And, http://www.ofpec.com/forum/index.php?topic=30080.0. But I don't know exactly what to do with it yet.

Computica
Sep 18 2009, 15:13
I have been working on Island Avignon from the ACE Island pack. The map is fun to play Warfare on, I'm just having trouble with the AI working as it should. It's near final but I keep getting error messages now and then. It's based on Warfare 1.1b code.

zachhox
Sep 18 2009, 17:43
Oh ok. Ace runs too slow for me, lol.

Since you edit the island can you do that for me too?
What I want is all the houses in the US Base and SLA Base removed.
Second, another Airfield at San Tomas and access by land to it.
And third, a Terminal instead of a hanger so it can't be destroyed?

If you have teh spare time :).

Computica
Sep 18 2009, 19:18
LOL! The ACE Island pack is a stand-alone addon. You don't need ACE to use it. It adds a lot of cool maps from OFP that are converted for ARMA. Here's the link:
http://www.armaholic.com/page.php?id=3000

I'm not editing the map itself I'm editing the Warfare game mode. I'm having some trouble with errors though...

zachhox
Sep 18 2009, 20:26
Ah ok. :)
I thought I needed ACE for it.

Anyway what weapon or weapon pack is the g6something grenade launcher?
And why you use warfare v1.2 from his mod? You don't wanna use regular v1.1 as a standard to build on?
If you don't mind me asking. :D

zachhox
Sep 19 2009, 16:43
Update:



heavy vehicles:
Lav-25
leopard 1a4
leopard 1a5
leopard 2a4
leopard 2a5
leopard 2a6
aws m1a2 sep abrams (woodland)
aws m1a2 sep abrams (desert)
m109a3 self propelled gun

lav-150 us commando [lightvehicle]

(all leo's for both sides)

planes:
F-111 agm142
f-111 aim7
f-111 aim9
f-111 gbu10
f-111 gbu12
f-111 mk82ff
f-111 mk84ff
f-111 sweepwing

weapons:
C_famas
c_famas_acog
c_famas_aimpoint
c_famas_f1_sfa
c_famas_m203
c_famas_sf
c_g36c
c_g36c_aim
c_g36c_aim_sd
c_g36c_sd
c_glock
c_hk416_acog
c_hk416_acog_sd
c_hk416_aim
c_hk416_aim_sd
c_hk416_m203_acog
c_hk416_m203_aim
c_hk417.p3d
c_mp5a4
c_mp5a4_aimpoint
c_mp5a5
c_mp5a5_aimpoint
c_mp5sd5
c_mp5sd5_aimpoint
c_mp5sd5_sf
c_mp5sd6
c_mp5sd6_aimpoint
c_mp5sd6_sf
c_p228.p3d
c_ump.p3d
m40a3:
M40a3 without bipod:
M40a3 fold bipod:
M40a3 acog:
M40a3 acog without bipod:
M40a3 acog fold bipod:
M40a3 desert:
M40a3 desert without bipod:
M40a3 desert fold bipod:
M40a3 desert acog:
M40a3 desert acog without bipod:
M40a3 desert acog fold bipod:
M40a3 wood:
M40a3 wood without bipod:
M40a3 wood fold bipod:
M40a3 wood acog:
M40a3 wood acog without bipod:
M40a3 wood acog fold bipod:
Hk g11
ukf_l85a2
ukf_l85a2_susat
ukf_l85a2ag36
ukf_l85a2ag36_susat
ukf_l85a2k_susat
ukf_l86a2lsw
ukf_l86a2lsw_susat
ukf_gpmg
ukf_lmg
ukf_lmg_susat
ukf_l96a1
ukf_l96a1_black
ukf_l96a1_cam
ukf_l96a1_des
ukf_l96a1_descam
ukf_browninghp
ukf_sigp226
ukf_sigp226_sd
ukf_law80launcher

east side:
Class xxrhs_ak74
class xxrhs_ak74gp25
class xxrhs_ak74pso1
class xxrhs_ak74m
class xxrhs_ak74mgp30
class xxrhs_ak74mcobra
class xxrhs_ak74m1p29
class xxrhs_ak74mgp301p29
class xxrhs_ak74mpso1
class xxrhs_aks74
class xxrhs_aks74gp25
class xxrhs_aks74pso1
class xxrhs_aks74p
class xxrhs_aks74pgp30
class xxrhs_aks74p1p29
class xxrhs_aks74ppso1
class xxrhs_ak103
class xxrhs_ak103gp30
class xxrhs_ak103gp30cobra
class xxrhs_ak103gp30pso1
class xxrhs_akm
class xxrhs_akmgp25
class xxrhs_akms
class xxrhs_akmsf
class xxrhs_akmsgp25
class xxrhs_akmspbs1
class xxrhs_asval
class xxrhs_asvalcobra
class xxrhs_rpk74
class xxrhs_rpk74dm
class xxrhs_rpk74m
class xxrhs_rpk74m1p29
class xxrhs_pk
class xxrhs_pecheneg
class xxrhs_pecheneg1p29
class xxrhs_svd
class xxrhs_awm [west side]
class xxrhs_vss
class xxrhs_v94
class xxrhs_aps
class xxrhs_apssd
class xxrhs_makarov
class xxrhs_makarovsd
class xxrhs_rpg22
class xxrhs_rpg27


:D :p

Computica
Sep 19 2009, 19:35
Ah ok. :)
I thought I needed ACE for it.

Anyway what weapon or weapon pack is the g6something grenade launcher?
And why you use warfare v1.2 from his mod? You don't wanna use regular v1.1 as a standard to build on?
If you don't mind me asking. :D

The G630 is from the Queen's Gambit Expansion. I'm using Warfare version 1.1b for my warfare varient. I keep getting an on going error with it though...

zachhox
Sep 20 2009, 10:13
Well of course if you load another mod or folder than that is usually instead of the queens gambit, unless you know how to run both at the same time, it is possible though.

But anyway, I downloaded the 6G30 soldier and hope to find the class name for the weapon and all and try it out in armwarfare QB.
Btw, what else did u do or what kind of mod are you making?

I'll let you know how it turns out soon, with the 6G30...

---------- Post added at 10:13 AM ---------- Previous post was at 08:33 AM ----------

G630 problem fixed: :)

Put this in the mission.sqm file "6G30_dbe1", with the "" of course.
Don't forget the comma in the sentence above.

Put this in the regular weapon part, under teh M240 lets say:



_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]


And put this in the HandGrenade, FlareWhite_M203, FlareYellow_M203, FlareGreen_M203, FlareRed_M203 section.:



_weapon = "6Rnd_HE_6G30"
_w = _w + [_weapon]
_n = _n + [GetText (configFile >> "CfgMagazines" >> _weapon >> "displayName")]
_i = _i + [GetText (configFile >> "CfgMagazines" >> _weapon >> "picture")]
_s = _s + [GetNumber (configFile >> "CfgMagazines" >> _weapon >> "type") / 256]
_c = _c + [5]
_is = _is + [true]


This will solve the error and problems. I tried and tested it. Its actually quite nice the grenade launcher. :)
The only thing is that the ammu has no icon and seems blank but alright thats acceptible I guess. :P
I had that with other weapons too.

Oh and Btw, I fixed the Bradley problem, its works now. SWEET :)

And I fixed my blank weapon problem,

Blatjang
Oct 18 2009, 09:56
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

zachhox
Oct 18 2009, 15:07
Sure man, I'd be glad to. :D

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 :D

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? :D
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. :D

Blatjang
Oct 19 2009, 09:18
Hey there, thanks again.

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

http://www.armedassault.info/_hosted/bushwars/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):confused:

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.

zachhox
Oct 19 2009, 10:37
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 "@<hidden>". In the main arma folder, call it whatever you like as long as it starts with "@<hidden>".
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 +@<hidden>". Than right click, properties and at "Target" add this at the end -mod=@<hidden>, don't forget the space
"....exe" -mod=@<hidden>.

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. :D 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 @<hidden>/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. :D

Blatjang
Oct 19 2009, 21:02
Hey there thanks again,

And yes it works:D

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:D 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 :)

zachhox
Oct 20 2009, 18:42
Yes the pilot was a lucky guess. :D 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

Blatjang
Oct 30 2009, 07:35
Hallo there again, it's been a couple of days since my last posting...

Thanks for that last reply, it helped:D

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.

zachhox
Nov 2 2009, 13:48
Well I tried it, worked just fine so far.
Even made a special test warfare :D.

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.

StingerMeGood
Mar 4 2010, 05:44
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 @<hidden> folder and added to shortcut.
2. Inside @<hidden> 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

user3242
Apr 10 2010, 17:49
how you modify the ammo type for su34b?i want put missile