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 10-13-24, 11:13 AM   #1
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by JapLance View Post
I've just had a wonderful patrol (the 4th in this career, and definitely the most successful I think I've ever had in an S boat) but I've come into something is bothering me a bit.

The question is that I got 5 sinkings in this patrol:
 

but when I reach home, only the ones achieved during the current session are credited. I sunk 1 ship in the first saved part of the patrol and 2 more in the second, but only the ones sunk in the third one are shown:
 

The first time it happened I found the way to edit the saved game to add the missing ships, extra renown and tonnage (I was lucky enough to have a capture where all the details were shown), but I'm not sure if I really want to do that every time I get home, since as patrols amount it will be harder to keep track of everything. It's also probably costing me some promotions and medals for my crew, because I don't know how to edit the save files to get some more.

Now this is the second time it happens in this career, and since I never used to save games at sea before, I'm not sure if it's a SH4 general issue or related to the use of mods. Can it be remedied somehow?

The problem is that I'm recording this for YouTube, and one patrol lasts too long in real time to play it in a single session. I need to split the patrols in a few game sessions.
We have seen the phenomenon also. There seems to be several factors at work here. Number one of course is that SH4 will be SH4, in that there never was a modders bible or any SDK for modders, so most of what is done in a mod is guess work (as you're well aware). Secondly, you will notice that the original game's Patrol Objective mis file (what you are assigned when going on patrol) have a "Prefix=" line at the bottom of that mis file that includes that file's name, such as "Prefix=Patrol Honshu 01" or "Prefix=Guard IwoJima Islands 01".

From when you have edited the Save folder data, you might notice the way the game keeps that data includes that 'phrase', such that when you sink a ship, you will see "Patrol Honshu 01 Fast Hansa Merchant". I do not recall the exact paradigm of it at the moment, but that is the gist of what the game does. When you then do a Status Update and get more Objective assignments, those "Prefix=" names are recorded. That is what you are seeing in your final report - the last Objective mis assignment. However, you should still 'see' the ships sunk in the original Objective assignment listed in the Save data, but further up in the file. You should also see the renown awarded. If you did not do a Status Update and did not get another Objective, there is also another potential issue... (but let us know if you didn't do Status Update)

My other suspicion is that the game can only hold a 'name' of a certain number of characters. While it is nice to have descriptive names for us mere humans to understand, the game has only so much address space in the 32-bit Windows virtual machine to use. If that space is exceeded, the game truncates the data. We want the ships' names to show, and not to use the namespace for it with an elongated path name. We are currently working on a number of different 'schemes' to try to alleviate that... but as the word 'scheme' intimates, it is a work-a-round...

Still making edits, still testing the next release...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 10-13-24, 01:02 PM   #2
JapLance
Sparky
 
Join Date: Feb 2024
Posts: 155
Downloads: 168
Uploads: 0
Default

Quote:
Originally Posted by propbeanie View Post
...
Thanks pb,

Yeah, I did one status update when initial mission (patrolling Bismarck Sea) was finished, and I got sent to the Carolines with complete autonomy.

Now that you say about those "prefixes"... here are the entries for the 2 ships I sunk in today's session.

Code:
[CareerTrack 1.CareerStatusSave 24]
ID=ID
Reason=CSS_UnitDestroyed
NameDisplayable=SnCIs02_JP Armed Merchant#4
CurrentDate=1942-08-06 08:02:00
LocationName=
Location=0,0
TargetLocation=-3.81207,7.14486e+031
UnitDestroyed=JPAuxCruiser,SnCIs02_JP Armed Merchant#4
EUnitType=13

[CareerTrack 1.CareerStatusSave 25]
ID=ID
Reason=CSS_UnitDestroyed
NameDisplayable=SnCIs02_JP Small Old Oiler#2
CurrentDate=1942-08-06 08:39:00
LocationName=
Location=0,0
TargetLocation=-6.50402,7.14486e+031
UnitDestroyed=OSHaruna,SnCIs02_JP Small Old Oiler#2
EUnitType=101
I didn't understand what they were, and some read like gibberish to me. Thanks to your explanation now I know what they mean and where to find the info .

Still some fields I don't know what they mean or how to add (format of TargetLocation, for example), but they don't seem to matter much.

Thanks!
JapLance is offline   Reply With Quote
Old 10-13-24, 01:22 PM   #3
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by JapLance View Post
...
NameDisplayable=SnCIs02_JP Armed Merchant#4
...
NameDisplayable=SnCIs02_JP Small Old Oiler#2
...
That "SnCIs02" is the initial v1.8 of the mod's partial "small fix" for that. That was not fully implemented in v1.8. But we took the old line of "Sink Caroline Islands 02" and made it that "SnCIs02" on the "Prefix" line in the actual mis file. Each of those has to be a unique designation. So we went from a name of "Sink Caroline Islands 02_JP Armed Merchant" to what you have. Another small, potentially LARGE aspect of that naming convention they use there is the "#4" and "#2" in the ship names... The current paradigm in the game is that each group can have several "JP Armed Merchant" ships, and there are multiple files 'running' at a given time in the game. Each specific ship would be numbered, as that #4 is. However, there might be several groups, or even single ships with that "#4" designation. What happens if you happens to sink 2 ships with that particular identical #4 name? This involves a very complex "find and replace" operation, if we want to delve further, well beyond just a Search and Replace in Notepad++, and one that requires some logical programming. I am not certain how often a player would encounter that anyway... but it is there.
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 10-13-24, 01:39 PM   #4
JapLance
Sparky
 
Join Date: Feb 2024
Posts: 155
Downloads: 168
Uploads: 0
Default

Quote:
Originally Posted by propbeanie View Post
What happens if you happens to sink 2 ships with that particular identical #4 name? This involves a very complex "find and replace" operation, if we want to delve further, well beyond just a Search and Replace in Notepad++, and one that requires some logical programming. I am not certain how often a player would encounter that anyway... but it is there.
Oh oh, this is the point where my head starts aching .

I just edited the saved game and it seems to load fine (I won't play again till next weekend). The three ships I added appear as they should, I added their renown, updated the sunk tonnage and number of ships sunk, and gave my crew a few promotions as well. I'd like to give some medals to the deck gun crew, but for the moment I'm not sure how to do it.

JapLance is offline   Reply With Quote
Old 10-13-24, 04:38 PM   #5
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by JapLance View Post
I'd like to give some medals to the deck gun crew, but for the moment I'm not sure how to do it.

in the same folder as ActiveUserPlayerUnits.upc where you made your aforementioned change, there is a file CareerTrack.upc. open that with the same text editor and look for the line: CrewMembersCurrentMedalsRepository=

add the text for your medals after the equal, separated by commas. Like so:
CrewMembersCurrentMedalsRepository=NULL,Dist Service Medal,Bronze Star

of course you will have to use the German counterpart medals. you can get those from Medals.upc in the \Data\UPCDataGE\UPCUnitsData folder.

good luck!
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 10-15-24, 04:28 AM   #6
JapLance
Sparky
 
Join Date: Feb 2024
Posts: 155
Downloads: 168
Uploads: 0
Default

Quote:
Originally Posted by KaleunMarco View Post
in the same folder as ActiveUserPlayerUnits.upc where you made your aforementioned change, there is a file CareerTrack.upc. open that with the same text editor and look for the line: CrewMembersCurrentMedalsRepository=

add the text for your medals after the equal, separated by commas. Like so:
CrewMembersCurrentMedalsRepository=NULL,Dist Service Medal,Bronze Star

of course you will have to use the German counterpart medals. you can get those from Medals.upc in the \Data\UPCDataGE\UPCUnitsData folder.

good luck!
Thanks, Herr Kaleun. I will try it, but with the US medals . My US crew may get angry if I award them some Iron crosses
JapLance is offline   Reply With Quote
Old 10-15-24, 09:39 AM   #7
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by JapLance View Post
Thanks, Herr Kaleun. I will try it, but with the US medals . My US crew may get angry if I award them some Iron crosses
yeah. apparently, i confused this post with the Bismarck/ATO posts where someone wanted to drive the BB and was stuck in the Indian Ocean,

...now...where is my medicine......
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 11:26 PM.


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