DLL插件加載器

作者 meh321·版本 v1.0·更新於 2019-12-30

簡單的DLL插件加載程序。

模組介紹 作者原文

簡單的DLL插件加載程序。

如何安裝:

1.轉到您的Skyrim特別版根目錄。這是SkyrimSE.exe所在的文件夾,通常是“ C:\ Program Files(x86)\ Steam \ steamapps \ common \ Skyrim特別版\”

2.將“ binkw64.dll”重命名爲“ binkw64_.dll” <-現在末尾有一個_。

3.將下載的存檔中的“ binkw64.dll”放入步驟1中提到的文件夾中。

4.如果操作正確,則文件夾中現在應該有兩個文件:“ binkw64.dll”和“ binkw64_.dll”,僅此而已,您可以立即開始遊戲。

如何檢查一切是否正常:

1.轉到安裝“ binkw64.dll”(SkyrimSE.exe文件夾)的位置

2.創建一個不存在的名爲“ binkw64.log”的新文件,確保擴展名爲“ log”而不是“ txt”!

3.開始遊戲然後退出遊戲,如果您只進入主菜單,無需加載到任何保存的遊戲中就可以了。

4.現在打開“ binkw64.log”文件,它將說出檢查了哪些插件以及它們是否正確加載。

5.如果文件爲空,則找不到插件!這可能表明權限存在問題,或者文件夾路徑“ Data \ DLLPlugins”不存在。

對於mod作者-如何加載DLL:

1.將您的dll文件放在“ Data \ DLLPlugins”中。就是這樣,您的插件將自動加載。

(2.)可選!如果由於加載程序鎖定或其他問題而需要運行某些無法在DllMain中完成的代碼,請將該代碼添加到任何地方:

外部“ C”

{

__declspec(dllexport)void Initialize()

{

//在這裏做任何你想做的事...

}

}

此函數將在DllMain之後立即調用,但是如果僅執行簡單的內存編輯,則不需要此函數。

如果其他人已經存在,爲什麼還要再做一個?

我需要在遊戲代碼中執行靜態構造函數之前先加載插件。

————————————————————————————————

How to install:

  • Go to your Skyrim Special Edition root directory. This is the same folder where SkyrimSE.exe is, usually "C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\"
  • Rename "binkw64.dll" to "binkw64_.dll" <- now there's a _ at the end.
  • Put the "binkw64.dll" from downloaded archive into the folder mentioned in step 1.
  • If you did it correctly you should have two files in your folder now: "binkw64.dll" and "binkw64_.dll", that's all, you can start the game now.

How to check if everything is working correctly:

  • Go to where you installed "binkw64.dll" (SkyrimSE.exe folder)
  • Create a new file if it does not exist called "binkw64.log", make sure the extension says "log" and not "txt"!
  • Start game and then exit game, it's fine if you only entered to main menu, no need to load into any save game.
  • Now open the "binkw64.log" file, it will say what plugins if any were checked and whether they loaded correctly.
  • If the file is empty then no plugins were found! This could indicate a problem with permissions or the folder path "Data\DLLPlugins" does not exist.

For mod authors - how to get your DLL to load:

  • Put your dll file in "Data\DLLPlugins". That's all, your plugin will be loaded automatically.

(2.) OPTIONAL! If you need to run some code that can't be done in DllMain due to Loader lock or other issues then add this code to anywhere:

extern "C"

{

__declspec(dllexport) void Initialize()

{

// Do whatever you want here...

}

}

This function will be called immediately after DllMain, but this is not required if you only do simple memory edits.

Why make another one when others already exist?

I needed the plugin to be loaded before static constructors are executed in game code.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 這類遊戲沒有通用的模組管理器:有的模組直接替換遊戲檔案、有的放進遊戲專屬的 Mods 資料夾、有的要先裝遊戲對應的社群載入器或工具,以包內說明為準。
  3. 嚴格按說明放置檔案;標註「前置依賴」的模組需要把依賴一併裝好。
  4. 啟動遊戲確認載入成功;部分遊戲需要在設定或模組選單裡手動啟用。

不同遊戲、不同模組的安裝位置差異很大,包內說明是最可靠的依據。

檔案與校驗

檔案名稱
DLL插件加载器
檔案大小
98.7 KiB