Skip to content

Crash when hovering a challenge save in the Select Run menu with Steamodded #5

@JSBM13

Description

@JSBM13

When hovering this file in the Select Run menu, the game crash, giving this crash report. Looking at the dump folder made by Lovely, we see that UI/RunStorageUI.lua is the referenced function, and those lines are what cause the crash:

           -- Challenge name centered, if it's a challenge run:
           (run.GAME.challenge and {n=G.UIT.R, config={minh = 0.05}, nodes={}} or nil),
           (run.GAME.challenge and
            {n=G.UIT.R, config={align = "cm"}, nodes={
                {n=G.UIT.T, config={text = "'"..run.GAME.challenge_tab.name.."' Challenge", align = "cm", colour = G.C.UI.TEXT_LIGHT, scale = scale}}
            }} or nil),

It seems like we try to read the field name of challenge_tab, however the save file only has a string for challenge_tab:

    "GAME": {
        "tarot_rate": 4,
        "challenge_tab": "\"MANUAL_REPLACE\"",

This seems to happen because of Steamodded. challenge-tab get normal data when a run is started without Lovely or with only Lovely, but Steamodded seems to mess this up. In all cases, even if it's not directly the fault of this mod, it should probably not cause a crash here, particularly given how used Steamodded is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions