
Traceback (most recent call last):
File "process_init.py", line 2, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "process_global_variables.py", line 8, in <module>
from module_presentations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_presentations.py", line 11, in <module>
from module_items import * # Added for Show all Items presentation.
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
File "process_map_icons.py", line 6, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting faction data...
Traceback (most recent call last):
File "process_items.py", line 4, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
File "process_scenes.py", line 15, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
File "process_scene_props.py", line 7, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "process_tableau_materials.py", line 8, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "process_presentations.py", line 4, in <module>
from module_presentations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_presentations.py", line 11, in <module>
from module_items import * # Added for Show all Items presentation.
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
File "process_parties.py", line 6, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
File "process_scripts.py", line 7, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "process_mission_tmps.py", line 8, in <module>
from process_operations import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce
ss_operations.py", line 13, in <module>
from module_items import *
File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul
e_items.py", line 2888
try:
^
SyntaxError: invalid syntax
Maybe the problem in module_items line 2880,the compiler has told it to you clearlyzidozido 说:when i compile the mod i get this error :
how to fix it插入代码块:Traceback (most recent call last): File "process_init.py", line 2, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_global_variables.py", line 8, in <module> from module_presentations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_presentations.py", line 11, in <module> from module_items import * # Added for Show all Items presentation. File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting strings... Exporting skills... Exporting tracks... Exporting animations... Exporting meshes... Exporting sounds... Exporting skins... Traceback (most recent call last): File "process_map_icons.py", line 6, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting faction data... Traceback (most recent call last): File "process_items.py", line 4, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting scene data... Traceback (most recent call last): File "process_scenes.py", line 15, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting troops data Exporting particle data... Traceback (most recent call last): File "process_scene_props.py", line 7, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_tableau_materials.py", line 8, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_presentations.py", line 4, in <module> from module_presentations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_presentations.py", line 11, in <module> from module_items import * # Added for Show all Items presentation. File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting party_template data... Traceback (most recent call last): File "process_parties.py", line 6, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting quest data... Exporting info_page data... Traceback (most recent call last): File "process_scripts.py", line 7, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_mission_tmps.py", line 8, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax
zidozido 说:when i compile the mod i get this error :
how to fix it插入代码块:Traceback (most recent call last): File "process_init.py", line 2, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_global_variables.py", line 8, in <module> from module_presentations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_presentations.py", line 11, in <module> from module_items import * # Added for Show all Items presentation. File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting strings... Exporting skills... Exporting tracks... Exporting animations... Exporting meshes... Exporting sounds... Exporting skins... Traceback (most recent call last): File "process_map_icons.py", line 6, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting faction data... Traceback (most recent call last): File "process_items.py", line 4, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting scene data... Traceback (most recent call last): File "process_scenes.py", line 15, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting troops data Exporting particle data... Traceback (most recent call last): File "process_scene_props.py", line 7, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_tableau_materials.py", line 8, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_presentations.py", line 4, in <module> from module_presentations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_presentations.py", line 11, in <module> from module_items import * # Added for Show all Items presentation. File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting party_template data... Traceback (most recent call last): File "process_parties.py", line 6, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Exporting quest data... Exporting info_page data... Traceback (most recent call last): File "process_scripts.py", line 7, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "process_mission_tmps.py", line 8, in <module> from process_operations import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\proce ss_operations.py", line 13, in <module> from module_items import * File "F:\Mount and Blade - Warband\Modules\Alpujarras Wars V.4 test\code\modul e_items.py", line 2888 try: ^ SyntaxError: invalid syntax
kalarhan 说:that was a example on how you can refactor your code, hide the new conditions and move on. It is not a solution that fits all sizes.
...
VC, as a example, uses a mix system for old + new quests, and by using a random value it lets the script select inside either range.
...
remember that Native code is just one way to go around doing things. And as you move to new situations (cases), you shouldn't be afraid to redesign it to fit your own requirements.
(store_sub, ":num_possible_old_quests", ":quests_end", ":quests_begin"),
(store_sub, ":num_possible_new_quests", ":quests_end_2", ":quests_begin_2"),
(store_add, ":num_possible_total_quests", ":num_possible_old_quests", ":num_possible_new_quests"),
# (store_add. ":num_possible_total_quests_plus_1",":num_possible_total_quests", 1),
(store_random_in_range, ":quest_no", 0, ":num_possible_total_quests"),
(try_begin),
(lt, ":quest_no", ":num_possible_old_quests"),
(store_random_in_range, ":quest_no", ":quests_begin", ":quests_end"),
(else_try),
(store_random_in_range, ":quest_no", ":quests_begin_2", ":quests_end_2"),
(try_end),

you asked for the whole file but its too big so i will post 10 lines before of my module.items.pykalarhan 说:check your module_items.py. You have not posted enough code (about 10 lines before and after the line with a error), but it seems you tried to add Python code inside your items array. That piece of could should go at the bottom of the file, after the last "]"
If that is not the case post the code here (again, at least 10 lines before it, and 10 after it, but preferable the entire file)
#fin mes cascos
#special
["civil6_caro", "Ropa", [("civil6",0)], itp_type_body_armor |itp_covers_legs,0,
31000 , weight(1.5)|abundance(100)|head_armor(0)|body_armor(8)|leg_armor(6)|difficulty(0) ,imodbits_cloth ],
["cofia1_caro", "Cofia", [("cofia1",0)], itp_type_head_armor ,0, 50000 , weight(1)
|abundance(100)|head_armor(8)|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ],
["light_lance_caro", "Light Lance", [("spear_b_2-75m",0)], itp_couchable|itp_type_polearm|itp_offset_lance| itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_cutting_spear,
45000 , weight(2.5)|difficulty(0)|spd_rtng(85) | weapon_length(175)|swing_damage(16 , blunt) | thrust_damage(30 , pierce),imodbits_polearm ],
#santiago
["caballo_santiago","Caballo con Barda", [("caballo_santiago",0)], itp_merchandise|itp_type_horse, 0, 8000,abundance(40)|hit_points(165)|body_armor(58)|difficulty(4)|
horse_speed(40)|horse_maneuver(44)|horse_charge(35)|horse_scale(112),imodbits_horse_basic|imodbit_champion, [], [fac_kingdom_1,fac_kingdom_2,fac_kingdom_3,fac_kingdom_4,fac_kingdom_5]],
["surcoat_santiago", "Cota de Malla con Sobreveste", [("surcoat_santiago",0)], itp_merchandise| itp_type_body_armor |itp_covers_legs ,0,
6000 , weight(25)|abundance(10)|head_armor(0)|body_armor(55)|leg_armor(26)|difficulty(7) ,imodbits_armor, [], [fac_kingdom_1,fac_kingdom_2,fac_kingdom_3,fac_kingdom_4,fac_kingdom_5]],
["escut_santiago", "Escudo", [("escut_santiago",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield, 800 , weight(3.5)
|hit_points(350)|body_armor(20)|spd_rtng(85)|shield_width(36)|shield_height(70),imodbits_shield, [], [fac_kingdom_1,fac_kingdom_2,fac_kingdom_3,fac_kingdom_4,fac_kingdom_5]],
#mas
["adarga10", "Adarga Pesada", [("adarga10",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield, 800 , weight(2.1)
|hit_points(350)|body_armor(12)|spd_rtng(82)|shield_width(90),imodbits_shield, [], [fac_kingdom_6]],
["adarga11", "Adarga Pesada", [("adarga11",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield, 800 , weight(2.1)
|hit_points(350)|body_armor(12)|spd_rtng(82)|shield_width(90),imodbits_shield, [], [fac_kingdom_6]],
#hispania1200newitems
["items_end", "Items End", [("shield_round_a",0)], 0, 0, 1, 0, 0],
]
# modmerger_start version=201 type=2
try:
component_name = "items"
var_set = { "items" : items }
from modmerger import modmerge
modmerge(var_set)
except:
raise
# modmerger_en
zidozido 说:you asked for the whole file but its too big so i will post 10 lines before of my module.items.py
Some of the people said to me that after this operation appear many bugskalarhan 说:
KnightV 说:Some of the people said to me that after this operation appear many bugs
if you have a question about the tool you should first try the tool thread. Also read the guide/tutorial the author provides, as it should explain how to setup and use it.zidozido 说:any one has experience using swycartographer-2014.05.22 ?

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...
Error: Unrecognized tag:muslimin object:muslim_servent
ERROR: Illegal Identifier:muslim_servent
Error: Unrecognized tag:ottmanin object:ottman_milltia
ERROR: Illegal Identifier:ottman_milltia
Error: Unrecognized tag:muslimin object:muslim_servent
ERROR: Illegal Identifier:muslim_servent
Error: Unrecognized tag:ottmanin object:ottman_horseman
ERROR: Illegal Identifier:ottman_horseman
Error: Unrecognized tag:ottmanin object:ottman_horseman
ERROR: Illegal Identifier:ottman_horseman
Error: Unrecognized tag:ottmanin object:ottman_horseman
ERROR: Illegal Identifier:ottman_horseman
Error: Unable to find object:trp_kingdom_pretender
ERROR: Illegal Identifier:trp_kingdom_pretender
Error: Unrecognized tag:knightin object:knight_7_1
ERROR: Illegal Identifier:knight_7_1
Error: Unrecognized tag:knightin object:knight_7_1
ERROR: Illegal Identifier:knight_7_1
Error: Unrecognized tag:knightin object:knight_7_1
ERROR: Illegal Identifier:knight_7_1
Error: Unrecognized tag:muslimin object:muslim_servent
ERROR: Illegal Identifier:muslim_servent
Error: Unrecognized tag:muslimin object:muslim_servent
ERROR: Illegal Identifier:muslim_servent
Error: Unable to find object:pt_kingdom_7_reinforcements_a
ERROR: Illegal Identifier:pt_kingdom_7_reinforcements_a
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. . .

by generate you mean write them in module.troops because if that what you mean i have already done it if it something else so how to generate them ?kalarhan 说: