Jump to content
Korean Random

Camera distance and zoom config


Recommended Posts

I would like to have one single camera distance in arcade at 12m, and 3 zooms in sniper 3x, 9x, 27x.

Sniper config works fine.

 

But the arcade is giving me difficulties:

"arcade": {
      "startDist": 12,
      "scrollSensitivity": 100,

 

      "distRange": [12, 12],      // with same values in min and max, entering a battle gets stuck at loading screen

      "distRange": [11.99, 12],  // entering battle works again, but I get two virtually same distances in arcade mode

},

 

Any suggestions?

(I have XVM 6.6.4)

Link to comment
Short link
Share on other sites

I think I found the issue. It seems to be in the WoT itself, rather then in XVM.

In post https://koreanrandom.com/forum/topic/15280-pjorion-%D1%80%D0%B5%D0%B4%D0%B0%D0%BA%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D0%BA%D0%BE%D0%BC%D0%BF%D0%B8%D0%BB%D1%8F%D1%86%D0%B8%D1%8F-%D0%B4%D0%B5%D0%BA%D0%BE%D0%BC%D0%BF%D0%B8%D0%BB%D1%8F%D1%86%D0%B8%D1%8F-%D0%BE%D0%B1%D1%84/ there is 0.9.18.0_410_Decompile_WOT.zip which contains res\packages\scripts\client\AvatarInputHandler\DynamicCameras\ArcadeCamera.py and that contains the following function:

def __calcRelativeDist(self):

        if self.__aimingSystem is not None:

            distRange = self.__cfg['distRange']

            curDist = self.__aimingSystem.distanceFromFocus

            return (curDist - distRange[0]) / (distRange[1] - distRange[0])

        else:

            return

When distRange[0] and distRange[1] are the same, it causes a division by zero, and thats probably why the game gets stuck at battle loading screen.

Would it be possible to supply a fixed function somehow using XVM?

Link to comment
Short link
Share on other sites

You fall back to the default 2 and 25 as min and max, in case they are equal.

While that avoids the division by zero, it defeats the purpose why I would like them to be the same actually (to have exactly one arcade distance, that switches straight to sniper on mouse wheel forward).

I would prefer something like returning 0 from __calcRelativeDist() when min and max are equal, or something like that, that permits achieving my configuration goal.

Link to comment
Short link
Share on other sites

I would like them to be the same actually (to have exactly one arcade distance, that switches straight to sniper on mouse wheel forward

 

To do this, you will additionally have to edit the function:

__calcRelativeDist()

That in the default configuration, the mod is not required. This is a special case only for you. It will be easier to write a separate code on "py_macros" and used it in your configuration.

Edited by night_dragon_on
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...