Jump to content

Arena Breakout: Infinite

Hipfire is added, aims coming soon!
Read more...

Project L33T

See the game notes for instructions on how to disable smoothing.
Read more...

Twilight Town: A Cyberpunk FPS

Just added.
Read more...

Contain

See the game notes for instructions on how to disable smoothing.
Read more...

Vomitoreum

Just added.
Read more...

World of Tanks


DPI Wizard

Just added this with calculations for 3rd person and different zoom levels!


User Feedback

Recommended Comments

  • 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

@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:Screenshot_22.thumb.png.2f4968329350b6650b1f0fa91a125402.png

That's what I did: Screenshot_23.png.2b44efdd3d8a5803c0ce45715fc30f3d.png

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):

Screenshot_36.png.cd9159577e86e7dda4297acc2a637860.png

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:

  1. 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.Screenshot_31.png.159242b4f79b0e44437462505140670b.png
  2. Use the "avatar_input_handler.xml" file which is located: Screenshot_25.png.e9977e0a29d892cd593ffdfc9d5a6f29.pngScreenshot_26.png.d88eec05b9e02b394dd4f2604e5b04f2.png

You need "wottools 0.5.3 multy.exe" to unlock the file.Screenshot_27.png.f6b5b08bcb52e9fb93e5d5fd12a0d780.pngScreenshot_28.png.520a4302ec2fa5c089abfdd9a2b372f0.pngScreenshot_29.png.10d27f0631e215b028ce110ce383e11c.pngScreenshot_30.png.ce7a1ae0809b39dcf1ca322cd26221b7.png

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: 

Screenshot_24.png.742e5e957363b5f8e6df1e9d51de6e33.pngScreenshot_32.png.ab7a4cb9fd14ec4b34b40134592f1374.png

In the same file there is a sensitivity setting, that is 2.

How to decompile and compile this file:

  1. Downloading "Python 2.7"
  2. Install python in a folder say С:\Python27
  3. Add the python folder to the Path environment variable. Screenshot_33.png.b2214255ebe8b837761c5c249ec251a7.pngScreenshot_34.png.dd7d5811566ff583ebff943c52496278.png
  4. Downloading uncompyle2 https://github.com/Mysterie/uncompyle2/
  5. You unpack it into say С:\uncompyle2
  6. Open cmd and go to the folder with uncompyle2:
    cd c:\uncompyle2
  7. Install the utility by executing in the command line:
    python setup.py install
  8. 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
  9. Take the "SniperCamera.pyc" script of interest to us and put it in the c:\uncompyle2\build\scripts-2.7\folder
  10. Open the command line and go to the folder with the script:
    cd c:\uncompyle2\build\scripts-2.7\
  11. 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:Screenshot_35.png.f97f51e9337fcb8e0ddd0e50b602c369.png

 

 

 

The end

Edited by Vaccaria
remembered something, redesigned a bit
Link to comment

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:")   

  1. Open cmd and go to the uncompyle2 folder:
    cd c:\uncompyle2
  2. 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 image.thumb.png.4387e31ebba44cb0a2dc0e5a23ac0976.png
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.000.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.image.thumb.png.4248b3b8ccae3d951325a561fb41f3ae.png

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".

image.thumb.png.7b9a0b1e9b59cf96cb471f5a671784c8.pngimage.thumb.png.c8f928630c8c78a96536633d08152f5c.png

I do the same for the remaining zooms and get this:image.png.a21ff311cce2351178d64f154f9432e8.png

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 by Vaccaria
Link to comment


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...