Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
themanwhocrys2 said:
I have a new problem, my Royal knights have lances and swords but they charge with there swords and attack in close combat with their lances, the exact opposite of what they should do, how do I fix this?
Probably you gave them the swods and lances which are you added. If so, check the item types of your swords and lances in morgh's editor. for swords the item type should be 1h weapon or 2h weapon and for lance it should be polearm. 
That's the only idea I could guess.
 
litdum said:
themanwhocrys2 said:
I have a new problem, my Royal knights have lances and swords but they charge with there swords and attack in close combat with their lances, the exact opposite of what they should do, how do I fix this?
Probably you gave them the swods and lances which are you added. If so, check the item types of your swords and lances in morgh's editor. for swords the item type should be 1h weapon or 2h weapon and for lance it should be polearm. 
That's the only idea I could guess.
        it looks perfectly fine in morghs editor I gave the knights default great lances and default swords and yet they still charge with there swords and fight with there lances, its so annoying.
btw n my reply before this one I did a edit to it showing another problem.
 
themanwhocrys2 said:
it looks perfectly fine in morghs editor I gave the knights default great lances and default swords and yet they still charge with there swords and fight with there lances, its so annoying.
then I don't know. The item type was the only idea i could think. someone else can be know how to solve it. It shouldn't be so difficult.
themanwhocrys2 said:
my reply before this one I did a edit to it showing another problem.
Do you mean that you couldn't solve the problem about your darkcharger?
Edit: Sorry I had not seen your new post, now i have

Have you added the texture to the brf by clicking "Import" then "New Texture"?
 
Troops don't function well with more than one kind of weapon. This is hardcoded behaviour that quite a few people have tried to fix with cumbersome scripts, but the results are never satisfactory.

Either give them a light, short-ish lance or a one-handed sword. The AI doesn't know how to use anything else in melee. Don't even bother with heavy lances since they're completely useless in AI hands.
 
jacobhinds said:
Troops don't function well with more than one kind of weapon. This is hardcoded behaviour that quite a few people have tried to fix with cumbersome scripts, but the results are never satisfactory.

Either give them a light, short-ish lance or a one-handed sword. The AI doesn't know how to use anything else in melee. Don't even bother with heavy lances since they're completely useless in AI hands.
is there a way for me to make it so they have to choose between a lance and a sword so that they can't bring both?
 
themanwhocrys2 said:
is there a way for me to make it so they have to choose between a lance and a sword so that they can't bring both?
you can give the troop both weapons and use a trigger to force the agent to only have one. So in a siege you would give your knights swords, but on land battles they would have a spear (and horse)

or just drop the idea and give the troop only one weapon (easier)
 
litdum said:
themanwhocrys2 said:
it looks perfectly fine in morghs editor I gave the knights default great lances and default swords and yet they still charge with there swords and fight with there lances, its so annoying.
then I don't know. The item type was the only idea i could think. someone else can be know how to solve it. It shouldn't be so difficult.
themanwhocrys2 said:
my reply before this one I did a edit to it showing another problem.
Do you mean that you couldn't solve the problem about your darkcharger?
Edit: Sorry I had not seen your new post, now i have

Have you added the texture to the brf by clicking "Import" then "New Texture"?

in the picture you can see that the texture is imported which makes it that much more annoying that its not working
 
"import texture" on OpenBRF doesn't actually import the texture file. It just adds the name of the texture to the brf file, similar to how it works with the material. It looks fine in OpenBRF because it can load textures straight from the folder, but Warband cannot, which is why you need to "import texture" to tell the game what texture to load.

Seems silly and arbitrary but that's just how the game functions.
 
I imported the texture
i3rd6Tj.jpg
and yet it still wont work
 
jacobhinds said:
Troops don't function well with more than one kind of weapon. This is hardcoded behaviour that quite a few people have tried to fix with cumbersome scripts, but the results are never satisfactory.

Either give them a light, short-ish lance or a one-handed sword. The AI doesn't know how to use anything else in melee. Don't even bother with heavy lances since they're completely useless in AI hands.

Don't the Swadian knights in the basegame use lances/maces/swords?
And does this only apply to no more than 1 weapon of each type (ranged/melee)?
 
Hello, I am working my Agent Spawning OSP again and have a few questions

I was using the Spawn_Agent operation but now I have opted for add_visitors_to_current_scene to hopefully utilise the override and add_override option for entry points.

My questions.

What entry point should I use?

How do I reference the agent I just spawned? (I am spawning 1 agent at a time currently)

I planned to move the entry point of choice to my scene prop, spawn the agent, then move the entry point back but, seemingly entry_point_set_position doesn't want to work.

Anyway to find the current mission template ID so I can place it within the override operations?
 
I'ma stop asking quistions here bcause I've notice through my previus posts that when I post the other people who post before me quistions never get answered or even noticed.
 
Anyone have any idea? Get this upon completion, and I've meticulously checked punctuation and the presence of said lines in every module_x.

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_constants.py", line 468, in <module>
    num_trade_goods = itm_siege_supply - itm_spice
NameError: name 'itm_siege_supply' 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:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_map_icons.py", line 2, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_constants.py", line 468, in <module>
    num_trade_goods = itm_siege_supply - itm_spice
NameError: name 'itm_siege_supply' 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:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scenes.py", line 5, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_troops.py", line 244, 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_leath
er_jerkin,itm_leather_boots],0,0,0,0x000000018000000136db6db6db6db6db00000000001
db6db0000000000000000],
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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scene_props.py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_tableau_materials.py", line 6, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_presentations.py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scripts.py", line 4, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_mission_templates.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_simple_triggers.py", line 10, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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...

______________________________

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

 
@ShaunRemo
add this module_scene_props
litdum said:
("olukadin",sokf_invisible,"walker","0",[(ti_on_init_scene_prop,
[
(store_trigger_param_1, ":instance_no"),
(prop_instance_get_position, pos1, ":instance_no"),
(set_spawn_position, pos1),
(spawn_agent,"trp_dead2")
])]),
then open edit mode choose your scene_props and add your troops.
change red word, what you want.
 
TheVideoGameInn said:
Anyone have any idea? Get this upon completion, and I've meticulously checked punctuation and the presence of said lines in every module_x.

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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.py", line 5, in <module>
    from module_triggers import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_constants.py", line 468, in <module>
    num_trade_goods = itm_siege_supply - itm_spice
NameError: name 'itm_siege_supply' 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:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_map_icons.py", line 2, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_constants.py", line 468, in <module>
    num_trade_goods = itm_siege_supply - itm_spice
NameError: name 'itm_siege_supply' 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:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scenes.py", line 5, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_troops.py", line 244, 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_leath
er_jerkin,itm_leather_boots],0,0,0,0x000000018000000136db6db6db6db6db00000000001
db6db0000000000000000],
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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scene_props.py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_tableau_materials.py", line 6, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_presentations.py", line 7, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_scripts.py", line 4, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_mission_templates.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_game_menus.py", line 8, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_simple_triggers.py", line 10, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_triggers.py", line 9, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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 "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\process_operations.py", line 13, in <module>
    from module_items import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\module_items.py", line 1, in <module>
    from module_constants import *
  File "C:\Users\Samuel\Downloads\mb_warband_module_system_1153\Module_system 1.
153\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...

______________________________

Script processing has ended.
Press any key to exit. . .
I'm pretty sure you already asked that and got the same answer:
NameError: name 'itm_siege_supply' is not defined
What does that tell you? Yeah, right, it's not defined...
 
If that's a new item, there seems to be a problem sometimes with scripts that you have to manually add entries to e.g. ID_items.py for the module to compile for the first time after adding stuff. These manual entries don't even have to use correct numbers, since after successfully building the module the files will be overwritten.
 
Status
Not open for further replies.
Back
Top Bottom