Log in

View Full Version : Periscope zoom level bug found and fixed !


mich73b
03-08-20, 04:19 PM
Hi everybody, i'm mich73b , new here on subsim ,i've been playing sub command,dangerous waters, silent hunter 3 , and now i'm on Cold Waters...

i would like to share to everybody my first post , i'm pretty sure i found and solve a bug may be nobody notice:

currently periscope zoom magnification is up to x8 times max (i check on many submarines Seawolf,Permit,Han...),

i was playing a bit about possibility of modding the game , and when i take a look inside the code, there is a x16 times magnification level possible :

https://nsa40.casimages.com/img/2020/03/08/200308101909583889.jpg


but there was a bug on how zoom incrementation level was coded,so it cannot reach case 3 (zoom x16), that i solved it by fixing one parameter from 2 to 3 :

https://nsa40.casimages.com/img/2020/03/08/200308101909983879.jpg


so now the code is working and can go to case n°3 : zoom x16 ! , see screenshots below for comparison of zoom x8 and zoom x16

zoom x8
https://nsa40.casimages.com/img/2020/03/08/200308101918737815.jpg

zoom x16
https://nsa40.casimages.com/img/2020/03/08/200308101914758120.jpg


you can fix this bug easily if you know how to open a .dll with a NET debugger/assembly editor software , i don't know if i can share the fixed .dll here ?

hope you appreciate it !

Aktungbby
03-08-20, 07:46 PM
mich73b!:Kaleun_Salute:

adrians69
03-09-20, 09:48 AM
Thanks for the info, which .dll are we looking at here?

mich73b
03-09-20, 01:08 PM
Thanks for the info, which .dll are we looking at here?

it's Assembly-CSharp.dll , in the folder : \Cold Waters\ColdWaters_Data\Managed\
then inside Keybindmanager class , in function Update