Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
lolitablue said:
This is what I want to add:
_"Tell me about yourself ! Please".

... then he show me all his skills!

from Native you can see this example:

Code:
######################################
# GENERIC MEMBER CHAT
######################################

  [anyone,"member_chat", [], "Your orders {sir/madam}?", "regular_member_talk",[]],
  [anyone|plyr,"regular_member_talk", [], "Tell me about yourself", "view_regular_char_requested",[]],
  [anyone,"view_regular_char_requested", [], "Aye {sir/madam}. Let me tell you all there is to know about me.", "do_regular_member_view_char",[[change_screen_view_character]]],
  [anyone,"do_regular_member_view_char", [], "Anything else?", "regular_member_talk",[]],
  [anyone|plyr,"regular_member_talk", [], "Nothing. Keep moving.", "close_window",[]],

and if you need help learning about how to create dialogs (module_dialogs.py):

    :arrow: https://forums.taleworlds.com/index.php/topic,12733.0.html
and
    :arrow: http://www.freewebs.com/jikbyond/40kTut/M&B%20Module%20System%20Doc2-3.pdf
 
kalarhan said:
lolitablue said:
This is what I want to add:
_"Tell me about yourself ! Please".

... then he show me all his skills!

from Native you can see this example:

Code:
######################################
# GENERIC MEMBER CHAT
######################################

  [anyone,"member_chat", [], "Your orders {sir/madam}?", "regular_member_talk",[]],
  [anyone|plyr,"regular_member_talk", [], "Tell me about yourself", "view_regular_char_requested",[]],
  [anyone,"view_regular_char_requested", [], "Aye {sir/madam}. Let me tell you all there is to know about me.", "do_regular_member_view_char",[[change_screen_view_character]]],
  [anyone,"do_regular_member_view_char", [], "Anything else?", "regular_member_talk",[]],
  [anyone|plyr,"regular_member_talk", [], "Nothing. Keep moving.", "close_window",[]],

and if you need help learning about how to create dialogs (module_dialogs.py):

    :arrow: https://forums.taleworlds.com/index.php/topic,12733.0.html
and
    :arrow: http://www.freewebs.com/jikbyond/40kTut/M&B%20Module%20System%20Doc2-3.pdf

Thank you.
 
agunter999 said:
Would it be possible to have a King or Lord from a faction own a fief inside another faction?

yes, but you would have to review a lot of code to test a feature like that and the consequences of things like war, raids, villagers going to a center, etc.

TLDR: there is no rule stopping you
 
Hey guys I'm brand new to modding and making some great progress but I'm confused over this (probably simple) issue.
I have some weapons that are modelled, textured and essentially ready to go, however what is causing me some trouble is how do define the grip for a weapon. I'm assuming the game isn't gonna magically go "that must be the handle" and do it for me, so I figure I have to define it in OpenBRF. However despite watching hours of video toots and reading every page I can find no-one else seems to have documented this part of the process.

Can anyone give me a point by point (after importing the meshes into OpenBRF)?
 
how can i specify which village a town and a castle should take and how many because some towns are taking villages inside other clans territory (the one close to each other) so one town taking more then what it should take  how should i do it ? and is it possible ?

and can someone answer my last two questions thanks
imado552 said:
and another question do i have to have the same amount of lords and ladies in a faction or can i have more or less ladies then lords in one faction ? thanks

Edit: and where can i find the files that uses the skins since i made some skins (children old people young people ...ext) but i can't seem to find a way to use them in game
PS: about the skins i have them ready and done but i don't know how to use them in game i'm still stuck with the old ones (what should i do to be able to use them and see them in game this is my question ?=

thanks again
 
BlueHawkMods said:
Hey guys I'm brand new to modding and making some great progress but I'm confused over this (probably simple) issue.
I have some weapons that are modelled, textured and essentially ready to go, however what is causing me some trouble is how do define the grip for a weapon. I'm assuming the game isn't gonna magically go "that must be the handle" and do it for me, so I figure I have to define it in OpenBRF. However despite watching hours of video toots and reading every page I can find no-one else seems to have documented this part of the process.

Can anyone give me a point by point (after importing the meshes into OpenBRF)?

Copy over a similarly shaped weapon from native, select it then select your one, right click and do roto-trasnalte-scale, click the box that makes it only affect the last selected mesh, then line up your handle with the handle of the existing weapon. I think that should do it.
 
imado552 said:
how can i specify which village a town and a castle should take and how many because some towns are taking villages inside other clans territory (the one close to each other) so one town taking more then what it should take  how should i do it ? and is it possible ?

you can manually control bound center, and any left will be given to the closest walled center following basic rules (like 1 village per castle). This is for Native, your mod can use whatever system/rules you want (it is not hardcoded), just remember it has impact in several systems (like economy).

as usual the process is part of "game_start" script

Code:
	  # fill_village_bound_centers
    #pass 1: Give one village to each castle
      (try_for_range, ":cur_center", castles_begin, castles_end),
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_village", -1),
        (try_for_range, ":cur_village", villages_begin, villages_end),
          (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_center"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_village", ":cur_village"),
        (try_end),
        (party_set_slot, ":min_dist_village", slot_village_bound_center, ":cur_center"),
        (store_faction_of_party, ":town_faction", ":cur_center"),
        (call_script, "script_give_center_to_faction_aux", ":min_dist_village", ":town_faction"),
      (try_end),

      
    #pass 2: Give other villages to closest town.
      (try_for_range, ":cur_village", villages_begin, villages_end),
        (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_town", -1),
        (try_for_range, ":cur_town", towns_begin, towns_end),
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_town"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_town", ":cur_town"),
        (try_end),
        (party_set_slot, ":cur_village", slot_village_bound_center, ":min_dist_town"),
        (store_faction_of_party, ":town_faction", ":min_dist_town"),
        (call_script, "script_give_center_to_faction_aux", ":cur_village", ":town_faction"),
      (try_end),
 
kalarhan said:
imado552 said:
how can i specify which village a town and a castle should take and how many because some towns are taking villages inside other clans territory (the one close to each other) so one town taking more then what it should take  how should i do it ? and is it possible ?

you can manually control bound center, and any left will be given to the closest walled center following basic rules (like 1 village per castle). This is for Native, your mod can use whatever system/rules you want (it is not hardcoded), just remember it has impact in several systems (like economy).

as usual the process is part of "game_start" script

Code:
	  # fill_village_bound_centers
    #pass 1: Give one village to each castle
      (try_for_range, ":cur_center", castles_begin, castles_end),
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_village", -1),
        (try_for_range, ":cur_village", villages_begin, villages_end),
          (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_center"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_village", ":cur_village"),
        (try_end),
        (party_set_slot, ":min_dist_village", slot_village_bound_center, ":cur_center"),
        (store_faction_of_party, ":town_faction", ":cur_center"),
        (call_script, "script_give_center_to_faction_aux", ":min_dist_village", ":town_faction"),
      (try_end),

      
    #pass 2: Give other villages to closest town.
      (try_for_range, ":cur_village", villages_begin, villages_end),
        (neg|party_slot_ge, ":cur_village", slot_village_bound_center, 1), #skip villages which are already bound.
        (assign, ":min_dist", 999999),
        (assign, ":min_dist_town", -1),
        (try_for_range, ":cur_town", towns_begin, towns_end),
          (store_distance_to_party_from_party, ":cur_dist", ":cur_village", ":cur_town"),
          (lt, ":cur_dist", ":min_dist"),
          (assign, ":min_dist", ":cur_dist"),
          (assign, ":min_dist_town", ":cur_town"),
        (try_end),
        (party_set_slot, ":cur_village", slot_village_bound_center, ":min_dist_town"),
        (store_faction_of_party, ":town_faction", ":min_dist_town"),
        (call_script, "script_give_center_to_faction_aux", ":cur_village", ":town_faction"),
      (try_end),
thanks i'll try to see what i can mess with that !

and i have another question can i add more then 2 types of town/village walker ? (at the moment there are two male and female can i add more like in the script i add another line with another type will it work thanks?
another question what does this error mean i don't understand its meaning so i'm unable to fix it
Code:
*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***
Please report errors, problems and suggestions at http://lav.lomskih.net/wreck/

Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... FAILED.
MODULE `troops` ERROR:
Traceback (most recent call last):
  File "compile.py", line 198, in <module>
    get_globals()[entity_name] = check_syntax(get_globals()[entity_name], [entit
y_def['parser']], entity_def.get('uid', 0))
  File "C:\Users\iqd\Desktop\Module_system 1.171_wrecked\Module_system 1.171 - w
orking version (latest)\compiler.py", line 1619, in check_syntax
    output.append(check_syntax(entity[index], parser[0], uid))
  File "C:\Users\iqd\Desktop\Module_system 1.171_wrecked\Module_system 1.171 - w
orking version (latest)\compiler.py", line 1598, in check_syntax
    output.append(check_syntax(entity[index], subparser, uid))
  File "C:\Users\iqd\Desktop\Module_system 1.171_wrecked\Module_system 1.171 - w
orking version (latest)\compiler.py", line 1617, in check_syntax
    for index in xrange(len(entity)):
TypeError: object of type 'VAR_FACTION' has no len()


COMPILATION FAILED.

Displaying W.R.E.C.K. performance information.
Use show_performance_data = False directive in module_info.py file to disable.

    2.957 sec spent to load module data.
    0.001 sec spent to load plugins.
    0.278 sec spent to check module syntax.

    >>> 3.242 sec total time spent. <<<

Appuyez sur une touche pour continuer...
 
imado552 said:
can i add more then 2 types of town/village walker ?
yeap, study how the walker system works and extend it to whatever you like

start by checking the mission_template trigger that spawn them and go from there

imado552 said:
what does this error mean i don't understand its meaning so i'm unable to fix it
Code:
(W.R.E.C.K.) 
Checking module syntax... FAILED.
MODULE `troops` ERROR:

you have a syntax issue with your module_troops.py file (or a plugin that adds troops). Go back to your last changes and double check it (or compare with your last working backup)
 
maater66241 said:
kalarhan said:
maater66241 said:
Well, I finally was able to do the test and got this:

    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\David\Desktop\Red Wars ModSys\source redwars 1.90\Red Wars Modsys Original\process_operations.py",

no you didn't. Read the error message above. It says

export_dir = "C:\Users\David\Desktop\Red Wars ModSys\source redwars 1.90\Red Wars Modsys Original\"  (ignore the slash)

while you should be compiling your code locally (Desktop, same folder, with a empty export_dir).

I don't know where you are changing your values, but you are not updating and saving the module_info.py from your modsys

Hmmm...I'm a bit confused. The export_dir has always stayed as "", ever since you told me what to do. I've never changed anything aside from the comment, which recently, I changed that to "" . I left the folder as they were.

Well, I moved the source red wars 1.90 (which contained the modsys) to my desktop and ran the build module
Initializing...
variables.txt not found. Creating new variables.txt file
Compiling all global variables...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Traceback (most recent call last):
  File "process_global_variables.py", line 106, in <module>
    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\David\Desktop\source redwars 1.90\Red Wars Modsys Original\process_operations.py", line 171, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/variables.txt'
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/strings.txt'
Exporting skills...
Traceback (most recent call last):
  File "process_skills.py", line 32, in <module>
    save_skills()
  File "process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "process_music.py", line 23, in <module>
    save_tracks()
  File "process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "process_meshes.py", line 25, in <module>
    save_meshes()
  File "process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "process_skins.py", line 105, in <module>
    export_skins(skins)
  File "process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/skins.txt'
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 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "process_factions.py", line 70, in <module>
    save_factions(relations)
  File "process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/factions.txt'
Exporting item data...
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_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/item_kinds1.txt'
Exporting scene data...
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_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 107, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/particle_systems.txt'
Exporting scene props...
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_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scene_props.txt'
Exporting tableau materials data...
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_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/tableau_materials.txt'
Exporting presentations...
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_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
  File "process_parties.py", line 69, in <module>
    save_parties(parties)
  File "process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "process_quests.py", line 30, in <module>
    save_quests()
  File "process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/quests.txt'
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 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/info_pages.txt'
Exporting scripts...
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_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scripts.txt'
Exporting mission_template data...
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_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/mission_templates.txt'
Exporting game menus data...
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_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/menus.txt'
exporting simple triggers...
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_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
  File "process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/simple_triggers.txt'
exporting triggers...
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_dialogs.py", line 199, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
  File "process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/postfx.txt'

______________________________

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

Then, I pulled the modsys out of that folder, onto the desktop
Initializing...
variables.txt not found. Creating new variables.txt file
Compiling all global variables...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Traceback (most recent call last):
  File "process_global_variables.py", line 106, in <module>
    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\David\Desktop\Red Wars Modsys Original\process_operations.py", line 171, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/variables.txt'
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/strings.txt'
Exporting skills...
Traceback (most recent call last):
  File "process_skills.py", line 32, in <module>
    save_skills()
  File "process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "process_music.py", line 23, in <module>
    save_tracks()
  File "process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "process_meshes.py", line 25, in <module>
    save_meshes()
  File "process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "process_skins.py", line 105, in <module>
    export_skins(skins)
  File "process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/skins.txt'
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 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "process_factions.py", line 70, in <module>
    save_factions(relations)
  File "process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/factions.txt'
Exporting item data...
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_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/item_kinds1.txt'
Exporting scene data...
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_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 107, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/particle_systems.txt'
Exporting scene props...
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_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scene_props.txt'
Exporting tableau materials data...
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_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/tableau_materials.txt'
Exporting presentations...
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_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
  File "process_parties.py", line 69, in <module>
    save_parties(parties)
  File "process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "process_quests.py", line 30, in <module>
    save_quests()
  File "process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/quests.txt'
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 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/info_pages.txt'
Exporting scripts...
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_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/scripts.txt'
Exporting mission_template data...
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_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/mission_templates.txt'
Exporting game menus data...
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_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/menus.txt'
exporting simple triggers...
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_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
  File "process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/simple_triggers.txt'
exporting triggers...
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_dialogs.py", line 199, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
  File "process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/The Red Wars/postfx.txt'

______________________________

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

So, uh, is there anything else I can do to fix this problem? Any help would be great  :smile:
 
maybe someone can help me, i made a new faction that its a war with everyone and i want it to stay like that until they are destroyed or they control all map , its there a way to prevent that they get peace and treaties with the others, including player faction? im using diplomacy modsys.

thanks in advance
 
asierus said:
its there a way to prevent that they get peace and treaties with the others, including player faction?

you can create special/expection rules on the scripts that handle diplomacy (like start a war or make peace), and include that faction as one that will remain in war forever

you will need to check how your mod work with those events. A example from native is

Code:
script_diplomacy_start_peace_between_kingdoms = 288
script_event_kingdom_make_peace_with_kingdom = 289
script_randomly_start_war_peace_new = 290
 
HyperCharge said:
https://youtu.be/iObwq1WaxQ8?t=83
I want to add that yelling to Warband.  :smile:
So I did this;
Code:
#(ti_on_agent_mount, 0, 0, [(eq, "$cheatmenu", 1)], [ #That doesn't make
# trigger param 1 = agent_id
    # trigger param 2 = horse agent_id
#(store_trigger_param_1, ":agent"),
#(store_trigger_param_2, ":horse"),
(0, 0, 0, [], [ #That maybe

(try_for_agents, ":agent"),
(agent_get_horse, ":horse", ":agent"),
(eq, ":horse", 1),
 (agent_get_animation_progress, ":progress", ":horse"), #WSE Operation
 (eq, ":progress", 2), 
(agent_play_sound, ":agent", "snd_man_yell"),
(display_log_message, "@Gee up!"),
(else_try),
(display_log_message, "@Error: Code didn't work!"),
(try_end),
      ]),
but somehow, code didn't work and I couldn't find it. Perhaps there is a prob in "getting the animation progress" ?
First off, double check what you're doing here.
You're checking if the agent's horse id is 1 and then you're checking if the horse's(with id 1) animation progress (any animation) is at 2 percent...
Does that make any sense? ...No.

Are you going to make that yelling work with any agents or just the player?
If the latter is the case, then you just need to check if the move_forward key is clicked and the horse isn't moving yet.
For any other agents you need to check for the horse's movement(as mentioned before) and use agent slots in order to check wheter the agent has already yelled or not.
 
kalarhan said:
asierus said:
its there a way to prevent that they get peace and treaties with the others, including player faction?

you can create special/expection rules on the scripts that handle diplomacy (like start a war or make peace), and include that faction as one that will remain in war forever

you will need to check how your mod work with those events. A example from native is

Code:
script_diplomacy_start_peace_between_kingdoms = 288
script_event_kingdom_make_peace_with_kingdom = 289
script_randomly_start_war_peace_new = 290

will try thanks :smile:
 
kalarhan said:
yeap, study how the walker system works and extend it to whatever you like

start by checking the mission_template trigger that spawn them and go from there
roger sensei thank you i'll check them right away!
kalarhan said:
you have a syntax issue with your module_troops.py file (or a plugin that adds troops). Go back to your last changes and double check it (or compare with your last working backup)
i understand that part and i'm doing it at the moment the thing that i didn't understand is "Var_Faction" error what does it mean ?
other then that thanks
 
imado552 said:
"Var_Faction" error what does it mean ?

Code:
####################################################################################################################
#  Each troop contains the following fields:
....
#  7) Faction (int)

WRECK needs to parse your module_troops.py and plugins to build the troops. It does that applying know rules. For Native compiler (comment above) the 7th element in a troop should be a numeric value of type Integer that represents which faction that troop belongs to. WRECK has its own rules.

When you break the syntax the compiler can't apply its rules/logic, it explodes with a low level error (Python message), and tells you to go back there and fix it
 
Hi
I'm making a mod and i don't know how to assign a village/castle/city to a faction cuz i want to change borders of native factions (i want it to belong to the faction at the start of the game).
Thanks for the help.  :grin: :grin: :grin:
 
Status
Not open for further replies.
Back
Top Bottom