morghs editor question (disabling tevern merchants)

正在查看此主题的用户

twinsens

Squire
I'm having trouble finding a way to stop merchants from spawning in taverns for my project. I'm just trying to get as much done as possible without python, couldn't get it to work and have been making great progress with Morgh's.

I see a tickbox labelled 'inactive' on the troop page/screen in Morghs but when I tick it and run the mod they just show up naked still selling thier equipment.

I've pretty much finetuned every item I want in the game and set the abundance of everything else to 0 and these guys are ruining everything!

All help appreciated, very new to modding warband though a longtime player.

Quick edit:  I'm using toucan's calradia as a base for freelancer.
 
well, still no luck here.

new problem: have been trying to reskin some weapons and have followed a tutorial for adding brfs/dds files into the right places and updating my module.ini to load the new mod resource but the new assets are casuing the mod to crash before starting.

"unable to open file commonres/"

all search results say "update ur warband" but seeing as this happened literally as I added the new assets I'm guesing there is someline of code omitted in the tutorials.

again, any help appreciated.
 
twinsens 说:
I'm having trouble finding a way to stop merchants from spawning in taverns for my project. I'm just trying to get as much done as possible without python, couldn't get it to work and have been making great progress with Morgh's.

I see a tickbox labelled 'inactive' on the troop page/screen in Morghs but when I tick it and run the mod they just show up naked still selling thier equipment.

I've pretty much finetuned every item I want in the game and set the abundance of everything else to 0 and these guys are ruining everything!

All help appreciated, very new to modding warband though a longtime player.

Quick edit:  I'm using toucan's calradia as a base for freelancer.

glad you made progress with your modding

the inactive thing in the tool i don't know what it do (i rarely use it only for quick editing) i'll check it later and see what it does

as for merchant they are using a spawn point (if i'm not mistaking) and so that's why i guess they are still spawning so you might need to change that (again not sure been more then a week since i modded anything and what do you mean in the tavern ?)

did you try removing them while leaving a back up of your troop txt (not sure if this will help you cuz i don't know yet what are the consequences of doing this)

and since you are using the tool its a little bit hard and tiring to get things working (so i advice trying to learn on how to work on using the module system baby steps and it will allow you to do many more things you can't do with tools)
twinsens 说:
well, still no luck here.

new problem: have been trying to reskin some weapons and have followed a tutorial for adding brfs/dds files into the right places and updating my module.ini to load the new mod resource but the new assets are casuing the mod to crash before starting.

"unable to open file commonres/"

all search results say "update ur warband" but seeing as this happened literally as I added the new assets I'm guesing there is someline of code omitted in the tutorials.

again, any help appreciated
can you maybe provide a llink of the tutorial you checked ?
and can you say what are the files you edited ? so at least i might know your problem ?

and did you use the module system to add your new items or the tool above ?
and why bother add your new items to warband main brfs(the ones in commenres) when you can create your own brf and make the game read it (make things a lot easier)?
PS: if its the same model with just copy past and re-texturing then just changing the dds (texture) in open brf will work normally(since you will have to edit only the textures) but if the models aren't the same you will have to UVMAP them in a program like Blender

imad.
 
hey thanks for the reply, been hard at work most of the day. I managed to resolve the texture issue I was having earlier by resuffling the module.ini load list (i think) and tomorrow i'll give all your suggestions for the merchants a try!

I've been trying to change the starting crossbow to a firearm also- mesh, texture, animations, reload and projectile speed all working but for some reason there is a long pause (4-6 seconds) before firing. not sure how to resolve that.

I've been searching tutorials but they all seem to be for buidling modules from the ground up rather than editing the properties of an existing module. I tried to get it working earlier (couldnt) to edit the dialog (but found a way with text files.) 

anyway thanks,

 
hello again all, I'm still having some troubles.

I've been making steady progress but I'm still having no luck removing/moving/editing the merchants that i'm guessing are enabled somewhere in the module system. These are the guys that show up and sell lordly versions of all the armors/weapons (a feature of the module i'm working on top of,) I've tried renaming/checking and unchecking all the troop flags in morghs to stop these guys from showing up and hard deleting the entrys in troops.txt does result in a crash when starting new games.

"Unexpected end of file while reading file:... troops.txt"

Module system is a no go for me still and besides building/compiling modules isn't what I need,  I'd need to edit the existing properties of the mod i'm building on if thats even possible and from what i've read that isn't how it works.  If anyone knows more about removing troops with morghs could help me, I'm working from toucan's mod. I'd need to edit the existing properties of the mod i'm building on,
 
Tavern visitors are set up from the menu dynamically. You need to dig through the code and find those merchant's reference ID and then remove the lines that sets them up in the scene.
 
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 6, in <module>
    from module_dialogs import *
  File "E:\DESK\mod toolsosp\module_dialogs.py", line 1831, in <module>
    [trp_tavern_itemseller_1, "start", [],
NameError: name 'trp_tavern_itemseller_1' 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 "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Exporting faction data...
Traceback (most recent call last):
  File "process_items.py", line 4, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' 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 "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "E:\DESK\mod toolsosp\module_presentations.py", line 17, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' 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 "E:\DESK\mod toolsosp\module_scripts.py", line 26, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 6, in <module>
    from module_dialogs import *
  File "E:\DESK\mod toolsosp\module_dialogs.py", line 1831, in <module>
    [trp_tavern_itemseller_1, "start", [],
NameError: name 'trp_tavern_itemseller_1' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "E:\DESK\mod toolsosp\process_operations.py", line 13, in <module>
    from module_items import *
  File "E:\DESK\mod toolsosp\module_items.py", line 62, in <module>
    ["arena_lance",        "Lance", [("arena_lance",0)], itp_type_polearm|itp_s
pear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_
spear,
NameError: name 'itp_spear' is not defined
Exporting postfx_params...

______________________________

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

thats with all the entries of the merchant's names removed from module_troops and scripts.
any advice?
 
twinsens 说:
any advice?

Somebody 说:
Tavern visitors are set up from the menu dynamically. You need to dig through the code and find those merchant's reference ID and then remove the lines that sets them up in the scene.

!= removing troops from module_troops.py
 
后退
顶部 底部