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

Reply
 
Thread Tools Display Modes
Old 10-06-10, 01:50 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by sub_optimal View Post
That's fantastic, LGN1. That saves a ton of work.

Do you mind if I ask a few questions?

Firstly, are you sure that "Efficiency = (M*(1-c_m)+c_m)*(F*(c_f-1)+1)" shouldn't read "Efficiency = ((M*1-c_m)+c_m)*((F*c_f-1)+1)"?

Second, what leads you to the conclusion that SpecificFactor is envoked when crews are moved from compartment to compartment? I've been sitting here moving my crews around, their fatigue doesn't seem to go up. Furthermore, in the default settings, the SpecificFactor for compartments 3 and 4 (diesel and electric engines respectively) are mirrored for the x0 and x1 conditions (ie 30 is 0.4, 31 0.1; 40 is 0.1, 41 0.4). This would seem to fit the model that these factors should reflect the submerged and surfaced postures of the submarine, as the electrics are only used submerged and the diesels surfaced. Thus:

30 - diesel surfaced - in use = 0.4 (high)
31 - diesel submerged - not in use = 0.1 (low)
40 - electric sufaced - not in use = 0.1 (low)
41 - electric submerged - in use = 0.4 (high)
Hi,

I am pretty sure about the formula. Your version can be simplified to

Efficiency = (M-c_m+c_m)*(F*c_f-1+1) = M*F*c_f

which means for c_f=0 you have no efficiency. Also c_m has no influence. But in-game you can choose a purely morale-dependent model by choosing c_f=1. By choosing c_m=1 you get a pure fatigue model.

Sorry, about the regular and specific factors. I confused the two. It's the other way round (corrected it above). Look in this old thread:

http://www.subsim.com/radioroom//showthread.php?t=85656

Be careful, the formula given there for the efficiency is wrong, IMHO.

Quote:
Originally Posted by divingbluefrog View Post
LGN1, I see you have fine tuned your model since your discovery of the formula that changes my life... Thank you again for this fantastic breakthrough.
I can give you my two cents :
Regular - noncombat situation
Specific – Combat situation
This is not my own conclusion, I found this somewhere in the inmost depths of this forum, and copied it to my own Tips 'd Tricks file.

For the Tfix in the repair time formula, I incline toward a relation with the Hit Point of the equipment/compartment, even with the amount of hp lost or remaining...
Could you confirm the formula is T = Tfix/(Eff*Interval3) ?

By the way, do you have any idea about the Resilience factor? All I know is that it is influenced by crewman HP, the more HP, the less resilience. Should have an influence on Fatigue or Efficiency...
About the specific and regular factors, see the thread I linked above. It's quite old, but I don't know any definite conclusion about the regular factor.

You are right about the repair times. I am pretty sure that the status of the damaged item (via hitpoints) plays a role. However, how hitpoints exactly enter is not known to me. The formula is just about how the efficiency enters (what happens if you send more men to repair). A more correct version would be

T = Tfix(damage/hitpoints)*Interval3/Eff

,i.e., Tfix is an unknown function of the damage/hitpoints. If you increase the Interval3 value, the time will also increase.

Which Resilience factor do you mean? The colored bar for each crew member? I think it's just 1-fatigue. I don't think that hitpoints influence the efficiency. At least I can predict the efficiency (green bar above the compartment) without using any hitpoint information.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 10-06-10, 02:23 PM   #2
sub_optimal
Watch
 
Join Date: Sep 2010
Location: Toronto, Canada
Posts: 24
Downloads: 44
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
I am pretty sure about the formula. Your version can be simplified to

Efficiency = (M-c_m+c_m)*(F*c_f-1+1) = M*F*c_f
Wait... maybe I'm going crazy, but I thought that you had to do the addition and subtraction first, and then the multiplication and division.
sub_optimal is offline   Reply With Quote
Old 10-06-10, 02:43 PM   #3
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Just a small example to illustrate the formula (values taken from GWX):

[CREW_0] ;SEAMAN
MoraleMin=0.30
MoraleMax=0.60
FatigueMin=0
FatigueMax=0.80
CoefMorale=0.4
CoefFatigue=0.21
QualEffect=1

--> A rested seaman adds 0.76 to the efficiency in a compartment. When completely exhausted he adds 0.76*0.368 = 0.27968.

[CREW_3] ;PETTYOFFICER
MoraleMin=0.40
MoraleMax=0.70
FatigueMin=0
FatigueMax=0.80
CoefMorale=0.3
CoefFatigue=0.3
QualEffect=2

--> A rested petty officer adds 0.79 to the efficiency in a compartment. When completely exhausted he adds 0.79*0.44 = 0.3476. If he has the correct qualification for the compartment he adds 1.58 and 0.6952, respectively.

[CREW_6] ;SUBLIEUTENANT
MoraleMin=0.50
MoraleMax=0.80
FatigueMin=0
FatigueMax=0.80
CoefMorale=0.2
CoefFatigue=0.4
QualEffect=1.5

--> A rested sub lieutenant adds 0.84 to the efficiency in a compartment. When completely exhausted he adds 0.84*0.52 = 0.4368.

If the officer is in a compartment with a sailor (both rested), the total efficiency is (0.84+0.76)*1.5 = 2.4 (assuming the officer has the correct qualification). Clearly, having an officer with the correct qualification is very important.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 10-06-10, 02:53 PM   #4
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by sub_optimal View Post
Wait... maybe I'm going crazy, but I thought that you had to do the addition and subtraction first, and then the multiplication and division.
Quote:
Originally Posted by sub_optimal View Post
... which is, of course, not what you said at all. I fail at reading.
Hi sub_optimal,

multiplication and division come first:

a*b+c = (a*b)+c
a*(b+c)=a*b+a*c=(a*b)+(a*c)

Concerning the specific and regular factors. I am pretty sure that (as you wrote) specific is for surfaced and submerged (my first post was wrong. I corrected it.). In the thread I linked it says that regular0 is a one-time hit when someone is moved to a compartment. I think I tested this once and confirmed it for myself. Maybe increase the value in basic.cfg and see whether you observe a change.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 10-06-10, 03:03 PM   #5
sub_optimal
Watch
 
Join Date: Sep 2010
Location: Toronto, Canada
Posts: 24
Downloads: 44
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
multiplication and division come first
I looked it up; you're right. It's scary what I've forgotten from elementary school! Either that or I've hopped from one universe to another. :-) Yep, I'm sticking with that story.

Quote:
Originally Posted by LGN1 View Post
I think I tested this once and confirmed it for myself. Maybe increase the value in basic.cfg and see whether you observe a change.
Yep, I tested this too, and it's correct. Still don't know what Regular 1 does, though. Might it be a hit when the sub takes damage or something?
sub_optimal is offline   Reply With Quote
Old 10-06-10, 07:46 PM   #6
sub_optimal
Watch
 
Join Date: Sep 2010
Location: Toronto, Canada
Posts: 24
Downloads: 44
Uploads: 0
Default

Earlier threads claim that the time compression above which fatigue will not increase (or decrease, depending on your perspective) is set by the "3d Render=" option, which defaults to "3d Render=32".

Does anybody know if this is true?

Also, how exactly do the fatigue coeficients work, in practice, and how do they interact with FatigueStep? Does anybody know the formula for this?

Last edited by sub_optimal; 10-06-10 at 09:16 PM.
sub_optimal is offline   Reply With Quote
Old 10-06-10, 11:25 PM   #7
sub_optimal
Watch
 
Join Date: Sep 2010
Location: Toronto, Canada
Posts: 24
Downloads: 44
Uploads: 0
Default

Some more discoveries:

The fatigue system is divided into distinct 'rounds'
Each round is ten minutes long, and begins on the "0's" (1:10, 1:20, 1:30, etc)

[NB: I just double checked this, and it seems that fatigue is also sometimes recovered on the "5's"; clearly I haven't worked this out entirely yet.]

The fatigue penalty or recovery is assigned at the beginning of each ten minute round. If you put a guy into a compartment at 12:09 he will be just as fatigued at 12:10 as he would have been if he had been assigned at 12:01.

The above does not apply to the RegularFactor penalty, which is assigned as soon as a sailor is put into the compartment.

I think that the fatigue penalty defined by SpecificFactor is initiated at the beginning of each round by subtracting the SpecificFactor penalty from the man's fatigue score, where 0 is completely fatigued and 1 is completely fresh.

FatigueMax appears to define the point at which the ! shows up and the man is exhausted. However, this operates the opposite to way which one might expect given the way the other numbers work. It seems as if a sailor with a FatigueMax of .2 becomes exhausted fast (after 20% of his fatigue points are gone) whereas a sailor with a .8 score can tolerate 80% of his fatigue points disappearing before becoming exhausted.

FatigueStep seems to be the number added to the fatigue score for every round the sailor begins in a Crew Quarters compartment.

The SpecificFactor score for the Quarters compartments (which is negative) does not seem to be added to their fatigue score. This is very mysterious, because this is different from what others describe. However, I assigned a '-1' score to this compartment, expecting that it would bump the player up to full health immediately, and yet their fatigue seemed to dissipate at the usual rate.

I would be very grateful if anybody could shed light on this further.
sub_optimal is offline   Reply With Quote
Old 10-07-10, 08:16 AM   #8
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

Quote:
Earlier threads claim that the time compression above which fatigue will not increase (or decrease, depending on your perspective) is set by the "3d Render=" option, which defaults to "3d Render=32".

Does anybody know if this is true?
Yes it is. Fatigue will operate only under the TC set for 3D render.

Some time ago Kaa created a fatigue model I liked much, but that was dropped for unknown reasons. By setting 3D render to 1024 (Or whatever maximum TC you had), and giving all crew small fatigue values, they became exhausted over a period of months, hence making a good representation of overall fatigue in patrol. You didn't need to move crewmen around any more, they just tired always the same -and a bit faster during storms if surfaced-. I think this was a very good representation of one aspect involved, i.e. overall fatigue. Other models liek the one you are exploring represent better the normal watch shifts during patrol, but when a crewman is rested, he is as rested as if he had not been already one month in patrol. I prefer the other method, and as with all these simulations goes, it's always a trade-off; rarely will you be able to say "this or that is more realistic" ... it's a matter of choosing what aspect of reality you prefer to simulate in such a limited enviroment.
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 10-07-10, 02:55 PM   #9
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by sub_optimal View Post

FatigueMax appears to define the point at which the ! shows up and the man is exhausted. However, this operates the opposite to way which one might expect given the way the other numbers work. It seems as if a sailor with a FatigueMax of .2 becomes exhausted fast (after 20% of his fatigue points are gone) whereas a sailor with a .8 score can tolerate 80% of his fatigue points disappearing before becoming exhausted.

The SpecificFactor score for the Quarters compartments (which is negative) does not seem to be added to their fatigue score. This is very mysterious, because this is different from what others describe. However, I assigned a '-1' score to this compartment, expecting that it would bump the player up to full health immediately, and yet their fatigue seemed to dissipate at the usual rate.
IIRC, the ! does not show up when FatigueMax is reached, but 10% before it's reached.

You are right, the rest quarters have two variables: fatigueStep/moraleStep and the specific factors. I don't remember what the influence of the specific factor was, but I would not be surprised if it has no influence in this case.

The rest sounds quite similar to my observations.

Cheers, LGN1
LGN1 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:35 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.