xanderdunn / skaar

Mods for Skyrim: Hardcore Mode, Soul Displays, Skaar House Mod
53 stars 8 forks source link

Error 193 in example code #41

Open JasXSL opened 6 years ago

JasXSL commented 6 years ago

I'm testing your tutorial on the wiki. I successfully built the solution in visual studio 2017, then placed the DLL in E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\skse\plugins, compiled the psc file and everything. However, SKSE fails to load the DLL:

SKSE64 runtime: initialize (version = 2.0.7 01050270 01D3EACC0B0AE4D2, os = 6.2 (9200))
imagebase = 00007FF6CF770000
reloc mgr imagebase = 00007FF6CF770000
config path = E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\SKSE\skse.ini
plugin directory = E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\SKSE\Plugins\
checking plugin E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\SKSE\Plugins\\plugin_example.dll
couldn't load plugin E:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\SKSE\Plugins\\plugin_example.dll (Error 193)
dispatch message (0) to plugin listeners
no listeners registered
dispatch message (1) to plugin listeners
no listeners registered
init complete
hooked dinput
dispatch message (6) to plugin listeners
no listeners registered
dispatch message (8) to plugin listeners
no listeners registered
save name is Quicksave0_497A45B9_1_4C697A_WhiterunBreezehome_000448_20180513145834_13_1
full save path: C:\Users\user\Documents\My Games\Skyrim Special Edition\Saves\\Quicksave0_497A45B9_1_4C697A_WhiterunBreezehome_000448_20180513145834_13_1.skse
dispatch message (2) to plugin listeners
no listeners registered
loading co-save
Loading mod list:
    (0 -> 0)    Skyrim.esm
    (1 -> 1)    Update.esm
    (2 -> 2)    Dawnguard.esm
    (3 -> 3)    HearthFires.esm
    (4 -> 4)    Dragonborn.esm
    (5 -> 5)    VibHub.esp
Loading light mod list:
Loading menu open/close event registrations...
Loading key input event registrations...
Loading control input event registrations...
Loading mod callback event registrations...
Loading crosshair ref event registrations...
Loading camera event registrations...
Loading actor action event registrations...
Loading NiNode update event registrations...
Loading SKSEPersistentObjectStorage data...
Loading SKSEDelayFunctorManager data...
dispatch message (3) to plugin listeners
no listeners registered
cleared save path

Any idea what might cause this?

JasXSL commented 6 years ago

Looks like it's because I'm trying to make it for Skyrim Special Edition, is there any chance you'd consider updating your tutorial to show how to compile for that?

flotwig commented 6 years ago

Here's a modified Skaar example with skse64 instead of the OG skse:

https://github.com/Sky-WAN/plugin/tree/59a234b790a84990b9bf667a63ab9c8feebe97fb