pharaox / ek2_fixes

EK2 Unofficial Fixpack
0 stars 0 forks source link

`Script system error` errors for `set_vassal_contract_modification_blocked` effect on characters that don't have a vassal contract #10

Closed pharaox closed 1 year ago

pharaox commented 1 year ago

CK3 Version: 1.8.2

EK2 Version: 0.12.1

Summary: There are messages in error.log similar to this one:

[21:47:45][jomini_script_system.cpp:263]: Script system error!
  Error: set_vassal_contract_modification_blocked effect [ 'Gothren Telvanni of  (Internal ID: 2461 - Historical ID telvanni_114)' does not have a vassal contract ]
  Script location: file: events/government_events/govt_events.txt line: 24

The event govt.0001 attempts to use the set_vassal_contract_modification_blocked effect which is not valid on characters that don't have a vassal contract. This event should be prevented from firing for such characters via appropriate conditions in its trigger section.