IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> Extra Units for Warfare, Unit Addon
ZachHox
post Sep 16 2009, 05:30
Post #1


New Member
*

Group: Members
Posts: 4
Joined: 16-September 09
Member No.: 6,520



Hi guys,


Can anyone help with adding units to warfare, version v1.1 for example?

So far I have the pbo extracted but got stuck in the "Common\Config" folder.

I know what the "_u, _d etc etc" mean, except that I don't know what exactly to put it for every unit/file I download.

For starters I would like to add all units from the russian armor pack, http://www.armaholic.com/page.php?id=3613, for example.

But I don't know exactly what to put at _u, _d and _i. And to make it appear in my menu so I can buy it or use it.

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


I tried it with a bradly, http://www.armaholic.com/page.php?id=3283, but that failed unfortunately.

Can anyone please tell me exactly what to put it and how to spot the exact code for future unit downloads?



Thanks guys.
 
Quote Post
Toadball
post Sep 16 2009, 11:57
Post #2


ArmA.info Sarcasm Society's Slightly Mad Scotsman
*****

Group: Former .info Serviceman
Posts: 718
Joined: 28-September 07
From: Glasgow, UK
Member No.: 1,331



The things needed to add a vehicle to a warfare script are:
vehicle cfg name
string in the stringtable or manually formatted one as description.
vehicle icon path


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


The items in bold are the values that need changing with the new vehicles values respectively.

To find these values your going to have to open up the addon's cfg file, this may or may not require one of the un-bin programs there are for ArmA, I'll leave you to find one.

The vehicle config name should be in the earlier parts of the config if the addon maker has kept the model cfg seperate. Should be easy to spot, as I'm at uni atm I can't tell you exactly what it is.

To do the description you can add it to the warfare string table (look for an XSL file iirc) OR you can do the easy thing:
change: _d = [Localize "STR_DN_VULCAN"]
for: _d = Format["vehicle name of your choosing"]

the icon all you have to do is use your note pads search function for "icon" and replace the path in the script with the addon's one.


so, to reiterate:
open up your addons cfg file and replace the values in the script or add the new entry like bellow

QUOTE
_u = ["vehicle's config name"]
_d = Format["vehicle name or whatever you want it to appear as in the list"]
_c = [800]
_m = [800 + (westBarracksCosts Select WCREWTYPE) * 2]
_t = [20]
_p = [25]
_i = ["replace with the icon value from the addon's cfg file"]
_o = [false]



Do not be tempted to add to many things as it gradually gets tedious goign through it all and increases the chance of things going tits up with the script.
It also gets a pita to debug every time it does crash if you have to trawl through a huge list of entries ensuring every little bit of syntax is correct and all the classnames are also correct.

Hope this helps


--------------------
Never before in the history of man, was so much buggered up by so few.
 
Quote Post
ZachHox
post Sep 17 2009, 08:07
Post #3


New Member
*

Group: Members
Posts: 4
Joined: 16-September 09
Member No.: 6,520



Yes that helps, thanks very much.

But so far it still doesn't work, to give you the bradly example:

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


That gives me a "format" error message.
But usually I would have this:

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


But that doesn't work either, no error message or whatever though but its like nothign appears in teh menu, like I didn't put anything... :S

And also I loaded it in the mission.sqm under both AddOns parts. Simply with "desert_bradley" and a comma above the other like this for example:
"mk19_tripod",
"dshkm_mini",

But still no luck.

Am I missing something or whatever? Is htere a separate scrip part for the menu specially? Somehthing would have to show up won't it, even if it won't work right...?

Thanks for your reply btw. smile.gif
 
Quote Post
Toadball
post Sep 17 2009, 14:05
Post #4


ArmA.info Sarcasm Society's Slightly Mad Scotsman
*****

Group: Former .info Serviceman
Posts: 718
Joined: 28-September 07
From: Glasgow, UK
Member No.: 1,331



Ah sorry forgot how the warfare system worked, thats a syntax error it should be:
_d = [Format ["M2A2 Bradley (ERA)"]]

my bad, not dug around warfare in a while with any luck that's the right syntax for it.


--------------------
Never before in the history of man, was so much buggered up by so few.
 
Quote Post
ZachHox
post Sep 18 2009, 22:17
Post #5


New Member
*

Group: Members
Posts: 4
Joined: 16-September 09
Member No.: 6,520



Still doesn't work. smile.gif

I think it has something to do wiht the bradly though. I tried other things and they do work.

Btw, how can I simply and quickly edit the island or map and do a couple of things?
3 things mainly:
Remove a couple of buildings in the US and SLA Base.
Add a second airfield right where San Tomas is.
And change the hanger with 2 terminals so the hanger can't get destroyed and thus the airfield too.
Or do you know any modders or whatever whom can do that quickly?

I so far modded the game and added a HUGE list of units, but this would really be required to make it REAL interesting. biggrin.gif

Btw, I did have problems with adding the SUs though, basically I can't add more than 1 somehow. I did have major success wiht the US AirForce though, loaded up pretty much anything I could find. smile.gif

Have you made any mods btw or did something cool, that I can check it? tongue.gif
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 29th March 2024 - 03:14