貝塞斯達工具包
將ESP / ESM文件轉換爲易於編輯的XML文件,然後再次返回。
截圖 共 1 張
模組介紹 作者原文
將ESP / ESM文件轉換爲易於編輯的XML文件,然後再次返回。
如果您將Chrome瀏覽器用於網絡瀏覽器,則可能會誤以爲是病毒。如果下載有問題,請嘗試使用其他網絡瀏覽器,例如Firefox。
總覽
這是一個命令行工具,將與Bethesda插件文件一起使用,以幫助創建mod。當前,這包括將ESM / ESP文件轉換爲XML格式,然後可以使用所需的任何工具對其進行編輯,然後在進行更改後將其轉換回ESM / ESP。最終,一旦我穩定了用於讀寫插件文件的代碼,我最終希望擴展該工具包提供的功能。
用法
這是與bethkit.exe可執行文件一起運行的命令行工具。要將插件轉換爲XML文件,只需在命令提示符下運行以下命令:
bethkit轉換YourMod.esp YourMod.esx
生成的ESX文件將採用XML格式,該格式與我參考創建該工具包的
bethkit轉換YourMod.esx YourMod.esp
除convert命令外,還有一個解壓縮命令,其運行方式如下:
bethkit解壓縮YourMod.esp YourModDecompressed.esp
插件文件中的某些記錄以壓縮格式存儲,這將對其進行解壓縮,因此它們仍可以未壓縮形式使用。您可能不需要使用它,但是我想我會提到它,因爲它可用。我使用了它,因此在開發此工具箱時,使用十六進制編輯器對記錄進行分析會容易得多。
警告
由於此工具包相對較新,因此可能仍然存在許多錯誤。在我的測試中,我確保將Skyrim.esm,Update.esm,HearthFires.esm,Dawnguard.esm和Dragonborn.esm轉換爲XML並再次返回到生成的文件時沒有任何差異時可以正常工作。這並不意味着轉換modders創建的其他文件不會有問題。如果您遇到任何問題,請隨時報告錯誤,以便我解決問題。
另外,在編輯XML文件時,很可能您可以進行更改,然後使用此工具將其成功轉換回插件文件,但在Skyrim中使用時實際上將無法使用。我強烈建議您使用TES5Edit來驗證所做的任何更改都不會引入任何錯誤。鑑於此工具包相對較新,您可能不希望在很大程度上依賴於創建mod,而只是將其用作可以幫助您瞭解所創建的插件的另一工具。
錯誤報告
如果您發現錯誤並要報告,請提供指向我可以下載有問題的文件的鏈接,以便我重現該錯誤。錯誤報告僅說“它不起作用”或以其他方式提供模糊的信息對我無濟於事,因爲這些插件文件非常複雜,如果無法重現,我無法猜測可能是什麼問題。如果我沒有可重現該問題的文件,則大寫字母也無濟於事。
未來
最終,我希望支持Skyrim以外的其他遊戲,例如Fallout 4和Oblivion。一旦我瞭解了興趣所在以及看到使用它的其他人的反饋,我可能會想到XML轉換以外的其他功能。
去做
這只是我可以立即想到的事情清單,我可能想放入下一個可用的更新中:
將插件文件轉換爲XML格式時,請添加選項以配置縮進間隔。目前,這已硬編碼爲4個空格。
優化代碼以減少內存使用,並可能提高轉換速度。
嘗試解釋一些當前未知的字段。
————————————————————————————————————————
If you are using Chrome for a web browser you may get a false positive saying this is a virus. Try using an alternative web browser like Firefox if you are having problems downloading.
OVERVIEW
This is a command line tool that will work with Bethesda plugin files for the purposes of helping to create mods. Currently this consists of converting ESM/ESP files to an XML format that can then be edited with whatever tools you like and then converted back to an ESM/ESP once your changes have been made. Eventually I hope to expand on the features this toolkit provides once I have stabilized the code for reading and writing plugin files.
USAGE
This is a command line tool that is run with the bethkit.exe executable. To convert a plugin to an XML file you simply run the following in a command prompt:
bethkit convert YourMod.esp YourMod.esx
The ESX file produced will be in an XML format that closely mirrors the binary file format as described at I referenced to create this toolkit. You will likely want to refer to the information on UESP when making changes as the XML format is still pretty raw and some things might not seem obvious without some knowledge of the file format. Once you have made your changes, you can convert the ESX file back to a plugin file by running the following command:
bethkit convert YourMod.esx YourMod.esp
In addition to the convert command there is also a decompress command which is run as follows:
bethkit decompress YourMod.esp YourModDecompressed.esp
Some records in plugin files are stored in a compressed format and this will decompress them so they are still usable in an uncompressed form. You may not need to use this, but I thought I would mention it since it is available. I used it so analysis of records would be a lot easier in a hex editor while developing this toolkit.
WARNING
Since this toolkit is relatively new there may still be a lot of bugs. In my testing I have made sure that this works when converting Skyrim.esm, Update.esm, HearthFires.esm, Dawnguard.esm, and Dragonborn.esm to an XML and back again without any differences in the resulting files. That doesn't mean it won't have problems with converting other files that modders have created. If you encounter any problems, please feel free to report bugs so I can see about fixing them.
Also, when editing the XML files it is quite likely you may make changes that convert back into a plugin file successfully with this tool but won't actually work when used in Skyrim. I highly recommend you use TES5Edit to verify there aren't any errors introduced with any changes you have made. Given this toolkit is relatively …
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 這類遊戲沒有通用的模組管理器:有的模組直接替換遊戲檔案、有的放進遊戲專屬的 Mods 資料夾、有的要先裝遊戲對應的社群載入器或工具,以包內說明為準。
- 嚴格按說明放置檔案;標註「前置依賴」的模組需要把依賴一併裝好。
- 啟動遊戲確認載入成功;部分遊戲需要在設定或模組選單裡手動啟用。
不同遊戲、不同模組的安裝位置差異很大,包內說明是最可靠的依據。