error assistance

Users who are viewing this thread

Status
Not open for further replies.

Jai

Squire
i am trying to make a female troop and i need some assistance with an error i got, i have searched and found nothing to help, could be i am looking for wrong thing

Initializing...
variables.txt not found. Creating new variables.txt file
Compiling all global variables...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
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 "C:\Program Files\Mount&Blade Warband\Modules\test\Module_system 1.131\pr
ocess_troops.py", line 107, in <module>
    save_troops()
  File "C:\Program Files\Mount&Blade Warband\Modules\test\Module_system 1.131\pr
ocess_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...
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: tutorial_1_finished
WARNING: Global variable never used: tutorial_2_finished
WARNING: Global variable never used: tutorial_3_finished
WARNING: Global variable never used: tutorial_4_finished
WARNING: Global variable never used: tutorial_5_finished
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_presentation_lines_to_display_begin
WARNING: Global variable never used: g_presentation_lines_to_display_end
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
Problem with comma in the inventory list of the female troops.

To fix the native errors, stick this somewhere into your module_scripts.py. This script doesn't do anything, really. It just says that "this global variable is used here" to the compiler.
Code:
    #RPW
	("cf_rpw_fix_native_errors",
	[
	    (eq, "$tutorial_1_finished", 0),
	    (eq, "$tutorial_2_finished", 0),
	    (eq, "$tutorial_3_finished", 0),
	    (eq, "$tutorial_4_finished", 0),
	    (eq, "$tutorial_5_finished", 0),
		(eq, "$g_election_date", 0),
		(eq, "$g_presentation_lines_to_display_begin", 0),
		(eq, "$g_presentation_lines_to_display_end", 0),
		(assign, "$g_presentation_marshall_selection_max_renown_3", 0),
		(assign, "$g_presentation_marshall_selection_max_renown_3_troop", 0),
		(eq, "$g_presentation_marshall_selection_max_renown_3", 1),
		(eq, "$g_presentation_marshall_selection_max_renown_3_troop", 1),
	]),
	#RPW
 
well i must be blind i have looked and i cant find and issue with the troop

Code:
["female_fanatic","Lady Kocken Fanatics","fanatic",tf_female|tf_randomize_face,0,0,fac_outlaws,[itm_hatchet,itm_club,itm_butchering_knife,itm_falchion,itm_stones,itm_fanatic13,itm_fanatic14,itm_fanatic15,itm_fanatic16],def_attrib|level(4),wp(20),knows_common,woman_face_1,woman_face_2],
 
Try removing the numbers and replace them with something like 'a, b, c' etc.
 
Jai said:
well i must be blind i have looked and i cant find and issue with the troop

["female_fanatic","Lady Kocken Fanatics","fanatic",tf_female|tf_randomize_face,0,0,fac_outlaws,[itm_hatchet,itm_club,itm_butchering_knife,itm_falchion,itm_stones,itm_fanatic13,itm_fanatic14,itm_fanatic15,itm_fanatic16],def_attrib|level(4),wp(20),knows_common,woman_face_1,woman_face_2],
the bold red thing doesnt need to be there i'm pretty sure.
this is what one of my female troops looks like:
Code:
  ["raven_zealot","Widows","Widows",tf_female|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_kingdom_12,
   [itm_military_cleaver_c,itm_tab_shield_round_e,itm_one_handed_war_axe_a,itm_sword_viking_3,
    itm_sarranid_common_dress,itm_sarranid_felt_head_cloth_b,itm_khergit_leather_boots],
   def_attrib|level(9),wp(75),knows_common,refugee_face1,refugee_face2],
 
@ sinister: i have always had numbers on items and never had a problem

@Malik: i took it out and still the problem exist, not only that i had the randomize face on the troop before that entry (i had created it) and its not showing the error for that line


edit: never figured out what the problem was i just rewrote the troop again and it has no errors now
 
Status
Not open for further replies.
Back
Top Bottom