.NET腳本框架

作者 meh321·版本 v1.0·更新於 2018-11-18

內存編輯框架,本機代碼掛鉤和以任何.NET語言編寫DLL插件。

模組介紹 作者原文

內存編輯框架,本機代碼掛鉤和以任何.NET語言編寫DLL插件。

介紹.NET Script Framework允許mod作者爲任何.NET語言的任何遊戲或應用程序編寫DLL插件。目前它只支持64位,但計劃在未來支持32位應用程序。

截至目前,這是一個非常早期的版本,不建議發佈任何使用該框架創建的插件,或者如果插件格式發生更改,它們可能最終會中斷。我會盡量避免任何這樣的改變。

計劃框架的教程。

之前發佈它的原因是因爲mod作者可以隨意使用它並讓我知道是否可以進行改進以使插件創作更容易或者如果發現任何問題。普通用戶也可以從框架的崩潰日誌中受益,以幫助解決他們可能遇到的其他mod問題。

要求

DLL插件加載器

安裝

將存檔內容提取到遊戲的/ Data /目錄或使用mod manager。您可以通過啓動遊戲一次並檢查/Data/NetScriptFramework/NetScriptFramework.log.txt中的日誌文件來驗證它是否有效

卸載

部分卸載 - 刪除文件/Data/DLLPlugins/NetScriptFramework.Runtime.dll後,框架或其任何插件將無法加載。

完全卸載 - 刪除上面提到的文件並刪除/ Data / NetScriptFramework /目錄。

故障排除

您可以從/Data/NetScriptFramework/NetScriptFramework.log.txt文件中找到任何問題。如果文件保持爲空,則表示框架根本沒有加載。

框架沒有加載

首先檢查以確保通過在與SkyrimSE.exe相同的目錄中創建名爲binkw64.log的新文件來正確安裝DLL插件加載器。開始遊戲後檢查文件。如果它仍然爲空,請確保正確安裝框架並且/Data/DLLPlugins/NetScriptFramework.Runtime.dll存在。如果仍然無效,請嘗試以管理員身份啓動mod管理員或遊戲。

遊戲崩潰

如果您懷疑框架或其中一個插件導致遊戲崩潰,那麼您可以查看崩潰日誌以查看。確保在/Data/NetScriptFramework/NetScriptFramework.config.txt中啓用崩潰日誌(默認情況下啓用它們),並在崩潰檢查/ Data / NetScriptFramework / Crash /之後啓用日誌。如果您使用具有虛擬文件系統的mod管理器,則崩潰日誌文件可能位於mod管理器的覆蓋文件夾或等效文件中。如果它包含託管異常,那麼它幾乎肯定是一個插件或錯誤的框架。檢查callstack以找到它可能是哪個插件或在此處發佈。如果它是本機異常,它可能會有點棘手,向下滾動並查看當前是否正在執行任何掛鉤,這應該告訴您哪些.NET插件導致代碼在此刻運行。如果沒有,這可能是常規遊戲崩潰,但你仍然可以通過檢查callstack,register和stack trace來獲得一些有用的信息,這些信息說明當時遊戲正在做什麼。

另一個問題

如果您遇到一些未在此處解釋的問題,請在評論標籤中發佈您的問題。

想幫助發展?

只報告問題或發佈建議會很棒,但如果你想進一步提供幫助,那麼需要進行逆向工程和實現遊戲類型的大量工作,以便可以填寫更多的遊戲類型庫,包括類型和字段,函數名稱,紙莎草函數實現,更多事件的本機代碼鉤子以及許多其他事物。如果你想進一步幫助或者想爲另一個遊戲編寫你自己的類型庫(例如,輻射4或甚至是32位遊戲),請在discord上聯繫我,或者在這裏聯繫我。

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

Introduction.NET Script Framework allows mod authors to write DLL plugins for any game or application in any.NET language. Currently it only supports 64 bit but there are plans to support 32 bit applications in the future.

As of right now this is a very early release and it is not recommended to release any plugins created with the framework just yet or they may end up breaking if the plugin format is changed. I will try to avoid any such changes though.

Tutorials for the framework are planned.

The reason for releasing it this early is because mod authors can play around with it hopefully and let me know if improvements could be made to make plugin authoring easier or if any issues are found. Regular users can also benefit from the framework's crash logs to help troubleshoot other mod issues they may be experiencing.

Requirements

DLL Plugin Loader

Installation

Extract contents of archive to /Data/ directory of the game or use mod manager. You can verify if it works by launching the game once and checking the log file at /Data/NetScriptFramework/NetScriptFramework.log.txt

Uninstallation

Partial uninstall - remove the file /Data/DLLPlugins/NetScriptFramework.Runtime.dll after doing that the framework or any of its plugins will not load.

Full uninstall - remove the file mentioned above and remove /Data/NetScriptFramework/ directory.

Troubleshooting

You can find out any problems from /Data/NetScriptFramework/NetScriptFramework.log.txt file. If the file remains empty it means the framework did not load at all.

Framework didn't load

First of all check to make sure the DLL Plugin Loader is installed correctly by creating a new file called binkw64.log in the same directory as SkyrimSE.exe. After starting the game check the file. If it remains empty then make sure you installed the framework correctly and /Data/DLLPlugins/NetScriptFramework.Runtime.dll exists. If it still does not work try starting your mod manager or the game as administrator.

Game crashes

If you suspect the framework or one of the plugins is causing your game to crash then you can check crash logs to see. Make sure crash logs are enabled in /Data/NetScriptFramework/NetScriptFramework.config.txt (they are enabled by default) and after the crash check /Data/NetScriptFramework/Crash/ for the log. If you are using a mod manager with virtual file system the crash log file may be in your mod manager's overwrite folder or equivalent instead. …

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

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

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

檔案與校驗

檔案名稱
.NET脚本框架
檔案大小
3.1 MiB