What does this mean?

正在查看此主题的用户

状态
不接受进一步回复。

LordOfShadows

Sergeant Knight at Arms
First time its happened and I haven't changed anything other than troop names since the last time.

Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
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]))
TypeError: int argument required

Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Checking tag usages...

______________________________

Script processing has ended.
Press any key to exit. . .
 
When you changed the troop names, did you change the identifier as well? It's the first part of the troop's name:

  ["novice_fighter","Novice Fighter","Novice Fighters",tf_guarantee_boots|tf_guarantee_armor,no_scene,reserved,fac_commoners,
  [itm_hide_boots],
  str_6|agi_6|level(5),wp(60),knows_common,mercenary_face_1, mercenary_face_2],

The part I highlighted is the identifier. If you changed that when you changed the troop names, then you have to go to all the other modules and replace the original identifier with the one you changed it too.

Otherwise, copy and paste the parts you changed for us so that we can take a look at the code.
 
Not to worry figured it out. it was caused by having a third identifier in a troop like this:

[troop_whatever,"Troop Whatever","",Troops Whatever,blah blah blah]
 
状态
不接受进一步回复。
后退
顶部 底部