Jump to content
Sign in to follow this  
BLSmith2112

Replacement unit addons in Warfare.

Recommended Posts

Update: Problem solved. Thanks guys for the input.

Say for example the BMP in the RHS Vehicle Pack.

My VehicleConfig States:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_u = _u + ["RHS_VDV_BMP2"]

_d = _d + ["BMP2"]

_c = _c + [1]

_m = _m + [1 + (eastBarracksCosts Select ECREWTYPE) * 2]

_t = _t + [1]

_p = _p + [35]

_o = _o + [false]

_i = _i + ["\ca\tracked\Data\ico\t72_CA.paa"]

Now I haven't gotten around to changing the unit icon from a t72 to this units icon but that shouldn't matter too much. (The $1 cost/build time is for testing purposes only).

The unit is on my map on an island with the Probability of Presence 0%.

I've also tried this using the stringtable in the mission's main directory: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_u = _u + ["RHS_VDV_BMP2"]

_d = _d + [Localize "RHS_VDV_BMP2"]

_c = _c + [0]

_m = _m + [0 + (eastBarracksCosts Select ECREWTYPE) * 2]

_t = _t + [0]

_p = _p + [35]

_o = _o + [false]

_i = _i + ["\ca\tracked\Data\ico\t72_CA.paa"]

Stringtable: (Without the dashes of course)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">LANGUAGE----------English

RHS_VDV_BMP2-----BMP2

Now I've also tried this with many other replacement packs and nothing seems to work. All of other addons that I have been able to put into Warfare have all worked perfectly, but as soon as it comes to replacement packs, nothing works.

Any ideas? Thanks so much.

Share this post


Link to post
Share on other sites

From the look of it, it seems quite fine.

I didnt check the code of the mission yet, so maybe you are missing something else.

I guess you did read that page - maybe it helps:

http://community.bistudio.com/wiki....g_units

What about other people's warfare versions - did they change

units yet, so you can check their example?

Share this post


Link to post
Share on other sites

I did check. I've added a bunch of units and haven't had any problems. I have checked other versions of warfare and they have added them the same as I have.

However there are not "Replacement Units" used in other versions of warfare, just other units. So I have nothing to reference other than the addon itself to make sure the "class" is correct and valid. It is, and yet no "Replacement" addon works.

I'd really like to be able to use these units!

Share this post


Link to post
Share on other sites

Update: Figured it out after 10 hours of searching and experimenting. The problem with Replacement units is that the localization field must be of the original official BIS unit it is replacing. For example:

instead of what I had before:

Incorrect way (the way I had it originally):

Before with stringtable reference:

Quote[/b] ]_u = _u + ["RHS_VDV_BMP2"]

_d = _d + [Localize "RHS_VDV_BMP2"]

_c = _c + [0]

_m = _m + [0 + (eastBarracksCosts Select ECREWTYPE) * 2]

_t = _t + [0]

_p = _p + [35]

_o = _o + [false]

_i = _i + ["\ca\tracked\Data\ico\t72_CA.paa"]

Original Stringtable:

Quote[/b] ]LANGUAGE---------English

RHS_VDV_BMP2---------BMP2

Without stringtable reference:
Quote[/b] ]_u = _u + ["RHS_VDV_BMP2"]

_d = _d + ["BMP2"]

_c = _c + [0]

_m = _m + [0 + (eastBarracksCosts Select ECREWTYPE) * 2]

_t = _t + [0]

_p = _p + [35]

_o = _o + [false]

_i = _i + ["\ca\tracked\Data\ico\t72_CA.paa"]

==================================

Correct way:

Instead it must be like this:

With Stringtable only:

Quote[/b] ]_u = _u + ["RHS_VDV_BMP2"]

_d = _d + [Localize "STR_DN_BMP2"]

_c = _c + [0]

_m = _m + [0 + (eastBarracksCosts Select ESOLDIERTYPE) * 2]

_t = _t + [0]

_p = _p + [15]

_o = _o + [false]

_i = _i + ["\Ca\wheeled\data\ico\uaz_granade_CA.paa"]

New Stringtable: (Correct way)
Quote[/b] ]LANGUAGE---------English

STR_DN_BMP2---------BMP2

So a replacement addon must refer to the original BIS addon in the Warfare Mission Factory Config(s).

Share this post


Link to post
Share on other sites

Ive made a few warfares with mods...I think you have played 1 of them victor..the all RHS warfare i made..if your having problems come to the =sealz= teamspeak...you do have the ip . . .

Regards,

Iceman

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  

×