Thanks! Can I use pf_disabled on non-static parties? Or perhaps, I should set their flags as static first, then disable?
Well, I checked the "permission to write" part and ran the .bat, but still doesn't give me the txt's.kalarhan said:maater66241 said:permssion to write
https://forums.taleworlds.com/index.php/topic,240255.0.html
target folder (your custom mod like /Modules/mymod/ )
maater66241 said:Module_info: export_dir = "C:/Program Files (x86)/Steam/steamapps/common/MountBlade Warband/Modules/Native And More/"
Compiler Output:
Initializing...
Compiling all global variables...
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...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
EmielRegis said:maater66241 said:Module_info: export_dir = "C:/Program Files (x86)/Steam/steamapps/common/MountBlade Warband/Modules/Native And More/"
Compiler Output:
Initializing...
Compiling all global variables...
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...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
Looks suspiciously fine... Maybe try to set output folder to module system subfolder for example. Just something simple. To test it.
...Sorry, but what's the module system subfolder?
Sorry, my English skills aren't with me today, but here's what I did (don't murder me if I did it wrong):EmielRegis said:...Sorry, but what's the module system subfolder?
What I was saying is to create folder like "output" inside folder where you extracted your module system files, and try compile mod here. To check if it can compile at all in diferent directory.
what errors3. Ran .bat (which had errors)
Strange thing, I tried it again, it works perfectly fine. But no txt still...EmielRegis said:what errors3. Ran .bat (which had errors)
Well..Last thing you can do is upload your module system folder somewehre. So we can check it on our pcs.Strange thing, I tried it again, it works perfectly fine. But no txt still...
maater66241 said:Here it is (is this even the correct way of uploading?): https://drive.google.com/open?id=0Bw85eJtArTbCYXo3cXVyQWE4RzQ
EmielRegis said:maater66241 said:Here it is (is this even the correct way of uploading?): https://drive.google.com/open?id=0Bw85eJtArTbCYXo3cXVyQWE4RzQ
It compiled for me perfectly. So problem is indeed in your pc setup. Launch it as Administrator maybe?
maater66241 said:EmielRegis said:maater66241 said:Here it is (is this even the correct way of uploading?): https://drive.google.com/open?id=0Bw85eJtArTbCYXo3cXVyQWE4RzQ
It compiled for me perfectly. So problem is indeed in your pc setup. Launch it as Administrator maybe?
Running as admin gives me this:
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
Could Not Find C:\WINDOWS\system32\*.pyc
______________________________
Script processing has ended.
Press any key to exit. . .
maater66241 said:Here it is (is this even the correct way of uploading?): https://drive.google.com/open?id=0Bw85eJtArTbCYXo3cXVyQWE4RzQ
export_dir = "compiled/"
("oliveran_get_troop_class",
[
(store_script_param_1, ":troop_no"),
(assign, ":troop_class", -1),
(try_begin),
(this_or_next|eq, ":troop_no", "trp_vaegir_archer_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_nord_archer_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_swadian_crossbowman_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_rhodok_veteran_crossbowman_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_khergit_veteran_horse_archer_multiplayer"),
(eq, ":troop_no", "trp_sarranid_archer_multiplayer"),
(assign, ":troop_class", multi_troop_class_archer),
(else_try),
(this_or_next|eq, ":troop_no", "trp_swadian_man_at_arms_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_nord_scout_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_rhodok_horseman_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_sarranid_mamluke_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_khergit_lancer_multiplayer"),
(eq, ":troop_no", "trp_vaegir_horseman_multiplayer"),
(assign, ":troop_class", multi_troop_class_cavalry),
(else_try),
(this_or_next|eq, ":troop_no", "trp_swadian_infantry_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_sarranid_footman_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_khergit_infantry_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_rhodok_sergeant_multiplayer"),
(this_or_next|eq, ":troop_no", "trp_vaegir_spearman_multiplayer"),
(eq, ":troop_no", "trp_nord_veteran_multiplayer"),
(assign, ":troop_class", multi_troop_class_infantry),
(try_end),
(assign, reg1, ":troop_class"),
]),
("oliveran_class_limits",
[
(store_script_param_1, ":player_team"),
(store_script_param_2, ":troop_no"),
(assign, ":allowed", 0),
(assign, ":infantries", 0),
(assign, ":archers", 0),
(assign, ":cavalries", 0),
(assign, ":total_players", 0),
(try_for_players, ":player"),#Get total amount of players in each class
(player_is_active, ":player"),#Is active!
(player_get_agent_id, ":agent", ":player"),
(agent_is_human, ":agent"),
(player_get_team_no, ":player_same_team", ":player"),
(eq, ":player_team", ":player_same_team"),#Is in the same team
(call_script, "script_oliveran_get_troop_class", ":troop_no"),
(assign, ":troop_class", reg1),
(try_begin),
(try_begin),
(eq, ":troop_class", multi_troop_class_infantry),
(val_add, ":infantries", 1),
(else_try),
(eq, ":troop_class", multi_troop_class_archer),
(val_add, ":archers", 1),
(else_try),
(eq, ":troop_class", multi_troop_class_cavalry),
(val_add, ":cavalries", 1),
(try_end),
(val_add, ":total_players", 1),
(try_end),
(try_end),
(try_begin),
(lt, ":total_players", 6),#No classlimits for max 10 players
(assign, ":allowed", 1),
(else_try),#At least 6 players on the same team, 1 player in each class
(ge, ":total_players", 6),
(call_script, "script_oliveran_get_troop_class", ":troop_no"),#Get player's troop class
(try_begin),
(eq, reg1, multi_troop_class_infantry),
(try_begin),
(eq, ":infantries", 0),
(assign, ":allowed", 1),
(else_try),
(val_div, ":infantries", ":total_players"),
(val_mul, ":infantries", 100),#For %
(le, ":infantries", "$g_infantry_limit"),
(assign, ":allowed", 1),
(try_end),
(else_try),
(eq, reg1, multi_troop_class_archer),
(try_begin),
(eq, ":archers", 0),
(assign, ":allowed", 1),
(else_try),
(val_div, ":archers", ":total_players"),
(val_mul, ":archers", 100),#For %
(le, ":archers", "$g_archer_limit"),
(assign, ":allowed", 1),
(try_end),
(else_try),
(eq, reg1, multi_troop_class_cavalry),
(try_begin),
(eq, ":cavalries", 0),
(assign, ":allowed", 1),
(else_try),
(val_div, ":cavalries", ":total_players"),
(val_mul, ":cavalries", 100),#For %
(le, ":cavalries", "$g_cavalry_limit"),
(assign, ":allowed", 1),
(try_end),
(try_end),
(try_end),
(assign, reg0, ":allowed"),
]),
After 3 years of uni-level math, I still can't remember that you can get percentages the other way aroundNPC99 said:Try putting val_mul before val_div to get round integer maths.