![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#931 |
Black Magic
![]() |
![]()
well, as I thought, there's no way to implement a gradual sensor effectiveness decrease
![]() So I'll implement a stepped decrease over 4 time periods (4 tiers of fatigue). The time periods will be random based on ShipWatchRotation / 4. Each time period (tier) will decrease the sensor effectiveness some random amount. This also makes the watch rotation a random period of time which is good (now when the current watch finishes the 4th tier of fatigue they're too tired to continue their watch duties so a new watch team will step in) ![]() |
![]() |
![]() |
![]() |
#932 |
Black Magic
![]() |
![]()
4 tiers of fatigue works like a charm along with watch crew rotations
![]() Now this is awesome....simply awesome. The dynamics of it are just amazing. I'm making 4 levels of fatigue reduction: - cruise - alert - damaged - damaged alert In cruise fatigue will set in very slow rate. In alert fatigue will set in medium rate. In damaged fatigue will set in fast rate. In damaged alert fatigue will set in very fast rate. This way if you damage a ship it will fatigue faster and thus after time it will be easier for you to either sneak up on it or get away from it (until the next watch crew comes on). NOTE: everytime the ship AI changes state (alert, cruise, damaged, etc.) a new watch crew will take watch (thus no fatigue at start) Also to note is that each sensor fatigues on it's own. All the ship's sensors don't fatigue the same amount each tier interval - they fatigue their own random amount. Couple that with each ship fatigues totally different from each other ship and it's truely dynamic ![]() Last edited by TheDarkWraith; 10-27-10 at 07:12 PM. |
![]() |
![]() |
![]() |
#933 | |
中国水兵
![]() Join Date: Mar 2010
Location: 47°46′46″N, 37°14′51″E
Posts: 271
Downloads: 231
Uploads: 0
|
![]() Quote:
And I was not injured. ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#934 |
Black Magic
![]() |
![]()
v0.0.28 is working good. Will probably need some tweaking of the new values added for the watch crews and fatigue. We'll see how you all like it when I release it (here shortly).
Now I need to explain some things about the new additions for the ship AI: there is a base watch crew time (in minutes) for each ship: ShipWatchRotation = 180; every ship starts with crew with no fatigue. It then determines the time before the first fatigue level by: intervalTimeCP = (ShipWatchRotation + Ship:Random( -( ShipWatchRotation * 0.25 ), ShipWatchRotation * 0.25 ) ) / 4.0; this says take the 180 and add a random value somewhere between -25% and +25% of 180 to it and then divide the result by 4. This gives the time before the 1st fatigue level every ship then determines it's own fatigue levels (4 of them). Each fatigue level determines it's time by: intervalTimeCP = (ShipWatchRotation + Ship:Random( -( ShipWatchRotation * 0.25 ), ShipWatchRotation * 0.25 ) ) / 4.0; this says take the 180 and add a random value somewhere between -25% and +25% of 180 to it and then divide the result by 4. This gives the fatigue level time. This repeats 3 more times after the 4th fatigue level the watch crew is relieved by a 'fresh' watch crew with no fatigue. Now as each fatigue level is attained, each sensor of the ship will degrade in performance some random amount (simulating fatigue). Each sensor degrades it's own random amount. All of this makes for a truly random ship AI. You can be stalking a ship thinking you're at safe distance only to find that it changes watch crew and now you're detected! The vice versa is also true: you might be hunted by an escort and over time as fatigue sets in it may 'lose' contact with you allowing you to escape. Everytime the ship changes state (cruise, alert, damaged, etc.) the watch crew is relieved by a fresh crew with no fatigue. I'll have v0.0.28 available for download here very shortly ![]() |
![]() |
![]() |
![]() |
#935 |
Black Magic
![]() |
![]()
v0.0.28 released. See post #1 for details
![]() NOTE: because of the new features of fatigue and crew watch rotations for the ship AI it is recommended to leave all the difficulty levels at 1.0 Last edited by TheDarkWraith; 10-28-10 at 12:04 AM. |
![]() |
![]() |
![]() |
#936 |
Mate
![]() Join Date: Feb 2010
Location: Berlin
Posts: 56
Downloads: 159
Uploads: 0
|
![]()
Hallo TDW,
super Job, Danke. Ralf ![]() |
![]() |
![]() |
![]() |
#937 |
Admiral
![]() Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
|
![]()
WOW , this is incredible
![]() ![]() ![]()
__________________
What we do in life echoes in Eternity |
![]() |
![]() |
![]() |
#938 |
Ace of the deep .
|
![]()
Glad you thought of it .
|
![]() |
![]() |
![]() |
#939 |
Loader
![]() Join Date: May 2007
Posts: 86
Downloads: 42
Uploads: 0
|
![]()
What is the rate of the status change? I'm curious if the ship cen get cruise-->alert-->damage-->alert-->cruise path like in 5 minutes. I don't know if resetting fatigues in such situation is right.
|
![]() |
![]() |
![]() |
#940 |
Sea Lord
![]() Join Date: Dec 2009
Location: In my U-552 and Tiger
Posts: 1,732
Downloads: 788
Uploads: 0
|
![]()
Incredible! Great! Thank you very much TDW!!! Even the new merchant ships in SH5, mines, nets, better traffic in ports and it is a new game!
__________________
U-552 Tiger IDF |
![]() |
![]() |
![]() |
#941 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#942 | |
Black Magic
![]() |
![]() Quote:
Let's say the enemy is cruising along following waypoints. At this point it's in cruise state (barring no damage to it). Let's say the enemy detects a contact. At this point they switch to Alert state and hunt the contact. From IRAI's \data\Cfg\Sim.cfg: Lost contact time=20 This means that when the enemy loses contact with the contact it will continue 'looking' for it for 20 minutes before giving up. It also means that any other enemies within 20 minutes distance to the contact will also respond to the 'hunt'. Now let's say that during the hunt the enemy sustains enough damage to switch to damaged alert state. The time between alert state and damaged alert state is random because it depends on the enemy taking damage above a certain level. Once in damaged alert state it cannot go back to alert state ever again (the game doesn't allow the enemy to repair itself like we can with our sub). I'm curious: now due to fatigue are you able to 'slip away' from the enemy once detected after long periods of time? ![]() Last edited by TheDarkWraith; 10-28-10 at 09:08 AM. |
|
![]() |
![]() |
![]() |
#943 | |
Samurai Navy
![]() Join Date: Mar 2010
Posts: 592
Downloads: 199
Uploads: 0
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#944 |
Loader
![]() Join Date: May 2007
Posts: 86
Downloads: 42
Uploads: 0
|
![]()
I have a strange feeling that the DD are too much nerfed. I've noticed that below 46 meters their hydrophones are almost gone. Just look at my speed below. Next task force, I was at periscope with aread flank and no hydrophone yellow circles. Need to recheck it.
|
![]() |
![]() |
![]() |
#945 |
Black Magic
![]() |
![]()
it's one of several things:
- either the AI crew is very low quality (poor, competent, or novice) and/or - they currently have high fatigue. Give it some time (game hours) and see if their ability to detect you doesn't increase and/or - your in their low sensor effectivess ring (they have maximum ability to detect you in front of them in arc. To the sides and back their ability decreases) and/or - the surface area your presenting to the sensor is small and/or - could be many, many other things. IRAI is way too dynamic! I tried some of the single missions and dove to depths of 100m+ and everything appears to be working correctly. |
![]() |
![]() |
![]() |
|
|