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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-23-23, 07:09 AM   #10
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,796
Downloads: 444
Uploads: 2


Default

Quote:
Originally Posted by KaleunMarco View Post
firstly, how can i translate the UPC text to the Sensors_sub_US.dat? i ask because you lost me in the explanation above but clearly there must be connection between the UPC-text and the binary-dot-DAT

secondly, prior to firstly, your questions made me stop and think: i had SJ radar before the upgrade and lost it with the upgrade. the UnitParts file does not have any radar equipment so the upgrade has to come from the UpgradePacks.UPC file.
here is related section from UpgradePacks, however i do not know how to parse the last line.

 
[UpgradePack 18]
ID= UpackSJRadarPorpoise
NameDisplayable= SJ Surface Search Radar
Info=SJRadarInfo
Notes=SJRadarNotes
FunctionalType= UpFTypeSensorRadar
UpgradePackSlotType= SurfaceRadarPorpoise
Type=NULL
;UpgradePackInterval=1942-06-01, 1943-09-01
UnitUpgradePackIntervalOptionCurrent= 1942-06-01, 1942-10-31, 0
UnitUpgradePackIntervalOptions1=1942-06-01, 1942-10-31, 0
UnitUpgradePackIntervalOptions2=1942-11-01, 1942-12-31, 0
UnitUpgradePackIntervalOptions3=1943-01-01, 1944-06-18, 0
IDLinkUpgradePackElements= SJRadarApp, NULL, SJRadarAntennaEarlyPorpoise, SJRadarAntennaEarlyPorpoise2



then i compared the antenna section after the upgrade with the antenna section before the upgrade and i discovered that the upgrade neglected to add a piece of equipment, namely the actual antenna mast.
 


not sure where to go because i do not know where i am.
You are missing a "translation" file in your radar "hunt"... Firstly though, first things first - lol - The "ActiveUserPlayerUnits" part that you point to (the same thing as in NSS_SubName.upc) is the "Slot" something sits in. If it is "upgradeable", it will show "AcceptedType" as "NULL". Otherwise, the gear is named at that slot entry, and it will not be found in an UpgradePackSlot in the section below. For radars, you will often find a "UserPlayerUnit 1.Compartment x.EquipmentSlot y" in the submarine's hull upc and a similar entry of "UnitPart x.Compartment y.EquipmentSlot z" in the UnitPartsXSubName.upc file that holds additional entries. After the equipment entries in the NSS_SubName.upc file is the UpgradePackSlots that list all of the possible upgrades for the slots listed above and in the matching UnitPartsXSubName.upc for the conning tower(s). Those entries point to the slots above for the mounting location(s), as well back to the UpgradePacks.upc file. Inside that UpgradePacks.upc file, you will find how it is "built" from pieces of the Equipment.upc file (or Weapons in the case of guns). That file is where you will find the "ExternalLinkName3D=" line that puts you into the SensorsSub (or other) files. If that "ExternalLinkName3D=" is "NULL", then it is a "virtual" entry. The PPI and A-Scope cabinets are such. From the looks of things, going by the "builds" of the parts into UpgradePacks, it does look like the intention was to have at least some of the "virtual" entries be actual 3D pieces of gear. It is possible to do that, but would be a major undertaking... Anyway, look in the Equipment.upc file (based upon what is found in the UpgradePacks.upc "build") for the "link" to the sensors file... From that info, you might be able to edit the ActiveUser... and other associated files in the Save folder. Back-up all data there first, of course...
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
 


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 03:18 PM.


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