Jump to content
Korean Random
Sign in to follow this  
^CHAMPi^

[1.17.1.0/7.9.0_0012] [Fixed] Broken carousel XVM ArcadeCamera_create hook issue

Recommended Posts

In the case of the issue the following happens: Every other mod that hooks into the ArcadeCamera create method and is executed before the XVM hook of Arcade camera and returns all parameters of the original method (as it always should be for every mod hook!) will cause this issue. The XVM hook is called with one more parameter as it expect and then it happens:

TypeError: _ArcadeCamera_create() takes at most 4 arguments (5 given)

 

orignal ArcadeCamera

def create(self, onChangeControlMode=None, postmortemMode=False, smartPointCalculator=True):

 

XVM hook of ArcadeCamera: (xvm-master\src\xpm\xvm_battle\camera.py)

def _ArcadeCamera_create(base, self, onChangeControlMode = None, postmortemMode = False):

 

Please fix this issue because there are other mods out there that also using that hook to change cam stuff. Even if you don't need the smartPointCalculator parameter for your method you need to expect it in your hook or XVM will break the hook chain.

 

Of course you also need to change the call to the base method at the end of your method from:

base(self, onChangeControlMode, postmortemMode)

 

to 

base(self, onChangeControlMode, postmortemMode, smartPointCalculator)


btw: Please stop to recommend to install xvm alone. No one will do this :smile:

 

 

Edited by Mixaill
  • Upvote 2

Share this post


Link to post

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...