Antonis said:By their own, "variables not used" warning isn't anything to worry about. In some of my mods I have a lot of those lying around, mostly of experiments half-implemented or failed. It is a bit of lazy programming not to erase them and I know kalarhan would frown at this shoddy work.
But it just means that you assign a variable and you don't really use it anywhere.
Now, as for the "Error: Unable to find object:pt_battlefield", that means that you forgot to add a party template named battlefield or miss-typed something. Check what you edited in party templates. As for the other errors, again probably a miss-type, you seem to reference the wrong type of variable.
Still i havent changed anything from what the tutorial is giving, this error is from something thats already in the module system.
File "process_simple_triggers.py", line 30, in <module>
save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
File "process_simple_triggers.py", line 20, in save_simple_triggers
save_statement_block(file,0, 1, simple_trigger[1] , variable_list,variable_uses,tag_uses,quick_strings)
File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 459, in save_statement_block
save_statement(ofile,opcode,no_variables,statement,variable_list,variable_uses,local_vars, local_var_uses,tag_uses,quick_strings)
File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 408, in save_statement
ofile.write("%d "%operand)
TypeError: %d format: a number is required, not list
save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
File "process_simple_triggers.py", line 20, in save_simple_triggers
save_statement_block(file,0, 1, simple_trigger[1] , variable_list,variable_uses,tag_uses,quick_strings)
File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 459, in save_statement_block
save_statement(ofile,opcode,no_variables,statement,variable_list,variable_uses,local_vars, local_var_uses,tag_uses,quick_strings)
File "D:\Program Files\Steam\steamapps\common\MountBlade Warband\Modules\Calradian Civil War\Module_system 1.166\process_operations.py", line 408, in save_statement
ofile.write("%d "%operand)
TypeError: %d format: a number is required, not list
And nothing is to be added in module_party_templates, and i don´t know how i would add it.
WARNING: Local variable never used: root_defender_party, at: game_event_battle_end
Error: Unable to find object:pt_battlefield
ERROR: Illegal Identifier:pt_battlefield
Error: Unable to find object:pt_battlefield
ERROR: Illegal Identifier:pt_battlefield