Can´t leave towns/Castles solved sorry

Users who are viewing this thread

I had the same problem with the Beserk mod.
How to solve:
Save&Exit.
Load up your save game. That way you will start on the world map and can leave. It's some bug in the city-window i guess. So as long as your in the city it won't work.
Advantage on M&B is that it will always start a loaded game on the world map.
 
I made the berserk mod.  Early on I had that problem but thought it was fixed.  The bug happens because the menu tells the game to change_screen_return.  But if the game can't remember where it initially came from it will just go back to the same menu.  I fixed a couple errors by changing things to change_screen_map.  Was it any paticular town in Berserk.  I've run into that in Albion.
 
Yes i found something in the game_menus:
did I mistake by calling back Zendar???
# Towns
  (
    "zendar",mnf_auto_enter,
    "You enter the town of Zendar.",
    "none",
    [(reset_price_rates,0),(set_price_rate_for_item,"itm_tools",70),(set_price_rate_for_item,"itm_salt",140)],
    [
      ("zendar_enter",[],"_",[(set_jump_mission,"mt_town_default"),(jump_to_scene,"scn_zendar_center"),(change_screen_mission)],"Door to the town center."),
      ("zendar_tavern",[],"_",[(set_jump_mission,"mt_town_default"),
                                                   (jump_to_scene,"scn_the_happy_boar"),
                                                   (change_screen_mission)],"Door to the tavern."),
      ("zendar_merchant",[],"_",[(set_jump_mission,"mt_town_default"),
                                                   (jump_to_scene,"scn_zendar_merchant"),
                                                   (change_screen_mission)],"Door to the merchant."),
      ("zendar_arena",[],"_",[(set_jump_mission,"mt_town_default"),
                                                   (jump_to_scene,"scn_zendar_arena"),
                                                   (change_screen_mission)],"Door to the arena."),
#      ("zendar_leave",[],"Leave town.",[[leave_encounter],[change_screen_return]]),
      ("town_1_leave",[],"_",[(leave_encounter),(change_screen_return)]),
    ]
  ),
 
or was it the other one??
(
    "keeper",mnf_auto_enter,
    "You enter the keeper.",
    "none",
    [(reset_price_rates,0),(set_price_rate_for_item,"itm_salt",55)],
    [
        ("enter",[],"Enter",[(set_jump_mission,"mt_damn"),(jump_to_scene,"scn_scene_desert_forest"),(change_screen_mission)]),
      ("enter",[],"_",[(set_jump_mission,"mt_town_default"),
                                                   (jump_to_scene,"scn_reserved9"),
                                                   (change_screen_mission)],"Door to the tavern."),
("leave",[],"Leave.",[(leave_encounter),(change_screen_return)]),    
    ]
  ),
is it possible that it has something to do with mission tempelates where the leave thingy is undefined??

(1, 4, ti_once, [(main_hero_fallen)],
          [
              (store_random_in_range, ":permanent_death", 1, 101), #
   (try_begin),
   (gt, ":permanent_death", 50), #this would give a 20% chance
   (jump_to_menu,"mnu_player_is_death"),
(try_end),
(finish_mission,0),
              ]),
        ],
   ),
thats the end oof my two mod mt´s.???

I´ll check change screen map aswell thanks Berserker Pride.

Intresting the save/end/reload thing does not work.

"Advantage on M&B is that it will always start a loaded game on the world map."  My one starts with the encountered menu castle and the bug survives. grimpf
 
I initially had the can't leave error when using a trigger to send you from the map to a menu which sent you to a city.  Then when trying to leave the city the game would try to change screen return back to the menu and it couldn't.  I've changed this line in my mod
(try_begin),
          (eq,"$g_leave_town",1),
          (assign,"$g_leave_town",0),
          (assign,"$g_permitted_to_center",0),
          (leave_encounter),
          (change_screen_map),#KKM can't leave town bug. x(crossed fingers)
        (try_end),
It should be ok to change it to that.  Just remember if you have any menu that sends you to a town like a teleport or something you will have to have party_relocate_near_party called otherwise you'll stay in the same location when you leave that town.
 
Thanks again Berserk.. but it don´t work i did the change you posted and my game_menu is looking like your spoiler.
It still leaves me back to the town/castle menu and no i never tried to implement teleport.

:( confused again

it only appears after "Wait here for some time" in a castle /town without resting in I can leave as default.
 
It was all me  :cry: just in the encounter scripts
    (else_try),
            (jump_to_menu, "mnu_join_siege_outside"),
          (try_end),
        (else_try),
          (jump_to_menu, "mnu_pre_join"),
        (try_end),
      (try_end),
#and somehow i deleted the folowing :roll:
        (assign,"$auto_enter_town",0),
      (assign,"$auto_besiege_town",0),
      ]),

now everything is fine again :D
 
Back
Top Bottom