Skip to content

Bug: dead group causes crash to desktop #225

Description

@DangerousVanilla

Describe the bug

Bug Description

Game crashed when entering a scripted sequence, I believe because all the in-group NPC's had died.

Expected Behavior

Game doesn't crash.

Steps to Reproduce

  1. Allow all of your group members to die (random chance).
  2. Trigger a scripted sequence where the characters gather together.
  3. Receive a div/0 crash.

Additional Context

Kind of an edge case here I encountered but it should be handled to prevent crashing to desktop.
The error pointed to src/screens/level.py, line 592: 'rot_by = (180) / (len(npcs) - 1)' with a div/0 error.

Possible solutions:
A. Handle the exception in the event all group members have died (shouldn't be able to trigger a gathering sequence with them then I imagine...)

B. Prevent all group members from being able to die.

Version

0.1.0

Which aspect(s) of the project is this bug affecting?

game-gameplay

Screenshots

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

game-cinematicsRelating to camera animation and cutscenestype: bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions