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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-30-15, 04:19 AM   #1
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

An one more thing gap regarding your changes in DefSide.cfg file...Your work and knowledge about historical dates is really impressive but I don't think that you were aware of one fact when you created it. I've tried to explain this with Danish freighter example but I guess you didn't understand me well...

IF "Free nation" ship is spawned inside allied convoy outside date limit you've set in DefSide.cfg file, the game wont ignore her and threat it like it doesn't exist. It will spawn free nation ship but it will automatically assign her neutral status (Side=0).


This is also one of the main reasons of neutral ship appearance inside convoys and it is especially noticeable with free nations ships which have relatively short Side=1 date limit (like Free Denmark).

Code:
[SideEntry 75]		; //// D A N I S H  M E R C H A N T  F L E E T  A N D  N A V A L  F L O T I L L A  I N  E X I L E \\\\\ (Merchants,[few] Warships; Naval units only after 'Operation KNU' [19430829])
Country=FreeDenmark
Side=1
StartDate=19390930	; The Danish steam merchant 'Vendia' is stopped by U-3. She was sunk after an attempt by her crew to ram the U-boat. After this episode and before the invasion of Denmark by Nazi Germany (Operation Weserübung, 19400408), though Denmark was a neutral country, the Danish merchant fleet suffered 167 casualties due to attacks by German U-boats
EndDate=19400407	; Operation Weserübung: Germany invades Denmark; a puppet government is issued
Because GroupTypeDefs.cfg is identical for all campaigns, this means that free Denmark freighters will be spawned in allied convoys during entire war but after 1940/04/08 they will always be neutral (Side=0). Do you understand what I'm trying to say with my creepy English?
vdr1981 is offline   Reply With Quote
Old 07-30-15, 06:11 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
Any ship in allied convoy should be allied ship (Side=1) and NOT neutral (Side =0). That's the only logical and realistic way...
I lean towards your opinion, but I wouldn't advise being so drastic. War is chaos, and it is possible that some merchant navies fell in a gap of the war regulations, making their ships' sinking unadvisable for a short period since the beginning of their involvement in the Allied war effort. Should we find any of these exception to the rule "neutral ship in Allied convoys = valid target", a timely campaign radio message will make sure that we are not misleaded during our attacks.

Quote:
Originally Posted by vdr1981 View Post
I'll repeat again my experience with three "green/neutral" Greek ships inside British protected convoy. The game gave me -3 rating points which is catastrophic because from that moment I could only say buy-buy to any future sub upgrades...
Buy buy, sub upgrades?
Are we talking about Silent Hunter Online?

Quote:
Originally Posted by vdr1981 View Post
Trevally gave us some advices but I don't know which files he was taking about.
Can you do something regarding this issue Gap so we can finally get over this issue?
I think so, but I will still need advise and assistance by Trevally...

Quote:
Originally Posted by vdr1981 View Post
An one more thing gap regarding your changes in DefSide.cfg file...Your work and knowledge about historical dates is really impressive but I don't think that you were aware of one fact when you created it. I've tried to explain this with Danish freighter example but I guess you didn't understand me well...

IF "Free nation" ship is spawned inside allied convoy outside date limit you've set in DefSide.cfg file, the game wont ignore her and threat it like it doesn't exist. It will spawn free nation ship but it will automatically assign her neutral status (Side=0).


This is also one of the main reasons of neutral ship appearance inside convoys and it is especially noticeable with free nations ships which have relatively short Side=1 date limit (like Free Denmark).

Code:
[SideEntry 75]		; //// D A N I S H  M E R C H A N T  F L E E T  A N D  N A V A L  F L O T I L L A  I N  E X I L E \\\\\ (Merchants,[few] Warships; Naval units only after 'Operation KNU' [19430829])
Country=FreeDenmark
Side=1
StartDate=19390930	; The Danish steam merchant 'Vendia' is stopped by U-3. She was sunk after an attempt by her crew to ram the U-boat. After this episode and before the invasion of Denmark by Nazi Germany (Operation Weserübung, 19400408), though Denmark was a neutral country, the Danish merchant fleet suffered 167 casualties due to attacks by German U-boats
EndDate=19400407	; Operation Weserübung: Germany invades Denmark; a puppet government is issued
Because GroupTypeDefs.cfg is identical for all campaigns, this means that free Denmark freighters will be spawned in allied convoys during entire war but after 1940/04/08 they will always be neutral (Side=0). Do you understand what I'm trying to say with my creepy English?
Yep, at this point what you are saying is obvious. We have three ways to address the problem:

- widening the timeframe that Free Nations are set as German enemies;
- altering GroupTypeDefs.cfg for each campaign so that the compositation by nation of the same convoy changes from a campaign to the other;
- playing with ship class appearance/disappearance dates in each nation's roster, so to make sure that some nations will only spawn within convoys when we need for them.

The best approach could be a combination of the three methods above, depending on the needs.

What do you think Trevally?
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 07-30-15 at 06:19 AM.
gap is offline   Reply With Quote
Old 07-30-15, 06:31 AM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Icon7 A question quick for Trevally...

Hi John,

talking about the SpawnProbability setting of each Escort/ConvoyUnit definition, do you happen to know if it is applied to the unit as a whole, or rather individually to each ship set in the Unit?

Let's say that we have an unit composed of 2 British corvettes, and we set their spawn probability to 50%. In the first case we would have a 50-50 probability of getting two corvettes or no corvette at all. But if the SpawnProbability is meant for each ship in the Unit, with the above setting we would have:

a 25% chance of no corvette;
a 50% chance of one corvette;
a 25% chance of two corvettes.

It makes a big difference
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-30-15, 06:32 AM   #4
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

War is chaos, and it is possible that some merchant navies fell in a gap of the war regulations, making their ships' sinking unadvisable for a short period since the beginning of their involvement in the Allied war effort. Should we find any of these exception to the rule "neutral ship in Allied convoys = valid target", a timely campaign radio message will make sure that we are not misleaded during our attacks.

Occasional one or two neutral appearance would not be a problem at all but this issue is now much more "acute"...

Buy buy, sub upgrades?
Are we talking about Silent Hunter Online?

For the 10th time, rating points are very important unless you want to reach the end of the war with type VIIA...

- widening the timeframe that Free Nations are set as German enemies;
The easiest and the most effective solution IMO...


- altering GroupTypeDefs.cfg for each campaign so that the compositation by nation of the same convoy changes from a campaign to the other;
- playing with ship class appearance/disappearance dates in each nation's roster, so to make sure that some nations will only spawn within convoys when we need for them.

But these two could be much more time consuming and complicated and to be honest, I'm a little bit angry because we have to deal with this after all these years...
vdr1981 is offline   Reply With Quote
Old 07-30-15, 07:10 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
War is chaos, and it is possible that some merchant navies fell in a gap of the war regulations, making their ships' sinking unadvisable for a short period since the beginning of their involvement in the Allied war effort. Should we find any of these exception to the rule "neutral ship in Allied convoys = valid target", a timely campaign radio message will make sure that we are not misleaded during our attacks.

Occasional one or two neutral appearance would not be a problem at all but this issue is now much more "acute"...
I see. As I told you, I see no reason why -with some patience- we shouldn't be able solving the issue

Quote:
Originally Posted by vdr1981 View Post
Buy buy, sub upgrades?
Are we talking about Silent Hunter Online?

For the 10th time, rating points are very important unless you want to reach the end of the war with type VIIA...
I know that. But as I read your previous post I got that you wanted to bribe the mechnanic at docks, and "buy" the upgrades that you are not given through reward points (due to your poor performance)

Quote:
Originally Posted by vdr1981 View Post
- widening the timeframe that Free Nations are set as German enemies;
The easiest and the most effective solution IMO...
Possible, and this is the method I will use for a quick patch, but in some cases the other two methods might be more effective. Convoys composition by nation, number and types of escorts, ship armaments, crew ratings, etc, changed over the years. I can be wrong, but I think this complexity can be only achieved by having different versions of GroupTypeDefs.cfg for each campaign. On the other hand, getting rid of some duplicated nations when they are no longer needed (by anticipating the disappearance of all of the ships in their roster), may avoid confusion.

Quote:
Originally Posted by vdr1981 View Post
- altering GroupTypeDefs.cfg for each campaign so that the compositation by nation of the same convoy changes from a campaign to the other;
- playing with ship class appearance/disappearance dates in each nation's roster, so to make sure that some nations will only spawn within convoys when we need for them.

But these two could be much more time consuming and complicated and to be honest, I'm a little bit angry because we have to deal with this after such a long time...
You shouldn't. Who are you angry with? With people like Trevally, me... and you, who used a lot of hours of their free time for making this game better? Who else is to be considered "liable" for this and other shortcomings and unwanted features we might find in our mods? We should rather be grateful to Trevally for his little jewel, and be ready facing any possible inaccuracy, if Trevally accepts the changes.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-30-15, 07:54 AM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Hi everyone

Quote:
Because GroupTypeDefs.cfg is identical for all campaigns, this means that free Denmark freighters will be spawned in allied convoys during entire war but after 1940/04/08 they will always be neutral (Side=0). Do you understand what I'm trying to say with my creepy English?
I am sorry, but this is not the case. I wish I had mad grouptypedef common with all campaign - it is not
At times when making ohii I felt overwhelmed with how much work was involved and so I cut a few corners now and again.
Just had a quick look and I think there may be 3 or 4 grouptypedef files within ohii. This will now result in more work for any repair/update, unless that update is a simple text edit.

Quote:
a timely campaign radio message will make sure that we are not misleaded during our attacks.
I feel this is a great idea and should be done even if the issue is fixed with grouptypedef. Simple case of firing of a message (red) for each event in the defside.

Quote:
Yep, at this point what you are saying is obvious. We have three ways to address the problem:

- widening the timeframe that Free Nations are set as German enemies;
- altering GroupTypeDefs.cfg for each campaign so that the compositation by nation of the same convoy changes from a campaign to the other;
- playing with ship class appearance/disappearance dates in each nation's roster, so to make sure that some nations will only spawn within convoys when we need for them.

The best approach could be a combination of the three methods above, depending on the needs.

What do you think Trevally?
Due to the grouptypedef not being common, I also think any fix should be done campaign by campaign within the 3 to 4 version of said file - or just campaign by campaign.

Here all we need is a list of campaign dates
a list of problem nations within each timeframe

This would allow a simple switch nation to British (largest roster) etc

Quote:
Hi John,

talking about the SpawnProbability setting of each Escort/ConvoyUnit definition, do you happen to know if it is applied to the unit as a whole, or rather individually to each ship set in the Unit?
Hi Gabriel

It was so long ago I can't remember and no longer had SH5 installed.
I am due to upgrade mt broadband to superfast 40mbs in 2 weeks and will reinstall then

From looking at the files I think the when 2 units have a 50% spawn chance - it is either both or none on the toss of a coin

Quote:
For the 10th time, rating points are very important unless you want to reach the end of the war with type VIIA...
it is important Vecko that users do get their upgraded boats. OHII was based on this happening and yes I agree - we should do all we can to help/ensure this will happen.
I did spend many weeks trying to force boat upgrades without and luck.

Quote:
You shouldn't. Who are you angry with? With people like Trevally, me... and you, who used a lot of hours of their free time for making this game better? Who else is to be considered "liable" for this and other shortcomings and unwanted features we might find in our mods? We should rather be grateful to Trevally for his little jewel, and be ready facing any possible inaccuracy, if Trevally accepts the changes.
there are times I am angry at myself
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 07-30-15, 09:23 AM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Trevally. View Post
I wish I had mad grouptypedef common with all campaign - it is not

...

Just had a quick look and I think there may be 3 or 4 grouptypedef files within ohii. This will now result in more work for any repair/update, unless that update is a simple text edit.
Thank you for your answers Trevally. Out of curiosity, what is the advantage of having one grouptypedef shared by all the campaigns, other than having to deal with just one file rather than with as many files as the campaigns we have in game? As I was speculating in my previous post, looking through the files I noticed there is no way to change convoys composition, armament, crew ratings, departure/destination ports, etc. by date, So, I thought, having different copies of grouptypedef for each campaign would make provision for those changes to happen from a campaign to the next one. Is there any other method to do the same by having just one grouptypedef? I have noticed that you have split some convoys in 2 or more grouptypes (e.g. convoy AS1_, AS2_, AS3_ etc.). Is that another method to ensure the needed convoy changes throughot the whole campaign?

Quote:
Originally Posted by Trevally. View Post
I feel this is a great idea and should be done even if the issue is fixed with grouptypedef. Simple case of firing of a message (red) for each event in the defside.
Yes, definitely. As I said I could prepare a draft of the needed campaign messages, but I would like a native english speaker with a basic knowledge of the military terminology to write the final messages. Or at least to make bring the final corrections and /our touch-ups to my texts.

For a quick fix I was thinking about:
- making Free Nations to

Quote:
Originally Posted by Trevally. View Post
Due to the grouptypedef not being common, I also think any fix should be done campaign by campaign within the 3 to 4 version of said file - or just campaign by campaign.

Here all we need is a list of campaign dates
a list of problem nations within each timeframe

This would allow a simple switch nation to British (largest roster) etc
I need to have a closer look into your files before I can say more than I already said, but as I noted before the easiest or most effective solution may vary nation by nation, depending on the sequence of its diplomatic switchings and its involvement in the war.

Quote:
Originally Posted by Trevally. View Post
Hi Gabriel
Hi again John

Quote:
Originally Posted by Trevally. View Post
It was so long ago I can't remember and no longer had SH5 installed.
I am due to upgrade mt broadband to superfast 40mbs in 2 weeks and will reinstall then
Can't wait for that

Quote:
Originally Posted by Trevally. View Post
From looking at the files I think the when 2 units have a 50% spawn chance - it is either both or none on the toss of a coin
Makes sense
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 07-30-15, 10:26 AM   #8
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Thank you for your answers Trevally. Out of curiosity, what is the advantage of having one grouptypedef shared by all the campaigns, other than having to deal with just one file rather than with as many files as the campaigns we have in game? As I was speculating in my previous post, looking through the files I noticed there is no way to change convoys composition, armament, crew ratings, departure/destination ports, etc. by date, So, I thought, having different copies of grouptypedef for each campaign would make provision for those changes to happen from a campaign to the next one. Is there any other method to do the same by having just one grouptypedef? I have noticed that you have split some convoys in 2 or more grouptypes (e.g. convoy AS1_, AS2_, AS3_ etc.). Is that another method to ensure the needed convoy changes throughot the whole campaign?
The convoy system was set up as you have noticed. In the grouptypedef we have convoy:-

AS1_ (early war - no camo - few escorts - poor crew)
AS2_ a bit better
AS3_ a bit better
AS4_ mid war - some camo - more escorts - av crew)

and by the end you have:-
AS7_ late war - very strong escort - vet crew)

The next stage is to ensure that the correct convoy rating is used in the correct time scale within the campaign.
This is done by the use of the Gen_Node (port layer?)
This gen node has all the info for convoy types (as1 or as2 etc) and then a date restriction.

So it is a combination of those two controlling files that ensures that the convoy system matches the war effect as described above.

This gen node files are common to all campaigns and use the date control to ensure everything is correct. If you open it you will see convoys setups being called by name.

__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Reply

Tags
awesome, campaign, graf zeppelin, harbour, new bases, new ships, ohii

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 01:37 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.