Crusader Kings III

Crusader Kings III

Dark Ages
Error Log
I have over a million of the errors below. Are these because of mod conflicts or something to do with the mod? Thx

[jomini_script_system.cpp:284]: Script system error!
Error: has_trait trigger [ trait was null ]
Script location: file: common/on_action/darkages_on_actions.txt line: 639 (darkages_more_illnesses_on_action:trigger)

[jomini_script_system.cpp:284]: Script system error!
Error: has_trait trigger [ trait was null ]
Script location: file: common/on_action/darkages_on_actions.txt line: 640 (darkages_more_illnesses_on_action:trigger)
< >
Showing 1-15 of 19 comments
TheLoneWanderer Dec 13, 2024 @ 7:10pm 
And about 520,000 of the errors below


Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 192 (darkages_add_shrewd_dull.03:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 193 (darkages_add_shrewd_dull.03:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 30 (darkages_add_shrewd_dull.01:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 267 (darkages_add_shrewd_dull.04:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 268 (darkages_add_shrewd_dull.04:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 272 (darkages_add_shrewd_dull.04:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 105 (darkages_add_shrewd_dull.02:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 273 (darkages_add_shrewd_dull.04:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)

Error: has_trait trigger [ trait was null ]
Script location: file: events/darkages_add_shrewd_dull.txt line: 106 (darkages_add_shrewd_dull.02:trigger)
file: common/on_action/darkages_on_actions.txt line: 490 (da_add_not_genetic_traits)
Cardolam  [developer] Dec 17, 2024 @ 3:24am 
Hi,

Dark Ages tests some traits that are not from vanilla but from other mods to increase compatibility. Those reported errors are absolutely harmless.

Thank you for the report!
TheLoneWanderer Dec 19, 2024 @ 1:08pm 
Hi Cardolam, these messages do create massive error.log files that I suspect create lag as they grow and crash the game after a few hours of play. I could be mistaken
Cardolam  [developer] Dec 19, 2024 @ 3:30pm 
The error log is generated at game start, not dynamically built along gameplay. Again, the issue in question is well understood and explained. CK3.exe tries to find the non defined traits - only if you run also all the specific mods would the issues disappear - and generates errors. But that doesn't mean there are any side effects to adding these traits.

I thank you for your concern and the constructive post but this has nothing to do with CTDs. At this point, I'd say there is not a single induced CTD coming from Dark Ages.
TheLoneWanderer Dec 19, 2024 @ 3:34pm 
@Cardolam.... the errors seem to be dynamic as there are 100s of thousands of them with time stamps that indicate they are occurring over time. I am not trying to debate, but they are constant throughout my game.
Cardolam  [developer] Dec 20, 2024 @ 2:53am 
Yes, looking better in error.log you are right, it is built dynamically.
I have implemented undefined traits since 2021 for the mod to be compatible with "Trick or Trait" and no problems came from that implementation since then.
TheLoneWanderer Dec 20, 2024 @ 11:38am 
It's specifically the lines below in darkages_on_actions.txt that are causing the messages.

When I commented all of them out, the game crashed before starting...so I exceeded my quite limited modding capabilities, LOL. Commenting out the 1st two lines reduced the messages and did not crash the game though

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

# NOT = { has_trait = return_to_hell } #To make DA compatible with Sappho's Daughter.
# NOT = { has_trait = dragon } #To make DA compatible with AGOT.


da_add_not_genetic_traits = { #MOVE THEM TO BIRTH EVENTS? - TO DO

random_events = {

388 = 0
2 = darkages_add_shrewd_dull.01 #SHREWD
2 = darkages_add_shrewd_dull.02 #DULL
2 = darkages_add_shrewd_dull.03 #STRONG
2 = darkages_add_shrewd_dull.04 #WEAK
2 = darkages_loyal_disloyal.01 #LOYAL
2 = darkages_loyal_disloyal.02 #DISLOYAL
----------------------------------------------------------------------------------------------------------------
TheLoneWanderer Dec 20, 2024 @ 11:47am 
is the coding for the random events also for mod compatibility?

The error is "trait was null" which occurs for every line and every trait. This leads me to ponder if these 9 lines of code are doing anything / functioning as intended. However, I acknowledge that my coding skills are rudimentary.
TheLoneWanderer Dec 20, 2024 @ 11:59am 
*Update* - After your most recent update, I unsub'd and resub'd the mod. Then I loaded a saved game and just commenting out those two lines crashed the game. Undoing what I had done by removing the # that I added to those two line fixed the crash that I created.

--the end of my effort to address the error message.. ignominious defeat
Cardolam  [developer] Dec 20, 2024 @ 3:09pm 
On actions are particularly sensitive ♥♥♥♥♥♥♥, that is what I can say. I am sure if you comment those two lines and start a new game everything will run fine. However, from that point on you need to comment those two lines for every update I deliver.

Regarding the da_add_not_genetic_traits on action the first four events called have triggers that test, once again undefined traits, unless you are playing with the mod "Trick or Trait".
TheLoneWanderer Dec 20, 2024 @ 4:19pm 
@Cardolam - the only reason I was tinkering with it was to see if I could reduce the error message.. like you mentioned it has no game impact, it just creates a huge error.log file with many millions of lines of messages--- at least for me, which could be issues with other mods.
Cardolam  [developer] Dec 21, 2024 @ 4:52am 
I have an idea to solve the issue, will define the traits within Dark Ages by copying from the other mods. So, next week you will not have anything to worry about.
Last edited by Cardolam; Dec 21, 2024 @ 4:52am
TheLoneWanderer Dec 21, 2024 @ 5:59am 
excellent news! Thank you
LVLVbNH Dec 30, 2024 @ 12:16am 
Looks like trait `blademaster_1` should be replaced to `lifestyle_blademaster` in file
common\decisions\darkages_decisions.txt
[E][jomini_script_system.cpp:284]: Script system error! Error: has_trait trigger [ Cannot find blademaster_1 in trait database ] Script location: file: common/decisions/darkages_decisions.txt line: 98 (darkages_train_combat_decision:effect) [E][jomini_script_system.cpp:284]: Script system error! Error: has_trait trigger [ Cannot find blademaster_2 in trait database ] Script location: file: common/decisions/darkages_decisions.txt line: 99 (darkages_train_combat_decision:effect) [E][jomini_script_system.cpp:284]: Script system error! Error: has_trait trigger [ Cannot find blademaster_3 in trait database ] Script location: file: common/decisions/darkages_decisions.txt line: 100 (darkages_train_combat_decision:effect)
Last edited by LVLVbNH; Dec 30, 2024 @ 12:16am
LVLVbNH Dec 30, 2024 @ 12:36am 
Same file - common\decisions\darkages_decisions.txt. is_shown for event `darkages_plan_border_raid` defined twice
[E][pdx_persistent_reader.cpp:216]: Error: "Trigger section already read earlier: is_shown, near line: 2422" in file: "common/decisions/darkages_decisions.txt" near line: 2440
< >
Showing 1-15 of 19 comments
Per page: 1530 50