Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Animation Hooks for Smotra server
Three changes were made in this commit: 1. There is an animation crash that occurs at offset 0xcfcd6 in CAnimBlendNode::GetCurrentTranslation (One of the top 5 crash in MTA). We do not know the cause of the crash so we need to find out whether it's related to IFP animation hooks or not. Smotra server ranks no.1 in crash reports at this offset, so I disabled IFP hooks for smotra servers. In 10 days, we will know whether the crash is related to IFP hooks or not, we can then remove the check for smotra server to enable IFP hooks there. 2. CopyAnimation hook has been removed as it was unnecessary, still there is one hook in CMultiplayerSA_FixBadAnimId.cpp that must execute for smotra server which averts an old crash, but it can be removed completely after 10 days when we are done with testing. 3. I realized that OnCAnimBlendAssocGroupCopyAnimation_FixBadAnim function was not called if m_pAddAnimationHandler or m_pAddAnimationAndSyncHandler is nullptr, this can possibly cause a crash if animation is corrupt, rare but it can happen. This problem has been fixed now.
- Loading branch information
Showing
11 changed files
with
213 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5b1da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a good idea to split your work into atomic commits. That way someone who wants to remove the special functionality for Smotra only has to revert the commit, and doesn't have to pick apart your commit.
I also see other random changes that haven't been described...
5b1da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not planned. I was only going to disable hooks for smotra but then I discovered other issues, and it was not possible to split them since they share the same hook.
Which ones exactly? Can you please highlight them?
5b1da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exes (removed in 9114c02) and
reloadnews
(useful for development of news items)5b1da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
I have no idea why that happened. I'll restore it.