Search results for query: *

  1. What version of python are you guys using?

    hm... using the automatic 2to3 gives me
    Code:
    Initializing...
    variables.txt not found. Creating new variables.txt file
      File "process_global_variables.py", line 23
        add_variable(varb, variable_list, variable_uses)
                                                       ^
    TabError: inconsistent use of tabs and spaces in indentation
    Exporting strings...
    Traceback (most recent call last):
      File "process_strings.py", line 25, in <module>
        save_python_header()
      File "process_strings.py", line 20, in save_python_header
        ofile.write("str_%s = %d\n"%(convert_to_identifier(strings[i_string][0]),i_string))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 5, in convert_to_identifier
        s1 = string.replace(s0," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Exporting skills...
    Traceback (most recent call last):
      File "process_skills.py", line 32, in <module>
        save_skills()
      File "process_skills.py", line 19, in save_skills
        ofile.write("skl_%s %s "%(skill[0], replace_spaces(skill[1])))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 30, in replace_spaces
        return string.replace(string.replace(s0,"\t","_")," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Exporting tracks...
    Exporting animations...
    Exporting meshes...
    Traceback (most recent call last):
      File "process_meshes.py", line 25, in <module>
        save_meshes()
      File "process_meshes.py", line 13, in save_meshes
        ofile.write("mesh_%s %d %s %f %f %f %f %f %f %f %f %f\n"%(mesh[0],mesh[1],replace_spaces(mesh[2]),mesh[3],mesh[4],mesh[5],mesh[6],mesh[7],mesh[8],mesh[9],mesh[10],mesh[11]))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 30, in replace_spaces
        return string.replace(string.replace(s0,"\t","_")," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Exporting sounds...
    Exporting skins...
    Traceback (most recent call last):
      File "process_skins.py", line 105, in <module>
        export_skins(skins)
      File "process_skins.py", line 81, in export_skins
        ofile.write("skinkey_%s %d %d %f %f %s "%(convert_to_identifier(face_key[4]), face_key[0],face_key[1],face_key[2],face_key[3],replace_spaces(face_key[4])))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 5, in convert_to_identifier
        s1 = string.replace(s0," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Exporting map icons...
    variables.txt not found. Creating new variables.txt file
    variable_uses.txt not found. Creating new variable_uses.txt file
    Creating new tag_uses.txt file...
    Creating new quick_strings.txt file...
    Traceback (most recent call last):
      File "process_map_icons.py", line 38, in <module>
        save_map_icons(variables,variable_uses,tag_uses,quick_strings)
      File "process_map_icons.py", line 22, in save_map_icons
        save_simple_triggers(ofile,triggers, variable_list,variable_uses,tag_uses,quick_strings)
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_operations.py", line 471, in save_simple_triggers
        save_statement_block(ofile,0,1,trigger[1]  , variable_list, variable_uses,tag_uses,quick_strings)
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_operations.py", line 449, in save_statement_block
        save_statement(ofile,opcode,no_variables,statement,variable_list,variable_uses,local_vars, local_var_uses,tag_uses,quick_strings)
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_operations.py", line 401, in save_statement
        ofile.write("%d "%operand)
    TypeError: %d format: a number is required, not str
    Exporting faction data...
    Traceback (most recent call last):
      File "process_factions.py", line 70, in <module>
        save_factions(relations)
      File "process_factions.py", line 42, in save_factions
        file.write("fac_%s %s %d %d \n"%(convert_to_identifier(faction[0]), replace_spaces(faction[1]), faction[2], fac_color))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 5, in convert_to_identifier
        s1 = string.replace(s0," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    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 "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 5, in convert_to_identifier
        s1 = string.replace(s0," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Traceback (most recent call last):
      File "process_scenes.py", line 2, in <module>
        from module_scenes import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_scenes.py", line 5, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_troops.py", line 4, in <module>
        from module_troops import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_troops.py", line 248, in <module>
        [itm_leather_jerkin, itm_leather_boots],
    NameError: name 'itm_leather_jerkin' 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 "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_scene_props.py", line 7, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_tableau_materials.py", line 5, in <module>
        from module_tableau_materials import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_tableau_materials.py", line 6, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_presentations.py", line 4, in <module>
        from module_presentations import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_presentations.py", line 7, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Exporting party_template data...
    Traceback (most recent call last):
      File "process_party_tmps.py", line 45, in <module>
        save_python_header()
      File "process_party_tmps.py", line 40, in save_python_header
        file.write("pt_%s = %d\n"%(convert_to_identifier(party_templates[i_party_template][0]),i_party_template))
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_common.py", line 5, in convert_to_identifier
        s1 = string.replace(s0," ","_")
    AttributeError: 'module' object has no attribute 'replace'
    Traceback (most recent call last):
      File "process_parties.py", line 4, in <module>
        from module_game_menus import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_game_menus.py", line 8, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Exporting quest data...
    Traceback (most recent call last):
      File "process_quests.py", line 30, in <module>
        save_quests()
      File "process_quests.py", line 14, in save_quests
        ofile.write("qst_%s %s %d "%(quest[0],(string.replace(quest[1]," ","_")),quest[2]))
    AttributeError: 'module' object has no attribute 'replace'
    Exporting info_page data...
    Traceback (most recent call last):
      File "process_info_pages.py", line 26, in <module>
        save_info_pages()
      File "process_info_pages.py", line 14, in save_info_pages
        ofile.write("ip_%s %s %s"%(info_page[0],string.replace(info_page[1]," ","_"), string.replace(info_page[2]," ","_")))
    AttributeError: 'module' object has no attribute 'replace'
    Traceback (most recent call last):
      File "process_scripts.py", line 4, in <module>
        from module_scripts import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_scripts.py", line 4, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_mission_tmps.py", line 5, in <module>
        from module_mission_templates import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_mission_templates.py", line 8, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_simple_triggers.py", line 2, in <module>
        from module_simple_triggers import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_simple_triggers.py", line 10, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_game_menus.py", line 5, in <module>
        from module_game_menus import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_game_menus.py", line 8, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_dialogs.py", line 5, in <module>
        from module_triggers import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_triggers.py", line 9, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Traceback (most recent call last):
      File "process_global_variables_unused.py", line 3, in <module>
        from process_operations import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/process_operations.py", line 13, in <module>
        from module_items import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_items.py", line 1, in <module>
        from module_constants import *
      File "/home/thisuser/mb_native/mb_warband_module_system_1158_edits/Module_system 1.158/module_constants.py", line 468, in <module>
        num_trade_goods = itm_siege_supply - itm_spice
    NameError: name 'itm_siege_supply' is not defined
    Exporting postfx_params...
    rm: cannot remove ‘*.pyc’: No such file or directory
    .
    ______________________________
    .
    Script processing done.

    I can fix the string.replace() ones but after that like the NameError ones I have no clue.
  2. What version of python are you guys using?

    While python 2.x runs the build script (as supplied) flawlessly, it seems the build_module script requires print to have parentheses (thus giving you errors) if you want to run it in python 3 (Yes, version change is a b***h).  Will future module systems be adjusted to python 3 (or future...
  3. About Comapanion as vassal

    Only their own skill will affect them once you make them as your vassals.
  4. About making your companion Lords

    A word of caution:  the 120 existing AI lords in native have better total stats/skills at the same level (20-41) than your companions.  Once you make the companion into lord you lose the ability to spec him/her further as he/she levels up.  As such making companion lords is generally not encouraged.
  5. On productive enterprises

    I think your game is bugged if olive presses give you wine.  They are supposed to give you oil.

    That aside, I think you can keep your dyeworks very profitable if you can keep caravans from entering/exiting Jelkala through siege or hunt, which seems a bit easier than doing the same to Suno+Veluca.
  6. Question about Controversy

    hm.... In native I use the character report because I want to separate between friends through cheat dialogs (as part of polygamy mod testing I was trying to get courtship permissions from all guardian lords, you'll need cheats so you can finish getting permissions before some of them got betrothed) and friends through honor.  Character report's list at beginning when you got your honor from hex editor/cheatmenu = lords which adds relation per honor.  Lords who know you are courting whoever they are courting (those with only a sister) will take a -20 when you meet them the first time, so you'll need ~40 to keep permissions (or 2nd cheat dialog run)

    I suppose I can stop adding relations at ~20 ish just before they make friends with me, and add it again as needed.
  7. How to...?

    This board (The Forge/Mod development) is more suitable and might already got the answers you might need.
  8. Warband error [Could not find any compatible Direct3D devices]

    Barring slight problems you might survive it in a linux VM instance if other 3D games of yours run properly and it's just warband that has the problem.
  9. Landscapes messed up in Yalen, bandit lairs and various villages.

    stackundefined said:
    My hypothesis is that, shortly after you installed Diplomacy, Steam updated Warband to the faulty version, which screwed up the maps. There's really nothing else I can think of, because we literally just installed the game fresh.
    I would have thought it has always been the case since 1.161 (I start playing warband in steam/linux since 1.161, earlier on windows until my windows box died) because I don't have diplomacy mod installed.

    By the way, They thought they fixed it.  Really.  But We haven't heard from the devs about it since then.  Perhaps some of them are out for the holidays or something.
  10. Landscapes messed up in Yalen, bandit lairs and various villages.

    I think this is an issue with steam/linux versions of warband.  I have this problem too and it persists through re/uninstall.  Windows version is fixed (tested on playonlinux/wine)  (The devs thought they fixed it, probably nobody reported it in linux versions) This also persists in VC in Scuin and Bebbanburh and other places so I am thinking the linux exe/lib has some odd issues with reading landscape data (tested by copying the module of windows version over to linux).
  11. Making Factions Declare War / Porting Warband animations to Original MB

    1 at the end parameter is sufficient (tested on my cheat menu post);  it sets a truce (perhaps 3 might set peace without truce, I have not tested it.) for 40 days (Native, or whatever number of days normal wars concludes with)
    Code:
    (call_script, "script_diplomacy_start_peace_between_kingdoms", ":faction", "$g_cheat_selected_faction", 1),
  12. Can I increase skill points gained per level?

    I think the difference in the game exe would break compatibility between games, due to extra parameters in module.ini and the list of operations as well.
  13. Does the current module system work

    jhnelson said:
    After building mod.bat the game freezes at, launching game. Sorry about my attitude and language :cry:.
    If it freezes before you see the main menu, <game folder>\rgl_log.txt should have a clue where the stuff stops working.
  14. Now that you can change face codes....

    Is there a way to call up face editing tool (the one you have when creating your character) for others without using edit mode? (Or even just your own face If you can call it directly instead of through character screen, since you can do [list type=decimal] Get your face keys Get target face...
  15. Does the current module system work

    jhnelson said:
    No it does not you **** :evil: NOW give me a real answer!
    You might want to help us helping you by telling us how it doesn't work.
  16. How can i make mod with multiple marriages or cheating?

    For polygyny (sadly, multiple husbands is too complicated to implement atm due to faction change of the wife without the previous husbands changing factions), This thread is a start.  The current version of whatever I am playing had blended in a lot of other things than polygyny so I would be reluctant to repost that atm.

    For cheats, I have a collection here.
  17. How can i disable the cheat mode?

    I don't think you can.  You might be able to find all the keys (ctrl+ some key/click) in mission_templates and remove all dialogs and game_menus with respect to cheat menus and if you can get rid of all those and rebuild the module, cheat mode would no longer have any effects.  But then again, I think it takes more efforts to remove cheat mode than to just try to control yourself.
  18. [Suggestions] for Viking Conquest.

    Not sure if it is the case already.  If you can go to a monastery to learn about reading, perhaps you should be able to do that with a priest in the lord's hall as well (perhaps taking longer and with a non-hostile lord due to the priest serving the lord of the town/castle as well).  Might also want to make Pagan priest able to teach you reading (If it conflicts with the settings of the story, make it languages other than latin and have some books in those languages)
  19. How to change my gender

    You need the module system (It's assumed we all use that in this board I think).

    In case of code you might also want to make sure you don't get any courtship oddities when you are changing genders (There are a few things you need to change).

    Also I have tested that being a female player character having a kingdom lady as wife (as in change after you are married) does not introduce any new holes/bugs other than the in-game terms "husband" and "wife".  I have no idea regarding playing as a male character with a husband lord however.
  20. OSP Code SP Expanding cheat menu

    Thank you for the corrections for them (the square bracket after tc_siege_commander is the extra one, as the condition requires the quest to be active).  More checking revealed a bug with respect to outdoor encounter with the lord in question so I made some changes to it as well.
Back
Top Bottom