PDA

View Full Version : Cannot see "Name" of unit in buy menu.



Victor
Jun 27 2008, 14:30
Update: Question(s) answered. Thanks all!

Original Post:
In the buy menu for a unit that I added into Warfare, I see the price and the price range at the numbers I set them too, however there is no unit name next to it. Sorta how like you can see:

$2000-2075 MH6
$2400-2123 UH60 (For example)
$3141-1512 UH60 FFAR(For example)
$21512-122075 AH6 (For example)
$24422-52352 Cobra (For example)
$5000-5075

You notice the last aircraft in this example has no name, just a price. I tried searching for things like "UH60 FFAR" in some of the config scripts/mission script and could not find it.

And whats the whole deal in the "Config_AircraftFactory" under the vehicles area are there are things called, for example "STR_DN_MI17" What does the "STR_DN" stand for? I just assumed it was the objects name, for Example "STR_DN_Mi24". Is the naming on that important? I'm not sure its significance.

i0n0s
Jun 27 2008, 16:08
"STR_DN_MI17" is a string defined in stringtable.csv.
Take a look at localize in Biki to find out more about it.
"STR_DN_Mi24" won't work until it is defined in some stringtable.csv.

Victor
Jun 27 2008, 19:55
Ah! Ok I created this stringtable in the mission and it worked perfectly. http://forums.bistudio.com/oldsmileys/tounge2.gif

MattXR
Jun 28 2008, 00:43
Ah! Ok I created this stringtable in the mission and it worked perfectly.  http://forums.bistudio.com/oldsmileys/tounge2.gif
TO name it what you want in the script to add the name in the quotes "Jerry Can" and delete the localize bit just before it for it to work. No need to go editing an stringtable.

Griffon2-6
Jun 28 2008, 00:57
Well what if you want to translate your mission into different languages http://forums.bistudio.com/oldsmileys/tounge2.gif?

Victor
Jun 28 2008, 03:16
Hey Matt would you mind elaborating that a little more for me? I'd love not to use stringtables for these units. http://forums.bistudio.com/oldsmileys/smile_o.gif

Are you saying take something like this for example:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_u = _u + &#91;&#34;RHS_Mi24P_Cas&#34;&#93;
_d = _d + &#91;Localize &#34;RHS_Mi24P_Cas&#34;&#93;
_c = _c + &#91;12000&#93;
_m = _m + &#91;12000 + &#40;eastBarracksCosts Select EPILOTTYPE&#41;&#93;
_t = _t + &#91;45&#93;
_p = _p + &#91;40&#93;
_o = _o + &#91;true&#93;
_i = _i + &#91;&#34;&#92;RHS_hind&#92;icons&#92;mi24_ca.paa&#34;&#93;[/QUOTE]

And make it like this:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_u = _u + &#91;&#34;RHS_Mi24P_Cas&#34;&#93;
_c = _c + &#91;12000&#93;
_m = _m + &#91;12000 + &#40;eastBarracksCosts Select EPILOTTYPE&#41;&#93;
_t = _t + &#91;45&#93;
_p = _p + &#91;40&#93;
_o = _o + &#91;true&#93;
_i = _i + &#91;&#34;&#92;RHS_hind&#92;icons&#92;mi24_ca.paa&#34;&#93;[/QUOTE]

Where then do I put the unit name? Because the "_u" is the class name. Thanks a bunch&#33;

{9thInf}Winchester Delta1
Jun 30 2008, 08:17
Okay do it like below..

The first line is the class name (you prob now that allready)
The second line just delete the Localize command and inbetween the " " you can put whatever you want..

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_u = _u + &#91;&#34;RHS_Mi24D_Irq&#34;&#93;
_d = _d + &#91;&#34;Mi24D Iraq&#34;&#93;
_c = _c + &#91;15000&#93;
_m = _m + &#91;15000 + &#40;eastBarracksCosts Select EPILOTTYPE&#41;&#93;
_t = _t + &#91;55&#93;
_p = _p + &#91;50&#93;
_o = _o + &#91;true&#93;
_i = _i + &#91;&#34;&#92;ca&#92;air&#92;data&#92;ico&#92;ka50_CA.paa&#34;&#93;

[/QUOTE]

The _d = _d is the name of the unit showed in the buy interface..

Victor
Jun 30 2008, 09:46
Aha&#33; That was so easy, that made my life a lot easier now. Thanks so much Winchester http://forums.bistudio.com/oldsmileys/smile_o.gif