View Issue Details

IDCategoryLast Update
0002913Bug Report2020-07-31 21:27
Status newResolutionopen
Summary0002913: Cheat Menu does not work to advance Machines
DescriptionOpen Cheat Menu on MC's phone and go to Machines. The Advance button will crash the game:

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/scripts/locations/home/entrance/hallway/bedroom/bedroom.rpy", line 82, in script call
    $ game.main()
  File "game/scripts/locations/home/entrance/hallway/bedroom/bedroom.rpy", line 82, in script
    $ game.main()
  File "game/scripts/locations/home/entrance/hallway/bedroom/bedroom.rpy", line 82, in <module>
    $ game.main()
  File "game/scripts/core/systems/game.rpy", line 364, in main
  File "game/scripts/core/systems/locations/locations.rpy", line 268, in call_screen
  File "renpy/common/00action_other.rpy", line 537, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/scripts/core/systems/FSM/state_machine.rpy", line 428, in advance
    self.trigger(self._state._table.keys()[table_index], skip_delay=True, from_load=True, force_save=True)
  File "game/scripts/core/systems/FSM/state_machine.rpy", line 476, in trigger
    s = m.get_state()
AttributeError: 'bool' object has no attribute 'get_state'

I suppose this is because the advance method of class Machine will trigger the trigger method with parameter from_load=True. This leads to initializing local variable machines = {None: from_load}, i.e. a boolean value, and finally the encountered bug.

It worked in version 0.19.1 but no longer in 0.20.1




2020-07-31 21:27

reporter   ~0004968

Addition: In 0.19.1 the advance button used to crash when you clicked it for a machine which already was at 100%. Maybe you fix that as well when you are at it ;)

Issue History

Date Modified Username Field Change
2020-07-31 21:22 skrskrskr New Issue
2020-07-31 21:27 skrskrskr Note Added: 0004968