Hishy Cache Records xEdit庫腳本

作者 Hishy·版本 v1.5·更新於 2020-02-28

xEdit腳本可幫助記錄複製和支持緩存記錄,以便修補程序中的持久記錄和完整的ESL支持。

截圖 共 1 張

模組介紹 作者原文

xEdit腳本可幫助記錄複製和支持緩存記錄,以便修補程序中的持久記錄和完整的ESL支持。

一個支持類似於SUM的一致性文件之類的庫。

爲腳本以及您要緩存或檢索的記錄使用唯一的標識符。

如果不支持ESL,則ESP文件將模擬XXYYYZZZ formid格式

是否有必須緩存且必須在所有修補文件之後加載的記錄

關閉當前緩存並打開一個新的ID,該ID在初始緩存實例之後運行。

要使用這些功能,只需在該單元下的xEdit腳本頂部添加一行即可

使用'lib \ Hishy_CacheRecords';

OpenCache(sFilePrefix,bIgnoreEslSupport)

必須先使用任何一個

CacheRecordWithPrefix(),CacheRecord(),CloseCache()函數。

CacheRecordWithPrefix(iSrcElement,bDeepCopy,sTargetElementIdent,sPrefixRemove,sPrefix,sSuffix)

和CacheRecord(iSrcElement,bDeepCopy,sTargetElementIdent)

當它們圍繞本機函數時,它們幾乎可以工作

雖然沒有覆蓋支持

CloseCache(bSkipSave)

必須在腳本終止以釋放可用內存並保存高速緩存文件之前調用它。

緩存文件的默認路徑在xEdit的“ Edit Scripts \ lib”文件夾中。

默認名稱爲Hishy_RecordCache_wbGameMode.json

沒有打開的緩存文件時,可以調用ClearCache(sPrefix)。

這將清除特定文件前綴的所有緩存

參數含義:

bDeepCopy

布爾值,與本機深拷貝arg相同。

bIgnoreEsl支持

布爾值,如果爲true,將不使用ESL。

bSkipSave

布爾值,如果爲true,將不保存緩存文件。

iSrcElement

IInterface,將被複制的元素。

sFilePrefix

字符串,用於修補程序文件的文件名。

前綴

字符串,與本地sPrefix相同。

sPrefix刪除

字符串,與本地sPrefixRemove相同。

後綴

字符串,與本地sSuffix相同。

sTargetElementIdent

字符串,用於在緩存文件中查找特定記錄的標識符。

</ s> </ s> </ s>

我已經在“ Hishy_ExampleCacheRecords.pas”名稱下包含了一個示例文件。

選擇一個簡單的頂層羣組,例如Armor或Weapon,然後應用腳本。

該腳本應將所有記錄複製爲新記錄。

無論要複製什麼記錄,它們都應該在多代之間保持相同的FormID和文件名。

無論如何,請不要更改緩存文件。

請爲您和您的腳本選擇一個唯一的ID。

請不要編輯此腳本並進行分發,以進行可怕的版本控制。

隨時隨地編輯,隨時分享。

如果您有其他添加或修復,請請求對此頁面的權限。

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

A library to support something like a consistency file similar to that of SUM.

Use a unique identifier for both your script and the record you're trying to cache or retrieve.

If ESL is unsupported, ESP file will emulate the XXYYYZZZ formid format

If there are records that must be cached and must load after all patched files

Close the current cache and open a new one with a new id that runs after the initial cache instance.

To use these functions, just add the line to the top of your xEdit script under the unit

uses 'lib\Hishy_CacheRecords';

OpenCache(sFilePrefix, bIgnoreEslSupport)

must be called first before using either

CacheRecordWithPrefix(), CacheRecord(), CloseCache() functions.

CacheRecordWithPrefix(iSrcElement, bDeepCopy, sTargetElementIdent, sPrefixRemove, sPrefix, sSuffix)

and CacheRecord(iSrcElement, bDeepCopy, sTargetElementIdent)

work pretty much as they wrap around the native functions

Though there is no override support

CloseCache(bSkipSave)

must be called before script terminates to free memory and save the cache file.

The default path to the cache file is in xEdit's "Edit Scripts\lib" folder.

The default name is Hishy_RecordCache_wbGameMode.json

ClearCache(sPrefix) can be called when there is not an open cache file.

This will clear all cache for a specific file prefix

Argument Meanings:

bDeepCopy

Boolean, same as the native deep copy arg.

bIgnoreEslSupport

Boolean, if true, ESLs will not be used.

bSkipSave

Boolean, if true, cache file will not be saved.

iSrcElement

IInterface, element that will be copied.

sFilePrefix

String, file name to use for the patch file.

sPrefix

String, same as the native sPrefix.

sPrefixRemove

String, same as the native sPrefixRemove.

sSuffix

String, same as the native sSuffix.

sTargetElementIdent

String, the identifier used to lookup a specific record in the cache file.



I have included an example file under the name "Hishy_ExampleCacheRecords.pas"

Select a simple topgroup like that of Armor or Weapon and apply the script.

The script should copy all the records as new.

Regardless of what records are copied they should maintain their same FormID and file name through multiple generations.

Please do not alter the cache file in anyway.

Please pick a unique ID to you and your script.

Please do no edit this script and distribute, makes for terrible version control.

Feel free to edit as you please and feel free to share.

If you have some addition or fix, request permission to this page.

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

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

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

檔案與校驗

檔案名稱
Hishy Cache Records xEdit库脚本
檔案大小
3.9 KiB
SHA-256
d77d51290b8bbd536357f084d4b944dd1c6b45f6e66b8cf6c6b415a81f71de16
入庫時間
2026-10-08 18:04