Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
More useful debug messages would probably print the player's ammo counts before and after your +1 and set ammo operations.
with agent_set_ammo, note that if the player hasn't used any ammo, it won't increase the ammo above the "max ammo" of the bag of arrows. Might that be what you are seeing?
 
Caba`drin said:
More useful debug messages would probably print the player's ammo counts before and after your +1 and set ammo operations.
with agent_set_ammo, note that if the player hasn't used any ammo, it won't increase the ammo above the "max ammo" of the bag of arrows. Might that be what you are seeing?
EDIT: SOLVED.
 
Specialist said:
xPearse said:
Hey guys what shader do I use for clothing using bump maps. I really dont know the shaders properly because I used bump_static for a clothing and the lighting on it turned out all weird.

Use a standart_shader
probably standart_shader_noskin_bump_high for weapons and standart_shader_skin_bump_high for rigged stuff

Those are with regular mount & blade so what should I use, isnt it certain shaders that make the bump maps load or can it be any regular shader like agent_shader.
 
Sometimes in game when i try to recruit i get message -1 volunteers want to go with you and then i dont have in menu continue to exit from menu and i must press alt f4 to quit game.
Now i add

Code:
 (eq, ":volunteer_amount", -1),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

after
Code:
 (eq, ":volunteer_amount", 0),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

and then in game i dont get messange -1 volunteers want to go with you i get No one here seems to be willing to join your party
but still i dont have continue in menu, then i add after

Code:
(eq, ":volunteer_amount", -1),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

this
Code:
("continue_not_enough_gold",
      [
        
      ],
      "Continue...",
      [
        (leave_encounter),(change_screen_return),
      ]),

but after i try to compile module system i get message
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
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...
Traceback (most recent call last):
  File "process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 27, in save_game_menus
    save_statement_block(ofile,0,1, game_menu[4]  , variable_list, variable_uses
,tag_uses,quick_strings)
  File "C:\Users\Stefan\Desktop\New folder\Module_system 1.143\process_operation
s.py", line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Stefan\Desktop\New folder\Module_system 1.143\process_operation
s.py", line 398, in save_statement
    ofile.write("%d %d "%(opcode, lenstatement))
TypeError: %d format: a number is required, not str
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: g_enemy_surrenders
WARNING: Global variable never used: g_player_surrenders
WARNING: Global variable never used: g_private_battle_with_troop
WARNING: Global variable never used: cant_leave_encounter
WARNING: Global variable never used: g_leave_town_outside
WARNING: Global variable never used: character_gender
WARNING: Global variable never used: g_player_troop
WARNING: Global variable never used: g_camp_mode
WARNING: Global variable never used: g_prisoner_recruit_troop_id
WARNING: Global variable never used: g_prisoner_recruit_last_time
WARNING: Global variable never used: playerparty_postbattle_regulars
WARNING: Global variable never used: routed_party_added
WARNING: Global variable never used: thanked_by_ally_leader
WARNING: Global variable never used: last_freed_hero
WARNING: Global variable never used: capture_screen_shown
WARNING: Global variable never used: g_prison_heroes
WARNING: Global variable never used: g_siege_force_wait
WARNING: Global variable never used: g_siege_sallied_out_once
WARNING: Global variable never used: g_siege_join
WARNING: Global variable never used: quest_auto_menu
WARNING: Global variable never used: g_tournament_player_team_won
WARNING: Global variable never used: g_tournament_bet_placed
WARNING: Global variable never used: g_tournament_bet_win_amount
WARNING: Global variable never used: g_tournament_last_bet_tier
WARNING: Global variable never used: g_last_assassination_attempt_time
WARNING: Global variable never used: g_last_rest_payment_until
WARNING: Global variable never used: g_train_peasants_against_bandits_num_peasan
ts
WARNING: Global variable never used: last_sneak_attempt_town
WARNING: Global variable never used: last_sneak_attempt_time
WARNING: Global variable never used: g_training_ground_training_count
WARNING: Global variable never used: g_presentation_marshall_selection_max_renow
n_2
WARNING: Global variable never used: g_tutorial_entered
WARNING: Global variable never used: g_dont_give_marshalship_to_player_days
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
When I click on build_module.bat, I get these error messages and cant figure out why. It's probably something simple knowing me. 
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\process_operations.py
", line 13, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_triggers.py",
line 9, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 3, in <module>
    from module_map_icons import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_map_icons.py",
line 2, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_factions.py", line 2, in <module>
    from module_factions import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_factions.py",
line 69
SyntaxError: Non-ASCII character '\xfc' in file C:\Users\Jordan Hughes\Desktop\M
odule_system 1.142\module_factions.py on line 69, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
Traceback (most recent call last):
  File "process_items.py", line 4, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scenes.py", li
ne 5, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 4, in <module>
    from module_scene_props import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scene_props.py
", line 7, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_tableau_materials.py", line 5, in <module>
    from module_tableau_materials import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_tableau_materi
als.py", line 6, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_presentations.
py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_game_menus.py"
, line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scripts.py", l
ine 4, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_mission_templa
tes.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_game_menus.py"
, line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 2, in <module>
    from module_simple_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_simple_trigger
s.py", line 10, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_triggers.py",
line 9, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\process_operations.py
", line 13, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting postfx_params...

______________________________

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

It's basically saying I have an indent error some where but I cant figure it out. Can anyone enlighten me?
 
Stríð faðir said:
When I click on build_module.bat, I get these error messages and cant figure out why. It's probably something simple knowing me. 
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\process_operations.py
", line 13, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_triggers.py",
line 9, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 3, in <module>
    from module_map_icons import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_map_icons.py",
line 2, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_factions.py", line 2, in <module>
    from module_factions import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_factions.py",
line 69
SyntaxError: Non-ASCII character '\xfc' in file C:\Users\Jordan Hughes\Desktop\M
odule_system 1.142\module_factions.py on line 69, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
Traceback (most recent call last):
  File "process_items.py", line 4, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scenes.py", li
ne 5, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 4, in <module>
    from module_scene_props import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scene_props.py
", line 7, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_tableau_materials.py", line 5, in <module>
    from module_tableau_materials import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_tableau_materi
als.py", line 6, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_presentations.
py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_game_menus.py"
, line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_scripts.py", l
ine 4, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_mission_templa
tes.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_game_menus.py"
, line 8, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 2, in <module>
    from module_simple_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_simple_trigger
s.py", line 10, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_triggers.py",
line 9, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\process_operations.py
", line 13, in <module>
    from module_items import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_items.py", lin
e 1, in <module>
    from module_constants import *
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_constants.py",
line 5, in <module>
    from module_troops import *#Retrospect
  File "C:\Users\Jordan Hughes\Desktop\Module_system 1.142\module_troops.py", li
ne 618
    ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,
    ^
IndentationError: unexpected indent
Exporting postfx_params...

______________________________

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

It's basically saying I have an indent error some where but I cant figure it out. Can anyone enlighten me?

it this your whole code

Code:
 ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,

i think u need to have skills, troops face...
 
Nope, this is my whole code. 
Code:
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
 
Stríð faðir said:
Nope, this is my whole code. 
Code:
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
Where is it in the file? (What are the lines around it)

Z.Master said:
Sometimes in game when i try to recruit i get message -1 volunteers want to go with you and then i dont have in menu continue to exit from menu and i must press alt f4 to quit game.
Now i add
...snip...
Will need more of the complete menu code to be able to piece together what is going on.

CTCCoco said:
On the other hand, can you tell me if it's possible to set a determinate configuration (I.E. disable polls, limit player slots) with the Module System scripting?
WSE adds some addition operations that get some of these settings. Search Native and WSE's header_operations for operations that include "option" or "server"
 
These are the two sets of code around it.
Code:
   ["rhodok_sergeant","Fergherian Master-Bear","Fergherian Master-Bears",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(25),wp_one_handed (130) | wp_two_handed (115) | wp_polearm (155) | wp_archery (115) | wp_crossbow (115) | wp_throwing (115),knows_common|knows_ironflesh_6|knows_shield_5|knows_power_strike_5|knows_athletics_5,rhodok_face_middle_1, rhodok_face_older_2],tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(40),wp_one_handed (250) | wp_two_handed (200) | wp_polearm (220) | wp_archery (115) | wp_crossbow (115) | wp_throwing (150),knows_common|knows_ironflesh_9|knows_shield_8|knows_power_strike_10|knows_athletics_10,rhodok_face_middle_1, rhodok_face_older_2],
  ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
  ["rhodok_trained_crossbowman","Fergherian Iron-Shooter","Fergherian Iron-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged|tf_guarantee_shield,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_sword_medieval_b_small,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_common_hood,itm_leather_armor,itm_arena_tunic_green,itm_nomad_boots],
   def_attrib|level(15),wp_one_handed (90) | wp_two_handed (90) | wp_polearm (90) | wp_archery (90) | wp_crossbow (105) | wp_throwing (90),knows_common|knows_ironflesh_1|knows_shield_2|knows_power_strike_2|knows_athletics_3,rhodok_face_young_1, rhodok_face_older_2],


It's in Module_troops.py
 
Your problem is on the rhodok_sergeant line. There's a whole bunch of extra stuff there before the rhodok_crossbowman definition begins and after it should have ended--remove all this:

Code:
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(40),wp_one_handed (250) | wp_two_handed (200) | wp_polearm (220) | wp_archery (115) | wp_crossbow (115) | wp_throwing (150),knows_common|knows_ironflesh_9|knows_shield_8|knows_power_strike_10|knows_athletics_10,rhodok_face_middle_1, rhodok_face_older_2],
 

EDIT - ninja'd by Somebody.
 
Ah! Thank you very much! After this I also found several other missteps I had made but, i've fixed them. Thanks again.
 
Caba`drin said:
Stríð faðir said:
Nope, this is my whole code. 
Code:
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
Where is it in the file? (What are the lines around it)

Z.Master said:
Sometimes in game when i try to recruit i get message -1 volunteers want to go with you and then i dont have in menu continue to exit from menu and i must press alt f4 to quit game.
Now i add
...snip...
Will need more of the complete menu code to be able to piece together what is going on.

CTCCoco said:
On the other hand, can you tell me if it's possible to set a determinate configuration (I.E. disable polls, limit player slots) with the Module System scripting?
WSE adds some addition operations that get some of these settings. Search Native and WSE's header_operations for operations that include "option" or "server"

i want to add to recruit troops in camps not in villages but because i dont have reputation with camps somethimes i get -1 volounteer available and then I dont have option exit from menu then i try to add codes from my this post u quote
 
Hello, I'm making a little mod such as improving UI(modding gamemenus, presentations, dialogs and sometime scripts) for other author's mod.
I want keep the savegame compatibly, but I don't know the cause of breaking compatibly.
Could anyone tell me major causes?
 
cimo said:
Hello, I'm making a little mod such as improving UI(modding gamemenus, presentations, dialogs and sometime scripts) for other author's mod.
I want keep the savegame compatibly, but I don't know the cause of breaking compatibly.
Could anyone tell me major causes?
Things break saved game compabilities :
1. New Global Variables, or changes in global variables order.
How to deal with it :
Before modifying the module system, compile it once again. Copy variables.txt from module folder to module system's folder. Any new introduced global variables must be included into the variables.txt file by overwritting reversed_## global variables.

2. New Simple Triggers.
How to deal with it :
Don't create any new simple triggers. If you badly need new simple triggers, just modify
(24,
[]),

on the last parts of module_simple_triggers.py

3. Inserted new items, new factions, new troops, etc. esp. that change constants like mercenaries_end, books_begin, etc
How to deal with it :
Don't do it.


 
Or just screw them.
If you are making an UI makeover, release it in a major patch/version, together with other significant mod changes - don't release small patches every week. Players would accept more easily that their savegames are kaput, you just need to tell them you are sorry. They really don't mind much starting a new game, if there is significant new content.
 
Hey,
It's been a while since ive done any modding to m&b, so ive forgotten everything but..
Is it possible to find out what horse the lord of an army is riding, and then change a variable depending on the outcome?
Alsoo, whats the code needed to change a troop to hostile after you've finished talking to them?
Cheers :smile:
 
You can access the lord you are talking to via the variable $g_talk_troop, and then from there you can access the horse slot in troop_get_inventory_slot with ek_horse as the item slot parameter. Native uses script_change_player_relation_with_troop to make them hostile with a negative relation parameter.
 
Status
Not open for further replies.
Back
Top Bottom