Crash when turning off the last enabled sub-mod of a selected bundle
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 72/100
Direzione di ricerca
Start at ModManagement.lua around the onValueChange handler (~line 252) and the character/stage toggle paths that call MatchParticipant:refreshDisabledSelections. Guard the last enabled sub-mod of a selected bundle the same way last visible character/stage is refused (#bundle:getSubMods() == 0), including re-enable of an all-off bundle. Confirm CharacterLoader.resolveBundle no longer indexes nil when the last sub-mod is turned off. Reproduce with a selected character bundle (e.g. Ash) in Options > Manage Mods.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #769 / #771.
Problem
With a character bundle selected, turning off every sub-mod of that bundle in Mod Management crashes the game on the last toggle.
With #771 applied, the crash happens on the toggle itself:
client/src/mods/CharacterLoader.lua:61: attempt to index a nil value
CharacterLoader.resolveBundle
MatchParticipant:refreshCharacter (MatchParticipant.lua:137)
MatchParticipant:refreshDisabledSelections (MatchParticipant.lua:156)
ModManagement.lua:252 onValueChange
Steps to reproduce
- Install a character bundle, e.g. Ash from the PPL pack (6 sub-mods).
- Select Ash as your character.
- Options > Manage Mods > characters: turn off Ash's sub-mods one at a time.
- Turning off the last enabled one crashes.
Suggested fix
Refuse the toggle when it would leave any enabled bundle with no enabled sub-mods (#bundle:getSubMods() == 0), the same way ModManagement already refuses turning off the last visible character or stage. Needed in both the character and stage handlers. Re-enabling a bundle whose sub-mods are all off needs the same check.
At startup ModLoader.disableBlacklisted already turns off a bundle whose sub-mods are all disabled, so this state can only be reached through Mod Management.
- Lingua principale
- Lua
- Stelle
- 30
- Fork
- 20
- Merge medio
- 4g 19h
- PR unite (30g)
- 14
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di panel-attack/panel-game
-
engine priority: 3 - wishlist wontfix
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
panel-attack/panel-game#780 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
panel-attack/panel-game#779 ·
I maintainer di solito rispondono entro 4 giorni
-
bug Client-side priority: 0 - high
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
panel-attack/panel-game#776 ·
I maintainer di solito rispondono entro 4 giorni
-
Allow opening a replay from the command lineForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
panel-attack/panel-game#803 ·
I maintainer di solito rispondono entro 4 giorni
-
Allow saving and continuing in Challenge ModeForse già presa @JamesVanBoxtel l’ha presa 6 giorni fa. Apertaenhancement priority: 0 - high
panel-attack/panel-game#802 · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di panel-attack/panel-game
Issue simili
-
Deleting an active group/tab leaves view on deleted group and categories missing until redrawApertabug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Cidan/BetterBags#1265 ·
I maintainer di solito rispondono entro 1 giorno
-
Lightforge IngotsApertabug discord guide:06-ashenvale locale:enUS triage v0.3.4
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 1 giorno
-
Data lead: beatfeverAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
reacher-z/Awesome-REA#3601 ·
I maintainer di solito rispondono entro 1 giorno
-
addon bug night-shift
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Documentation is unsyncedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
xmake-io/xmake-docs#301 · 1 commento ·