I need to fix luxury clothes and aeroplanes not producing properly
Simsonbaaisonator — Today at 23:40
I'm totally lost on this bug
This is the error
[23:23:54][jomini_script_system.cpp:169]: Script system error!
Error: Failed to fetch variable for 'INDUSTRY_factories_assigned_luxury_clothing' due to not being set
Script location: file: file: file: common/on_action/economy/oa_wealth_changes.txt line: 19; GOODS_governorship_produce_all_manufactured line: 7; GOODS_governorship_produce_manufactured line: 4
Here is the search for all instances of that variable being referenced
Here's the same search for chemicals, which works just fine
They're identical
The variable surely exists because you can assign luxury clothing factories fine, too
But the function that uses the number of assigned factories cannot find it
GOODS_governorship_produce_manufactured = {
industry_assigned = INDUSTRY_factories_assigned_luxury_clothing
amount = GOODS_governorship_luxury_clothing_produced
into_stockpile = luxury_clothing_stockpile
}
GOODS_governorship_produce_manufactured = {
if = {
limit = {
var:$industry_assigned$ > 0 # format = INDUSTRY_factoriesassigned[tradegood_name]
}
}
change_variable = {
name = $into_stockpile$
add = $amount$
}
}
It works for every industry, except for luxury clothing and aeroplanes
I need to fix luxury clothes and aeroplanes not producing properly Simsonbaaisonator — Today at 23:40 I'm totally lost on this bug This is the error [23:23:54][jomini_script_system.cpp:169]: Script system error! Error: Failed to fetch variable for 'INDUSTRY_factories_assigned_luxury_clothing' due to not being set Script location: file: file: file: common/on_action/economy/oa_wealth_changes.txt line: 19; GOODS_governorship_produce_all_manufactured line: 7; GOODS_governorship_produce_manufactured line: 4 Here is the search for all instances of that variable being referenced
Here's the same search for chemicals, which works just fine They're identical The variable surely exists because you can assign luxury clothing factories fine, too But the function that uses the number of assigned factories cannot find it GOODS_governorship_produce_manufactured = { industry_assigned = INDUSTRY_factories_assigned_luxury_clothing amount = GOODS_governorship_luxury_clothing_produced into_stockpile = luxury_clothing_stockpile } GOODS_governorship_produce_manufactured = { if = { limit = { var:$industry_assigned$ > 0 # format = INDUSTRY_factoriesassigned[tradegood_name] } } change_variable = { name = $into_stockpile$ add = $amount$ } } It works for every industry, except for luxury clothing and aeroplanes