Crash when trading lamp of wishes (last item)

Issue #92 resolved
Rune Devros
repo owner created an issue

Trading Lamp of Wishes, or finished trading and pressing 'Z'

Traceback (most recent call last):
  File "srpg.py", line 9, in <module>
  File "lostsky\__init__.pyc", line 101, in bootstrap
  File "lostsky\core\engine.pyc", line 2422, in title_screen
  File "lostsky\core\engine.pyc", line 2455, in launch_wm
  File "lostsky\worldmap\worldmap.pyc", line 541, in navigate_loop
  File "lostsky\worldmap\worldmap.pyc", line 476, in user_input
  File "lostsky\worldmap\worldmap.pyc", line 1534, in navigate_loop
  File "lostsky\worldmap\worldmap.pyc", line 1497, in user_input
  File "lostsky\worldmap\worldmap.pyc", line 642, in wm_menu
  File "lostsky\worldmap\trading.pyc", line 283, in trading_menu
  File "lostsky\worldmap\trading.pyc", line 383, in select_trade_menu
  File "lostsky\worldmap\trading.pyc", line 624, in confirmation_menu
IndexError: list index out of range

Comments (6)

  1. mark_kavanagh

    mine crashes when I give away my fifth tradeable item (i.e.; the 1st milestone). here's the traceback

    Traceback (most recent call last):
      File "srpg.py", line 9, in <module>
        lostsky.bootstrap()
      File "lostsky/__init__.py", line 101, in bootstrap
        engine.title_screen()
      File "lostsky/core/engine.py", line 2422, in title_screen
        self.launch_wm(True)
      File "lostsky/core/engine.py", line 2455, in launch_wm
        self.worldmap.navigate_loop(True)
      File "lostsky/worldmap/worldmap.py", line 525, in navigate_loop
        confirm_load = self.all_regions[tuple(self.player_pos)].navigate_loop(self.engine.player.wm_data['region_coords'])
      File "lostsky/worldmap/worldmap.py", line 1534, in navigate_loop
        input_flag = self.user_input()
      File "lostsky/worldmap/worldmap.py", line 1497, in user_input
        confirm_load = self.wm_parent.wm_menu()
      File "lostsky/worldmap/worldmap.py", line 642, in wm_menu
        self.engine.trading_system.trading_menu()
      File "lostsky/worldmap/trading.py", line 283, in trading_menu
        self.select_trade_menu()
      File "lostsky/worldmap/trading.py", line 397, in select_trade_menu
        self.draw_trade_information(self.available_trades[menu_pos])
    IndexError: tuple index out of range
    
  2. Log in to comment