Hello
I made a mistake in the script module_game_menus line 19307 is the last line in the file said.
(
"choose_ship",0,
"The following list contains all the ships anchored in this town. Select one to set sail, but make sure your crew meets the requirements.",
"none",
[ (assign, reg1, 0),
(assign, reg2, 0),
(assign, reg3, 0),
(assign, reg4, 0),
(assign, reg5, 0),
(try_for_parties, ":ship_no",),
(party_slot_eq, ":ship_no", slot_party_type, spt_ship),
(party_slot_eq, ":ship_no", slot_ship_center, "$current_town"),
(try_begin),
(eq, reg1, 0),
(assign, reg1, ":ship_no"),
(else_try),
(eq, reg2, 0),
(assign, reg2, ":ship_no"),
(else_try),
(eq, reg3, 0),
(assign, reg3, ":ship_no"),
(else_try),
(eq, reg4, 0),
(assign, reg4, ":ship_no"),
(else_try),
(eq, reg5, 0),
(assign, reg5, ":ship_no"),
(try_end),
(try_end),
],
[
("ship_1",[
(neq, reg1, 0),
(str_store_party_name, s1, reg1),
(str_store_string, s1, "@Choose {s1}"),
],"{s1}",
[
(assign, ":ship_no", reg1),
(try_begin),
(party_get_num_companions, reg6, "p_main_party"),
(is_between, reg6, 30, 91),
(party_get_num_companions, reg7, ":ship_no"),
(val_add, reg7, reg6),
(is_between, reg7, 30, 91),
(party_get_slot, ":num_ships", "$current_town", slot_town_has_ship),
(val_sub, ":num_ships", 1),
(party_set_slot, "$current_town", slot_town_has_ship, ":num_ships"),
(party_set_slot, ":ship_no", slot_ship_center, ship_player_sailing), #Player uses ship
(party_set_slot, "p_main_party", slot_town_has_ship, ":ship_no"), #Player tracking
(assign, "$g_player_icon_state", pis_ship),
(party_set_flags, "p_main_party", pf_is_ship, 1),
(party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
(party_set_position, "p_main_party", pos2),
(assign, "$g_main_ship_party", -1),
(change_screen_return),
(else_try),
(display_message,"@Your crew is either too small or too large."),
(try_end),
]),
("ship_2",[
(neq, reg2, 0),
(str_store_party_name, s1, reg2),
(str_store_string, s1, "@Choose {s1}"),
],"{s1}",
[
(assign, ":ship_no", reg2),
(try_begin),
(party_get_num_companions, reg6, "p_main_party"),
(is_between, reg6, 30, 91),
(party_get_num_companions, reg7, ":ship_no"),
(val_add, reg7, reg6),
(is_between, reg7, 30, 91),
(party_get_slot, ":num_ships", "$current_town", slot_town_has_ship),
(val_sub, ":num_ships", 1),
(party_set_slot, "$current_town", slot_town_has_ship, ":num_ships"),
(party_set_slot, ":ship_no", slot_ship_center, ship_player_sailing), #Player uses ship
(party_set_slot, "p_main_party", slot_town_has_ship, ":ship_no"), #Player tracking
(assign, "$g_player_icon_state", pis_ship),
(party_set_flags, "p_main_party", pf_is_ship, 1),
(party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
(party_set_position, "p_main_party", pos2),
(assign, "$g_main_ship_party", -1),
(change_screen_return),
(else_try),
(display_message,"@Your crew is either too small or too large."),
(try_end),
]),
("ship_3",[
(neq, reg3, 0),
(str_store_party_name, s1, reg3),
(str_store_string, s1, "@Choose {s1}"),
],"{s1}",
[
(assign, ":ship_no", reg3),
(try_begin),
(party_get_num_companions, reg6, "p_main_party"),
(is_between, reg6, 30, 91),
(party_get_num_companions, reg7, ":ship_no"),
(val_add, reg7, reg6),
(is_between, reg7, 30, 91),
(party_get_slot, ":num_ships", "$current_town", slot_town_has_ship),
(val_sub, ":num_ships", 1),
(party_set_slot, "$current_town", slot_town_has_ship, ":num_ships"),
(party_set_slot, ":ship_no", slot_ship_center, ship_player_sailing), #Player uses ship
(party_set_slot, "p_main_party", slot_town_has_ship, ":ship_no"), #Player tracking
(assign, "$g_player_icon_state", pis_ship),
(party_set_flags, "p_main_party", pf_is_ship, 1),
(party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
(party_set_position, "p_main_party", pos2),
(assign, "$g_main_ship_party", -1),
(change_screen_return),
(else_try),
(display_message,"@Your crew is either too small or too large."),
(try_end),
]),
("ship_4",[
(neq, reg4, 0),
(str_store_party_name, s1, reg4),
(str_store_string, s1, "@Choose {s1}"),
],"{s1}",
[
(assign, ":ship_no", reg4),
(try_begin),
(party_get_num_companions, reg6, "p_main_party"),
(is_between, reg6, 30, 91),
(party_get_num_companions, reg7, ":ship_no"),
(val_add, reg7, reg6),
(is_between, reg7, 30, 91),
(party_get_slot, ":num_ships", "$current_town", slot_town_has_ship),
(val_sub, ":num_ships", 1),
(party_set_slot, "$current_town", slot_town_has_ship, ":num_ships"),
(party_set_slot, ":ship_no", slot_ship_center, ship_player_sailing), #Player uses ship
(party_set_slot, "p_main_party", slot_town_has_ship, ":ship_no"), #Player tracking
(assign, "$g_player_icon_state", pis_ship),
(party_set_flags, "p_main_party", pf_is_ship, 1),
(party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
(party_set_position, "p_main_party", pos2),
(assign, "$g_main_ship_party", -1),
(change_screen_return),
(else_try),
(display_message,"@Your crew is either too small or too large."),
(try_end),
]),
("ship_5",[
(neq, reg5, 0),
(str_store_party_name, s1, reg5),
(str_store_string, s1, "@Choose {s1}"),
],"{s1}",
[
(assign, ":ship_no", reg5),
(try_begin),
(party_get_num_companions, reg6, "p_main_party"),
(is_between, reg6, 30, 91),
(party_get_num_companions, reg7, ":ship_no"),
(val_add, reg7, reg6),
(is_between, reg7, 30, 91),
(party_get_slot, ":num_ships", "$current_town", slot_town_has_ship),
(val_sub, ":num_ships", 1),
(party_set_slot, "$current_town", slot_town_has_ship, ":num_ships"),
(party_set_slot, ":ship_no", slot_ship_center, ship_player_sailing), #Player uses ship
(party_set_slot, "p_main_party", slot_town_has_ship, ":ship_no"), #Player tracking
(assign, "$g_player_icon_state", pis_ship),
(party_set_flags, "p_main_party", pf_is_ship, 1),
(party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
(party_set_position, "p_main_party", pos2),
(assign, "$g_main_ship_party", -1),
(change_screen_return),
(else_try),
(display_message,"@Your crew is either too small or too large."),
(try_end),
]),
("back_to_town_menu",[],"Head back.",
[
(jump_to_menu,"mnu_port"),
]),
#Floris End
"line 19307" ]
Another problem I have in row 15,653 (troop_slot_lt, "cur_troop" slot_troop_father, 0),
I guess that in another file is missing an entry. The question is where this might be?
插入代码块:
(try_begin), #NPC seed is the order in the faction
(lt, ":npc_seed", 8), #Senior lords
(assign, ":reputation", ":npc_seed"),
(store_random_in_range, ":age", 45, 64),
(store_random_in_range, ":father", 0, 6), #six possible fathers
(val_add, ":father", ":ancestor_seed"),
(troop_set_slot, ":cur_troop", slot_troop_father, ":father"), # Father is not active npc
#wife
(troop_set_slot, ":cur_troop", slot_troop_spouse, ":cur_lady"),
(troop_set_slot, ":cur_lady", slot_troop_spouse, ":cur_troop"),
(store_random_in_range, ":wife_reputation", 20, 26),
(try_begin),
(eq, ":wife_reputation", 20),
(assign, ":wife_reputation", lrep_conventional),
(try_end),
(troop_set_slot, ":cur_lady", slot_lord_reputation_type, ":wife_reputation"),
(store_random_in_range, ":lady_age", 40, ":age"),
(call_script, "script_init_troop_age", ":cur_lady", ":lady_age"),
(call_script, "script_add_lady_items", ":cur_lady"),
(val_add, ":cur_lady", 1),
Traceback (most recent call last):
File "process_init.py", line 2, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_global_variables.py", line 12, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
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 "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
File "process_items.py", line 66, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Exporting scene data...
Traceback (most recent call last):
File "process_scenes.py", line 15, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
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 "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_tableau_materials.py", line 8, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_presentations.py", line 8, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Exporting party_template data...
Traceback (most recent call last):
File "process_parties.py", line 4, in <module>
from module_game_menus import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_game_menus.py", line 19307
^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
File "process_scripts.py", line 4, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_mission_tmps.py", line 8, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_game_menus.py", line 5, in <module>
from module_game_menus import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_game_menus.py", line 19307
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "process_simple_triggers.py", line 5, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_dialogs.py", line 9, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Traceback (most recent call last):
File "process_global_variables_unused.py", line 3, in <module>
from process_operations import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\process_operations.py", line 20, in <module>
from module_scripts import *
File "C:\Programme\Steam\SteamApps\common\mountblade warband\Modules\Module System\src\module_scripts.py", line 15653, in <module>
(troop_slot_lt, ":cur_troop", slot_troop_father, 0),
NameError: name 'troop_slot_lt' is not defined
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
Thanks in advance for the help