add new scene in town

Users who are viewing this thread

Status
Not open for further replies.
  ("go_to_backstreets", #
      "Visit the backstreets.",
      [
          (assign,":town_backstreet", "scn_town_24_backstreet"),
          (jump_to_scene, ":town_backstreets"),
      ]),

This is what I think is code to go to another scene through a menu on a town.
However when I compile it. The compiler comes up with there is an error in game menus and then gives the whole file with no other explanation.
 
("go_to_backstreets", #
      "Visit the backstreets.",
      [
          (assign,":town_backstreet", "scn_town_24_backstreet"),
          (jump_to_scene, ":town_backstreet"),
      ]),


Cant do anything more without the whole error message.  Read kalarhan's post.
 
That didn't work but:
Here is my code I used some code from a tutorial for recruiting from towns and works fine.
[
      ("castle_castle",
      [       
        (party_slot_eq,"$current_town",slot_party_type, spt_castle),       
       
        (eq, "$sneaked_into_town", 0),       
       
        (str_clear, s1),
        (try_begin),
          (store_faction_of_party, ":center_faction", "$current_town"),
          (faction_slot_eq, ":center_faction", slot_faction_ai_state, sfai_feast),
          (faction_slot_eq, ":center_faction", slot_faction_ai_object, "$current_town"),
          (str_store_string, s1, "str__join_the_feast"),
        (try_end),
        ],"Go to the Lord's hall{s1}.",
      [         
          (try_begin),
            (this_or_next|eq, "$all_doors_locked", 1),
            (eq, "$sneaked_into_town", 1),         
            (display_message,"str_door_locked",0xFFFFAAAA),
          (else_try),
    (this_or_next|neq, "$players_kingdom", "$g_encountered_party_faction"),
    (neg|troop_slot_ge, "trp_player", slot_troop_renown, 50),
(neg|troop_slot_ge, "trp_player", slot_troop_renown, 125),
(neq, "$g_player_eligible_feast_center_no", "$current_town"),

(faction_slot_eq, "$g_encountered_party_faction", slot_faction_ai_state, sfai_feast),
(faction_slot_eq, "$g_encountered_party_faction", slot_faction_ai_object, "$g_encountered_party"),

(neg|check_quest_active, "qst_wed_betrothed"),
(neg|check_quest_active, "qst_wed_betrothed_female"),

(neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin), #Married players always make the cut

(jump_to_menu, "mnu_cannot_enter_court"),
  (else_try),
            (assign, "$town_entered", 1),
            (call_script, "script_enter_court", "$current_town"),
          (try_end),
        ], "Door to the castle."),

    ("go_to_backstreets",
      "Visit the backstreets.",
      [
        (assign,":town_backstreet", "scn_town_24_backstreet"),
        (jump_to_scene, ":town_backstreet"),
      ]),


   

    ("recruit_nobles",[(is_between, "$current_town",
        castles_begin, castles_end),      (call_script,                                         
      "script_cf_town_castle_recruit_volunteers_cond"),]
      ,"Recruit Nobles.",
      [
        (try_begin),
          (call_script, "script_cf_enter_center_location_bandit_check"),
        (else_try),
          (jump_to_menu, "mnu_recruit_nobles"),
        (try_end),
        ]),

    ("recruit_normals",[(is_between, "$current_town",
        towns_begin, towns_end),      (call_script,
      "script_cf_town_recruit_volunteers_cond"),] #notice that this part calls on the id given in the first part of the split troop trees tutorial
      ,"Recruit Volunteers.",
      [
        (try_begin),
          (call_script, "script_cf_enter_center_location_bandit_check"),
        (else_try),
          (jump_to_menu, "mnu_recruit_normales"),
        (try_end),
        ]),

     

Here is the error message:
Error in game menu:
('town', 4352, '{s10} {s14}^{s11}{s12}{s13}', 'none', [4, (31, '$sneaked_into_town', 1), (1, 'script_music_set_situation_with_culture', 16384), 5, (1, 'script_music_set_situation_with_culture', 65536), 3, (2202, '$current_town'), (1, 'script_update_center_recon_notes', '$current_town'), (2133, '$g_defending_against_siege', 0), (2319, 3), (1680, ':besieger_party', '$current_town'), (2204, ':encountered_faction', '$g_encountered_party'), (2190, ':faction_relation', ':encountered_faction', 'fac_player_supporters_faction'), 4, (32, ':besieger_party', 0), (30, ':faction_relation', 0), (2204, ':besieger_party_faction', ':besieger_party'), (2190, ':besieger_party_relation', ':besieger_party_faction', 'fac_player_supporters_faction'), (2147483678L, ':besieger_party_relation', 0), (2133, '$g_defending_against_siege', 1), (2133, '$g_siege_first_encounter', 1), (2060, 'mnu_siege_started_defender'), 3, 4, (33, '$g_encountered_party', 'p_town_1', 'p_castle_1'), (2121, ':encountered_town_no', '$g_encountered_party', 'p_town_1'), (371, (26,), ':encountered_town_no', 1), (2133, ':there_are_villages_not_visited', 0), (6, ':cur_town', 'p_town_1', 'p_castle_1'), (2121, ':encountered_town_no', ':cur_town', 'p_town_1'), (370, ':town_is_visited', (26,), ':encountered_town_no'), (31, ':town_is_visited', 0), (2133, ':there_are_villages_not_visited', 1), 3, 4, (31, ':there_are_villages_not_visited', 0), (372, (26,)), 3, 3, (2133, '$qst_collect_taxes_currently_collecting', 0), 4, (32, '$quest_auto_menu', 0), (2060, '$quest_auto_menu'), (2133, '$quest_auto_menu', 0), 3, 4, (31, '$g_town_assess_trade_goods_after_rest', 1), (2133, '$g_town_assess_trade_goods_after_rest', 0), (2060, 'mnu_town_trade_assessment'), 3, (2133, '$talk_context', 0), (2133, '$all_doors_locked', 0), 4, (31, '$g_town_visit_after_rest', 1), (2133, '$g_town_visit_after_rest', 0), (2133, '$town_entered', 1), 3, 4, (31, '$g_leave_town', 1), (2133, '$g_leave_town', 0), (2133, '$g_permitted_to_center', 0), 1301, 2040, 3, (2330, 2, '$current_town'), (521, ':center_lord', '$current_town', 7), (2204, ':center_faction', '$current_town'), (2335, 9, ':center_faction'), 4, (30, ':center_lord', 0), (2322, 8, ':center_lord'), (2320, 7, '@{s8} of {s9}'), 3, 4, (541, '$current_town', 0, 3), (2320, 60, 2), (521, ':prosperity', '$current_town', 50), 4, (30, '$cheat_mode', 1), (2133, 72057594037927940L, ':prosperity'), (1106, '@{!}DEBUG -- Prosperity: {reg4}'), 3, (2123, ':str_id', ':prosperity', 10), (2110, ':str_id', 9), (2105, ':str_id', 'str_town_prosperity_0'), (2320, 10, ':str_id'), (2123, ':str_id', ':prosperity', 20), (2110, ':str_id', 4), (2105, ':str_id', 'str_town_alt_prosperity_0'), (2320, 14, ':str_id'), 5, (2319, 14), (2320, 10, '@You are at {s2}.'), 3, 4, (541, '$current_town', 0, 2), 4, (31, ':center_lord', 'trp_player'), (2320, 11, '@ Your own banner flies over the castle gate.'), 5, (32, ':center_lord', -1), (540, ':center_lord', 30, 'trp_player'), (2320, 11, 'str__you_see_the_banner_of_your_wifehusband_s7_over_the_castle_gate'), 5, (30, ':center_lord', 0), (2320, 11, '@ You see the banner of {s7} over the castle gate.'), 5, (2320, 11, '@ This castle has no garrison.'), 3, 5, 4, (31, ':center_lord', 'trp_player'), (2320, 11, '@ Your own banner flies over the town gates.'), 5, (32, ':center_lord', -1), (540, ':center_lord', 30, 'trp_player'), (2320, 11, 'str__the_banner_of_your_wifehusband_s7_flies_over_the_town_gates'), 5, (30, ':center_lord', 0), (2320, 11, '@ You see the banner of {s7} over the town gates.'), 5, (2320, 11, '@ This town has no garrison.'), 3, 3, (2319, 12), 4, (541, '$current_town', 0, 3), (521, ':center_relation', '$current_town', 26), (1, 'script_describe_center_relation_to_s3', ':center_relation'), (2133, 72057594037927945L, ':center_relation'), (2320, 12, '@{!} {s3} ({reg9}).'), 3, (2319, 13), 4, (32, '$entry_to_town_forbidden', 0), (2320, 13, '@ You have successfully sneaked in.'), 5, (542, ':center_faction', 4, 6), (542, ':center_faction', 5, '$current_town'), (2320, 13, 'str__the_lord_is_currently_holding_a_feast_in_his_hall'), 3, 4, (2271, 72057594037927948L), (30, 72057594037927948L, 5), (2147483678L, 72057594037927948L, 21), (2133, '$town_nighttime', 0), 5, (2133, '$town_nighttime', 1), (541, '$current_town', 0, 3), (2320, 13, 'str_town_nighttime'), 3, 4, (561, '$current_town', 156, 1), 2147485921L, (501, '$current_town', 156, 1), (2320, 13, '@{s13} A tournament will be held here soon.'), 3, (2133, '$castle_undefended', 0), (1601, ':castle_garrison_size', 'p_collective_enemy'), 4, (31, ':castle_garrison_size', 0), (2133, '$castle_undefended', 1), 3, (1, 'script_set_town_picture')], [('castle_castle', [(541, '$current_town', 0, 2), (31, '$sneaked_into_town', 0), (2319, 1), 4, (2204, ':center_faction', '$current_town'), (542, ':center_faction', 4, 6), (542, ':center_faction', 5, '$current_town'), (2320, 1, 'str__join_the_feast'), 3], "Go to the Lord's hall{s1}.", [4, (1073741855, '$all_doors_locked', 1), (31, '$sneaked_into_town', 1), (1106, 'str_door_locked', 4294945450L), 5, (3221225503L, '$players_kingdom', '$g_encountered_party_faction'), (2147484208L, 'trp_player', 7, 50), (2147484208L, 'trp_player', 7, 125), (2147483679L, '$g_player_eligible_feast_center_no', '$current_town'), (542, '$g_encountered_party_faction', 4, 6), (542, '$g_encountered_party_faction', 5, '$g_encountered_party'), (2147483848L, 'qst_wed_betrothed'), (2147483848L, 'qst_wed_betrothed_female'), (2147484208L, 'trp_player', 30, 'trp_npc1'), (2060, 'mnu_cannot_enter_court'), 5, (2133, '$town_entered', 1), (1, 'script_enter_court', '$current_town'), 3], 'Door to the castle.'), ('go_to_backstreets', 'Visit the backstreets.', [(2133, ':town_backstreet', 'scn_town_24_backstreet'), (1910, ':town_backstreet')]), ('recruit_nobles', [(33, '$current_town', 'p_castle_1', 'p_village_1'), (1, 'script_cf_town_castle_recruit_volunteers_cond')], 'Recruit Nobles.', [4, (1, 'script_cf_enter_center_location_bandit_check'), 5, (2060, 'mnu_recruit_nobles'), 3]), ('recruit_normals', [(33, '$current_town', 'p_town_1', 'p_castle_1'), (1, 'script_cf_town_recruit_volunteers_cond')], 'Recruit Volunteers.', [4, (1, 'script_cf_enter_center_location_bandit_check'), 5, (2060, 'mnu_recruit_normales'), 3]), ('join_tournament', [2147485921L, (561, '$current_town', 156, 1)], 'Join the tournament.', [(1, 'script_fill_tournament_participants_troop', '$current_town', 1), (2133, '$g_tournament_cur_tier', 0), (2133, '$g_tournament_player_team_won', -1), (2133, '$g_tournament_bet_placed', 0), (2133, '$g_tournament_bet_win_amount', 0), (2133, '$g_tournament_last_bet_tier', -1), (2133, '$g_tournament_next_num_teams', 0), (2133, '$g_tournament_next_team_size', 0), (2060, 'mnu_town_tournament')]), ('town_castle', [(541, '$current_town', 0, 3), (31, '$entry_to_town_forbidden', 0), (2319, 1), 4, (2204, ':center_faction', '$current_town'), (542, ':center_faction', 4, 6), (542, ':center_faction', 5, '$current_town'), (2320, 1, 'str__join_the_feast'), 3], 'Go to the castle{s1}.', [4, (1073741855, '$all_doors_locked', 1), (31, '$sneaked_into_town', 1), (1106, 'str_door_locked', 4294945450L), 5, (3221225503L, '$players_kingdom', '$g_encountered_party_faction'), (2147484208L, 'trp_player', 7, 50), (2147484208L, 'trp_player', 7, 125), (2147483679L, '$g_player_eligible_feast_center_no', '$current_town'), (542, '$g_encountered_party_faction', 4, 6), (542, '$g_encountered_party_faction', 5, '$g_encountered_party'), (2147483848L, 'qst_wed_betrothed'), (2147483848L, 'qst_wed_betrothed_female'), (2147484208L, 'trp_player', 30, 'trp_npc1'), (2060, 'mnu_cannot_enter_court'), 5, (2133, '$town_entered', 1), (1, 'script_enter_court', '$current_town'), 3], 'Door to the castle.'), ('town_center', [(541, '$current_town', 0, 3), (1073741855, '$entry_to_town_forbidden', 0), (31, '$sneaked_into_town', 1)], 'Take a walk around the streets.', [4, (31, '$talk_context', 1:cool:, (2133, '$talk_context', 19), (2133, '$g_mt_mode', 3), (2204, ':town_faction', '$current_town'), (522, ':tier_2_troop', ':town_faction', 43), (522, ':tier_3_troop', ':town_faction', 43), (522, ':tier_4_troop', ':town_faction', 44), (521, ':town_scene', '$current_town', 10), (1261, ':town_scene'), 1262, 4, (521, ':last_nearby_fire_time', '$current_town', 240), (2270, ':cur_time'), (2120, ':fire_finish_time', ':last_nearby_fire_time', 4), (2147483681L, ':cur_time', ':last_nearby_fire_time', ':fire_finish_time'), (2271, ':cur_day_hour'), 4, (30, ':cur_day_hour', 6), (2147483678L, ':cur_day_hour', 22), (1264, 25, ':tier_2_troop', 2), (1264, 26, ':tier_2_troop', 1), (1264, 27, ':tier_3_troop', 2), (1264, 28, ':tier_4_troop', 1), 5, (1264, 25, ':tier_2_troop', 1), (1264, 26, ':tier_2_troop', 1), (1264, 27, ':tier_3_troop', 1), (1264, 28, ':tier_4_troop', 1), 3, 5, (2271, ':cur_day_hour'), 4, (30, ':cur_day_hour', 6), (2147483678L, ':cur_day_hour', 22), (1264, 25, ':tier_2_troop', 1), (1264, 26, ':tier_2_troop', 0), (1264, 27, ':tier_3_troop', 1), (1264, 28, ':tier_4_troop', 0), 5, (1264, 25, ':tier_2_troop', 1), (1264, 26, ':tier_2_troop', 0), (1264, 27, ':tier_3_troop', 0), (1264, 28, ':tier_4_troop', 0), 3, 3, (1911, 'mt_town_center'), (1910, ':town_scene'), 2048, 5, (2133, '$talk_context', 0), (1, 'script_cf_enter_center_location_bandit_check'), 5, (521, ':town_scene', '$current_town', 10), (1261, ':town_scene'), 1262, (2133, '$g_mt_mode', 0), (2204, ':town_faction', '$current_town'), 4, (2147483679L, ':town_faction', 'fac_player_supporters_faction'), (522, ':troop_prison_guard', '$g_encountered_party_faction', 51), (522, ':troop_castle_guard', '$g_encountered_party_faction', 52), (522, ':tier_2_troop', ':town_faction', 42), (522, ':tier_3_troop', ':town_faction', 43), 5, (521, ':town_original_faction', '$current_town', 61), (522, ':troop_prison_guard', ':town_original_faction', 51), (522, ':troop_castle_guard', ':town_original_faction', 52), (522, ':tier_2_troop', ':town_original_faction', 42), (522, ':tier_3_troop', ':town_original_faction', 43), 3, 4, (521, ':last_nearby_fire_time', '$current_town', 240), (2270, ':cur_time'), (2120, ':fire_finish_time', ':last_nearby_fire_time', 4), (2147483681L, ':cur_time', ':last_nearby_fire_time', ':fire_finish_time'), (1263, 23, ':troop_castle_guard'), 3, (1263, 24, ':troop_prison_guard'), 4, (32, ':tier_2_troop', 0), (2133, 72057594037927936L, ':tier_3_troop'), (2133, 72057594037927937L, ':tier_3_troop'), (2133, 72057594037927938L, ':tier_2_troop'), (2133, 72057594037927939L, ':tier_2_troop'), 5, (2133, 72057594037927936L, 'trp_vaegir_infantry'), (2133, 72057594037927937L, 'trp_vaegir_infantry'), (2133, 72057594037927938L, 'trp_vaegir_archer'), (2133, 72057594037927939L, 'trp_vaegir_footman'), 3, (2134, 0, 4), 4, (521, ':last_nearby_fire_time', '$current_town', 240), (2270, ':cur_time'), (2120, ':fire_finish_time', ':last_nearby_fire_time', 4), (2147483681L, ':cur_time', ':last_nearby_fire_time', ':fire_finish_time'), (1263, 25, 72057594037927936L), (1263, 26, 72057594037927937L), (1263, 27, 72057594037927938L), (1263, 28, 72057594037927939L), 3, (521, ':spawned_troop', '$current_town', 22), (1263, 9, ':spawned_troop'), (521, ':spawned_troop', '$current_town', 21), (1263, 10, ':spawned_troop'), (521, ':spawned_troop', '$current_town', 25), (1263, 11, ':spawned_troop'), (521, ':spawned_troop', '$current_town', 24), (1263, 12, ':spawned_troop'), (1, 'script_init_town_walkers'), (1911, 'mt_town_center'), (2133, ':eek:verride_state', 256), 4, (31, '$sneaked_into_town', 1), (2133, ':eek:verride_state', 447), 3, (1940, 'mt_town_center', 0, ':eek:verride_state'), (1940, 'mt_town_center', 2, ':eek:verride_state'), (1940, 'mt_town_center', 3, ':eek:verride_state'), (1940, 'mt_town_center', 4, ':eek:verride_state'), (1940, 'mt_town_center', 5, ':eek:verride_state'), (1940, 'mt_town_center', 6, ':eek:verride_state'), (1940, 'mt_town_center', 7, ':eek:verride_state'), 4, (31, '$town_entered', 0), (2133, '$town_entered', 1), (31, '$town_nighttime', 0), (1912, 1), 3, (1910, ':town_scene'), 2048, 3], 'Door to the town center.'), ('town_tavern', [(541, '$current_town', 0, 3), (1073741855, '$entry_to_town_forbidden', 0), (31, '$sneaked_into_town', 1)], 'Visit the tavern.', [4, (31, '$all_doors_locked', 1), (1106, 'str_door_locked', 4294945450L), 5, (1, 'script_cf_enter_center_location_bandit_check'), 5, (2133, '$town_entered', 1), (1911, 'mt_town_default'), (1940, 'mt_town_default', 0, 256), 4, (31, '$sneaked_into_town', 1), (1940, 'mt_town_default', 0, 447), 3, (521, ':cur_scene', '$current_town', 13), (1910, ':cur_scene'), (503, ':cur_scene', 0, 1), (2133, '$talk_context', 14), (1, 'script_initialize_tavern_variables'), (2136, ':randomize_attacker_placement', 0, 4), (1261, ':cur_scene'), 1262, (2133, ':cur_entry', 17), 4, (31, '$cheat_mode', 1), (520, ':drunk_location', 'trp_belligerent_drunk', 12), 4, (31, '$cheat_mode', 0), 5, (33, ':drunk_location', 'p_town_1', 'p_salt_mine'), (2330, 4, ':drunk_location'), (1106, 'str_belligerent_drunk_in_s4'), 5, (1106, 'str_belligerent_drunk_not_found'), 3, (520, ':promoter_location', 'trp_fight_promoter', 12), 4, (31, '$cheat_mode', 0), 5, (33, ':promoter_location', 'p_town_1', 'p_salt_mine'), (2330, 4, ':promoter_location'), (1106, 'str_roughlooking_character_in_s4'), 5, (1106, 'str_roughlooking_character_not_found'), 3, 3, 4, (2270, ':hours'), (2121, ':hours_since_last_attempt', ':hours', '$g_last_assassination_attempt_time'), (32, ':hours_since_last_attempt', 16:cool:, (6, ':lord', 'trp_npc1', 'trp_knight_1_1_wife'), (540, ':lord', 52, 5), (520, ':led_party', ':lord', 10), (132, ':led_party'), (1694, ':led_party_attached', ':led_party'), (31, ':led_party_attached', '$g_encountered_party'), (1, 'script_troop_get_relation_with_troop', 'trp_player', ':lord'), (2147483678L, 72057594037927936L, -20), (2133, '$g_last_assassination_attempt_time', ':hours'), (500, 'trp_hired_assassin', 12, '$g_encountered_party'), 3, 3, 4, (31, ':randomize_attacker_placement', 0), (1, 'script_setup_tavern_attacker', ':cur_entry'), (2105, ':cur_entry', 1), 3, 4, (31, 1, 0), (540, 'trp_fight_promoter', 12, '$current_town'), (1263, ':cur_entry', 'trp_fight_promoter'), (2105, ':cur_entry', 1), 3, (521, ':mercenary_troop', '$current_town', 90), (521, ':mercenary_amount', '$current_town', 91), 4, (32, ':mercenary_troop', 0), (32, ':mercenary_amount', 0), (1263, ':cur_entry', ':mercenary_troop'), (2105, ':cur_entry', 1), 3, 4, (31, ':randomize_attacker_placement', 1), (1, 'script_setup_tavern_attacker', ':cur_entry'), (2105, ':cur_entry', 1), 3, (6, ':companion_candidate', 'trp_npc1', 'trp_kingdom_1_lord'), (540, ':companion_candidate', 2, 0), (540, ':companion_candidate', 12, '$current_town'), (2147484208L, ':companion_candidate', 8, 'p_town_1'), (1263, ':cur_entry', ':companion_candidate'), (2105, ':cur_entry', 1), 3, 4, (31, ':randomize_attacker_placement', 2), (1, 'script_setup_tavern_attacker', ':cur_entry'), (2105, ':cur_entry', 1), 3, 4, (521, ':ransom_broker', '$current_town', 95), (32, ':ransom_broker', 0), (2133, 72057594037927936L, ':ransom_broker'), (2133, 72057594037927937L, '$current_town'), (1263, ':cur_entry', ':ransom_broker'), (2105, ':cur_entry', 1), 5, (33, '$g_talk_troop', 'trp_ransom_broker_1', 'trp_tavern_traveler_1'), (2120, ':alternative_town', '$current_town', 9), 4, (30, ':alternative_town', 'p_castle_1'), (2106, ':alternative_town', 22), 3, 4, (31, '$cheat_mode', 1), (2330, 3, '$current_town'), (2330, 4, ':alternative_town'), (1106, '@{!}DEBUG - Current town is {s3}, but also checking {s4}'), 3, (521, ':ransom_broker', ':alternative_town', 95), (32, ':ransom_broker', 0), (1263, ':cur_entry', ':ransom_broker'), (2105, ':cur_entry', 1), 3, 4, (521, ':tavern_traveler', '$current_town', 96), (32, ':tavern_traveler', 0), (1263, ':cur_entry', ':tavern_traveler'), (2105, ':cur_entry', 1), 3, 4, (521, ':tavern_minstrel', '$current_town', 99), (32, ':tavern_minstrel', 0), (1263, ':cur_entry', ':tavern_minstrel'), (2105, ':cur_entry', 1), 5, (2120, ':alternative_town', '$current_town', 9), 4, (30, ':alternative_town', 'p_castle_1'), (2106, ':alternative_town', 22), 3, (521, ':tavern_minstrel', ':alternative_town', 99), (32, ':tavern_minstrel', 0), (1263, ':cur_entry', ':tavern_minstrel'), (2105, ':cur_entry', 1), 3, 4, (521, ':tavern_bookseller', '$current_town', 9:cool:, (32, ':tavern_bookseller', 0), (1263, ':cur_entry', ':tavern_bookseller'), (2105, ':cur_entry', 1), 3, 4, (31, ':randomize_attacker_placement', 3), (1, 'script_setup_tavern_attacker', ':cur_entry'), (2105, ':cur_entry', 1), 3, 4, (2147483848L, 'qst_eliminate_bandits_infesting_village'), (2147483848L, 'qst_deal_with_bandits_at_lords_village'), (2133, ':end_cond', 'p_salt_mine'), (6, ':cur_village', 'p_village_1', ':end_cond'), (541, ':cur_village', 120, '$current_town'), (561, ':cur_village', 39, 1), (2147484189L, ':cur_village', 7, 'trp_player'), (1263, ':cur_entry', 'trp_farmer_from_bandit_village'), (2105, ':cur_entry', 1), (2133, ':end_cond', 0), 3, 3, 4, (31, '$g_starting_town', '$current_town'), (3221225673L, 'qst_collect_men'), (3221225673L, 'qst_learn_where_merchant_brother_is'), (3221225673L, 'qst_save_relative_of_merchant'), (3221225673L, 'qst_save_town_from_bandits'), (31, '$g_do_one_more_meeting_with_merchant', 1), (2133, ':troop_of_merchant', 0), 4, (31, '$g_encountered_party_faction', 'fac_kingdom_1'), (2133, ':troop_of_merchant', 'trp_swadian_merchant'), 5, (31, '$g_encountered_party_faction', 'fac_kingdom_2'), (2133, ':troop_of_merchant', 'trp_vaegir_merchant'), 5, (31, '$g_encountered_party_faction', 'fac_kingdom_3'), (2133, ':troop_of_merchant', 'trp_khergit_merchant'), 5, (31, '$g_encountered_party_faction', 'fac_kingdom_4'), (2133, ':troop_of_merchant', 'trp_nord_merchant'), 5, (31, '$g_encountered_party_faction', 'fac_kingdom_5'), (2133, ':troop_of_merchant', 'trp_rhodok_merchant'), 5, (31, '$g_encountered_party_faction', 'fac_kingdom_6'), (2133, ':troop_of_merchant', 'trp_sarranid_merchant'), 3, (32, ':troop_of_merchant', 0), (1263, ':cur_entry', ':troop_of_merchant'), (2105, ':cur_entry', 1), 3, 2048, 3], 'Door to the tavern.'), ('town_merchant', [(541, '$current_town', 0, 3), (31, 1, 0), (31, '$town_nighttime', 0), (1073741855, '$entry_to_town_forbidden', 0), (31, '$sneaked_into_town', 1)], 'Speak with the merchant.', [4, (1073741855, '$all_doors_locked', 1), (31, '$town_nighttime', 1), (1106, 'str_door_locked', 4294945450L), 5, (2133, '$town_entered', 1), (1911, 'mt_town_default'), (1940, 'mt_town_default', 0, 256), 4, (31, '$sneaked_into_town', 1), (1940, 'mt_town_default', 0, 447), 3, (521, ':cur_scene', '$current_town', 14), (1910, ':cur_scene'), (503, ':cur_scene', 0, 1), 2048, 3], 'Door to the shop.'), ('town_arena', [(541, '$current_town', 0, 3), (31, '$sneaked_into_town', 0)], 'Enter the arena.', [4, (1073741855, '$all_doors_locked', 1), (31, '$town_nighttime', 1), (1106, 'str_door_locked', 4294945450L), 5, (2133, '$g_mt_mode', 2), (2133, '$town_entered', 1), (1911, 'mt_arena_melee_fight'), (521, ':arena_scene', '$current_town', 16), (1261, ':arena_scene'), 1262, (1263, 43, 'trp_veteran_fighter'), (1263, 44, 'trp_hired_blade'), (1912, 50), (1910, ':arena_scene'), (503, ':arena_scene', 0, 1), 2048, 3], 'Door to the arena.'), ('town_dungeon', [(31, 1, 0)], 'Never: Enter the prison.', [4, (31, '$talk_context', 1:cool:, (32, '$g_main_attacker_agent', 0), (2147485350L, '$g_main_attacker_agent'), (1718, ':agent_type', '$g_main_attacker_agent'), 4, (31, '$g_encountered_party_faction', 'fac_player_supporters_faction'), (521, ':prison_guard_faction', '$current_town', 61), 5, (2133, ':prison_guard_faction', '$g_encountered_party_faction'), 3, (542, ':prison_guard_faction', 51, ':agent_type'), (1, 'script_deduct_casualties_from_garrison'), (1, 'script_enter_dungeon', '$current_town', 'mt_visit_town_castle'), 5, (31, '$all_doors_locked', 1), (1106, 'str_door_locked', 4294945450L), 5, (1073742365, '$current_town', 7, 'trp_player'), (31, '$g_encountered_party_faction', '$players_kingdom'), (2133, '$town_entered', 1), (1, 'script_enter_dungeon', '$current_town', 'mt_visit_town_castle'), 5, (1106, 'str_door_locked', 4294945450L), 3], 'Door to the dungeon.'), ('recruit_volunteers', [(1, 'script_cf_village_recruit_volunteers_cond')], 'Recruit Volunteers.', [4, (1, 'script_cf_enter_center_location_bandit_check'), 5, (2060, 'mnu_recruit_volunteers'), 3]), ('castle_inspect', [(541, '$current_town', 0, 2)], 'Take a walk around the courtyard.', [4, (31, '$talk_context', 1:cool:, (2133, '$talk_context', 19), (521, ':cur_castle_exterior', '$current_town', 10), (1261, ':cur_castle_exterior'), 1262, (2133, ':guard_no', 40), (1650, ':num_stacks', '$g_encountered_party'), (6, ':troop_iterator', 0, ':num_stacks'), (521, ':last_nearby_fire_time', '$current_town', 240), (2270, ':cur_time'), (2120, ':fire_finish_time', ':last_nearby_fire_time', 4), (1073741855, ':guard_no', 40), (2147483681L, ':cur_time', ':last_nearby_fire_time', ':fire_finish_time'), (2147483678L, ':guard_no', 47), (1652, ':cur_troop_id', '$g_encountered_party', ':troop_iterator'), (2147485155L, ':cur_troop_id'), (1653, ':stack_size', '$g_encountered_party', ':troop_iterator'), (1654, ':num_wounded', '$g_encountered_party', ':troop_iterator'), (2106, ':stack_size', ':num_wounded'), (32, ':stack_size', 0), (1655, ':troop_dna', '$g_encountered_party', ':troop_iterator'), (1263, ':guard_no', ':cur_troop_id', ':troop_dna'), (2105, ':guard_no', 1), 3, (1263, 7, '$g_player_troop'), (1911, 'mt_castle_visit'), (1910, ':cur_castle_exterior'), 2048, 5, (2133, '$talk_context', 0), (2133, '$g_mt_mode', 0), (521, ':cur_castle_exterior', '$current_town', 10), (1261, ':cur_castle_exterior'), 1262, 4, (2147483679L, '$g_encountered_party_faction', 'fac_player_supporters_faction'), (522, ':troop_prison_guard', '$g_encountered_party_faction', 51), 5, (521, ':town_original_faction', '$current_town', 61), (522, ':troop_prison_guard', ':town_original_faction', 51), 3, (1263, 24, ':troop_prison_guard'), (2133, ':guard_no', 40), (1650, ':num_stacks', '$g_encountered_party'), (6, ':troop_iterator', 0, ':num_stacks'), (521, ':last_nearby_fire_time', '$current_town', 240), (2270, ':cur_time'), (2120, ':fire_finish_time', ':last_nearby_fire_time', 4), (2147483681L, ':cur_time', ':fire_finish_time', ':last_nearby_fire_time'), (2147483678L, ':guard_no', 47), (1652, ':cur_troop_id', '$g_encountered_party', ':troop_iterator'), (2147485155L, ':cur_troop_id'), (1653, ':stack_size', '$g_encountered_party', ':troop_iterator'), (1654, ':num_wounded', '$g_encountered_party', ':troop_iterator'), (2106, ':stack_size', ':num_wounded'), (32, ':stack_size', 0), (1655, ':troop_dna', '$g_encountered_party', ':troop_iterator'), (1263, ':guard_no', ':cur_troop_id', ':troop_dna'), (2105, ':guard_no', 1), 3, 4, (31, '$town_entered', 0), (2133, '$town_entered', 1), 3, (1912, 1), (2133, ':eek:verride_state', 256), 4, (31, '$sneaked_into_town', 1), (2133, ':eek:verride_state', 447), 3, (1911, 'mt_castle_visit'), (1940, 'mt_castle_visit', 0, ':eek:verride_state'), (1940, 'mt_castle_visit', 1, ':eek:verride_state'), (1940, 'mt_castle_visit', 2, ':eek:verride_state'), (1940, 'mt_castle_visit', 3, ':eek:verride_state'), (1940, 'mt_castle_visit', 4, ':eek:verride_state'), (1940, 'mt_castle_visit', 5, ':eek:verride_state'), (1940, 'mt_castle_visit', 6, ':eek:verride_state'), (1940, 'mt_castle_visit', 7, ':eek:verride_state'), (1910, ':cur_castle_exterior'), 2048, 3], 'To the castle courtyard.'), ('town_enterprise', [(541, '$current_town', 0, 3), (521, ':item_produced', '$current_town', 137), (32, ':item_produced', 1), (31, '$entry_to_town_forbidden', 0), (1, 'script_get_enterprise_name', ':item_produced'), (2320, 3, 72057594037927936L)], 'Visit your {s3}.', [(2121, ':town_order', '$current_town', 'p_town_1'), (2120, ':master_craftsman', 'trp_town_1_master_craftsman', ':town_order'), (521, ':item_produced', '$current_town', 137), (2133, ':enterprise_scene', 'scn_enterprise_mill'), 4, (31, ':item_produced', 'itm_bread'), (2133, ':enterprise_scene', 'scn_enterprise_mill'), 5, (31, ':item_produced', 'itm_ale'), (2133, ':enterprise_scene', 'scn_enterprise_brewery'), 5, (31, ':item_produced', 'itm_oil'), (2133, ':enterprise_scene', 'scn_enterprise_oil_press'), 5, (31, ':item_produced', 'itm_wine'), (2133, ':enterprise_scene', 'scn_enterprise_winery'), 5, (31, ':item_produced', 'itm_leatherwork'), (2133, ':enterprise_scene', 'scn_enterprise_tannery'), 5, (31, ':item_produced', 'itm_wool_cloth'), (2133, ':enterprise_scene', 'scn_enterprise_wool_weavery'), 5, (31, ':item_produced', 'itm_linen'), (2133, ':enterprise_scene', 'scn_enterprise_linen_weavery'), 5, (31, ':item_produced', 'itm_velvet'), (2133, ':enterprise_scene', 'scn_enterprise_dyeworks'), 5, (31, ':item_produced', 'itm_tools'), (2133, ':enterprise_scene', 'scn_enterprise_smithy'), 3, (1261, ':enterprise_scene'), 1262, (1263, 0, 'trp_player'), (1263, 17, ':master_craftsman'), (1911, 'mt_town_default'), (1910, ':enterprise_scene'), 2048], 'Door to your enterprise.'), ('visit_lady', [(2147484208L, 'trp_player', 30, 'trp_knight_1_1_wife'), (2133, '$love_interest_in_town', 0), (2133, '$love_interest_in_town_2', 0), (2133, '$love_interest_in_town_3', 0), (2133, '$love_interest_in_town_4', 0), (2133, '$love_interest_in_town_5', 0), (2133, '$love_interest_in_town_6', 0), (2133, '$love_interest_in_town_7', 0), (2133, '$love_interest_in_town_8', 0), (6, ':lady_no', 'trp_knight_1_1_wife', 'trp_heroes_end'), (540, ':lady_no', 12, '$current_town'), (1, 'script_get_kingdom_lady_social_determinants', ':lady_no'), (2133, ':lady_guardian', 72057594037927936L), (540, ':lady_no', 30, -1), (30, ':lady_guardian', 0), (1073742384, ':lady_no', 5, 2), (540, ':lady_guardian', 38, 1), (2147484188L, ':lady_no', 5, 4), 4, (31, '$love_interest_in_town', 0), (2133, '$love_interest_in_town', ':lady_no'), 5, (31, '$love_interest_in_town_2', 0), (2133, '$love_interest_in_town_2', ':lady_no'), 5, (31, '$love_interest_in_town_3', 0), (2133, '$love_interest_in_town_3', ':lady_no'), 5, (31, '$love_interest_in_town_4', 0), (2133, '$love_interest_in_town_4', ':lady_no'), 5, (31, '$love_interest_in_town_5', 0), (2133, '$love_interest_in_town_5', ':lady_no'), 5, (31, '$love_interest_in_town_6', 0), (2133, '$love_interest_in_town_6', ':lady_no'), 5, (31, '$love_interest_in_town_7', 0), (2133, '$love_interest_in_town_7', ':lady_no'), 5, (31, '$love_interest_in_town_8', 0), (2133, '$love_interest_in_town_8', ':lady_no'), 3, 3, (32, '$love_interest_in_town', 0)], 'Attempt to visit a lady', [(2060, 'mnu_lady_visit')], 'Door to the garden.'), ('trade_with_merchants', [(541, '$current_town', 0, 3)], 'Go to the marketplace.', [4, (1, 'script_cf_enter_center_location_bandit_check'), 5, (2060, 'mnu_town_trade'), 3]), ('walled_center_manage', [(2147484189L, '$current_town', 35, 5), (541, '$current_town', 7, 'trp_player'), (2133, 72057594037927936L, 1), 4, (541, '$current_town', 0, 2), (2133, 72057594037927936L, 0), 3], 'Manage this {reg0?town:castle}.', [(2133, '$g_next_menu', 'mnu_town'), (2060, 'mnu_center_manage')]), ('walled_center_move_court', [(2147484189L, '$current_town', 35, 5), (542, 'fac_player_supporters_faction', 11, 'trp_player'), (541, '$current_town', 7, 'trp_player'), (31, '$g_encountered_party_faction', 'fac_player_supporters_faction'), (2147483679L, '$g_player_court', '$current_town')], 'Move your court here.', [(2060, 'mnu_establish_court')]), ('castle_station_troops', [(521, ':town_lord', '$current_town', 7), (2319, 10), (2133, ':player_can_draw_from_garrison', 0), 4, (31, ':town_lord', 'trp_player'), (2133, ':player_can_draw_from_garrison', 1), 5, (2204, ':faction', '$g_encountered_party'), (31, ':faction', 'fac_player_supporters_faction'), (2147484209L, '$g_encountered_party', 7, 'trp_npc1'), (2133, ':player_can_draw_from_garrison', 1), 5, (2147483678L, ':town_lord', 0), (2204, ':castle_faction', '$g_encountered_party'), (31, '$players_kingdom', ':castle_faction'), (31, '$g_encountered_party', '$g_castle_requested_by_player'), (2320, 10, 'str_retrieve_garrison_warning'), (2133, ':player_can_draw_from_garrison', 1), 5, (2147483678L, ':town_lord', 0), (2204, ':castle_faction', '$g_encountered_party'), (31, '$players_kingdom', ':castle_faction'), (2157, ':party_size', '$g_encountered_party'), (31, ':party_size', 0), (2320, 10, 'str_retrieve_garrison_warning'), (2133, ':player_can_draw_from_garrison', 1), 5, (561, '$g_encountered_party', 7, 'trp_npc1'), (2204, ':castle_faction', '$g_encountered_party'), (31, '$players_kingdom', ':castle_faction'), (540, 'trp_player', 30, ':town_lord'), (2133, ':player_can_draw_from_garrison', 1), 3, (31, ':player_can_draw_from_garrison', 1)], 'Manage the garrison {s10}', [(2043, 1)]), ('castle_wait', [(1073741854, '$g_encountered_party_relation', 0), (31, '$castle_undefended', 1), (2133, ':can_rest', 1), (2319, 1), 4, (2147484189L, '$current_town', 7, 'trp_player'), (520, ':player_spouse', 'trp_player', 30), (2147484189L, '$current_town', 7, ':player_spouse'), (561, '$current_town', 7, 'trp_player'), (2204, ':current_town_faction', '$current_town'), (2147483679L, ':current_town_faction', 'fac_player_supporters_faction'), (1601, ':num_men', 'p_main_party'), (2123, 72057594037927937L, ':num_men', 4), (2105, 72057594037927937L, 1), (2320, 1, '@ ({reg1} denars per night)'), (2149, ':gold', 'trp_player'), (2147483678L, ':gold', 72057594037927937L), (2133, ':can_rest', 0), 3, (31, ':can_rest', 1)], 'Wait here for some time{s1}.', [(2133, '$auto_enter_town', '$current_town'), (2133, '$g_town_visit_after_rest', 1), (2133, '$g_last_rest_center', '$current_town'), (2133, '$g_last_rest_payment_until', -1), 4, (132, 'p_main_party'), (1608, ':cur_terrain', 'p_main_party'), 4, (31, ':cur_terrain', 5), (372, (28,)), 3, 3, (1031, 168, 5, 0), 2040]), ('town_alley', [(541, '$current_town', 0, 3), (31, '$cheat_mode', 1)], '{!}CHEAT: Go to the alley.', [(521, 72057594037927947L, '$current_town', 17), (1911, 'mt_ai_training'), (1910, 72057594037927947L), 2048]), ('collect_taxes_qst', [(200, 'qst_collect_taxes'), (546, 'qst_collect_taxes', 1, '$current_town'), (2147484194L, 'qst_collect_taxes', 11, 4), (526, ':quest_giver_troop', 'qst_collect_taxes', 6), (2322, 1, ':quest_giver_troop'), (526, 72057594037927941L, 'qst_collect_taxes', 11)], '{reg5?Continue collecting taxes:Collect taxes} due to {s1}.', [(2060, 'mnu_collect_taxes')]), ('town_leave', [], 'Leave...', [(2133, '$g_permitted_to_center', 0), (2040, 0)], 'Leave Area.'), ('castle_cheat_interior', [(31, '$cheat_mode', 1)], '{!}CHEAT! Interior.', [(1911, 'mt_ai_training'), (521, ':castle_scene', '$current_town', 11), (1910, ':castle_scene'), 2048]), ('castle_cheat_town_exterior', [(31, '$cheat_mode', 1)], '{!}CHEAT! Exterior.', [4, (541, '$current_town', 0, 2), (521, ':scene', '$current_town', 10), 5, (521, ':scene', '$current_town', 10), 3, (1911, 'mt_ai_training'), (1910, ':scene'), 2048]), ('castle_cheat_dungeon', [(31, '$cheat_mode', 1)], '{!}CHEAT! Prison.', [(1911, 'mt_ai_training'), (521, ':castle_scene', '$current_town', 12), (1910, ':castle_scene'), 2048]), ('castle_cheat_town_walls', [(31, '$cheat_mode', 1), (541, '$current_town', 0, 3)], '{!}CHEAT! Town Walls.', [(521, ':scene', '$current_town', 1:cool:, (1911, 'mt_ai_training'), (1910, ':scene'), 2048]), ('cheat_town_start_siege', [(31, '$cheat_mode', 1), (541, '$g_encountered_party', 54, -1), (2147483678L, '$g_encountered_party_2', 1), (1, 'script_party_count_fit_for_battle', 'p_main_party'), (32, 72057594037927936L, 1), 4, (541, '$g_encountered_party', 0, 3), (2133, 72057594037927942L, 1), 5, (2133, 72057594037927942L, 0), 3], '{!}CHEAT: Besiege the {reg6?town:castle}...', [(2133, '$g_player_besiege_town', '$g_encountered_party'), (2060, 'mnu_castle_besiege')]), ('center_reports', [(31, '$cheat_mode', 1)], '{!}CHEAT! Show reports.', [(2060, 'mnu_center_reports')]), ('sail_from_port', [(541, '$current_town', 0, 3), (31, '$cheat_mode', 1)], '{!}CHEAT: Sail from port.', [(2133, '$g_player_icon_state', 2), (1603, 'p_main_party', 512, 1), (1625, 1, 'p_main_party'), (1629, 2, 1, 6), (1626, 'p_main_party', 2), (2133, '$g_main_ship_party', -1), 2040])])

and more after other things done:
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 31, in save_game_menus
    save_game_menu_item(ofile,variable_list,variable_uses,menu_item,tag_uses,quick_strings)
  File "process_game_menus.py", line 12, in save_game_menu_item
    save_statement_block(ofile,0, 1, menu_item[1], variable_list, variable_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband\Modules\old_calradia\Module_system 1.171\process_operations.py", line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_uses,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband\Modules\old_calradia\Module_system 1.171\process_operations.py", line 398, in save_statement
    ofile.write("%d %d "%(opcode, lenstatement))
TypeError: %d format: a number is required, not str
 
No that didn't work however I moved it and got a different error message that looked not so bad it is also easier to understand.

Code:
Error in game menu:
('go_to_backstreets', 'Visit the backstreets.', [(2133, ':town_backstreet', 'scn_town_24_backstreet'), (1910, ':town_backstreet')])
 
It is formatted wrong, you didn't copy from an existing menu entry.

Code:
("go_to_backstreets",[],"Visit the backstreets.",
       [
        (assign,":town_backstreet", "scn_town_24_backstreet"),
        (jump_to_scene, ":town_backstreet"),
        ], "Visit the backstreets."),
 
There are more stuff you have to add to get it to function, we just helped you with getting rid of the errors.  Check out the other town menu entries such as "town_center".  Check out the tutorial on adding a scene, specifically the "enter" submenu.
 
Thank you for helping me I've found how to do it and will past the code if anyone else wants help.
Code:
("go_to_backstreets",[],"Visit the backstreets. ",

       [
        (assign,":town_backstreet", "scn_town_24_backstreet"),
        (set_jump_mission, "mt_ai_training"),
        (jump_to_scene, ":town_backstreet"),
        (change_screen_mission),
       ], "Visit the backstreets. "),
 
Status
Not open for further replies.
Back
Top Bottom