Concerning Issues with Module System 1.171

Users who are viewing this thread

Hello dear reader,

As I am currently trying to convert the old Assassin Hunt Native mod from '1.158' to '1.172'.

When I asked for it at 'The Guildhall' I was told to copy the code out of the Assasssin Hunt Module System to the Module System of 1.171 which seems legit and correct to me. Here is the link in case you want to read it again: https://forums.taleworlds.com/index.php/topic,368852.0.html

Now, as I am trying to set up the Module Systems I found that I could not even compile it!
After 3 hours of research I found this topic https://forums.taleworlds.com/index.php/topic,343915.msg8224417.html#msg8224417 which reflects my problems nearly, but with the difference that changing the location of the module system 1.171 and the module folder to the desktop does not change my problems :sad:. What else could I do to solve this issue?

Additionally I would like, if you have a hint or two, how to convert this gamemode!

I would like to thank you already for the attention and for a replay! :smile:

 
ƬHΣЅΣƱЅ said:
As I am currently trying to convert the old Assassin Hunt Native mod from '1.158' to '1.172'.

1) Why? As in, what is your goal for this upgrade? Compatibility with newer version of engine? Get any bug fixes since 1.158 on modsys? Do you plan to use new OSP or operations that require the upgrade?
1.1) Do you use WSE?
1.2) Any special cases (modmerger, etc), or it is a simple vanilla compiler/modsys ?
1.3) SP or MP?
...

2) Depending on (1) this could be a simple case of replacing some files, to a more complicated case of checking a lot of code

 
kalarhan said:
ƬHΣЅΣƱЅ said:
As I am currently trying to convert the old Assassin Hunt Native mod from '1.158' to '1.172'.

1) Why? As in, what is your goal for this upgrade? Compatibility with newer version of engine? Get any bug fixes since 1.158 on modsys? Do you plan to use new OSP or operations that require the upgrade?
1.1) Do you use WSE?
1.2) Any special cases (modmerger, etc), or it is a simple vanilla compiler/modsys ?
1.3) SP or MP?
...

2) Depending on (1) this could be a simple case of replacing some files, to a more complicated case of checking a lot of code

Its MP  native compatible mod.
 
kalarhan said:
1) Why? As in, what is your goal for this upgrade? Compatibility with newer version of engine? Get any bug fixes since 1.158 on modsys? Do you plan to use new OSP or operations that require the upgrade?
1.1) Do you use WSE?
1.2) Any special cases (modmerger, etc), or it is a simple vanilla compiler/modsys ?
1.3) SP or MP?
...

2) Depending on (1) this could be a simple case of replacing some files, to a more complicated case of checking a lot of code

1. I want to host it again and play it with friends on my dedicated server. Currently it is outdated as it is a Native gamemode for 1.158
Therefore no OSP
1.1 I do not use WSE
1.2 It is on the one hand the normal modsys 1.171 and the Assassin Hunt modsys 1.166
1.3 It is MP

2. Do you have an clear idea on what to do?
 
ƬHΣЅΣƱЅ said:
2. Do you have an clear idea on what to do?

You need to setup new, clear 1.72 ModSys. Then carefully copy and paste all AH related code to exact same places inside 1.72 module. This is basic plan. 
Ofcourse there can occur some complications.
 
This is what I get if I don't run it as an administrator:

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:\Users\Evalotta\Desktop\Module_system 1.171\process_operations.py", line 171, in save_variables
    file = open(export_dir + "variables.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/variables.txt'
Exporting strings...
Traceback (most recent call last):
  File "process_strings.py", line 26, in <module>
    save_strings(strings)
  File "process_strings.py", line 9, in save_strings
    ofile = open(export_dir + "strings.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/strings.txt'
Exporting skills...
Traceback (most recent call last):
  File "process_skills.py", line 32, in <module>
    save_skills()
  File "process_skills.py", line 15, in save_skills
    ofile = open(export_dir + "skills.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/skills.txt'
Exporting tracks...
Traceback (most recent call last):
  File "process_music.py", line 23, in <module>
    save_tracks()
  File "process_music.py", line 15, in save_tracks
    file = open(export_dir + "music.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/music.txt'
Exporting animations...
Traceback (most recent call last):
  File "process_animations.py", line 61, in <module>
    write_actions(animations,len(action_codes),action_codes,"actions.txt")
  File "process_animations.py", line 24, in write_actions
    file = open(export_dir + file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/actions.txt'
Exporting meshes...
Traceback (most recent call last):
  File "process_meshes.py", line 25, in <module>
    save_meshes()
  File "process_meshes.py", line 9, in save_meshes
    ofile = open(export_dir + "meshes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/meshes.txt'
Exporting sounds...
Traceback (most recent call last):
  File "process_sounds.py", line 51, in <module>
    write_sounds(sound_samples, sounds)
  File "process_sounds.py", line 13, in write_sounds
    ofile = open(export_dir + "sounds.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/sounds.txt'
Exporting skins...
Traceback (most recent call last):
  File "process_skins.py", line 105, in <module>
    export_skins(skins)
  File "process_skins.py", line 45, in export_skins
    ofile = open(export_dir + "skins.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/skins.txt'
Exporting map icons...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_map_icons.py", line 38, in <module>
    save_map_icons(variables,variable_uses,tag_uses,quick_strings)
  File "process_map_icons.py", line 9, in save_map_icons
    ofile = open(export_dir + "map_icons.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/map_icons.txt'
Exporting faction data...
Traceback (most recent call last):
  File "process_factions.py", line 70, in <module>
    save_factions(relations)
  File "process_factions.py", line 34, in save_factions
    file = open(export_dir + "factions.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/factions.txt'
Exporting item data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 19, in write_items
    ofile = open(itemkinds_file_name,"w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/item_kinds1.txt'
Exporting scene data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_scenes.py", line 77, in <module>
    save_scenes(variables,variable_uses,tag_uses)
  File "process_scenes.py", line 46, in save_scenes
    ofile = open(export_dir + "scenes.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/scenes.txt'
Exporting troops data
Traceback (most recent call last):
  File "process_troops.py", line 107, in <module>
    save_troops()
  File "process_troops.py", line 13, in save_troops
    file = open(export_dir + "troops.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/troops.txt'
Exporting particle data...
Traceback (most recent call last):
  File "process_particle_sys.py", line 61, in <module>
    save_particle_systems()
  File "process_particle_sys.py", line 29, in save_particle_systems
    ofile = open(export_dir + "particle_systems.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/particle_systems.txt'
Exporting scene props...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_scene_props.py", line 32, in <module>
    save_scene_props(variables,variable_uses,tag_uses,quick_strings)
  File "process_scene_props.py", line 10, in save_scene_props
    ofile = open(export_dir + "scene_props.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/scene_props.txt'
Exporting tableau materials data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_tableau_materials.py", line 31, in <module>
    save_tableau_materials(variables,variable_uses,tag_uses,quick_strings)
  File "process_tableau_materials.py", line 11, in save_tableau_materials
    ofile = open(export_dir + "tableau_materials.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/tableau_materials.txt'
Exporting presentations...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_presentations.py", line 33, in <module>
    save_presentations(variables,variable_uses,tag_uses,quick_strings)
  File "process_presentations.py", line 11, in save_presentations
    ofile = open(export_dir + "presentations.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/presentations.txt'
Exporting party_template data...
Traceback (most recent call last):
  File "process_party_tmps.py", line 46, in <module>
    save_party_templates()
  File "process_party_tmps.py", line 20, in save_party_templates
    file = open(export_dir + "party_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/party_templates.txt'
Exporting parties
Creating new tag_uses.txt file...
Traceback (most recent call last):
  File "process_parties.py", line 69, in <module>
    save_parties(parties)
  File "process_parties.py", line 12, in save_parties
    file = open(export_dir + "parties.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/parties.txt'
Exporting quest data...
Traceback (most recent call last):
  File "process_quests.py", line 30, in <module>
    save_quests()
  File "process_quests.py", line 9, in save_quests
    ofile = open(export_dir + "quests.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/quests.txt'
Exporting info_page data...
Traceback (most recent call last):
  File "process_info_pages.py", line 26, in <module>
    save_info_pages()
  File "process_info_pages.py", line 9, in save_info_pages
    ofile = open(export_dir + "info_pages.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/info_pages.txt'
Exporting scripts...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 10, in save_scripts
    file = open(export_dir + "scripts.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/scripts.txt'
Exporting mission_template data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 38, in save_mission_templates
    file = open(export_dir + "mission_templates.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/mission_templates.txt'
Exporting game menus data...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_game_menus.py", line 47, in <module>
    save_game_menus(variables,variable_uses,tag_uses,quick_strings)
  File "process_game_menus.py", line 22, in save_game_menus
    ofile = open(export_dir + "menus.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/menus.txt'
exporting simple triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_simple_triggers.py", line 24, in <module>
    save_simple_triggers(variables,variable_uses,simple_triggers,tag_uses,quick_strings)
  File "process_simple_triggers.py", line 8, in save_simple_triggers
    file = open(export_dir + "simple_triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/simple_triggers.txt'
exporting triggers...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Traceback (most recent call last):
  File "process_dialogs.py", line 199, in <module>
    save_triggers(variables,variable_uses,triggers,tag_uses,quick_strings)
  File "process_dialogs.py", line 47, in save_triggers
    file = open(export_dir + "triggers.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/triggers.txt'
Checking global variable usages...
variables.txt not found. Creating new variables.txt file
variable_uses.txt not found. Creating new variable_uses.txt file
Exporting postfx_params...
Traceback (most recent call last):
  File "process_postfx.py", line 27, in <module>
    write_postfx_params(postfx_params)
  File "process_postfx.py", line 13, in write_postfx_params
    ofile = open(export_dir + "postfx.txt","w")
IOError: [Errno 2] No such file or directory: 'C:/Users/Evalotta/Dektop/Test/postfx.txt'

______________________________

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

This is what I get if I do run it as an administrator:

Code:
 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 directory
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 directory
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 directory
python: can't open file 'process_factions.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scene_props.py': [Errno 2] No such file or directory
python: can't open file 'process_tableau_materials.py': [Errno 2] No such file or directory
python: can't open file 'process_presentations.py': [Errno 2] No such file or directory
python: can't open file 'process_party_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_parties.py': [Errno 2] No such file or directory
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 directory
python: can't open file 'process_scripts.py': [Errno 2] No such file or directory
python: can't open file 'process_mission_tmps.py': [Errno 2] No such file or directory
python: can't open file 'process_game_menus.py': [Errno 2] No such file or directory
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 directory
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
C:\WINDOWS\system32\*.pyc could not be found

______________________________

Script processing has ended.
Press any key to exit. . .
 
Leo is right. It looks like you made a typo in compiler output path.

Maybe this
Code:
'C:/Users/Evalotta/Dektop/Test/menus.txt'
should look like this
Code:
'C:/Users/Evalotta/DeSktop/Test/menus.txt'
 
:oops: :oops: Well, it turned to be that single mistake that obviously stopped the whole compiling. It worked fine after this which means that problem is solved. Thank you VERY much for helping me with the grammar mistake :oops:. Lastly I have a question towards the assassin hunt transition: Can I be sure that I can copy the passages from AH into the Vanilla code?-Some may not exist and it has to be the right placeas EmielRegis stated
 
AH isn't that old. You should be ok if you copypaste its code to right places. Only thing that can possibly cause problems are network events. Invasion trash code in 1.72 kinda ruined them. If AH had some custom network events proper implementing them can be hard for you, as it needs more work than copypaste.
 
Alright. Seems I have gotten REALLY lucky. I messaged The_dragon, the developer of AH and asked him which files had to be edited. He was extremely kind and edited the mod so now it is updated! :grin: :smile: This also means that the whole problem is solved. Topic can be closed now. Nevertheless I have to thank you a lot for your detailed hints and informative help!
 
Back
Top Bottom