Giter Club home page Giter Club logo

Comments (5)

marcusx2 avatar marcusx2 commented on September 26, 2024 1

I fixed everything on VS2019. I had to:

  1. Add the plugin project together with the skse solution.
  2. Right click the plugin on the solution explorer-> properties -> general->configuration type: dll
  3. Right click skse64 on the solution explorer -> properties -> general -> configuraton type: Static library.
  4. On everything, properties -> C/C++ -> Language: C++17
  5. On everything, properties -> Build Events -> Post-Build Event -> Use in Build: No
  6. Plugin->Properties->General->Additional Include Directories: fullpath\skse64_2_00_19\src; fp\skse64_2_00_19\src\skse64;
  7. #include <stdio.h> to common\IDebugLog.h; #include <windows.h> to skse64\GameTypes.h and skse64\GameForms.h;
    #include <string> to skse64_common\Utilities.h
  8. On everything, go to Project Properties->Configuration Properties->C/C++->Code Generation->Runtime library->Multi-threaded DLL (/MD).
  9. Expand the plugin on the Solution Explorer, expand references and add common_vc14 and skse64
  10. Add a definition file, nameofproject.def on the root of the plugin folder with the following code:
LIBRARY	dllnameWithoutDllextension
EXPORTS
	SKSEPlugin_Query
	SKSEPlugin_Load

and also right click the plugin on the solution explorer-> properties-> linker->input->Module Definition File:nameofproject.def

from commonlibsse.

marcusx2 avatar marcusx2 commented on September 26, 2024

I am able to build the skse project without errors and generate the .lib. The problem is when I try to build my plugin project, then suddently all sorts of errors pop up on skse. Which is confusing because building skse alone doesn't cause any issues.

from commonlibsse.

marcusx2 avatar marcusx2 commented on September 26, 2024

@Ryan-rsm-McKenzie I also tried with visual studio 2015, same result. Please help man, it's probably something very stupid but I can't figure it out. It's like, yeah, I can build skse, generate the .lib. Then I make my plugin that import the skse headers, and all these errors pop up. Not on my .cpp file, mind you. They pop up on skse. How can I build skse just fine but when I try to use it by importing the headers it blows up?

from commonlibsse.

fireundubh avatar fireundubh commented on September 26, 2024

You basically did everything wrong and missed steps in the tutorial.

2020-11-07 11_56_32

And, by the way, "crap load of errors" is not an appropriate issue title.

from commonlibsse.

marcusx2 avatar marcusx2 commented on September 26, 2024

Hmm...I see, it's because I don't use CommonLibSSE, but I was redirected to the Ryan's tutorial for the part of building a skse plugin. So I followed all until
image
and didn't follow the CommonLibSSE part because I thought it was specific to CommonLibSSE only, not general skse plugins.

That makes sense I guess, thanks. I got it working without CommonLibSSE anyways.

from commonlibsse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.