flags / Reactor-3

Post-apocalyptic action roguelike with a focus on inventory management and gun-based combat.
MIT License
71 stars 11 forks source link

[CTD] "Do you know..." Dialog bug #123

Closed j0z closed 10 years ago

j0z commented 11 years ago

Sometimes when asking AIs about other AIs there will be a CTD with this traceback:

Traceback (most recent call last):
  File "reactor-3.py", line 216, in tick
    main()
   File "reactor-3.py", line 139, in main
    handle_input()
   File "C:\Users\Josh\Documents\Visual Studio 2012\Projects\Reactor-3\player.py", line 542, in handle_input
    dialog.give_menu_response(SETTINGS['controlling'], _dialog)
  File "C:\Users\Josh\Documents\Visual Studio 2012\Projects\Reactor-3\dialog.py", line 137, in give_menu_response
    process_response(LIFE[dialog['receiver']], life, dialog, _chosen)
  File "C:\Users\Josh\Documents\Visual Studio 2012\Projects\Reactor-3\dialog.py", line 837, in process_response
    alife_choose_response(life, target, dialog, _responses)
  File "C:\Users\Josh\Documents\Visual Studio 2012\Projects\Reactor-3\dialog.py", line 591, in alife_choose_response
    process_response(target, life, dialog, _chosen)
  File "C:\Users\Josh\Documents\Visual Studio 2012\Projects\Reactor-3\dialog.py", line 699, in process_response
    _responses.append({'text': 'Where was the last place you saw him?', 'gist': 'last_seen_target_at', 'target': chosen[
'target']})
KeyError: 'target'