Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Any insight into what each of these do would be helpful but if people don't know what each of them do then at least mention which ones do, I just want to clear this up.

xPearse said:
Could someone please explain to me what exactly each of these material flags do. I just want to know so I could use them more usefully.

 
Thanks for the replies on my previous Q. Another one - scene making...

Entry points! I can't figure out how they work at all, even after reading all of the tutorials on the forum. Their number effects their purpose, but how do I set their number? It seems that when I add one, its number is random.

Also, what are the entry point numbers for siege scenes? The ones I'm seeing in native siege scenes don't seem to match what people are listing in the tutorials.

Thanks!
 
Why am I getting this?

Code:
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:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules
\War for Independence v0.1\Module_system 1.151\process_operations.py", line 171,
 in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 2] No such file or directory: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/strings.tx
t'
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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/actions.tx
t'
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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/factions.t
xt'
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: '../WOTS/Modules/Native/item_kinds
1.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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/particle_s
ystems.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: '../WOTS/Modules/Native/scene_prop
s.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: '../WOTS/Modules/Native/tableau_ma
terials.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: '../WOTS/Modules/Native/presentati
ons.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: '../WOTS/Modules/Native/party_temp
lates.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: '../WOTS/Modules/Native/parties.tx
t'
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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/scripts.tx
t'
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: '../WOTS/Modules/Native/mission_te
mplates.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: '../WOTS/Modules/Native/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: '../WOTS/Modules/Native/simple_tri
ggers.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: '../WOTS/Modules/Native/triggers.t
xt'
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: '../WOTS/Modules/Native/postfx.txt
'

______________________________

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

My files recently got corrupted, and I just switched over, to the 1.153 MS. I gave it the right directory and everything.
 
Sebastian:
What do you exactly want with the item_id?

Bravo:
Tell us more about your problem. Did you move your files / edit your files?
Are you sure you have set the right Module for your ModuleSystem?



Guys! Can you tell me something more about relationships between AI factions?
How do they work? Is the relationship equal to 0 if they are at peace? because
I do not find scripts which increase the relation to a number, higher than 0.

(I am talking about MB, not Warband)
 
@Bravo:
../WOTS/Modules/Native/
is the default directory listed in module_info.py
You forgot to edit module_info.py to point to the folder you want to compile to.

Quintillius said:
Guys! Can you tell me something more about relationships between AI factions?
How do they work? Is the relationship equal to 0 if they are at peace? because
I do not find scripts which increase the relation to a number, higher than 0.
0 is at peace. <0 is at war.
Positive numbers really don't matter with Native diplomacy.


_Sebastian_ said:
Good evening.

How can I get the item_id on "ti_on_init_item" ... is it stored in reg0 ?
I don't believe you do. All of the Native uses of the trigger use operations that know which is the "cur_item" instance implicitly
 
0 is at peace. <0 is at war.
Positive numbers really don't matter with Native diplomacy.
Thanks! Some guy based his script on positive numbers and now I fixed the bad diplomacy in my mod  :razz:!
 
Caba`drin said:
Meneldur said:
I meant  ti_on_weapon_attack for the ranged weapons see
Code:
["long_bow", "long_bow", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary ,itcf_shoot_pistol|itcf_reload_pistol, 230 , weight(1.5)|difficulty(0)|spd_rtng(38) | shoot_speed(160) | thrust_damage(45 ,pierce)|max_ammo(1)|accuracy(65),imodbits_none,
 [(ti_on_weapon_attack, [(,2,300][i]give back damage on shields if hitted target is not a human or scene_prop][/i]"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15)])]],
That way it might be detectable anyhow or this is my hope.
On weapon attack fires when the attack begins, so this won't be of any help.

ti_on missle hit then!??
if  I take all bows and x-bows and define a script which can check if shields are hitted by projectile, that script should be able  to refill exactly the damage which is made by that one projectil. Something like that:
Code:
["hunting_bow",         "Hunting Bow", [("hunting_bow",0),("hunting_bow_carry",ixmesh_carry)],itp_type_bow |itp_merchandise|itp_primary|itp_two_handed,itcf_shoot_bow|itcf_carry_bow_back, 
17 , weight(1)|difficulty(0)|spd_rtng(82) | shoot_speed(47) | thrust_damage(15 ,  pierce)|accuracy(72),imodbits_bow ,
[(ti_on_missile_hit, [(multiplayer_send_int_to_server,mp_give back_ranged_damage on shield_server_1),(store_trigger_param_1, ":agent_id"),(call_script, "script_cf_mp_give back_ranged_damage on shield_server_1", ":agent_id")])]],
As said i dont want the shields to be indestructable just avoid them being damaged by ranged!
My Question is:
1)how can i detect that a shield is hit by arrow or bolt
2) how to get the exact damage from that current ranged attack.
and lol how to make a apropiate script out of it!  :oops:
 
With ti_on_missile_hit, you could do a proximity check for agents near the hit position, find the nearest agent...if very close AND wielding a shield, you could count it as hitting the shield (though you have no way of knowing if this is true, really). There'd be no real way to detect the damage in this way, however. You'd need to get really creative...and imprecise.

Likely easier would be to make bows/ammo do 0 damage and then detect when they hit an agent with ti_on_agent_hit and then figure out a way to compute how much damage they would do.


But, really, the best bet would be to use ti_on_shield_hit with Warband Script Enhancer.
 
sir_arvondor said:
xXTribalXx said:
MadVader said:
xXTribalXx said:
the %PATH% was in there due to the tutorial im following having it beside the C:python2.6 that it had, i wasnt sure so i threw it in the last time i tried and just never took it out, and i tried that and switching the \'s to /'s but it didnt work.. maybe i need to get a lower 2.# for python? (but im not sure if its still available, all i saw was 2.7 and 3.2) this is becoming quite frustrating :/

Edit: and so far no other applications have had any errors so im not sure if anything important was in it
Just follow the plan B above (adding the path in build_module.bat). I wonder how your other programs work since you destroyed the original PATH.

Edit: Ok, it seems you have problems because you deleted your original PATH. Just put in the PATH value in Lumos' post above and try that.

Okay, well I've put in Lumos's value and that didn't, changed my build_module.bat file to fit the Plan B, and went through all of the tutorial steps again to make sure they were done and still no go... I think this just doesn't like me or something :sad:

Edit: I'm gonna try to make a new User on my computer and see if it sets the new Users PATH file to what mine was to start with maybe that will help

Edit, again: I made a new user but it copied and pasted the PATH to the new one so I'm gonna restore the computer to a time before I put the python on there and see if I can get my value back that way
@xXTribalXx:grin:on't screw up your whole computer trying to get the thing to work.(Edit:It looks like you already have.) Python and PATH variable are a huge *expletive* to work with,try this instead:http://forums.taleworlds.com/index.php/topic,226612.0.html(Once you get your computer sorted out.)

Duh said:
If you have no clue what you are talking about, dont. Reverting your pc to an earlier state does in no way "screw up" your computer and neither does it require somebody else to come and fix it. It is in fact a common method to get your computer to work again.

The font, color and panicky language really arent necessary.

@Tribal, i ll be back home on thursday, if you still didnt get things to run, i d happy to have a look via teamviewer.

about the screwing up the computer part, its fine, i downloaded all i wanted to keep on cds and restored my pc and now my PATH is back to normal, and i was wondering what the teamview thing was about (sorry the post took so long, had to work 12 hour days for a while
 
Question. I noticed an odd thing - from some time now, the king of one of my factions leaves his town instantly after the game starts. This is new, because the guy didn't do it before. I've been fiddling with too many things recently, so I've probably changed the ai behavour somehow (although I don't think I've modified anything AI-related). I'm also pretty sure that every other lord is doing the same. What could be the problem?
 
Well, same happens to me. Must be some sort of changes from latest patches. Nothing buggy, I presume.
 
Its a windows application that lets another peep look at your pc and use his/her mouse+keyboard simultaneously with you. It obviously requires you to trust me, though you can close the app at any point. Been setting up new folks in the german forum for a while, so i figured why not here as well :razz:
 
Having my new faction capital a while away from the new game start point I usually use (Shariz) i get there after a 8h (aprox.) ride and I see the faction leader riding into the city when it comes into view. Maybe the faction leader is spawned outside the city walls and just "takes his time".
 
ahh okay, well then that sounds great, it might help me realize what ive been doing wrong or someone might be able to point out what is causing it to not work :smile: send me a pm on how to get the app and what i need to do and we can try it :smile:
 
Belendor said:
Well, same happens to me. Must be some sort of changes from latest patches. Nothing buggy, I presume.
Hm. Maybe it's somethng internal then.
Dawiduh said:
Having my new faction capital a while away from the new game start point I usually use (Shariz) i get there after a 8h (aprox.) ride and I see the faction leader riding into the city when it comes into view. Maybe the faction leader is spawned outside the city walls and just "takes his time".
Probably, given that his party is visible on the map at the moment I get out of the starting menus and stuff. Good to know that he'll return, though. :razz:
 
Yeah, he comes back, and when I meet him in the castle he's naked. I read somewhere on the forums that I have to assign clothes to the lords in order to stick to them. Like a second definition for the aristocracy. I need to look into it when I get home.
 
Status
Not open for further replies.
Back
Top Bottom