搜索结果: *

  1. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    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:
  2. Hellhound1

    OSP Kit QoL Tournament Play Enhancements 1.5

    Anywhere particular i need to put them?

    Should i overwrite the current scripts or just place them at the end?
  3. Hellhound1

    OSP Kit QoL Tournament Play Enhancements 1.5

    All the files are in the folder, and the code is at the scripts file :neutral:

    Multiple attempts later and i still cant get it to work.
  4. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    Would an invalid syntax on the last line of a file mean ive missed the end to a block of script and its reading all the way to the end?
  5. Hellhound1

    Guild of craftsmen

    Ok i've spent like a whole day on this, anybody got an clues?

    插入代码块:
    Traceback (most recent call last):
      File "process_init.py", line 2, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_global_variables.py", line 6, in <module>
        from module_dialogs import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_dialogs.py", line 33123
    
        ^
    SyntaxError: invalid syntax
    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:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Exporting faction data...
    Exporting item data...
    Traceback (most recent call last):
      File "process_items.py", line 66, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Exporting scene data...
    Traceback (most recent call last):
      File "process_scenes.py", line 15, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    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:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_tableau_materials.py", line 8, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_presentations.py", line 8, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' 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:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_game_menus.py", line 15929
    
          ^
    SyntaxError: invalid syntax
    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:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_mission_tmps.py", line 8, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_game_menus.py", line 5, in <module>
        from module_game_menus import *
      File "C:mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_game_menus.py", line 15929
    
          ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
      File "process_simple_triggers.py", line 5, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Traceback (most recent call last):
      File "process_dialogs.py", line 6, in <module>
        from module_dialogs import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_dialogs.py", line 33123
    
        ^
    SyntaxError: invalid syntax
    Traceback (most recent call last):
      File "process_global_variables_unused.py", line 3, in <module>
        from process_operations import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\process_operations.py", line 20, in <module>
        from module_scripts import *
      File "C:\mb_warband_module_system_1143\mb_warband_module
    _system_1143\Module_system 1.143\module_scripts.py", line 5087, in <module>
        (eq, ":war_cause", logent_faction_declares_war_to_fulfil_pact),
    NameError: name 'logent_faction_declares_war_to_fulfil_pact' is not defined
    Exporting postfx_params...
    
    ______________________________
    
    Script processing has ended.
    Press any key to exit. . .

    I can't figure out what it is, i've copied across all the code from the files in the OP, im assuming ive missed copying a line across, except ive been through all the offending files brought up here and they match the code of the original ones. Some of them ive directly copied and pasted.

    Any help will be muchly appreciated!
  6. Hellhound1

    Add New Villages to the game

    If you've downloaded the module system from TW then you need to edit module_parties.py. You can just copy the template from an existing village and change the village number. But make sure they're grouped together properly in the file, based on the location of the village on the map.

    You also need to edit module_scenes, to correspond with the new village you just added. Infact, ill do a thing here :grin:


    Module_parties.py
    插入代码块:
    ("village_119","Iunet",  icon_village_c|pf_village, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(89, -115.5),[], 40),

    (89, -115.5) is the coords of the village on the map. make sure they arent over something else!
    icon_village_c is the icon on the map for the village.


    Module_scenes.py
    插入代码块:
        ("village_119",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000001500410320005a96800006b5300004edc00000d11",
        [],[],"outer_terrain_desert"),

    The long number starting with 0x00 is a terrain code.
    outer_terrain_desert is the terrain as well.
    Make sure that when you copy it from an existing one, they are the same, otherwise you get weird effects in your village

    Hopefully thats enough. Or a more experienced person can expand, if i've missed something out.
    Oh and make sure they're grouped together properly! i had villages in the middle of the map covered in snow.
  7. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    Thanks Somebody.

    redid the copy renaming and pasting of the scenes and everything worked.
    And thanks for the initialize faction troop code, more stuff i didnt know existed!
  8. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    Meh fixed my script problem. Now i have this:











    Theres also no tavern keeper or arena master. The town belongs to the king of a new faction i  created. Now i really am baffled. ff is the name of my character. So im talking to myself.
  9. Hellhound1

    OSP Kit QoL Tournament Play Enhancements 1.5

    插入代码块:
    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...
    Error: Unable to find object:script_tpe_weapon_logic
    ERROR: Illegal Identifier:script_tpe_weapon_logic
    Error: Unable to find object:script_tpe_update_presentation
    ERROR: Illegal Identifier:script_tpe_update_presentation
    Error: Unable to find object:script_tpe_equip_troop
    ERROR: Illegal Identifier:script_tpe_equip_troop
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_set_option
    ERROR: Illegal Identifier:script_tpe_set_option
    Error: Unable to find object:script_tpe_clear_selections
    ERROR: Illegal Identifier:script_tpe_clear_selections
    Exporting party_template data...
    Exporting parties
    Exporting quest data...
    Exporting info_page data...
    Exporting scripts...
    Exporting mission_template data...
    Exporting game menus data...
    Error: Unable to find object:script_tpe_determine_scaled_renown
    ERROR: Illegal Identifier:script_tpe_determine_scaled_renown
    Error: Unable to find object:script_tpe_rep_gain_lords
    ERROR: Illegal Identifier:script_tpe_rep_gain_lords
    Error: Unable to find object:script_tpe_rep_gain_ladies
    ERROR: Illegal Identifier:script_tpe_rep_gain_ladies
    Error: Unable to find object:script_copy_inventory
    ERROR: Illegal Identifier:script_copy_inventory
    Error: Unable to find object:script_tpe_set_items_for_tournament
    ERROR: Illegal Identifier:script_tpe_set_items_for_tournament
    Error: Unable to find object:script_copy_inventory
    ERROR: Illegal Identifier:script_copy_inventory
    exporting simple triggers...
    exporting triggers...
    exporting dialogs...
    Checking global variable usages...
    Exporting postfx_params...
    
    ______________________________
    
    Script processing has ended.
    Press any key to exit. . .

    It's what i get when i compile. It seems it cant find your scripts and im not sure why :sad:
  10. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    SCRIPT ERROR ON OPCODE 520: Invalid Troop ID: -1; LINE NO: 2:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2173: Invalid Troop ID: -1; LINE NO: 3:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2190: Invalid Faction ID: -1; LINE NO: 10:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE -2147483108: Invalid Troop ID: -1; LINE NO: 50:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 520: Invalid Troop ID: -1; LINE NO: 2:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2173: Invalid Troop ID: -1; LINE NO: 3:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2190: Invalid Faction ID: -1; LINE NO: 10:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE -2147483108: Invalid Troop ID: -1; LINE NO: 50:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 520: Invalid Troop ID: -1; LINE NO: 2:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2173: Invalid Troop ID: -1; LINE NO: 3:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE 2190: Invalid Faction ID: -1; LINE NO: 10:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.
    SCRIPT ERROR ON OPCODE -2147483108: Invalid Troop ID: -1; LINE NO: 50:
    At Script [523] npc_decision_checklist_male_guardian_assess_suitor.

    Would anybody happen to know how to fix it?
    Im pretty sure it has something to do with some lords/ladies i added to a custom faction.
    The script itself doesnt seem to directly reference the troops, so is it a constant that needs editing or something?
  11. Hellhound1

    SP Tutorial Module System Creating a faction.

    Fixed it, have to give a banner to the faction.
    Now to fix loads of other OPCODE errors. Whatever the hell they are..
  12. Hellhound1

    SP Tutorial Module System Creating a faction.

    wale999 说:
    Great tutorial, i only have one question, how do I make my new faction work with custom battle, the thing is my troops dont get weapons or armor or anything.... :sad:

    Im also getting this error and i cant fix it

    插入代码块:
    SCRIPT ERROR ON OPCODE 1677: Invalid Map Icon ID: -166; Line No: 70:
    At script: give_center_to_lord.
    At script: give_center_to_lord.
    At script: give_center_to_lord.
    At script: give_center_to_lord.
    
    SCRIPT ERROR ON OPCODE 1677: Invalid Map Icon ID: -166; Line No: 20:
    At script: create_kingdom_hero_party.
    At script: create_kingdom_hero_party.
    At script: create_kingdom_hero_party.
    At script: create_kingdom_hero_party.

    Im getting the same errors when i start a new game.

    I also get an error about not being able to find romances for members of my faction the first time i visit their town. All the ladies have no family, same with the men.

    And i also get an error where i see a clone of myself in the town owned by the new faction, who seems to be running a kingdom, and the town layout is fecked, as in theres a massive hill through the middle of the town. :neutral:
    i copied your thing almost to the letter.  :sad:
    Also im not getting any errors compiling or anything, and other towns ive added for other factions work fine..
  13. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    I cant believe i never found that whole section before..
    Thank you! :grin:
  14. Hellhound1

    Modding Q&A [For Quick Questions and Answers]

    Sorry this is probably a really stupid question, but im new to all this so please dont rip me apart if this is the wrong place :razz:

    Im using the module system and python files by the way.

    Basically, created a new town on the map, set up all the scenes and added all the people to them etc. But when i start a new game, instead of the town being given to the closest faction  (khergit) its neutral. I had the problem of it being a fight against myself, but solved that one, so now the town is neutral/player owned according to notes. Also, if i go for a walk around the town, i find a clone of myself who appears to just be standing outside the castle, which allows me to control the castle.

    To go back to my point, how do i make it be allocated to the correct faction?
    Villages i've created automatically go to the khergits, so why doesnt my town?
    Edit: Also, are there any tutorials for making towns/factions etc that are for warband 1.143? Ive literally searched everywhere and there are none, only for the older system
    Thanks :smile:
后退
顶部 底部