Just added this with calculations for 3rd person and different zoom levels!
JamesBai03 1 Posted February 18, 2016 just wondering when it is going to be added. the post has been around since 2014 lol Link to comment
Wizard DPI Wizard 3,881 Posted February 28, 2016 Wizard Just added this with calculations for 3rd person and different zoom levels! Link to comment
AboveAverage 0 Posted January 14, 2020 preferences XML has changed. Maybe you wanna check cause the description is not accurate anymore. It still can be used tho. Link to comment
Wizard DPI Wizard 3,881 Posted January 16, 2020 Wizard On 1/14/2020 at 11:46 PM, AboveAverage said: preferences XML has changed. Maybe you wanna check cause the description is not accurate anymore. It still can be used tho. Checked now and everything seems the same, what have changed for you? Link to comment
Vaccaria 13 Posted December 29, 2020 (edited) @DPI Wizard Hello The sensitivity can be adjusted for each zoom. You can add a mention about these opportunities to the calculator? The path where the script to change is located, the link already contains a string, what the formula looks like for calculating the sensitivity for each increase. The formula is effective and simple, but it can be changed. https://github.com/StranikS-Scan/WorldOfTanks-Decompiled/blob/2e8ee4107bc12540bbfbe0003c506693896d0eb0/source/res/scripts/client/AvatarInputHandler/DynamicCameras/SniperCamera.py#L142 You will have to change the script in any case if you need a certain sensitivity for a certain zoom. This is what was in the default script: That's what I did: How approximation works in the game: takes your FoV and divides by the value in the zoom, It turns out an approximation. That is, at 120 FoV, there is little approximation in x8, so those who want to see very close put x16 x25. x1 is 90 horizontal, I have 90. I decided to make zooms in vertical. x1.3675642776 is 40vFoV. x1.7667159548 is 30vFoV. 3.416104923 is 15vFoV. 6.770754733 is 7.5vFoV. 13.510403686 is 3.75vFoV. 27.005203903 is 1.875vFoV. Values in config(first sensitivity setting): I needed sensitivity in x1, like in arcade. I changed the file hundreds of times and restarted the game in order to have a minimal change in the distance of 360. I did this for study, in fact, not everything is so scary. I felt with my hand the approximate values of x1. After I remembered the "SensitivityMatcher" program. I just step by step change the script to + -. When I found an almost perfect x1, I calculated the sensitivity for other zooms. I made calculations for the rest of the zooms, from a multiplier in x1. Most of the time was spent testing for all zooms. Since in x27 the error in calculations in x1 is visible, so I concentrated on x1 as much as possible. For some reason I decided to multiply 0.276460 by 2.5, and got 0.69115 And this turned out to be the most suitable value. "if self.__zoom == 1" - this is the first zoom that I need, etc. "self.__curSense = 0.00069115" - it is a multiplier that intersects with other multiplier. I don't know exactly what and how it works, but i found 2(3)multipliers. The third is written in the script. "Sensitivity Matcher" program. https://themeta.com/blog/2020/5/8/how-to-use-kovaaks-sensitivity-matcher - how to use. How to change the zoom numbers: https://koreanrandom.com/forum/topic/38834-11100-дополнения-для-камеры-без-xvm/?tab=comments#comment-386707 The topic is in Russian, so you will have to use a translator. You need an "extendedZoom" mod in it you can adjust the zoom. After each update, the author writes about updating the scripts for the patch or this is not required and you can continue to use it. Use the "avatar_input_handler.xml" file which is located: You need "wottools 0.5.3 multy.exe" to unlock the file. Open the file with "Notepad ++". There is a sniper mode in the file, you can write the necessary zoom, then save and place this file as a mod in the "res_mods" folder: In the same file there is a sensitivity setting, that is 2. How to decompile and compile this file: Downloading "Python 2.7" Install python in a folder say С:\Python27 Add the python folder to the Path environment variable. Downloading uncompyle2 https://github.com/Mysterie/uncompyle2/ You unpack it into say С:\uncompyle2 Open cmd and go to the folder with uncompyle2: cd c:\uncompyle2 Install the utility by executing in the command line: python setup.py install If everything is ok, we should have a build folder and a scripts-2.7 folder in which the utility itself is located, the uncompyle2 file Take the "SniperCamera.pyc" script of interest to us and put it in the c:\uncompyle2\build\scripts-2.7\folder Open the command line and go to the folder with the script: cd c:\uncompyle2\build\scripts-2.7\ We translate the script from the binaric to its original form: python uncompyle2 -o SniperCamera.py SniperCamera.pyc The file appears next to the current one and can be edited. How it can be changed is shown at the beginning. Since the standard compilation method does not work for me, I use the command. The new file will replace the old .pyc python -m py_compile SniperCamera.py The file is ready, it needs to be placed in the res_mods folder: The end Edited December 30, 2020 by Vaccaria remembered something, redesigned a bit Link to comment
Vaccaria 13 Posted December 8, 2021 (edited) I'll update the data. Required programs: dropbox 1) Wottools 0.5.3 multy 2) Notepad++ 2) Python 2.7 or 2.7.16 (Check Add the python folder to the Path environment variable when installing) 3) uncompyle2 (move the folder to a drive such as "c:") Open cmd and go to the uncompyle2 folder: cd c:\uncompyle2 Install uncompyle2: python setup.py install We need two files from the game: 1) World_of_Tanks\res\packages\scripts.pkg\scripts\client\AvatarInputHandler\DynamicCameras\SniperCamera.pyc 2) World_of_Tanks\res\packages\gui-part2.pkg\gui\avatar_input_handler.xml Open Wottools 0.5.3 multy and drag the file avatar_input_handler.xml into the white window, click save as. Open the saved file with Notepad++, "Ctrl+F" find "<sniperMode>" "<zooms>2 4 8 16 25</zooms>" and "<dualGunMode>" "<zooms>2 4 8 16 25</zooms". You can write any multiplicity here, for example: 1 2 4 8 16 25 32 1 64 (the number "1" between 32 and 64 allows you to go back from x64(x32,x25,x16,x8,x4) to x1 in one wheel back cutoff) You can write fractional numbers instead of integers. After the necessary changes, place the file in the folder (create if not) World_of_Tanks\res_mods\1.14.1.4\gui\avatar_input_handler.xml Now let's move on to setting the sensitivity for these multiples. Move "SniperCamera.pyc" to the folder "scripts-2.7"(uncompyle2\build\scripts-2.7) Open cmd and go to the folder: cd c:\uncompyle2\build\scripts-2.7\ We decompile the file: python uncompyle2 -o SniperCamera.py SniperCamera.pyc Got the file SniperCamera.py in the same folder, open it in Notepad++, find the line "self.__curSense *= 1.0 / self.__zoom" It should be removed and write if self.__zoom == 1: After the multiplier for the sniper scope will not work in the config, only what we put here self.__curSense = 0.00(Everything starts at 0.00) 0.186150*2.5=0.465375 add the resulting number to the end 0.00 and 0.465375=0.000465375 if self.__zoom == 2: There are two ways to go from here. Use the value you want, such as 0%. Or what the original WoT MDH100% suggests (divide the "multiplier" of x1 by the zoom) self.__curSense = 0.00 0.465375/2=etc if self.__zoom == 4: self.__curSense = 0.00 0.465375/4=etc if self.__zoom == 8: self.__curSense = 0.00 0.465375/8=etc if self.__zoom == 16: self.__curSense = 0.00 0.465375/16=etc if self.__zoom == 25: self.__curSense = 0.00 0.465375/25=etc if self.__zoom == 32: self.__curSense = 0.00 0.465375/32=etc if self.__zoom == 64: self.__curSense = 0.00000727148437 0.465375/64=0.00727148437=0.00000727148437 Next, select 2 WoT in the calculator. At the input we write our data: Sens, FoV, Hipfire MDV(H) and Aim default. Since we got the multiplier for x1, now we get for x2, divide 103 FoV by 2, the resulting FoV(51.5) we write in WoT output. The resulting multiplier of 0.071421 is multiplied by 2.5 to make 0.1785525. FoV 103 divided by the zoom we need, you can find the difference between FoV (Hdeg, Vdeg) it will be "zoom". I do the same for the remaining zooms and get this: if self.__zoom == 1: self.__curSense = 0.000465375 if self.__zoom == 2: self.__curSense = 0.0001785525 if self.__zoom == 4: self.__curSense = 0.0000846125 if self.__zoom == 8: self.__curSense = 0.0000417675 if self.__zoom == 16: self.__curSense = 0.0000208175 if self.__zoom == 25: self.__curSense = 0.000013315 if self.__zoom == 32: self.__curSense = 0.0000104 if self.__zoom == 64: self.__curSense = 0.0000052 Save your changes and enter the command in cmd python -m py_compile SniperCamera.py Move the SniperCamera.pyc file to the folder (create) World_of_Tanks\res_mods\1.14.1.4\scripts\client\AvatarInputHandler\DynamicCameras\SniperCamera.pyc Checked with SensitivityMatcher, everything fits. And yes, it violates the user agreement, for decrypting and compiling/decompiling files, permanent blocking. Edited December 8, 2021 by Vaccaria Link to comment
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now