Grant2600
Recruit

Hi, I got this python error, i have just started modding this game and its probably a obvious mistake but whatever it is I havn't got a clue how to fix it, I have only added some more troops and some items, I haven't made any new textures or models just changed the prefference id, in game name and things like damage
i cant insert an image of the error because im not sure how to get the code for an image so i'll write out the error...
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(reoop[2]),troop[3],troop[4],troop
[5], troop[6], troop[13], troop[14]))
TypeError: %d format: a number is required,not list
after this is goes back to exporting the rest of the files correctly but i cant seem to find the problem for this one becuase it talks about process files other than module files and i havn't edited any process files or any other files other than module files
If any cant help me it would be much appreciated
Thanks
i cant insert an image of the error because im not sure how to get the code for an image so i'll write out the error...
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(reoop[2]),troop[3],troop[4],troop
[5], troop[6], troop[13], troop[14]))
TypeError: %d format: a number is required,not list
after this is goes back to exporting the rest of the files correctly but i cant seem to find the problem for this one becuase it talks about process files other than module files and i havn't edited any process files or any other files other than module files
If any cant help me it would be much appreciated
Thanks

