![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#676 | |
Medic
![]() Join Date: Jan 2008
Location: Oulu, Finland
Posts: 162
Downloads: 368
Uploads: 0
|
![]() Quote:
Looks like irai already did: ;Submarine player sensors detection parameters [SensorParameters] ;Visual. Visual range factor=0.30 ;[>=0] was 0.5, decreased by 25% Visual fog factor=0.75 ;[>=0] Visual light factor=1 ;[>=0] Visual waves factor=0.65 ;[>=0] was 0.8, decreased by 25% Visual speed factor=0 ;[>=0] Visual aspect=0.9 ;[>=0] Visual enemy speed=0.2 ;[>=0] Visual noise factor=0 ;[>=0] Visual sensor height factor=0.5 ;[>=0] Visual already tracking modifier=600 ;[detection probability modifier], most accurate, once a contact is detected it will lose it very hard Visual decay time=250 ;[>0] already tracking bonus decay, in seconds Visual uses crew efficiency=false ;[true or false] Maybe it needs more tuning, must test my self ![]() ![]() If numbers go down, will spotting distance go down or up ? |
|
![]() |
![]() |
![]() |
#677 |
Black Magic
![]() |
![]()
I have the complete collision routine and all it's subroutines mapped out and decoded
![]() Let me pose this interesting question: Given a zone (box) of a unit has an AP value of 100. The player fires a shell at the unit and hits said zone (box). The AP value of the shell is 10. By the game's calculations no damage is done to this zone (box). I would agree since it's AP value of 100 (100cm) protects against a shell with an AP value of 10 (10cm). But what if this shell impact stresses the zone (box) and degrades it some? Would this happen in real life? ![]() If it would happen in real life then I could have the game 'roll' a % chance to see if the zone (box)'s AP value degrades. If the result of this is it does then come up with some formula to reduce the AP value of this zone (box). This would only apply to the impact point and not to any adjacent zones (boxes). Thoughts ![]() My creative mind is having a hay day right now. I see/know everything that goes on during a collision and I have the ability to make it do whatever I want it to do ![]() A patch I think I'm going to release will add some 'variety' to the shell/torpedo collisions. If you look at the AmmoDamageInfo controller attached to a shell/torpedo you'll notice MinEF, MaxEF, AP, MinRadius, MaxRadius, etc. These are hard coded values - they do not change anytime a collision happens. It just doesn't seem right thinking about it in real life terms. Manufacturing tolerances and different qualities of materials in each batch of x weapon made will have different values of these parameters. Thus I'm going to have the game randomize these values to reflect this. |
![]() |
![]() |
![]() |
#678 |
Ace of the deep .
|
![]()
Does cargo type carried or cargo weight come into it . DisplacementVariation found in Silent Hunter 5\data\Sea\******\CFG
If other ships are nearby does chance of extinguishing fires increase ? Time to extinguish fires would depend on size of zone box etc ? "When the damaged hull allowed sufficient sea water to rapidly rush inside , the fires seemed to extinguish immediately " Is the zone box % underwater . Throw this into the mix Last edited by THE_MASK; 07-30-12 at 08:31 PM. |
![]() |
![]() |
![]() |
#679 | |
Black Magic
![]() |
![]() Quote:
torpedo hits ship. Game calculates damage that can be inflicted by torpedo. Subtracts this damage from ship's HPs. Now iterates over all boxes: is AP value of torpedo > AP value of box? If yes incur damage to box. If not check next box. If all boxes checked then done. Now where in that routine does it decrease the AP value of the box? IT DOESN'T! So you're telling me that a box that just suffered a torpedo hit and incurred damage still has the same AP value? I don't think so. So here's what I'm adding: if box incurs damage from collision then calculate damage to AP also (formula yet to be determined) and update box's AP value to reflect lower value. You have some great ideas there. Whether they can be implemented or not time will tell ![]() |
|
![]() |
![]() |
![]() |
#680 |
Black Magic
![]() |
![]()
version 1.0.48.0 released. See post #1
This version adds a new patch for SHCollisions.act. This new patch will reduce the AP of the zone (box) when it receives damage (applies to collateral damage also!). This new patch REQUIRES COLLATERAL DAMAGE PATCH TO BE ENABLED OR GAME WILL CTD! The zone (box) has to incur damage in order for it's AP to be reduced (this means the AP value of the item impinging on the unit has to be higher than the AP of the zone (box) - i.e. a torpedo or (most) shell impacts or a DC) Why is this AP value important? Because it plays a BIG factor in the amount of damage a zone (box) incurs. In a nutshell the AP of the zone (box) in subtracted from the AP of the item causing the damage, this value is then used in a formula to figure out the amount of HPs damage to the zone (box). Even though the zone (box) may be repaired eventually the next time it is subjected to damage it will incur more damage due to having a lower AP value (you'll notice this with your sub! Being depth charged now is a BAD move - even close bomb explosions from airplanes are not good!) There is much room for improvement of this patch. This is the first version of it. I'll add the randomization of the AmmoDamageInfo parameters tomorrow ![]() ![]() Last edited by TheDarkWraith; 07-31-12 at 12:53 AM. |
![]() |
![]() |
![]() |
#681 |
Navy Seal
![]() |
![]()
Thanks TDW - this sounds great
![]() I had always ensured that when I fire torps at a ships - they would hit different parts - spread the damage. With this - is it correct to think that placing a torp in the same hole as the one before will now do more damage ![]() I will start testing shortly ![]() |
![]() |
![]() |
![]() |
#682 |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]()
As far as I know, a shell inpacting on a metal plate would damage anyway its structure -no matter if shell's AP are lesser than box AP- by means of deformation and micro-creaks.
These factors would affect the armour level by decreasing it, and they should be cumulative with an exponential trend. In other words, the more stress a metal structure had previously suffered, the bigger the effect of further stresses, until the critical point is reached and a mechanical overload (sudden collapse of the structure) is occurring. I suppose as well that any improvised damage repair could restore the original armour only in minimal part. |
![]() |
![]() |
![]() |
#683 | ||
Black Magic
![]() |
![]() Quote:
One thing I have to add to the AP damage patch is damage to the unit's AP. If you look in the .zon file for the unit you'll see that it has an AP defined. This value is used when a zone (box) has an AP value < 0. When the zone (box) has AP value of < 0 the game takes the absolute value of the zone (box) AP and mutliplies the unit's AP value with it to get the zone (box)'s AP value. This unit AP value is also used when the shell/torpedo first impacts the unit. At first impact the game takes the AP value of the shell/torpedo and subtracts the unit's AP value from it and then uses this result in a formula to calculate the number of HPs to subtract from the unit. As you can see when the unit's AP value decreases the number of HPs sustained increases. Just as it should. I hope to add this to the AP patch today. Quote:
![]() |
||
![]() |
![]() |
![]() |
#684 | |
Ace of the Deep
![]() Join Date: Sep 2010
Location: LA Area, Central coast, California
Posts: 1,023
Downloads: 827
Uploads: 0
|
![]() Quote:
Cheers D40 ![]()
__________________
Dogfish40 |
|
![]() |
![]() |
![]() |
#685 | |
Black Magic
![]() |
![]() Quote:
the game calculates the distance from the zone (box) to the impact point. It then does a 'lazy' square root to get the square root of that distance. It then compares that result to the MinRadius and MaxRadius values. Now the MinRadius and MaxRadius values are scaled to game units (multiplied by 0.1 - i.e. MinRadius in sim file is 3 but in game it's 0.3). I can't for the life of me figure out why they are taking the square root of the distance ![]() |
|
![]() |
![]() |
![]() |
#686 |
Ocean Warrior
![]() |
![]()
Hi TDW!
The new Sub on bottom fix have a new third-party effect. The sub is dive lower than required in the Uboat.cfg file.. For example: PeriscopeDepth in the file - 12m, when Sub on bottom fix enabled - 14m SnorkelDepth in the file - 14m, when Sub on bottom fix enabled - 16m
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
![]() |
![]() |
![]() |
#687 | |
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
|
![]() Quote:
![]() during this afternoon I've been playing with a possible simplified model for armour/damage. Given AP(S): shell's armour points and AP(B0): box's starting armour points, both >= 0, box's armour points after shell's impact is calculated as follows: AP(B1) = MAX [AP(B0)* [1 - [C1 * AP(S) / AP(B0)] ^ C2); 0] where C1 and C2 are two arbitrary positive constants we can use for "finetuning" the formula. Specifically: C1 is the lower AP(B0) / AP(S) ratio at wich a shell would be enough to wipe out boxe's armour points with one single inpact (graph's gradient when C2=1). C2 is the "exponential factor" of the formula. 1 for a linear hits number / Box armour points graph. Every time a shell inpacts a box, the game should update its armour points, and when they are zeroed the box should start taking damage. I have prepared a spreadsheet for changing the above mentioned parameters and seeing how they would affect the exponential curve. If you want to have a glance at it, I've uploaded it here: https://rapidshare.com/files/2103822...lculations.xls Last edited by gap; 07-31-12 at 06:14 PM. |
|
![]() |
![]() |
![]() |
#688 | |
Engineer
![]() Join Date: Mar 2002
Location: BF79
Posts: 209
Downloads: 71
Uploads: 0
|
![]() Quote:
![]() These are a few examples of what I found, it's a bit late here, I can give it a second look tomorrow. http://www.iseegoldenwest.org/tech.htm http://www.sustainableaggregates.com...gandenergy.htm http://www.sustainableaggregates.com...itoring_p2.htm |
|
![]() |
![]() |
![]() |
#689 | ||
Black Magic
![]() |
![]() Quote:
![]() ![]() Quote:
![]() ![]() On another note I found the main rendering loop in the exe file. I'm making a 'Render' patch that will allow you to: - remove posteffects - remove water droplets effects - remove water leaks effects These would mainly be used for troubleshooting but Sober may have an interest in the water droplets one. Maybe it will cure his smoke problem ![]() |
||
![]() |
![]() |
![]() |
#690 |
Black Magic
![]() |
![]()
v1.0.49.0 released. See post #1
This adds a new patch to SH5.exe that allows certain items from ever being rendered in the game. @Sober - try enabling the water droplets one and see if your smoke problem stops ![]() |
![]() |
![]() |
![]() |
|
|