Error

Users who are viewing this thread

Tristan7

Regular
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 105, in <module>
    save_troops()
  File "process_troops.py", line 32, in save_troops
    file.write("\ntrp_%s %s %s %d %d %d %d %d %d\n  "%(convert_to_identifier(tro
op[0]),replace_spaces(troop[1]),replace_spaces(troop[2]),troop[3],troop[4],troop
[5], troop[6], troop[13], troop[14]))
IndexError: list index out of range


Any help?
 
This happens when you do a typo, or do something wrong.

Example, when I did some party and module_parties.py, I had that error (similar, not the same) because I did '..."pf_is_static, pf_disabled,' instead of '..."pf_is_static|pf_disabled,'

This may also happen if you forget a comma ',' or something. Make sure everything's right, also if you still have the CTRL+Zs well slowly go back and check if it fixes the problem, so you can see what's wrong.

If you don't just go to the last thing you modified before this would pop up and check if you can find anything wrong.
 
Back
Top Bottom