Skip to content

Crash when adding enhancements to challenge Banned Cards #1095

@DigitalDetective47

Description

@DigitalDetective47

I have a challenge with the following definition:

SMODS.Challenge {
    key = "test",
    restrictions = {
        banned_cards = {
            { id = "m_lucky" },
        }
    },
}

using DebugPlus to spawn a bunch of standard tags eventually results in the following crash (presumably when the pack would normally contain a Lucky Card)

Oops! The game crashed:
cardarea.lua:57: attempt to get length of field 'cards' (a nil value)


Development version of Steamodded detected! If you are not actively developing a mod, please try using the latest release instead.



Additional Context:
Balatro Version: 1.0.1o-FULL
Modded Version: 1.0.0~BETA-1118a-STEAMODDED
LÖVE Version: 11.5.0
Lovely Version: 0.8.0
Platform: Windows
Steamodded Mods:
    1: Justice by DigitalDetective47 [ID: NumberFormat, Version: 1.0.3, Uses Lovely]
    2: When the impostor is Sun by Muddieee, DigitalDetective47 [ID: sun_is_sus, Version: 1.0.0]
    3: Baba Decks by Blackbando [ID: BabaDecks, Version: 1.2]
    4: Galdur by Eremel_ [ID: galdur, Priority: -10000, Version: 1.2.1d, Uses Lovely]
    5: Balatest by BakersDozenBagels [ID: Balatest, Priority: -1000, Version: 1.7.3, Uses Lovely]
    6: Strange Pencil by DigitalDetective47 [ID: StrangePencil, Priority: 200, Version: 0.4.0~0k17c, Uses Lovely]
    7: Profiles Plus by DigitalDetective47 [ID: ProfilesPlus, Version: 1.0.0~rc5, Uses Lovely]
    8: re:Unlock All by wingedcatgirl [ID: reUnlock, Version: 1.1.1, Uses Lovely]
    9: Strange Library by DigitalDetective47 [ID: StrangeLib, Version: 3.7.0, Uses Lovely]
    10: unBlind - shop GUI by Soap (MeraGenio) [ID: unBlindShopGUI, Priority: 3, Version: 1.0.0, Uses Lovely]
    11: Seed Unlocker by MathIsFun_ [ID: SeedUnlocker]
    12: DismissAlert by Breezebuilder [ID: DismissAlert, Priority: 100, Version: 1.0.0, Uses Lovely]
    13: Flower Pot by ItsFlowwey [ID: FlowerPot, Version: 0.8.1, Uses Lovely]
    14: Malverk by Eremel_ [ID: malverk, Priority: -999999, Version: 1.1.3a, Uses Lovely]
    15: Cartomancer by stupxd aka stupid [ID: cartomancer, Priority: 69, Version: 4.16-smods-fix, Uses Lovely]
    16: Custom Suit Order by DigitalDetective47 [ID: SuitOrder, Priority: 1.79e+308, Version: 1.0.2]
    17: DebugPlus by WilsontheWolf [ID: DebugPlus, Version: 1.5.2~dev, Uses Lovely]
    18: SystemClock by Breezebuilder [ID: SystemClock, Priority: 100000, Version: 1.7.1, Uses Lovely]
    19: Balatro Collab by Kitty (Kittyknight. on discord) [ID: BALXBAL, Version: 1.0.1a]
Lovely Mods:

Stack Traceback
===============
(3) LÖVE metamethod at file 'boot.lua:352'
Local variables:
 errhand = Lua function '(LÖVE Function)' (defined at line 606 of chunk [lovely debugplus.console "debugplus/console.lua"])
 handler = Lua function '(LÖVE Function)' (defined at line 606 of chunk [lovely debugplus.console "debugplus/console.lua"])
(4) Lua method 'emplace' at file 'cardarea.lua:57'
Local variables:
 self = table: 0x027fd4f8  {click_offset:table: 0x027fd8a0, static_rotation:false, shuffle_amt:0, parent:table: 0x0280c118, T:table: 0x027fd6e8, offset:table: 0x027fe610 (more...)}
 card = table: 0x019b0670  {click_offset:table: 0x01c42638, last_moved:-1, children:table: 0x02284220, ambient_tilt:0.2, dissolve_colours:table: 0x02751b40, debuff:false (more...)}
 location = nil
 stay_flipped = nil
 (*temporary) = nil
 (*temporary) = nil
 (*temporary) = table: 0x019b0670  {click_offset:table: 0x01c42638, last_moved:-1, children:table: 0x02284220, ambient_tilt:0.2, dissolve_colours:table: 0x02751b40, debuff:false (more...)}
 (*temporary) = nil
 (*temporary) = nil
 (*temporary) = string: "base"
 (*temporary) = string: "attempt to get length of field 'cards' (a nil value)"
(5) Lua field 'func' at file 'card.lua:2037'
Local variables:
 (for generator) = C function: builtin#6
 (for state) = table: 0x02738600  {1:table: 0x019b0670, 2:table: 0x024a2278, 3:table: 0x020a7ef8, 4:table: 0x01e15b40, 5:table: 0x01c4c478}
 (for control) = number: 1
 k = number: 1
 v = table: 0x019b0670  {click_offset:table: 0x01c42638, last_moved:-1, children:table: 0x02284220, ambient_tilt:0.2, dissolve_colours:table: 0x02751b40, debuff:false (more...)}
(6) Lua method 'handle' at file 'engine/event.lua:55'
Local variables:
 self = table: 0x02738898  {start_timer:true, timer:TOTAL, blockable:false, trigger:after, func:function: 0x02738878, delay:332.8, complete:false, time:472970.6608165, blocking:false (more...)}
 _results = table: 0x01a1a390  {blocking:false, pause_skip:false, time_done:true, completed:false}
(7) Lua method 'update' at file 'engine/event.lua:182'
Local variables:
 self = table: 0x0152b188  {queue_last_processed:20.8, queues:table: 0x0152b1b0, queue_dt:0.016666666666667, queue_timer:20.802075708569}
 dt = number: 0.0166569
 forced = nil
 (for generator) = C function: next
 (for state) = table: 0x0152b1b0  {unlock:table: 0x0152b2a0, galdur:table: 0x01a7f3a8, Balatest_Run:table: 0x01abcb40, other:table: 0x0152b340, tutorial:table: 0x0152b2f0, Balatest:table: 0x01abcb18 (more...)}
 (for control) = number: nan
 k = string: "base"
 v = table: 0x0152b2c8  {1:table: 0x01583ef8, 2:table: 0x01ffe520, 3:table: 0x01b4d2c0, 4:table: 0x01b4d7b8, 5:table: 0x01b4dcb0, 6:table: 0x01b4e1a8, 7:table: 0x01b4e6a0 (more...)}
 blocked = boolean: true
 i = number: 23
 results = table: 0x01a1a390  {blocking:false, pause_skip:false, time_done:true, completed:false}
(8) Lua upvalue 'gameUpdateRef' at file 'game.lua:2650'
Local variables:
 self = table: 0x00bf3b58  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x015e8e70, F_ENGLISH_ONLY:false, viewed_stake:1, HUD:table: 0x012e1aa8 (more...)}
 dt = number: 0.0166569
 http_resp = nil
(9) Lua upvalue 'game_update_ref' at Steamodded file 'src/ui.lua:126' 
Local variables:
 self = table: 0x00bf3b58  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x015e8e70, F_ENGLISH_ONLY:false, viewed_stake:1, HUD:table: 0x012e1aa8 (more...)}
 dt = number: 0.0166569
(10) Lua method 'update' at file 'src/core.lua:121' (from lovely module systemclock.core)
Local variables:
 self = table: 0x00bf3b58  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x015e8e70, F_ENGLISH_ONLY:false, viewed_stake:1, HUD:table: 0x012e1aa8 (more...)}
 dt = number: 0.0166569
(11) Lua field 'update' at file 'main.lua:1011'
Local variables:
 dt = number: 0.0166569
(12) Lua function '?' at file 'main.lua:950' (best guess)
(13) global C function 'xpcall'
(14) LÖVE function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '?' (defined at line 921 of chunk main.lua)
 inerror = boolean: true
 deferErrhand = Lua function '(LÖVE Function)' (defined at line 348 of chunk [love "boot.lua"])
 earlyinit = Lua function '(LÖVE Function)' (defined at line 355 of chunk [love "boot.lua"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions