RGL Error...

Started by Skull, November 17, 2013, 08:42:38 PM

Previous topic - Next topic

Skull

Yet another error...  :-\

I get this error when I run build_module:

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 107, in <module>
    save_troops()
  File "process_troops.py", line 38, in save_troops
    for inventory_item in inventory_list:
TypeError: 'int' object is not iterable
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .


And when I run the module and try to play a custom battle,or start a new game,this happens:

Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

Okay, which files have you edited most recently? Presumably module_troops?
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

Yep. I also added some items to the module.
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

Looks like a troops thing - start by checking all of your recent troop types, particularly for extra brackets, commas, quotation marks, etc.
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...

Skull

Yep,the looter file had one extra ",0,"

  ["looter","Looter","Looters",tf_guarantee_boots|tf_guarantee_armor,0,0,0,fac_outlaws,

Thanks Jubal. :)
Quote from: The Khan on October 02, 2013, 11:36:33 AM
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...