Hi.. I am adding custom troop trees into my mod and it outputs this:
the error is caused by this line:
Forgot to say: the compiling also shows a lot of 'usage of unassigned variables' and 'Global variable never used' caused by this error. But it can still get me supposedly normal compilation result.
Traceback (most recent call last):
File "src/process_global_variables.py", line 6, in <module>
from module_dialogs import *
File "/Users/admin/chronicles/money-and-honour/src/module_dialogs.py", line 26515, in <module>
modmerge(var_set)
File "/Users/admin/chronicles/money-and-honour/src/modmerger.py", line 297, in modmerge
modmerge__(modcomp_name,var_dict)
File "/Users/admin/chronicles/money-and-honour/src/modmerger.py", line 239, in modmerge__
_temp.__dict__[mergefn_name](var_dict)
File "/Users/admin/chronicles/money-and-honour/src/cstm_dialogs.py", line 94, in modmerge
index = [i for i, dialog in enumerate(orig_dialogs) if dialog[1] == "dplmc_constable_recruits_and_training" and dialog[4] == "dplmc_constable_pretalk"][0]
IndexError: list index out of range
File "src/process_global_variables.py", line 6, in <module>
from module_dialogs import *
File "/Users/admin/chronicles/money-and-honour/src/module_dialogs.py", line 26515, in <module>
modmerge(var_set)
File "/Users/admin/chronicles/money-and-honour/src/modmerger.py", line 297, in modmerge
modmerge__(modcomp_name,var_dict)
File "/Users/admin/chronicles/money-and-honour/src/modmerger.py", line 239, in modmerge__
_temp.__dict__[mergefn_name](var_dict)
File "/Users/admin/chronicles/money-and-honour/src/cstm_dialogs.py", line 94, in modmerge
index = [i for i, dialog in enumerate(orig_dialogs) if dialog[1] == "dplmc_constable_recruits_and_training" and dialog[4] == "dplmc_constable_pretalk"][0]
IndexError: list index out of range
the error is caused by this line:
index = [i for i, dialog in enumerate(orig_dialogs) if dialog[1] == "dplmc_constable_recruits_and_training" and dialog[4] == "dplmc_constable_pretalk"][0]
. Does it mean I need to add diplomacy code too? That would cost a huge amount of time so... if yes, is there any existing modmerger packs to use?Forgot to say: the compiling also shows a lot of 'usage of unassigned variables' and 'Global variable never used' caused by this error. But it can still get me supposedly normal compilation result.