[HELP - MS] How use "Floris Dev Suite 2.53"?

Users who are viewing this thread

Here it is :

Code:
Compiling Floris Expanded Mod Pack to a custom directory
Start Processing...
______________________________

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_items.py", line 80, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 5, in <module>
    from module_triggers import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
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:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_map_icons.py", line 2, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Exporting faction data...
Traceback (most recent call last):
  File "process_items.py", line 4, in <module>
    from module_items import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_items.py", line 80, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scenes.py", line 17, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 4, in <module>
    from module_scene_props import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scene_props.py", line 19, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 5, in <module>
    from module_tableau_materials import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_tableau_materials.py", line 6, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_presentations.py", line 7, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Exporting quest data...
Traceback (most recent call last):
  File "process_info_pages.py", line 4, in <module>
    from module_info_pages import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_info_pages.py", line 8, in <module>
    from module_constants import DPLMC_DIPLOMACY_VERSION_STRING
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 4, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_mission_templates.py", line 8, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 2, in <module>
    from module_simple_triggers import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_simple_triggers.py", line 14, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 5, in <module>
    from module_triggers import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_items.py", line 80, in <module>
    from module_constants import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_constants.py", line 540, in <module>
    num_trade_goods = itm_trade_dummy01 - itm_trade_spice #itm_siege_supply - it
m_trade_spice, edited to skip dummy goods for Mercantilism Mod by keinplan84m
NameError: name 'itm_trade_dummy01' is not defined
Exporting postfx_params...
Exporting flora data...
Exporting ground_spec data...
Exporting skyboxes...

______________________________

Copying source files to internal directory...
Moving source files to custom mod directory...
Moving Process Log...
        1 file(s) moved.

______________________________

All Finished ...
Cleaning up...
______________________________

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

wait, the huscarl shield error went away...  :shock:
Either way, the ar_tun_tunic error is the exact same thing as the shield error was, just with a different item and on a different troop entry.

Also, the changes still haven't been included in item_kinds or troops. So I have no idea why the compiler is no longer throwing a fit about the shield.
 
When you change the names of items it sometimes requires a second compile to remove errors.  This is because the initial compile runs into an error when it looks for an item in ID_items, but doesn't find it yet.  That file isn't created in the compiling process until the end (well during, but it isn't available yet).  So the second compile then compiles without that same error because the ID_items file from the previous compile now includes that item definition.  So if you get a item definition error on compile it is always best to try a second recompile first.
 
Make sure your module_constants.py file has a line including ID_items in it.  Hate to beat that dead horse, but that seems like the most likely issue.
 
Can't blame ya, Windy. This is a dead horse you beat until it's no longer distinguishable from either the bat or the ground. And yes, line 1 in module_constants is

Code:
from ID_items import *

also, Google turned up a similar post from elsewhere on the forums (issue was solved by making sure all item names were lowercase. Unfortunately, all my item names are already entirely lowercase).
 
You could try putting in:
num_trade_goods = 34

Then comment out the current num_trade_goods line.  That 34 is the number it is looking to make.  It isn't ideal, but it might get the compile to at least work and then try to narrow down why it is doing it.  The lines you're showing are identical to my copy of 2.53 (well technically 2.5x, but those lines are the same).
 
Well, that cleared out the trade_dummy01 errors...

Code:
Compiling Floris Expanded Mod Pack to a custom directory
Start Processing...
______________________________

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
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 6, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 61, in <module>
    save_python_header()
  File "process_items.py", line 14, in save_python_header
    file.write("itm_%s = %d\n"%(convert_to_identifier(items[i_item][0]),i_item))

  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_common.py", line 5, in convert_to_identifier
    s1 = string.replace(s0," ","_")
  File "C:\Python27\lib\string.py", line 519, in replace
    return s.replace(old, new, maxreplace)
AttributeError: 'list' object has no attribute 'replace'
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_game_menus.py", line 2728, in <module>
    ]) for x in range(0, itm_book_wound_treatment_reference - itm_book_tactics)
NameError: name 'itm_book_wound_treatment_reference' is not defined
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:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 60916, in <module>
    (this_or_next|is_between, ":item", itm_book_tactics, itm_trade_spice),
NameError: name 'itm_book_tactics' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_mission_templates.py", line 43, in <module>
    pilgrim_disguise = [itm_he_pla_pri_pilgrim,itm_ar_pla_pri_pilgrimdisguise,it
m_practice_staff, itm_we_vae_sword_throw_daggers]
NameError: name 'itm_he_pla_pri_pilgrim' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_game_menus.py", line 2728, in <module>
    ]) for x in range(0, itm_book_wound_treatment_reference - itm_book_tactics)
NameError: name 'itm_book_wound_treatment_reference' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_troops.py", line 549, in <module>
    ["multiplayer_profile_troop_male","multiplayer_profile_troop_male","multipla
yer_profile_troop_male", tf_hero|tf_guarantee_all, 0, 0,fac_commoners,


                                                                        [
                                                                itm_ar_pla_tun_t
unic
        ,itm_bo_vae_t3_leather], 0, 0, 0, 0x000000018000000136db6db6db6db6db0000
0000001db6db0000000000000000],
NameError: name 'itm_ar_pla_tun_tunic' is not defined
Exporting postfx_params...
Exporting flora data...
Exporting ground_spec data...
Exporting skyboxes...

<it finished just fine after this>

...but it looks like our good friend AttributeError is standing in for him.

"AttributeError: 'list' object has no attribute 'replace'"
 
Okay, I reinstalled in Dev Suite, and that made almost all of those buggering AttributeErrors and "x is not defined" errors go away. I also was able to narrow the issues down to specifically the new items I've put in the module_items file (ie. compiling works just fine when I put the changes into module_scripts and module_troops).

Code:
Compiling Floris Expanded Mod Pack to a custom directory
Start Processing...
______________________________

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
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 6, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 61, in <module>
    save_python_header()
  File "process_items.py", line 14, in save_python_header
    file.write("itm_%s = %d\n"%(convert_to_identifier(items[i_item][0]),i_item))

  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_common.py", line 5, in convert_to_identifier
    s1 = string.replace(s0," ","_")
  File "C:\Python27\lib\string.py", line 519, in replace
    return s.replace(old, new, maxreplace)
AttributeError: 'tuple' object has no attribute 'replace'
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
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:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_scripts.py", line 62059, in <module>
    ("init_item_score", set_item_score()),
  File "C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\Floris Dev Suite 2.53\module_my_mod_set.py", line 22, in set_item_score
    item_score.append((item_set_slot, i_item, slot_item_weight, get_hrd_weight(i
tems[i_item][6])))
IndexError: list index out of range
Exporting postfx_params...
Exporting flora data...
Exporting ground_spec data...
Exporting skyboxes...

______________________________

Copying source files to internal directory...
Moving source files to custom mod directory...
Moving Process Log...
        1 file(s) moved.

______________________________

All Finished ...
Cleaning up...
______________________________

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

I am guessing this is some manner of ranking system that's being screwed over, yeah?

Also, I have no idea what that "'tuple' object has no attribute 'replace'" is about.
 
How about you paste the chunk of module_items that you've added, including one item before and one item after? That'd by far be the easiest to locate your code error. You are missing a bracket or parentheses, or perhaps a comma, in your new item definitions, so the Python compiler isn't able to read the lines correctly.
 
nnnnNNNO! Super secrety original items do not steal!

Code:
["tpe_enhanced_throwing_daggers", "Tournament Daggers", [("practice_dagger",0)], itp_type_thrown |itp_primary|itp_next_item_as_melee ,itcf_throw_knife, 0 , weight(3.5)|difficulty(0)|spd_rtng(110) | shoot_speed(25) | thrust_damage(22 , blunt)|max_ammo(25)|weapon_length(0),imodbits_missile,missile_distance_trigger],
	["tpe_enhanced_throwing_daggers_melee","Practice Dagger", [("practice_dagger",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry|itp_wooden_attack, itc_dagger|itcf_carry_dagger_front_left, 2,weight(0.5)|spd_rtng(115)|weapon_length(47)|swing_damage(20, blunt)|thrust_damage(20, blunt),imodbits_none],

####

["we_nor_spear_gugnir"], "Gugnir", [("we_nor_spear_reinforced",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_merchandise| itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,2400,weight(2)|abundance(40)|difficulty(9)|spd_rtng(95)|weapon_length(200)|swing_damage(38,blunt)|thrust_damage(64,pierce),imodbits_polearm,[],[fac_kingdom_4,fac_player_faction],
["sh_nor_huscarl"], "Huscarl Shield", [("tableau_shield_round_4",0)], itp_merchandise|itp_type_shield, itcf_carry_round_shield,550,weight(4)|abundance(40)|hit_points(460)|body_armor(21)|spd_rtng(84)|shield_width(52)|difficulty(0),imodbits_shield,[(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_round_shield_4", ":agent_no", ":troop_no")])],[fac_kingdom_4],
["sh_svalin"], "Svalin", [("tableau_shield_heater_1",0)], itp_merchandise|itp_type_shield, itcf_carry_round_shield,2000,weight(2.5)|abundance(40)|hit_points(580)|body_armor(28)|spd_rtng(90)|shield_width(36)|shield_height(70)|difficulty(0),imodbits_shield,[(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_shield_heater_1", ":agent_no", ":troop_no")])],[fac_kingdom_4,fac_player_faction],

####
["items_end", "Items End", [("practice_shield",0)], 0, 0, 1, 0, 0],

I'd hope it isn't some kind of stupid muck-up on my part like a missing paren, mostly because I've already been through the new items about a half-dozen times looking for just such an issue. Maybe I'm just blind, though.
 
You have a closed bracket ] after each of your item IDs...it shouldn't be there. (It tells the compiler the item definition is over, which it isn't)
["we_nor_spear_gugnir" ], "Gugnir", [ ....

and you also are missing the item's closing bracket and comma

....[],[fac_kingdom_4,fac_player_faction], ],

Use Notepad++ (or similar) bracket-pairing feature (CTRL-B) to be sure all your brackets are open/closed in pairs. (And refer to other item definitions to be sure you are matching things exactly)
 
...Oh, gods above, that fixed it.  :oops:

I'm sorry for wasting your time on this, guys, and thank you so much for pointing that out. Now, if you'll excuse me, I've got some very hard to explain holes to put in my walls.
 
I'm making my first plunge in to the M&B module system and I'm rather confused at the moment. I've got Expanded and the Dev Suite installed, the Dev Suite is split into two different folders. One is called Dev Suite 2.53 and the other is Dev Suite 2.533 which has in the "compile" files which .

I've no problem modding the files but I'm not exactly sure how you're supposed to apply your changes to the game. I was trying to add a new unit to replace the Swadian peasants, just as a test. I modded it in module_troops and then opened "compile_floris_expanded_source_to_custom_directory" because that's how I thought you put it in to the game. But when I started to game, there was no change.

I'm usually pretty good at modding most games and can even mod the M&B text files a decent amount but this module system has me totally stumped. Can anyone tell me what I'm doing wrong?
 
Heya ccllnply and welcome to the realms of modding :razz:.

The warband module system can be a bit intimidating at first and floris custom variation doesnt really make things any better for new folks, but its power is worth the effort of getting into it. Now to adress your points:

- the 2.533 is likely an error of the installer. Good thing you pointed it out as we can now include a fix for that in the upcoming patch. You should use 2.53.
- Make sure that you modded the module_troops.py file that is located in the expanded source folder, if you are compiling the expanded version of the mod. You will also have to test this with a new game - not a savegame. If you just want to test whether expanded compiles correctly - make a small change to one of the menus (game_menus). Simply changing one word of the most common menu (search the text and it should prompt you to the right spot) and you will know right away whether things are good to go or whether you need to have another look at module_info.
 
Duh said:
Heya ccllnply and welcome to the realms of modding :razz:.

The warband module system can be a bit intimidating at first and floris custom variation doesnt really make things any better for new folks, but its power is worth the effort of getting into it. Now to adress your points:

- the 2.533 is likely an error of the installer. Good thing you pointed it out as we can now include a fix for that in the upcoming patch. You should use 2.53.

Thanks so much for the response and very quick at that!

The 2.53 has all the module files in it and no batch compile (not really sure what to call them) files. The 2.533 folder has all the batch compile files. So should I move all the compile files to the 2.53 folder?

- Make sure that you modded the module_troops.py file that is located in the expanded source folder, if you are compiling the expanded version of the mod. You will also have to test this with a new game - not a savegame. If you just want to test whether expanded compiles correctly - make a small change to one of the menus (game_menus). Simply changing one word of the most common menu (search the text and it should prompt you to the right spot) and you will know right away whether things are good to go or whether you need to have another look at module_info.

Makes more sense than what I was doing, thanks for that tip!

Edit: Just tried to change the opening message, "You hear about Calradia.....", using your tips. Once again, the change didn't show up in game
 
Duh said:
But the compiler compiled fine?

I don't really know. I just double click on it and this comes up

Cmd.png


That's all that happens
 
No, that is a rather bugged compile report. First of all you will need to install python 2.6 or 2.7 and add it to your system environment variables (as described in the getting started part of the module system documentation in the forge). After that place the compilers in the 2.53 folder with the rest of the files as i believe thats whats causing the files not being found.
 
Duh said:
No, that is a rather bugged compile report. First of all you will need to install python 2.6 or 2.7 and add it to your system environment variables (as described in the getting started part of the module system documentation in the forge). After that place the compilers in the 2.53 folder with the rest of the files as i believe thats whats causing the files not being found.

I did all that but it still doesn't make any changes in-game. All it seems to do now is creating new files in the folder of the compile files and this comes up now instead

cmd2.png
 
Back
Top Bottom