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 09-30-24, 01:21 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 KaleunMarco View Post
i did not see that development.
i know that i saved/exited/reloaded but Majuro never popped as a home base.
So, in the end, a rather rewarding day, even though most of it was pure frustration. I kept finding things wrong, such as "IDFlotillaLinkTransferTo=" lines that did not match the Command name, and some dates that might have been a pinch early, even a couple of xxx-base-info lines that did not match, but no matter what I did, I got the same result. Thinking (scary), I decided to try other boats and dates, and found the same result... no home port. Transfers to other bases were fine, but not Majuro... Tried following starts for Fall of 1944, and even a 1945 start... so it's not a "date" issue, not a config issue, etc... Then it dawned on me - base name!!! Open the US_NavalBases.mis file, and find
[Unit 11]
Name=Majuro
Class=NavalBase
Type=407
Then open Flotillas.upc file, and compare Flotilla 10's ExternalBaseName= to that...
[Flotilla 10.Base 1]
ID= MajuroAtoll
NameDisplayable= Majuro Atoll Forward Base
ExternalBaseName= NAB Majuro
... get rid of that " NAB " (Space NAB Space) crap, and you should be good to go. We had this issue years ago, and it sure would have been nice to have remembered that sooner... sigh
PS: NO, absolutely NONE, NADA, Zilch leading space characters in a NavalBase name, either in the US_NavalBases file, nor in the Flotillas ExternalBaseName... you can use the _ underscore character, but NOT a space...

"Fix" is in the next release... phwew!!!
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 09-30-24, 09:40 AM   #2
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 propbeanie View Post
PS: NO, absolutely NONE, NADA, Zilch leading space characters in a NavalBase name, either in the US_NavalBases file, nor in the Flotillas ExternalBaseName... you can use the _ underscore character, but NOT a space...

"Fix" is in the next release... phwew!!!
well done.

i missed that little piece of trivia: matching the NavalBase name with the Flotilla base name. WTF!?!?!?!?!

well then, another fix for the 999_Mod.

thanks, Big Guy!

__________________
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-07-24, 02:11 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

@KaleunMarco: Ain't that fun??? On a related note, a previously reported Insert Palau 03 mission issue - all is well, but check this out:




Notice the "Survivor in the lower left? I did not wait no shtinking four hours, and just went around to pick them up, and that is how far the "asset" drifted in about 45 minutes of game time... sigh. The two rafts were up where you see the boat near the top of the image. Sea state was a pinch rough:




And we had to come in rather close to shore to get them fellers...


... but it completes and we're out of there, headed to test 02, which is really buggered... who made that one? Surely not me.

btw - first test of 02 mission, and a US plane (Black Cat??) flew in and attacked my PhotoTargets with rockets... managed to sink one... - that ain't cool...



Edit 1645 Local: wrong mission numbers given above... changed to correct them...
__________________

"...and bollocks to the naysayers" - Jimbuna

Last edited by propbeanie; 10-07-24 at 04:43 PM. Reason: Edit 1645 Local: Whoops! Wrong number mission!!!
propbeanie is offline   Reply With Quote
Old 10-13-24, 07:57 AM   #4
JapLance
Sparky
 
Join Date: Feb 2024
Posts: 155
Downloads: 168
Uploads: 0
Icon9 Saving the game at sea is costing me some of my sinkings

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.
JapLance is offline   Reply With Quote
Old 10-13-24, 08:09 AM   #5
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,381
Downloads: 3484
Uploads: 0


Default

I do not have this problem, and I play a patrol in many sessions, I'm an slow player using low TC.

Do you overwrite savegames? Ever I save the sessions with a new name. Also, I do not use TC 》4 arriving to the base at the end of the patrol.

When you are returning in the last session do you see in the map all the sunk ships? (icons)

Best regards

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo is offline   Reply With Quote
Old 10-13-24, 09:58 AM   #6
JapLance
Sparky
 
Join Date: Feb 2024
Posts: 155
Downloads: 168
Uploads: 0
Default

Quote:
Originally Posted by fitzcarraldo View Post
I do not have this problem, and I play a patrol in many sessions, I'm an slow player using low TC.

Do you overwrite savegames? Ever I save the sessions with a new name. Also, I do not use TC 》4 arriving to the base at the end of the patrol.
No, I don't overwrite games, I know it can create problems. But I do use time compression, usually 512/1024 max. Occasionally I can move to 2048, for example when I was returning home in the Coral Sea out of Japanese air bases range. Otherwise instead of 3 hour sessions they would last days!


Quote:
Originally Posted by fitzcarraldo View Post
When you are returning in the last session do you see in the map all the sunk ships? (icons)

Best regards

Fitzcarraldo
Yes the map had all the sinkings, and as you can see in the screenshot, they were properly credited both in the map and in the notebook. It all went wrong only when I pressed "End patrol" and you get the summary.

JapLance is offline   Reply With Quote
Old 10-13-24, 11:13 AM   #7
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   #8
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   #9
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
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 08:57 AM.


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.