View Single Post
Old 03-07-12, 04:21 PM   #33
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by DrBeast View Post
If I could hazard a guess, UnitUpgradePackIntervalOption defines when you're eligible for a unit upgrade, with the type being defined in IDLinkUpgradePackElements. NULL means you're eligible for it regardless of date (if you notice the commented out strings, those are date-related, whereas in Example 2 there are no dates, just NULL). 800, 300 and 400 I've no idea what they mean. Maybe Renown cost to get it installed on your boat? In any case, the weapons being offered are different in your two examples, and this might be a problem if one type is not supported in the boat you're adding.
Another thing I noticed in your second example: ID= and NameDisplayable= both refer to the 16"/50 Mark 7 gun, but the IDLinkUpgradePackElements= offers the 14''/50 gun! That seems wrong, unless it's a trick by the creator of the mod to "force" the game to pick that specific weapon.

ETA: Ninja'd by peabody LOL!
Right you are DrBeast. I think what may have happened is that someone built a ship using the same files and a previous ship or someone else's ship, but he needed to put a 14" gun on it, but didn't change the other info.

You are right the
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= NULL, NULL, 400
is the cost to put the gun on the ship. The reason there is a "Current" option as 0 is, I think, because if you play a single mission you can not 'buy' the gun. The other would be a cost to put it on the ship or possibly a ship that didn't have a gun at that location but did after a refit so you can buy it. So the gun is available all the time, but it may only be available on certain ships at certain times, thus the dates in the ships.upc upgrade section.
For example let's say you built two ships. One has an aft 14" turret but the other does not have an aft 14" turret until 1943. The 14" gun is available all the time so ship #1 would have it, but you can't add it to the second ship until 1943 because of dates in the ship.upc. Or maybe it had an 8" but was upgraded to a 14" in 1943.

Just some guesses as to why it is like that.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote