llde / xOBSE

Oblivion Script extender source
251 stars 36 forks source link

Getting OBSE to compile a testing dll plugin #149

Closed Lordkarnak closed 2 years ago

Lordkarnak commented 2 years ago

Excuse me fellow coders for bringing up this question. I have searched through the entire tesrenewal forums, older forks, comments and some great OBSE projects on github. But I cannot find a way to compile a dll plugin for xOBSE (latest version or near latest) and older OBSE v21. I'm using Visual Studio 2015 and 2019 with the latest build tools and ATL support. No matter the version though, I run straight into the following errors: 1 - "incomplete type not allowed" caused by all static assertions in HavokCollision and NiHavokCharacters. 2 - a compilation error about va_args beings encapsulated.

I am aware a comment used to exist by user llde in tesrenewal forums but the link to it is dead. Could you please guide me in the right direction? Any help is greatly appreciated.

llde commented 2 years ago

Did you try using the example in this repo? EDIT, try enabling C++latest as language standard

Lordkarnak commented 2 years ago

It actually compiled and a dll was made! Thank you very much! There are still "incomplete types not allowed" errors on the same headers. Is this the expected behavior?

llde commented 2 years ago

No totally no. Which headers?

Lordkarnak commented 2 years ago

obse_plugin_exampe error_list

Here, the errors are caused by the "common" dependency headers shown above...

llde commented 2 years ago

strange. Will check

llde commented 2 years ago

@Lordkarnak Fixed, I will commit shortly BTW when compiling Intellisense may not consider the preprocessor. The incomplete type were Intellisense errors, that doesn't matter. Ignore them