![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
03-07-12, 03:33 PM
|
#33 | |
|
Admiral
![]() Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
|
Quote:
So in your files above, they are installing different guns using the same file. One ship has a 16Inch50CalMk7 and the other ship has a 14in50calUS. So the problems include: 1. You can not have two with the same number [UpgradePack 32], if they were different you only have to copy and add another entry [UpgradePack 33] But they are the same ID. 2. You can not have two entries with the same ID. ID=Upack16Inch50CalMk7 This is the ID used in the sub or ship upc file to put that gun on the sub or ship. Example from Takao: IDLinkUpgradePackSlots= BowDeckGun IDLinkUpgradePackSlotsIntervalDefault1= 1941-01-01, 1945-12-31, Upack8inDoubleDG That will access the UpgradePacks.upc file: [UpgradePack 47] ID= Upack8inDoubleDG So you would also have to change the ships.upc file and the ID in the UPgradePacks.upc, and that would mess up the ship as the modder built it. So if you post it anywhere, it would have different files than the original ship. So the modder would get all the complaints about why his ship does not work when he makes changes and releases a new version. So if you want to do it for yourself that is up to you but if anyone else gets it I am sure the person that built it would not be very happy about it. 3. UnitUpgradePackIntervalOptions1= NULL, NULL, 400 means it will not be on the ship unless you buy it. The other file is 0. NOTE: ;UnitUpgradePackIntervalOptions1= 1944-03-28, 1944-09-01, 800 ;UnitUpgradePackIntervalOptions2= 1944-09-02, NULL, 300 Both of these entries have a ; in front of the line, so the game ignores anything after a ; so the only entry that matter is the first one with the NULL, NULL, 0. (which is startdate, end date and cost). so the gun is available all the time and costs nothing. ************************************************** ********* So here is the way the files work, I will use your entry above and make a 'dummy' ship.upc entry since I do not know where the file came from. If it is entered as an Upgrade it will be in the Ships.upc [UserPlayerUnit 1.UpgradePackSlot 3] ID= UpgBowDeckGun NameDisplayable= Deck Gun Mount Type=NULL AcceptedTypes=USDeckGun UserCustomizable=Yes IDLinkUpgradePackSlots= BowDeckGun IDLinkUpgradePackSlotsIntervalDefault1= NULL, 1945-12-31, Upack16Inch50CalMk7 Now that links to the file you posted first in the UPgradePacks.upc [UpgradePack 32] 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 And that one links to an entry in Weapons.upc which I will 'fake' from another ship: [Weapon 12] ID= 16Inch50CalMk7 NameDisplayable= 16" Double Turret FunctionalType= WpCannon WeaponInterval= NULL, NULL WeaponSlotType= NULL AmmoTypesAccepted= 16inAPUS AmmoTypeLoaded= NULL AmmoMagazineRemaining= 0 ;Not used AmmoMagazineSize= 2 LeadersSlots=1 WeaponCrewMembersSlots= 2 ExternalLinkName3D= 16in_Deck_Gun_US Hitpoints= 100 DamageDescription1= NULL, 0, 0.2, 0, 1, 1, Jam, 0, 0, NULL, 1, 0.3, 0.2 DamageDescription2= NULL, 0, 1, 0, 0.5, 1, Chamber Explosion, 50, 5, NULL, 1, 2, 10 ;skill over 1 for unserviceable/destroyed gun And that file links to the Library/USSubParts/shipname.dat + 9. Node- 16in Deck_Gun_US ************************************************** ******** That is why I said many files need to be "fixed" if you are going to try to put several ships into one MOD that were not meant to be used that way. And it is also the reason some of the Modders make "ShipPacks", all that work is already done. So it is good to learn how it is done, but it is easier to just use JSGME and play the King George. When you are done, quit the game, disable the MOD and enable the next ship you want to play. One additional comment: You are only looking at the gunfiles, but you may run into the same problems with radar, sonar, flakguns, radio antennas, ammo, interiors, ordersbars, crew ranks, and the list goes on and on. It all depends on how the ship was built. 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. |
|
|
|
|
|
