Updated Module System Tutorial Mar 29 2009 - see first thread!

Users who are viewing this thread

check commas and quotation marks

If I remember right- and sorry if this is wrong jik- there is the odd typo if you copy and paste jik's code.
Its better if you enter the code manually anyway- it helps you learn better.

Hope that's it.
 
I've followed everything from in the first and second part but then the game crashes when I started a new game.
citys.jpg

Any ideas?
 
Hmm...  I'm sure you must have either missed something, or there is a type-o error.  Check where you define the icon for the city and where it is called.
 
Well, I'm following your tut, Jik. And so far, it has been real nice (though I'm having the list indices must be integers, not tuple problem at the moment, trying to solve it), there are a few tiny faults to it.

I got the same error as Eumolpus, but I fixed it by changing "city" to "City". :razz:
 
Guys when I try to test the build_module file I get this log. It says I got error nº13. I dont know what to do. Could anyone please ehlp me?


__________________________________________________________
Initializing...
Compiling all global variables...
Traceback (most recent call last):
  File "process_global_variables.py", line 89, in <module>
    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\Utilizador\Desktop\ModuleSystem\process_operations.py", line 17
1, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 49, 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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/skins.txt'
Exporting map icons...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/factions.txt'
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 65, 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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/item_kinds1.txt'
Exporting scene data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 105, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/particle_systems.txt'
Exporting scene props...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scene_props.txt'
Exporting tableau materials data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/tableau_materials.txt'
Exporting presentations...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/party_templates.txt'
Exporting parties
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/quests.txt'
Exporting scripts...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scripts.txt'
Exporting mission_template data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/mission_templates.txt'
Exporting game menus data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/menus.txt'
exporting simple triggers...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/simple_triggers.txt'
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 188, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 46, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/triggers.txt'
Checking global variable usages...

______________________________

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


Also, when I try to run it as administrator I get this log. BTW, I'm using Windows Vista.



___________________________________________________________________

python: can't open file 'process_init.py': [Errno 2] No such file or directory
python: can't open file 'process_global_variables.py': [Errno 2] No such file or
directory
python: can't open file 'process_strings.py': [Errno 2] No such file or director
y
python: can't open file 'process_skills.py': [Errno 2] No such file or directory

python: can't open file 'process_music.py': [Errno 2] No such file or directory
python: can't open file 'process_animations.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_meshes.py': [Errno 2] No such file or directory

python: can't open file 'process_sounds.py': [Errno 2] No such file or directory

python: can't open file 'process_skins.py': [Errno 2] No such file or directory
python: can't open file 'process_map_icons.py': [Errno 2] No such file or direct
ory
python: can't open file 'process_factions.py': [Errno 2] No such file or directo
ry
python: can't open file 'process_items.py': [Errno 2] No such file or directory
python: can't open file 'process_scenes.py': [Errno 2] No such file or directory

python: can't open file 'process_troops.py': [Errno 2] No such file or directory

python: can't open file 'process_particle_sys.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or dire
ctory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file o
r directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or di
rectory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_parties.py': [Errno 2] No such file or director
y
python: can't open file 'process_quests.py': [Errno 2] No such file or directory

python: can't open file 'process_scripts.py': [Errno 2] No such file or director
y
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_simple_triggers.py': [Errno 2] No such file or
directory
python: can't open file 'process_dialogs.py': [Errno 2] No such file or director
y
python: can't open file 'process_global_variables_unused.py': [Errno 2] No such
file or directory
Não foi possível localizar C:\Windows\system32\*.pyc

______________________________

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

_______________________________________________________________
 
i don't get it how i spawn troops  :cry:
can some1 tell me please?(I'm not making an Geoffrey party lol and i didn't understand how to do it in the tutorial:sad:
 
Meh, I can even get the "Mod_Town" to show on the map. I don't get it. The build_module doesn't report any errors. This is what I've done.
Map icons:

  ("banner_126",0,"map_flag_15", banner_scale,0),
  ("new_icon",0,"city", 2,0),
]

_____________________________________
Parties:

  ("town_18","Narra",  icon_town_steppe|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-22.6, -82),[], 135),

## JIK's Test Area
  ("mod_town","Mod_Town", icon_new_icon|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-1, -1),[], 45),
## End of JIK's Test Area
 
#  Aztaq_Castle     
#  Malabadi_Castle
  ("castle_1","Culmarr_Castle",icon_castle_a|pf_castle, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-69.2, 31.3),[],50),

Is this correct? The only weird thing was that I found tons of weird text files in my modules folder which all started with the name of my mod. Shouldn't they be inside my module folder?
 
Not sure about your problem, Alarim.

I wish Jik, or atleast someone, would continue this. It is a great tutorial, indeed. I'd do it myself but I doubt I'd be any greater than Jik.
 
What I do wrong here? The build_module.bat says something about unknown tokens: hareck_dyingwish and hareck_dywingwish_2

Code:
[trp_constable_hareck,"start", [], "Yes? Can I help you?", "hareck_talk",[]],
    [trp_constable_hareck|plyr, "hareck_talk", [], [(neg|check_quest_active,"qst_dying_wish"),(neg|check_quest_finished,"qst_dying_wish")],"Yes. My dying father asked me to give this letter to you.", "hareck_dyingwish",[]],
    [trp_constable_hareck,"hareck_dyingwish", [], "*Constable Hareck reads the letter* Ah, your father. We were good friends when we were young.", "hareck_dying_wish_2",[]],
    [trp_constable_hareck,"hareck_dyingwish_2", [], "Anyway, he wanted you to talk to someone by the name of Tiresias. He said he was a man of knowledge and is in Zendar. However, I know not of Tiresias.", "hareck_dyingwish_3",[]],
    [trp_constable_hareck,"hareck_dyingwish_3", [], " However, I know this blind beggar who calls himself as Tiresias. Maybe he knows who this Tiresias is. You can find him around the alleys of Zendar.", "hareck_dyingwish_4",[]],
    [trp_constable_hareck|plyr, "hareck_dyingwish_4", [], "Thank you, constable." "close_window",
    (setup_quest_text,"qst_tiresias"),
    (str_store_string, s2, "@Constable Hareck tells you that your father wanted you to talk to Tiresias. A beggar around the alleys of Zendar will tell you where he is."),
    (call_script,"script_start_quest","qst_tiresias","trp_constable_hareck"),
    [[assign,"$tiresias",1]]],
    [trp_constable_hareck|plyr, "hareck_talk", [], "Nothing. Good-bye.", "close_window",[]],

Edit: Changed somewhere I can't remember, works now.
 
jocamar said:
Guys when I try to test the build_module file I get this log. It says I got error nº13. I dont know what to do. Could anyone please ehlp me?


__________________________________________________________
Initializing...
Compiling all global variables...
Traceback (most recent call last):
  File "process_global_variables.py", line 89, in <module>
    save_variables(export_dir, variables,variable_uses)
  File "C:\Users\Utilizador\Desktop\ModuleSystem\process_operations.py", line 17
1, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 49, 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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/skins.txt'
Exporting map icons...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/factions.txt'
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 65, 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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/item_kinds1.txt'
Exporting scene data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 105, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/particle_systems.txt'
Exporting scene props...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scene_props.txt'
Exporting tableau materials data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/tableau_materials.txt'
Exporting presentations...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/party_templates.txt'
Exporting parties
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/quests.txt'
Exporting scripts...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/scripts.txt'
Exporting mission_template data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/mission_templates.txt'
Exporting game menus data...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/menus.txt'
exporting simple triggers...
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 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/simple_triggers.txt'
exporting triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 188, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 46, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 13] Permission denied: 'C:/Program Files/Mount&Blade/Modules/MyN
ewModule/triggers.txt'
Checking global variable usages...

______________________________

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


Also, when I try to run it as administrator I get this log. BTW, I'm using Windows Vista.



___________________________________________________________________

python: can't open file 'process_init.py': [Errno 2] No such file or directory
python: can't open file 'process_global_variables.py': [Errno 2] No such file or
directory
python: can't open file 'process_strings.py': [Errno 2] No such file or director
y
python: can't open file 'process_skills.py': [Errno 2] No such file or directory

python: can't open file 'process_music.py': [Errno 2] No such file or directory
python: can't open file 'process_animations.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_meshes.py': [Errno 2] No such file or directory

python: can't open file 'process_sounds.py': [Errno 2] No such file or directory

python: can't open file 'process_skins.py': [Errno 2] No such file or directory
python: can't open file 'process_map_icons.py': [Errno 2] No such file or direct
ory
python: can't open file 'process_factions.py': [Errno 2] No such file or directo
ry
python: can't open file 'process_items.py': [Errno 2] No such file or directory
python: can't open file 'process_scenes.py': [Errno 2] No such file or directory

python: can't open file 'process_troops.py': [Errno 2] No such file or directory

python: can't open file 'process_particle_sys.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or dire
ctory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file o
r directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or di
rectory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_parties.py': [Errno 2] No such file or director
y
python: can't open file 'process_quests.py': [Errno 2] No such file or directory

python: can't open file 'process_scripts.py': [Errno 2] No such file or director
y
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or dir
ectory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or direc
tory
python: can't open file 'process_simple_triggers.py': [Errno 2] No such file or
directory
python: can't open file 'process_dialogs.py': [Errno 2] No such file or director
y
python: can't open file 'process_global_variables_unused.py': [Errno 2] No such
file or directory
Não foi possível localizar C:\Windows\system32\*.pyc

______________________________

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

_______________________________________________________________
The "permission denied" errors can be avoided by running it as admin.
The rest, however, is a mystery. I can only guess that it's Vista related, since I got it on my vista machine, too.
 
My recommendation: keep all of your module files and module system files you are working with in your User folder (i.e. C:\Users\thrakkemarn\modules) or something like that. Anything in YOUR user folder is exempt from the annoying vista security crap (at least, unless you changed your settings).
 
Alarim said:
Meh, I can even get the "Mod_Town" to show on the map. I don't get it. The build_module doesn't report any errors. This is what I've done.
Map icons:

  ("banner_126",0,"map_flag_15", banner_scale,0),
  ("new_icon",0,"city", 2,0),
]

_____________________________________
Parties:

  ("town_18","Narra",  icon_town_steppe|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-22.6, -82),[], 135),

## JIK's Test Area
  ("mod_town","Mod_Town", icon_new_icon|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-1, -1),[], 45),
## End of JIK's Test Area
 
#  Aztaq_Castle     
#  Malabadi_Castle
  ("castle_1","Culmarr_Castle",icon_castle_a|pf_castle, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-69.2, 31.3),[],50),

Is this correct? The only weird thing was that I found tons of weird text files in my modules folder which all started with the name of my mod. Shouldn't they be inside my module folder?

I had the same problem.

It seems the mesh "city" isn't available in 1.01x anymore.

Just change it to map_town_a or make a mesh of your own :wink:
 
Alright so I used JIK tutorial (great tutorial by the way) and the scene in the Tavern works great, but when I try to do the same idea with the town center I end up with some serious problems. I tried using entry point 0, or 1 and I don't show up there, but a copy of me does, and when I use entry 24 that's where I spawn, and none of my entry points from passages IE tavern menu #4 and entry #4 seem to work, so I was wondering if anyone can tell me if its something I didn't do? like in module_scenes.py for entry points? or is it something else? Help would be greatly appreciated thanks much
 
Jocamar- I'm not qouting that massive post, But I think I can solve your problem.

Two things- first make sure the path is set properly- thats in the tutorial if you don't know,

Then you need to disable the user account control on Vista. This control makes it so that any changes to files have to have administrator permission, and so it won't let you modify the files via build_module.bat.

This should solve things.
 
Back
Top Bottom