Stages that are invalid crash the game, don't load them and warn the user

Open
#774 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
lua
Domain
game-dev

Research direction

Start with client/src/ui/StageCarousel.lua, especially loadCurrentStages at the stack-trace line, and trace how stage data is loaded. Check how the game currently reports non-modal alerts. Done when invalid mods no longer crash stage loading, are disabled, and the user receives a non-modal warning.

Written by the indexing model from the issue text.

Description

bug Client-side priority: 1 - middle

User Fuzz installed mods from "2024 comprehensive mod pack"

They then crashed with this error and no way to know what went wrong.

We should disable all mods that are invalid and warn the user with a non modal alert.

Error: Please share your crash.log with the developers to get help with this!

Stack Trace:
client/src/ui/StageCarousel.lua:35: in function 'loadCurrentStages'
client/src/scenes/CharacterSelect.lua:252: in function 'createStageCarousel'
client/src/scenes/CharacterSelectVsSelf.lua:39: in function 'loadUserInterface'
client/src/scenes/CharacterSelectVsSelf.lua:17: in function 'customLoad'
client/src/scenes/CharacterSelect.lua:61: in function 'load'
client/src/scenes/CharacterSelect.lua:27: in function 'init'
common/lib/class.lua:48: in function 'initializeObject'
common/lib/class.lua:36: in function 'initializeObject'
common/lib/class.lua:5: in function 'CharacterSelectVsSelf'
...
client/src/NavigationStack.lua:174: in function 'updateSelf'
client/src/ui/UIElement.lua:150: in function 'update'
client/src/ui/UIElement.lua:162: in function 'updateChildren'
client/src/ui/UIElement.lua:151: in function 'update'
client/src/Game.lua:404: in function 'update'
main.lua:94: in function 'update'
client/src/CustomRun.lua:126: in function 'runInternal'
client/src/CustomRun.lua:212: in function <client/src/CustomRun.lua:210>
[C]: in function 'xpcall'
Username: Fuzzberticus
Theme: [Planet Puzzle League] Planet Puzzle League (endaris.1452)
Error Message: client/src/ui/StageCarousel.lua:35: attempt to index local 'stage' (a nil value)
Engine Version: 049
Build Version: stable 1778172308
Operating System: OS: Windows
Love Version: 12.0.0
Renderer Info: Vulkan;1.4.341;Nvidia;NVIDIA GeForce RTX 3080
UTC Time: 2026-09-30 00:35:57
Scene: MainMenu

Dominant language
Lua
Stars
30
Forks
20
Avg merge
3d 15h
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from panel-attack/panel-game

All issues in panel-attack/panel-game

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.