SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-07-12, 02:43 PM   #1
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

Quote:
Originally Posted by Generalee View Post
I have another question, does the UpgradePacks.UPC have to be identical, or it can have differences between the two ships upgrade packs?

Example:

[UpgradePack 32] (file 1 )
ID= Upack16Inch50CalMk7
NameDisplayable= 16"/50 Mark 7
FunctionalType= UpFTypeWeaponCannon
UpgradePackSlotType= USDeckGun
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
;UnitUpgradePackIntervalOptions1= 1944-03-28, 1944-09-01, 800
;UnitUpgradePackIntervalOptions2= 1944-09-02, NULL, 300
IDLinkUpgradePackElements= 16Inch50CalMk7

[UpgradePack 32]
ID= Upack16Inch50CalMk7
NameDisplayable= 16"/50 Mark 7
FunctionalType= UpFTypeWeaponCannon
UpgradePackSlotType= USDeckGun
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= NULL, NULL, 400 (different)
IDLinkUpgradePackElements= 14in50calUS (different)

I would be happy if I could get these files working, it would be a great acheivement for me

ps: I am a beginner at modding, so that explains why I have more trouble understanding the logic of this. So please, go easy on me

Generalee
Something I noticed in your two examples and might potentially save some trouble:
If you notice a semicolon before an entry (, it means the entry has been omitted out, i.e. the game will not read it. In your case, the first example has had the UnitUpgradePackIntervalOptions1 and 2 omitted out.
The rest is uncharted territory for me.
__________________



Let the Beast inside you free!
DrBeast is offline   Reply With Quote
Old 03-07-12, 03:06 PM   #2
Generalee
Watch
 
Join Date: Mar 2012
Posts: 25
Downloads: 27
Uploads: 0
Default

Quote:
Originally Posted by DrBeast View Post
Something I noticed in your two examples and might potentially save some trouble:
If you notice a semicolon before an entry (, it means the entry has been omitted out, i.e. the game will not read it. In your case, the first example has had the UnitUpgradePackIntervalOptions1 and 2 omitted out.
The rest is uncharted territory for me.
Well thanks for the great info, It helped me understand more of this, now all I need is someone who can tell me what to do with the rest

Thanks DrBeast, you are a great help

Generalee
Generalee is offline   Reply With Quote
Old 03-07-12, 03:43 PM   #3
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

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!
__________________



Let the Beast inside you free!
DrBeast is offline   Reply With Quote
Old 03-07-12, 04:21 PM   #4
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.