SUBSIM Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > COLD WATERS > Mods Workshop for Cold Waters
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-20-2019, 08:31 PM   #1
Skwabie
Sailor man
 
Join Date: Dec 2016
Posts: 49
Downloads: 30
Uploads: 0
Default Wirebreak Mod (assembly code modding)

-WirebreakSpeedThreshold in weapons.txt now works. Wire break chance only affected by speed.

-Angled tube jams at ~10% chance (speed / 300) above 30.5 knots.

-Snake search pattern changed to much narrower. Default is 10deg/sec for 9 seconds turns. Changed to 2 deg/sec turn for 20 seconds.

-Torpedo vertical homing algorithm changed to pure pursuit. - By default it was only altitude difference based and has nothing to do with slant range. Torpedoes thus are mostly immune to large height difference/maneuver when homing.

-Torpedo run deep depth set to 200ft above sea floor, or 1000ft, whichever is shallower.

-“Advanced” torpedoes (sensor angle >=55 deg) reject wrecks, whales and oilrigs, and have a routine to evade if the target it locks on to is destroyed by another torpedo: stop homing - dive to run deep depth – snake search. Exception: countermeasure homing when target destroyed or evaded, upon which it will only circle search.

-AI launched torpedoes with sensor range above 2700yards will use drive through on jam. Below 2700 – drive around jam. By default AI torp drivethrough/drive around is based on chance. Player launched torpedoes: drive through jam on passive homing, drive around jam on active homing.

-AI launched torpedoes: sensor angles < 45 deg – snake; sensor angles between 45 and 55 deg – chance for either snake or straight; sensor angles > 55 deg – straight search.

-Player ASW missile torpedo will dive to depth of closest enemy at drop point and trigger AI reaction, and can also target surface ships.

-Sonar ping lines fade much slower so can get a solid bearing out of it.

-Max number of helos increased to 8 and min number ~ half of TF total. More chance for 8 if total helo count above 8. Initial patrol radius increased.

-Fixed wing aircraft is much less sticky.

-Enemy torpedoes can hit surface ships again.

-Mission start spawn range increased, by decreasing sonar contact strength requirement.

-AI detection range against player missile is largest at missile launch. Missiles have size factor 0.4 within launch +7 sec (booster is bright and lotta smoke), 0.2 outside launch +7 sec, 0.25 beyond waypoint. – Don Kay search radar range 50k yards, so launch detection 20kyds, missile detection 10k, active missile 15k. AI will only counter fire if launch detection. Largely decreased radar detection points on player by detecting player missiles.

Small tweaks against other AI... simplifications.


update:

-Fixed player ASW missile bug.
-Restored helicopter navigation.
-Player Mast radar returns reduced.
-Player visual range bumped.
-Periscope max zoom factor set to x64.


update2:


-Fixed torpedo deep run depth bug under surface ice.

-Ping lines fade a little faster.

-New entry in config.txt:
HeloMADMultiplier
Gives helicopters a MAD detection range multiplier so they are not completely useless - or not, default is 1... In config.txt it would look like (7.5 my own setting)
Code:
...
MADDetectionRangeInYards=400
HeloMADMultiplier=7.5
-Simulates wide aperture flank array. New entries in sensors.txt:

SonarWAARange -- range of the WAA, ala 15000 yds for the Seawolf.
SonarWAATMARate -- Sol increase rate due to angle rate while in WAA range.
SonarWAATMABaseSol -- absolute Sol increase rate while in WAA range.

In sensors.txt it would look like
Code:
SonarModel=usn_an_bqq_10
SonarType=ACTIVE/PASSIVE
SonarFrequencies=L,L
SonarActiveSensitivity=32
SonarPassiveSensitivity=46
SonarBaffle=150
SonarNoisePerKnot=1
SonarOutput=235
SonarWAATMARate=10
SonarWAARange=15000
SonarWAABaseSol=5
With above settings perfect Sol can be achieved in 5-10 time units once within 15000 yds.

On the target data page, once target is in WAA range the RNG readout turns cyan:


If the WAA cannont get a reading but the estimated range is within WAA range, the RNG readout turns yellow, indicating the estimate is false.



update3:

-New entry in \ColdWaters_Data\StreamingAssets\override\hud\defa ult.txt
PingLineFadeRate=
Changes tactical map ping line fade rate.
Game default is 0.5.

-New keystrokes:
-Stop Time Compression; Start Time Compression. Original “Set Time Compression” key renamed to “Toggle Time Compression”.
-Previous Tube.
-Previous Contact.
-Increase depth; Decrease depth. Changes depth control on helm panels by 50ft, works just like mouse clicking dive controls in the default game. Mouse control now changes depth on helm by 10ft intervals.
-Signature List Forward 5; Signature List Backward 5. Cycles through targeting list on the signature panel by 5 on each key press.

-MaxPitchAngle for missiles in weapons.txt all changed to 7.


Link



Install:

1. Files in update contains:
\ColdWaters_Data\Managed\Assembly-CSharp.dll
\ColdWaters_Data\StreamingAssets\override\default_ keys.txt
\ColdWaters_Data\StreamingAssets\override\weapons. txt
\ColdWaters_Data\StreamingAssets\override\language _en\dictionary\dictionary_interface.txt

Be sure to backup all!

2. Extract and overwrite.

3. Make sure to set new keys in Options once in game.


How?

Reflector (eating ramens this spring..) + Reflexil
dnspy (awesome)
MS Visual Studio
A guide on steam





Last edited by Skwabie; 02-25-2019 at 07:01 PM.
Skwabie is offline   Reply With Quote
Old 02-20-2019, 08:37 PM   #2
Skwabie
Sailor man
 
Join Date: Dec 2016
Posts: 49
Downloads: 30
Uploads: 0
Default

Sonar ping lines:


Torpedo snake pattern:


Torpedo vertical homing:
Skwabie is offline   Reply With Quote
Old 02-21-2019, 11:09 AM   #3
Skwabie
Sailor man
 
Join Date: Dec 2016
Posts: 49
Downloads: 30
Uploads: 0
Default

update

Fixed player ASW missile bug.
Restored helicopter navigation.

Player Mast radar returns reduced.
Player visual range bumped.
Periscope max zoom factor set to x64.

Last edited by Skwabie; 02-21-2019 at 01:35 PM.
Skwabie is offline   Reply With Quote
Old 02-22-2019, 12:17 PM   #4
jack33
Watch
 
Join Date: May 2005
Location: spain
Posts: 29
Downloads: 239
Uploads: 0
Default thank´s

Nobody thanks you for your work? I give you thanks
jack33 is offline   Reply With Quote
Old 02-23-2019, 08:30 AM   #5
CDR DPH
Helmsman
 
Join Date: Jun 2018
Posts: 101
Downloads: 18
Uploads: 0


Default

Thx, will give this a try.
CDR DPH is offline   Reply With Quote
Old 02-23-2019, 06:08 PM   #6
Skwabie
Sailor man
 
Join Date: Dec 2016
Posts: 49
Downloads: 30
Uploads: 0
Default

update2:
-Fixed torpedo deep run depth bug under surface ice.
-New entry in config.txt: HeloMADMultiplier
-Simulates wide aperture flank array.

Details in OP.
Skwabie is offline   Reply With Quote
Old 03-07-2019, 02:43 PM   #7
JhonSilver
Watch
 
Join Date: Jul 2017
Posts: 27
Downloads: 19
Uploads: 0
Default

Great job !! Very interesting results.
JhonSilver is offline   Reply With Quote
Old 03-08-2019, 03:59 AM   #8
jack33
Watch
 
Join Date: May 2005
Location: spain
Posts: 29
Downloads: 239
Uploads: 0
Default

No news
jack33 is offline   Reply With Quote
Old 03-08-2019, 07:16 AM   #9
CDR DPH
Helmsman
 
Join Date: Jun 2018
Posts: 101
Downloads: 18
Uploads: 0


Default

I've used the modified dll for while now and kind of like some of the changes.

The longer display period for sonar lines is both useful and cluttering. The reduced torp snaking arcs, I'm on the fence.

I do like that enemy torps can sink enemy vessels again. That's only fair if my own torps can sink me.

Me thinks that many of these changes should have been adjustable from within the options screen from the outset.
CDR DPH is offline   Reply With Quote
Old 04-26-2020, 03:24 PM   #10
partycat
Swabbie
 
Join Date: Apr 2020
Posts: 12
Downloads: 0
Uploads: 0
Default

I really liked this mod. However there is a problem I would like to mention.

When I install this mod, hostile torpedoes seems to ignore both MOSS and Noisemakers. If I launch the MOSS and if the torpedo acquires on MOSS, it doesn't ignore the MOSS (mostly) and homes onto it, however if the torpedo acquires on my sub first, there is nothing I am being able to do afterwards. It's just ignoring everything, MOSS, Noisemaker, Knuckles and keep homing at me. and since this mod also changes their pitch angles, it is impossible to evade by doing manuevers.

I'm not exactly sure but this issue might be occuring because of the torpedoes ignoring destroyed vessels and whales. So maybe there needs to be a tweak to the file.

I would very much appreciated if you could look into it. Thanks in advance :3
partycat is offline   Reply With Quote
Old 04-26-2020, 07:37 PM   #11
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: where I'm at presently
Posts: 18,546
Downloads: 18
Uploads: 0


Default welcome aboard!

partycat!
__________________
"Only two things are infinite: The Universe and human stupidity; And I'm not too sure about the Universe..." -Albert Einstein
Aktungbby is online   Reply With Quote
Old 04-27-2020, 06:57 AM   #12
M134
Seaman
 
Join Date: Apr 2020
Posts: 40
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by partycat View Post
I really liked this mod. However there is a problem I would like to mention.

When I install this mod, hostile torpedoes seems to ignore both MOSS and Noisemakers. If I launch the MOSS and if the torpedo acquires on MOSS, it doesn't ignore the MOSS (mostly) and homes onto it, however if the torpedo acquires on my sub first, there is nothing I am being able to do afterwards. It's just ignoring everything, MOSS, Noisemaker, Knuckles and keep homing at me. and since this mod also changes their pitch angles, it is impossible to evade by doing manuevers.

I'm not exactly sure but this issue might be occuring because of the torpedoes ignoring destroyed vessels and whales. So maybe there needs to be a tweak to the file.

I would very much appreciated if you could look into it. Thanks in advance :3
Is this happens with all torpedoes, or wire-guided only?
M134 is offline   Reply With Quote
Old 04-27-2020, 02:00 PM   #13
partycat
Swabbie
 
Join Date: Apr 2020
Posts: 12
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by M134 View Post
Is this happens with all torpedoes, or wire-guided only?
I just made a test, it's with wire-guideds only. Although my torpedoes skill being blinded by hostile noisemakers eventhough they are still connected with wire.
partycat is offline   Reply With Quote
Old 04-27-2020, 03:16 PM   #14
M134
Seaman
 
Join Date: Apr 2020
Posts: 40
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by partycat View Post
I just made a test, it's with wire-guideds only. Although my torpedoes skill being blinded by hostile noisemakers eventhough they are still connected with wire.
That happens when AI had identified your decoy as a decoy and/or have a steady 10+ contact with your sub. Obviously it will not chase anything else when he sees your sub.
Decoys helps only when AI is not sure where your sub is.

To counter wire guided torpedo you better make it not wire guided.
In case of US subs it is quite simple: You send mk48 in direction of an enemy, acitvate it right after it finishes its turn - this will give you speed (and range, since game code doesn't know that range should decreace when speed is increaced).
After that stop snake searching manually and switch torpedo to active sonar, so it start shouting "I'm looking for you") Usually enemy start evasive maneuvers at full speed and looses a wire.
- Wlii not help if enemy sub can't reach wire break speed (diesel subs for example).
M134 is offline   Reply With Quote
Old 03-22-2019, 01:49 AM   #15
AllQuiet
Watch
 
Join Date: Jan 2019
Location: TwinStates
Posts: 28
Downloads: 16
Uploads: 0
Default

Why do we need the Assembly-CSharp DLL file? Or for that matter, why do we need the dictionary and weapons file?

Wouldn't it be easier to simply post the changes you made in the text files instead of gathering up other files?

I have my own dictionary and weapons file and I don't want them disturbed.
In fact, every single file in the game has my fingerprint stamped on them now.
AllQuiet 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 10:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1995- 2020 Subsim