Open cwp-bot opened 1 year ago
This issue is still prominent in the current dev version.
[14:51:59.119](jomini_script_system.cpp:263): [2023-08-14 14:51:59.558] [Error] [error] [jomini_script_system.cpp:263] Script system error!
Error: Failed to fetch variable for 'ai_currency_buy_country' due to not being set
Script location: file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 124 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations line: 8
Additionally, This as well. These errors happen at runtime
[14:51:50.110](jomini_script_system.cpp:263): [2023-08-14 14:51:50.432] [Error] [error] [jomini_script_system.cpp:263] Script system error!
Error: market trigger [ Failed context switch ]
Script location: file: common/script_values/fiscal_values.txt line: 1377 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations line: 7
File: common\scripted_effects\cwp_onaction_fiscal_ai.txt Start as USA, happens almost immediately
[08:14:26][jomini_script_system.cpp:263]: Script system error! Error: Failed to fetch variable for 'ai_currency_buy_country' due to not being set Script location: file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 123 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations line: 8 [08:14:26][jomini_script_system.cpp:263]: Script system error!
Error: Event target link 'var' returned an unset scope Script location: file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 123 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations
line: 8 [08:14:26][jomini_scriptvalue.cpp:1288]: Value of wrong type in ' file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 119'. Got value of type 'none' [08:14:26][jomini_script_system.cpp:263]: Script system error! Error: Failed to fetch variable for 'ai_currency_buy_country' due to not being set Script location: file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 124 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations line: 8 [08:14:26][jomini_script_system.cpp:263]: Script system error!
Error: Event target link 'var' returned an unset scope Script location: file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 124 file: common/on_actions/00_code_on_actions.txt line: 150 file: common/scripted_effects; onaction_fiscal_calculation line: 6 file: common/scripted_effects; onaction_ai_fiscal_calculations line: 8 [08:14:26][jomini_scriptvalue.cpp:1288]: Value of wrong type in ' file: common/scripted_effects; onaction_ai_buy_foreign_currency_calculation line: 119'. Got value of type 'none'