[備忘]關於用 CK 製作 RaceMenu 刺青 Plugins

原因是起始於無聊無事可做與潔癖、強迫症發作之類的吧…

玩上古玩到漸漸的接觸 MOD 修改(改別人的啦…Orz

目前就在合併ESP數量中,減少數量以免爆。
類似 ESP 的就合併
其中刺青類的
KJ Tattoos - Overlay Plugins for RaceMenu
http://www.nexusmods.com/skyrim/mods/50032/?
中的 KJ Lore Tattoos 用 TES5Edit 檢測發現有問題,無法載入,很多人有反應但作者回說不知道問題在哪…
且最近才又找回來用打算用,所以就發作,開始用 CK 研究重作一遍試試。

-----------------------------------------------------------------------------------------

照教學的話,其實不太難。
但由於謎版問題,所以當機連連,而且有地方搞錯意思,做了些白工。

Making a plugin
This short tutorial assumes you have SKSE 1.6.6 (or greater) correctly installed, already have basic knowledge in compiling scripts, using the Creation Kit, can solve compiling errors on your own, and assumes you have already downloaded the modders package.
Extract the modders package to your Data folder
Open Creation Kit (You do not need to load Skyrim.esm)
Create new quest
Give quest a unique ID
Press Quest Aliases tab
Right click the list, New Reference Alias
Name the alias Player
Tick Specific Reference
Press Select Force Reference
Select Cell (any), Ref PlayerRef ('Player') click OK
Press the Add button in the Scripts group
Type RaceMenuLoad into the filter and click OK
Press OK in the Reference Alias window
Go to the scripts tab and Add
Click [New Script], give the script a name
Open the script in your editor of choice and change extends Quest to extends RaceMenuBase
Copy contents of PluginTemplate.psc to your new script
Read the comments inside of the template
Click OK in the Quest window
Save your plugin
Add your warpaints/sliders to your script
Compile your script

To package and distribute your plugin you only need to include:
Data/Scripts/YourPlugin.pex
Data/YourPlugin.esp

作者發布頁面的教學。 但在編寫這篇備忘時,才發現有些東西如 RaceMenuLoad.pex 有包在 RaceMenu 本體,不用特地開 psc 檔然後 New Script 編譯一個。Orz
-----------------------------------------------------------------------------------------

1.下載 modders package 包丟 Data 資料夾。(但裡面的東西,本體也有…

2.CK 開新檔 ,作者說不用 Skyrim.esm ,但我覺得他沒說要注意本體 bsa...
但作者有說最好是有基本了解。所以也許是我沒注意,或是寫教學時管理器不盛行,全丟Data下。

3.照順序做,基本上前面沒問題,但到 RaceMenuLoad 這步就有開始出問題。
基本上有載入 RaceMenu 本體的話,應該找的到 RaceMenuLoad ,但我沒...

處理方式:
用筆記本開 modders package 裡 Scripts\Source\RaceMenuLoad.psc
這是 Scripts 編譯前的文檔,第一行是 name 與 extends 到哪,照輸入方格,其他的就是內容了。

按 OK 編譯完就應可找到編好的 Pex 檔,無法存檔的話,刪掉存檔處的同名檔(Source 裡的 Psc 檔也要)或改檔名。

4. scripts 頁面,ADD 新 scripts。
名字就 MOD 名,extends 那要 RaceMenuBase ,再把 PluginTemplate.psc 的內容貼過去。

這邊的問題有:
謎版常出問題無法編譯,貼上內容後編譯會當。

弄錯 PluginTemplate.psc 意思,以為複製就好,其實這是控制 MOD 中,刺青貼圖路徑的部分,要改好在貼過去編譯。
解決了前兩點後,讀取有問題無法加入 scripts...

處理方式:
第一項,長篇的內容會當,找 MOD 裡的 Psc 內容貼過去。

第二項,基本上與第一項差不多時間解決,純有沒有看內容,理解問題。

第三項比較麻煩,卻是重點,做好後無法加入…
試過 MOD 原檔替換後選加入也不行,後來想到 modders package 有個 RaceMenuPlugin.Esp ,類似範例的東西。
豁然想到,包在裡面,說不定就是給來改的…(本體與 modder包裡都有)
就把 MOD 裡的與編好的 pex 與 psc 丟一起,開 ck 開 Esp ,新建、加入都 ok,範例的刪除後,存檔後改名之。

(這時還沒注意到本體有pex,之後MO中發現有覆蓋,才發現之)
注意編譯到哪個也許會覆蓋之類的,這次開本體那個的,之後重裝復原之。

之後 TES5Edit 無問題,實機試驗也無,等合併後再試試…

基本上,如有載入本體,也許會快速很多,也不用這麼的白工許多…

-----------------------------------------------------------------------------------------

留言