Formations and AI mode error

Users who are viewing this thread

Karsontr

Regular
I'm trying to integrate the "Formations and AI" mod into my mod. I installed Mod Merge and copied the python files inside the "formations and AI" mod to the module system directory where Mod Merge is installed. I added the "formations" and "from_AI" codes to the "active_mods" section of the Mod Merge options file, but it gives such an error when I install the module. My module system version is 1.171

Code:
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\module_mission_templates.py", line 16020, in <module>
    modmerge(var_set, component_name)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 297, in modmerge
    modmerge__(modcomp_name,var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\modmerger.py", line 239, in modmerge__
    _temp.__dict__[mergefn_name](var_dict)
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates.py", line 26, in modmerge
    from formations_mission_templates_wb import modmerge_formations_mission_templates
  File "C:\Users\KarsonTR\Desktop\Deneme1\Module_system 1.171\formations_mission_templates_wb.py", line 588, in <module>
    (le, ":distance_to_enemy", AI_charge_distance),     #limit so player can place divisions near large enemy battlegroups without selecting them
NameError: name 'AI_charge_distance' is not defined
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
Last edited by a moderator:
Code:
NameError: name 'AI_charge_distance' is not defined
You need to add this to module_constants.py.
I managed to fix the problem today by trial. The main reason was not the lack of code. While installing the modmerge, I forgot to edit the current module system versions in the option file. I did a fresh install and the problem was solved.
 
Back
Top Bottom