Author Topic: RGL Error...  (Read 5620 times)

Skull

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
RGL Error...
« on: November 17, 2013, 08:42:38 PM »
Yet another error...  :-\

I get this error when I run build_module:

Code: [Select]
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:

Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35338
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: RGL Error...
« Reply #1 on: November 18, 2013, 12:23:20 AM »
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

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: RGL Error...
« Reply #2 on: November 18, 2013, 03:22:44 PM »
Yep. I also added some items to the module.
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35338
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: RGL Error...
« Reply #3 on: November 18, 2013, 04:30:55 PM »
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

  • Magister equitum
  • Citizens
    Voting Member
  • Posts: 357
  • Karma: 5
  • It is easier to criticize than to correct our past
    • View Profile
    • Awards
Re: RGL Error...
« Reply #4 on: November 18, 2013, 07:57:25 PM »
Yep,the looter file had one extra ",0,"

Code: [Select]
  ["looter","Looter","Looters",tf_guarantee_boots|tf_guarantee_armor,0,0,0,fac_outlaws,
Thanks Jubal. :)
Skull, the one of poor grammar, the enemy of all Grammar Nazi and destroyer of all linguistic reasoning!

Jubal

  • Megadux
    Executive Officer
  • Posts: 35338
  • Karma: 140
  • Awards Awarded for oustanding services to Exilian!
    • View Profile
    • Awards
Re: RGL Error...
« Reply #5 on: November 19, 2013, 12:11:43 AM »
Glad to be of service  :)
The duke, the wanderer, the philosopher, the mariner, the warrior, the strategist, the storyteller, the wizard, the wayfarer...