Total War: THREE KINGDOMS

Total War: THREE KINGDOMS

2,209 ratings
The Gathering : Core Object 1.2.2
14
18
6
10
9
15
9
8
2
2
4
4
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, overhaul
File Size
Posted
Updated
518.358 KB
9 Nov, 2020 @ 1:13am
6 Jun, 2021 @ 10:12am
8 Change Notes ( view )

Subscribe to download
The Gathering : Core Object 1.2.2

In 1 collection by Inter-object
The Gathering mods
8 items
Description
  • Modified the core object of the TW:TK script to make the game run more reliably
  • 삼탈워 엔진의 코어 오브젝트를 개조하여 게임이 더 안정적으로 돌아갈 수 있도록합니다
  • 修改了TW:TK脚本的核心对象,以使游戏运行更可靠



In TW:3K, events are like the heartbeat of a game. The core object is a component that receives, processes, and delivers events from TW:3K engine.

That core object has modified in this mod.

If components A, B, C, and D wait for one event, the core calls the event handlers A, B, C, D sequentially. If an error occurs in the event handler of one of the handler calls, the core must handle the error and call the remaining handlers. However, TW:3K's script engine core stops functioning when an error occurs, and the rest of the handlers do not receive events.

In technical terms, TW:TK does not do the event exception handling.

>> TW:TK 1.7.0, CA implemented exception handling partially. <<

[TheGathering : Core Object] do the event exception handling.

The most registered event inside TW:3K is the "Faction Turn Start" event, with as many as 40 TW:3K script components waiting. If an error occurs in one handler and subsequent handlers do not receive the event, the data inside the game will be twisted.

TW:TK mod script loading is also done in the core, but exception handling is not performed similar to event handling. Starting with "Mandate of Heaven" DLC, an error occurs when loading multiple mod scripts and loading Lua scripts in subdirectories.
I modified the core-object in this mod so that Lua scripts in multiple/subdirectories are loaded naturally, only the mod with errors fails, and other mod scripts are loaded normally.

This mod handles all event exceptions, but has no impact on game performance.


  1. Modify the core object to handle exceptions so that the event chain is not broken.
  2. Modified the event addition function of the core object to prevent confusion in which duplicate events are registered.
  3. Also executes exception handling of timer event of TW:3K engine.
  4. Mod script loading function of core object is modified so that only the mod with error is not loaded.
  5. By outputting the occurred errors to "$(game)/lua_mod_log.txt", the modders can check the event processing error without having to include "/script/all_script.lua"
  6. Game users can easily check the script errors of mods in "lua_mod_log.txt" when there is a problem with the game.

I wrote a mod loading script to fix the CA mod loading script error that started from the "Heavenly Command" DLC. Some mods like 'WU' ,'NGC' and 'All Faction' have used the Sandbox mod load script for months without permission.
This mod should be above the mods that have "/script/_lib/lib_mod_loader.lua".

  • Placing this mod at the top of the mod list is recommended
  • This mod is compatible with all mods
  • You can turn on & off this mod at any time.

164 Comments
Ulfhedinn_ 13 Jul @ 7:12pm 
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+ 2 May @ 2:16am 
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 29 Apr @ 12:21pm 
@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 18 Mar @ 7:53pm 
thats better than me, I get the infinite start up screen when its above or below TROM
yaJLion 7 Mar @ 3:41pm 
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?
maxime.ricard92 26 Jan @ 5:31am 
Yes still compatible with 1.7.2
AeonRanger 26 Jan @ 5:29am 
Is this mod still compatible with 1.7.2? Still using it at the moment and had no issues but wanted to check. Thanks!
Cioze 16 Jan @ 8:56am 
武将合集立绘简直就是性压抑者玩的~!
PikaSon 20 Nov, 2024 @ 7:19am 
军政的扣群管理层就是一群现实里过的不如意,在虚拟里把群友当出气筒的废物,我日腻码的狗币天行
SDN 30 Oct, 2024 @ 6:09am 
no English version?