全面战争:三国

全面战争:三国

2,322 个评价
大结集 : 核心个体 1.2.2
16
20
6
11
9
15
10
8
2
2
3
4
4
2
2
   
奖励
收藏
已收藏
取消收藏
标签: mod, overhaul
文件大小
发表于
更新日期
518.358 KB
2020 年 11 月 9 日 上午 1:13
2021 年 6 月 6 日 上午 10:12
8 项改动说明 ( 查看 )

订阅以下载
大结集 : 核心个体 1.2.2

在 Inter-object 的 1 个合集中
The Gathering mods
8 件物品
描述
  • 修改了“三国”脚本的核心程序,以使游戏运行更稳定
  • @shadowless 帮助了这种简体中文描述和本地化. 谢谢!



介绍

在“三国”中,游戏的节奏由事件控制。核心程序是从“全战三国”游戏引擎接收,处理和传递事件的程序。

该核心程序已在此mod中进行了改进。

如果组件A, B, C和D都在等待一个事件发生,核心程序依次调用事件处理A, B, C和D的请求。 如果在其中 A 处理程序调用发生错误,核心程序须处理错误并继续其余的处理程序。 但是,“全战三国”的脚本引擎核心会在发生错误时直接停止运行,并且其后 B C D处理程序不会调用到事件。

>> 在“三国” 1.7.0中,CA部分实施了异常处理 <<

[大结集 : 核心个体] 做事件异常处理

“三国”中注册最多的事件是“开局”事件,有多达40个“三国”脚本正在等待。 如果一个处理程序中发生错误并且后续处理程序未接收到该事件,则游戏内部的数据将会出错。

从“受命于天”DLC开始,在子目录中加载多个mod脚本和加载Lua脚本时发生错误。
在此mod下修改了内核,以便自然加载多个/子目录中的lua脚本,仅出现错误的mod失败,而其他mod脚本则正常加载。

该mod会处理所有事件异常,但对游戏性能没有影响。


这个mod的主要特点是:
  1. 修改核心程序处理mod出错,以便事件链不会中断
  2. 修改了核心程序的事件添加功能,以防止注册重复事件发生错误。
  3. 还对“全战三国”引擎的计时器事件的bug进行处理。
  4. 修改了核心个体的Mod脚本加载功能,以便仅不加载有错误的mod。
  5. Mod将发生的错误导出到 “游戏目录/game/lua mod_log.txt”文件中,mod制造者可以检查事件处理错误,而不必去“/script/all_script.lua”中去寻找
  6. 戏出现问题时,游戏用户可以轻松地在“lua_mod_log.txt”中发现出错的mod。

我编写了一个mod加载脚本来修复从“受命于天”DLC开始的CA mod加载脚本错误。 某些模组(例如“ WU”,“ NGC”和“ All Faction”)未经许可就使用了沙箱模组加载脚本达数月之久。
必须按照mod加载顺序将此mod放在这些mod之前。

  • 建议将此Mod位于“三国” mod管理器的顶部。
  • 这个mod与“全战三国”1.7.0兼容,并且与所有mod兼容。
  • 您可以随时打开和关闭此mod。

169 条留言
别无恙 10 月 30 日 下午 7:55 
大佬,求更新哇,ca诈尸更新了,拜托拜托🙏
gaehlion 10 月 21 日 上午 4:01 
Mod placed on top of the list and at some point, diplomacy notifications stopped showing up like my neighbor declaring war to my other neighbor. Maybe a conflict with TUP ?
那你跟我的保险说去吧 9 月 8 日 上午 5:17 
还真是
我是萌豚~ 8 月 17 日 下午 2:42 
军政的扣群管理层就是一群现实里过的不如意,在虚拟里把群友当出气筒的废物,我日腻码的狗币天行
手握幻世星辰 8 月 7 日 上午 6:52 
军政的扣群管理层就是一群现实里过的不如意,在虚拟里把群友当出气筒的废物,我日腻码的狗币天行
Ulfhedinn_ 7 月 13 日 下午 7:12 
Hello everyone! I have a "simple" question about TW: Three Kingdoms modding.
Is it possible to develop a script that automatically replaces a unit with another when it reaches a certain rank? Example:
Saber Militia (when it reaches rank 6) is automatically replaced by Saber Infantry .
J+ 5 月 2 日 上午 2:16 
I was confused when Empress He started kicking people out of the divine empire, and started annexing lands.


Turns out thats what happens when the script for Dong Zhuo to take Luoyang fails.

This mod explained a lot about why the script failed
Abaddon 4 月 29 日 下午 12:21 
@yaJLion I got it working with KMM. Load order is Ui, Sandbox, Core, Trom 2, Trom 1. Then any other mods I have, top to bottom.
Abaddon 3 月 18 日 下午 7:53 
thats better than me, I get the infinite start up screen when its above or below TROM
yaJLion 3 月 7 日 下午 3:41 
When placing this mod above TROM, TROM doesn't load when starting a campaign; when putting it below TROM, TROM loads, but this mod and the ui, sandbox etc don't.

Anyone got it working?