dirtyrat_1 Posted April 30, 2017 Share Posted April 30, 2017 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) @ Quote Link to comment Short link Share on other sites More sharing options...
dirtyrat_1 Posted May 4, 2017 Author Share Posted May 4, 2017 Anyone? @ Quote Link to comment Short link Share on other sites More sharing options...
dirtyrat_1 Posted May 7, 2017 Author Share Posted May 7, 2017 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? @ Quote Link to comment Short link Share on other sites More sharing options...
night_dragon_on Posted May 8, 2017 Share Posted May 8, 2017 (edited) Fixed in latest nightly builds. Edited May 8, 2017 by night_dragon_on @ Quote Link to comment Short link Share on other sites More sharing options...
dirtyrat_1 Posted May 8, 2017 Author Share Posted May 8, 2017 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. @ Quote Link to comment Short link Share on other sites More sharing options...
night_dragon_on Posted May 8, 2017 Share Posted May 8, 2017 (edited) 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 May 8, 2017 by night_dragon_on @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.