The Ultimate Introduction to Modding | Starting out? Read this!

Users who are viewing this thread

Cannot thank you enough for this, i have looked at the other guides and they have all ended in errors. But this one worked  :smile: thanks heaps
 
Now I get this error
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
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: tutorial_1_finished
WARNING: Global variable never used: tutorial_2_finished
WARNING: Global variable never used: tutorial_3_finished
WARNING: Global variable never used: tutorial_4_finished
WARNING: Global variable never used: tutorial_5_finished
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_presentation_lines_to_display_begin
WARNING: Global variable never used: g_presentation_lines_to_display_end
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
My friend got this error
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\Matthew\Downloads\mb_warband_module_system_1158\Module_system 1

.158\process_operations.py", line 171, in save_variables

    file = open(export_dir + "variables.txt","w")

IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!postfx.txt'




______________________________




Script processing has ended.

Press any key to exit. . .
 
Maybe the tutorial should be updated with a warning that modding is not for everyone.
Setting up the module system is like a test of being able to follow simple instructions. If you can't do that, you are not ready yet.
 
teshdabest123 said:
Now I get this error
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
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Exporting game menus data...
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3
WARNING: Usage of unassigned global variable: $g_presentation_marshall_selection
_max_renown_3_troop
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: tutorial_1_finished
WARNING: Global variable never used: tutorial_2_finished
WARNING: Global variable never used: tutorial_3_finished
WARNING: Global variable never used: tutorial_4_finished
WARNING: Global variable never used: tutorial_5_finished
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_presentation_lines_to_display_begin
WARNING: Global variable never used: g_presentation_lines_to_display_end
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3
WARNING: Global variable never used: $g_presentation_marshall_selection_max_reno
wn_3_troop
Exporting postfx_params...

______________________________

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

You modified some code other than the code in the tutorial, change it back or post your code in the Q&A thread to see what's wrong.


teshdabest123 said:
My friend got this error
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\Matthew\Downloads\mb_warband_module_system_1158\Module_system 1

.158\process_operations.py", line 171, in save_variables

    file = open(export_dir + "variables.txt","w")

IOError: [Errno 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!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 13] Permission denied: 'C:/Program Files (x86)/Mount&Blade Warba

nd/Modules/My Mod!postfx.txt'




______________________________




Script processing has ended.

Press any key to exit. . .

Move the Warband folder to the desktop and redo module_info to fit that.
 
teshdabest123 said:
Now I get this error
bunch of warnings
So what, it's not fatal.
And don't double-post.

The Dark Robin said:
Move the Warband folder to the desktop and redo module_info to fit that.
Quite right, because "grant yourself permissions" will probably result in a "how do I do that" question in return.

MadVader said:
Maybe the tutorial should be updated with a warning that modding is not for everyone.
Setting up the module system is like a test of being able to follow simple instructions. If you can't do that, you are not ready yet.
This is a very good idea. One more post like "gott 3rR0r h4lp pl0x" and I might just add it. In red, with gigantic letters.

Don't be angry at me for being sour today, recruit who has got an error and whose friend has also got an error teshdabest123. I'm not really in the mood for long and careful explanations and do's and don't's. Sorry.
 
Well, 1 year ago i stayed for 1 day on how to compile the module system. Now i'm implementing an automatic fixed MG in Warband. Come on, everyone can learn! But not everybody does it at the same speed.  :grin:
 
I hope it's alright to just post a big thank you here! :grin: This is really clear and well written. I'm just a novice modder (and still in the middle of learning a couple programming languages too), but I was able to make a few quick scripting and dialogue changes, compile it, and test it right away in-game, no issues. Thanks so much for taking the time to write this!
 
//very strange, had an account here before, but for some reason none of my emails are associated with the game\\

Hello, I am attempting to mod in Warband. Have tried modding back in 2007 in the Original Mount and Blade.

Been dealing with an issue. After installing the python 2.7 (tried 3.4 and both actually), I was able to get to all the steps
but being able to actually well this:
Now that you have your new mod folder, you have to make your ModSys use it. Open up your ModuleSystem folder, locate module_info.py and open it. Important! Do NOT double-click the file. If you do it, Python will think that you're trying to compile a Python program, and will basically do nothing. In order for you to edit ModSys files, you need to use a text editor. You can use Notepad, although I'd strongly recommend using Notepad++, a very powerful and free text editor, and the very same software I'm using to write this post.

*I cannot locate the module_info.py, nor does it exist anywhere on my files. I am 100% sure I followed each and every step carefully, but it seems that I have a problem now.
Any way you can help me solve this problem? Or anyone* perhaps?
 
I followed a link that sent me directly to the python site, not sure if it's the system itself; almost seems like the file may not exist.
Unless this has to do with the file missing?
 
Ah, alright. Got it all figured out!
Was mis-led, on my own eyes at least, about the module system.

I thought the original author meant that the 2.x system still worked.
It had me confused there.
Thank you very much for pointing the silly little mistake out for me!

Everything seems to be working properly, just gotta figure out how to get
this map editor to work out! :smile:

Karilis
 
So I already know how to program in Python, I just am struggling with the module system batch file compiling. I keep getting the error:

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_info_pages.py': [Errno 2] No such file or direc
tory
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
python: can't open file 'process_postfx.py': [Errno 2] No such file or directory

Could Not Find C:\windows\system32\*.pyc

______________________________

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

Can anyone help me? It'd be awesome!

EDIT: It fixed and compiled when I moved the directory to not my program files, I figured since I was running with admin permissions it'd be fine, but apparently not.
 
DeadlyHooves said:
So I already know how to program in Python, I just am struggling with the module system batch file compiling. I keep getting the error:

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_info_pages.py': [Errno 2] No such file or direc
tory
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
python: can't open file 'process_postfx.py': [Errno 2] No such file or directory

Could Not Find C:\windows\system32\*.pyc

______________________________

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

Can anyone help me? It'd be awesome!

EDIT: It fixed and compiled when I moved the directory to not my program files, I figured since I was running with admin permissions it'd be fine, but apparently not.

Can someone explain to me what this guy did and how to amend the problem he had? I'm confused
 
Arnox said:
Can someone explain to me what this guy did and how to amend the problem he had? I'm confused

He built the module in a different directory on his computer where he has admin rights.
For an example: Build a new module in Local Disk (D:smile:
 
edit: Great tutorial, with the latest version of python (well, speaking of the latest 2.X), there's (at least in Win 7) no need for adding the PATH manually, it's possible to enable it during the installation.
 
I notice this thread is rather windows specific. Maybe the ModSys will compile on Linix as well. Certainly Linux and Python are not strangers. But I guess what I was wanting was some down in the dirt explanation of the original file formats in M&B Warband itself. My only real issue right now is trying to figure out what is wrong with a Mod map I downloaded. The most likely problem is a bad download I guess, but it piqued my interest in finding the actual map, and to my surprise it apparently is NOT just a .bmp stashed conveniently in one of the available folders.

Has anyone made the ModSys work on Linux? Is there a tutorial? And is there a tutorial on the files we have available to mod themselves?

Thanks. Awesome thread by the way. Just... not EXACTLY what I am looking for just yet.
 
Back
Top Bottom