Ryan-rsm-McKenzie / CommonLibSSE

A reverse engineered library for hacking Skyrim Special Edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using CommonLib with Example Plugin

Elscrux opened this issue · comments

I'm trying to use CommonLib with your ExamplePlugin-CommonLibSSE and followed Setting Up Your Environment in your tutorial, thank you for that btw.
I extracted CommonLib and the MyFirstPlugin to the src/skse64 folder and added them to VS.
Directory
I noticed some reference issues. I could resolve the CommonLibSSE in MyFirstPlugin issue by removing it and adding it back again. When I tried to do the same for the skse64 reference in CommonLibSSE it didn't resolve the error (The "Microsoft.VisualStudio.ProjectSystem.References.UnresolvedBuildDependencyProjectReference" reference could not be resolved.)
References
In the main.cpp of MyFirstPlugin were some errors as well.
main1
I resolved them like this by adding some recommended includes and changing FOLDERID_Documents to FOLDERTYPEID_Documents
main2
When I try to build MyFirstPlugin there are lots of errors
Errors
I'm thinking this is due to the skse64 reference in CommonLibSSE that is not working correctly?
What am I doing wrong?
I'd be grateful for any help 😃

just disable warnings as errors and it will build, but that's probably there for a reason

Yes, this works for compiling but this error shows up on startup.
Crash

what revision are you using?

the latest

use commonlibsse revision a5e3617667a2ea296b67da549e31fe26543ecb8a for now

there was a refactor after that, and I don't know how to get or generate the bin file required for it to work, maybe @Ryan-rsm-McKenzie can provide some help with that

all I know is that it has to be named version-1-5-97-0.bin for latest game release, but that's not enough

The bins are from here

thank you very much

Thanks to you both. Everything is working now!