Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with 'GetAnimData': is not a member of 'RE::Actor' #1

Open
imax9000 opened this issue Jun 11, 2020 · 2 comments
Open

Build fails with 'GetAnimData': is not a member of 'RE::Actor' #1

imax9000 opened this issue Jun 11, 2020 · 2 comments

Comments

@imax9000
Copy link

C2039	'GetAnimData': is not a member of 'RE::Actor'

At line obse_plugin_example\Patches\EnhancedMovement.cpp:82

I suspect that commit fed915d was meant to add it, but didn't.

@DavidJCobb
Copy link
Owner

DavidJCobb commented Jun 11, 2020

I did some digging. It turns out that over a year ago, when I was trying to figure out how to set up a build environment for OBSE DLLs, I inadvertently used an unofficial fork of OBSE's source code; this unofficial fork is version 0022; the latest official release is version 0021.

Binaries compiled with this unofficial fork appear to be more-or-less compatible with the official release (else NorthernUI as is would crash and burn for 99% of OBSE users, including myself). However, some of the class definitions differ; notably, virtual member function TESObjectREFR::Unk_59 has been identified as GetAnimData; see line 590 of GameObjects.h v0022.

This had me really worried for a second -- I was worried I had somehow defined and then lost GetAnimData! Had to disassemble my own DLL to find out it was a virtual call. Of course, having to build against a non-standard OBSE branch is still extremely not ideal, and I can only apologize for being a bit too much of a newbie when I first started the project.

@imax9000
Copy link
Author

Thanks for digging it up!

I had to copy over a few more method declarations from that repository, but once I did it - it managed to compile and even not crash the game :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants