Warband Module System 1.166這是Native 1.165的模塊系統,具有許多不同的修復和改進

作者 Lav·版本 v1.166·更新於 2019-01-20

Warband Module System 1.166這是Native 1.165的模塊系統,具有許多不同的修復和改進

模組介紹 作者原文

Warband Module System 1.166這是Native 1.165的模塊系統,具有許多不同的修復和改進

Warband模塊系統1.166(帶有調整和咯咯笑)

(Taleworlds論壇上的官方主題)

這本質上是vanilla模塊系統,有許多修復和調整:

*)文件header_operations.py已完全替換爲正確記錄的版本。

*)(party_set_marshal {l})操作的問題已修復,Module System將接受任一語法。

*)新的1.165操作(try_for_prop_instances)和(try_for_players)現在被正確識別爲“深度增加”操作(這會影響編譯器檢查不安全的失敗操作和額外/缺失(try_end))。

*)編譯期間不再生成臨時*.pyc文件,並且在編譯嘗試失敗時不會使文件夾混亂。

*)信息頁面引用“ip_ *”現在可以被模塊系統編譯器正確識別,並且不會拋出“無法識別的標記”錯誤。

*)對module_info.py添加了一個小調整,如果沒有,則會爲export_dir常量提供一個尾部斜槓。還爲export_dir設置提供了幾個可能的選項(已註釋掉)。

*)現在可以直接在module_troops.py中添加帶有修飾符的項目到部隊庫存。例如,[(itm_item1,imod_rusty),itm_item2]會將生鏽的“itm_item1”和常規“itm_item2”添加到部隊中。使用的代碼是一個稍微修改版本The_dragon “。

*)對header_common.py的修改使數字,字符串和位置寄存器分別達到reg127,s127和pos127。請注意,索引爲100或更高的數字和字符串寄存器不能用於字符串替換(即“你有{reg120} gold。”這樣的字符串會在運行時拋出錯誤)。

*)修改header_item_modifiers.py以添加有關項修飾符的硬編碼遊戲效果的信息,並使imodbit_ *常量更具可讀性。

*)header_items.py的各種修改:

*)項目重量限制從63.75千克增加到655.35千克,精度高達0.01千克。請注意,遊戲引擎無論如何都會將顯示的重量舍入到最接近的0.1 kg。

*)項目其他參數將不再溢出到生命點字段,導致具有可笑的高HP值的項目(儘管通常沒有意義且無害)。

*)項目max_ammo值現在可以達到65535(與vanilla 255相比)。

*)護甲物品的兩個新標誌:itp_replaces_helm和itp_replaces_shoes。

*)對header_skills.py的修改消除了難以理解的大數字,擴展知道_ * _#常量以包括最多15的技能等級,並且更容易更改具有非標準技能集的mod的技能常數。

*)對header_troops.py的修改爲(3..63)範圍內的屬性提供屬性常量。

*)對header_triggers.py的修改,包括有關觸發器參數及其效果的詳細註釋。

Warband Module System 1.166 (with tweaks and giggles)

(official thread on the Taleworlds Forums)

This is essentially the vanilla Module System with a number of fixes and tweaks:

*) File header_operations.py has been completely replaced with properly documented version.

*) Issues with (party_set_marshal{l}) operation have been fixed, Module System will accept either syntax.

*) New 1.165 operations (try_for_prop_instances) and (try_for_players) are now correctly identified as "depth-increasing" operations (this affects compiler checks for unsafe can-fail operations and extra/missing (try_end)'s).

*) Temporary *.pyc files are no longer generated during compilation and won't clutter the folder in case of a failed compilation attempt.

*) Info page references "ip_*" are now correctly recognized by module system compiler and will not throw an "Unrecognized tag" error.

*) Added a small tweak to module_info.py which will provide a trailing slash to export_dir constant if it doesn't have one. Also provided several likely options for export_dir setting (commented out).

*) It is now possible to add items with modifiers to troop inventories directly in module_troops.py. For example, [(itm_item1, imod_rusty), itm_item2] will add rusty "itm_item1" and regular "itm_item2" to a troop. Code used is a slightly modified version of The_dragon's code from a long-forgotten thread in the Forge.

*) Modifications to header_common.py enable numeric, string and position registers up to reg127, s127 and pos127respectively. Note that numeric and string registers with indexes of 100 and higher cannot be used in string substitutions (i.e. a string like "You have {reg120} gold." will throw errors during run-time).

*) Modifications to header_item_modifiers.py to add information about hardcoded game effects of item modifiers and make imodbit_* constants more readable.

*) Various modifications to header_items.py:

*) Item weight limit was increased from 63.75 kg to 655.35 kg with precision of up to 0.01 kg. Note that the game engine will round displayed weight to nearest 0.1 kg anyway.

*) Item other parameters will no longer overflow into hit points field, resulting in items with ridiculously high HP value (which is usually meaningless and harmless though).

*) Item max_ammo value can now go up to 65535 (compared to vanilla 255).

*) Two new flags for armor items: itp_replaces_helm and itp_replaces_shoes.

*) Modifications to header_skills.py get rid of uncomprehensibly big numbers, extend knows_*_# constants to include skill levels up to 15 and make it easier to change skill constants for mods with a non-standard skills set.

*) Modifications to header_troops.py provide attribute constants for attributes in (3..63) …

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

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

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

檔案與校驗

檔案名稱
Warband Module System 1.166这是Native 1.165的模块系统,具有许
檔案大小
1.3 MiB