Skip to content

Invariant command card fails to emplace a card into the shop #138

Description

@Skelebrolo

Invariant on Temperance, crash on shop load due to area = nil.

Tracked down the issue to line 169 of reverse_codes.toml which states:

if pinned then
    local card = create_card_for_shop(G.shop_jokers)
    card.area = G.shop_jokers
    table.insert(G.shop_jokers.cards, card)
else

I don't know what the card variable was supposed to be, and it was causing issues, so I changed it to local card = G.GAME.entr_pinned_cards[pinned] instead, and it resolved the problem. Do with that what you will.

Oops! The game crashed:
game.lua:3609: attempt to index local 'area' (a nil value)

Additional Context:
Balatro Version: 1.0.1o-FULL
Modded Version: 1.0.0~BETA-1503a-STEAMODDED
LÖVE Version: 11.5.0
Lovely Version: 0.9.0
Platform: Windows
Steamodded Mods:
    1: Entropy by Ruby, The Entropy Discord [ID: entr, Priority: 666, Version: 1.3.3, Uses Lovely]
    2: Amulet by frostice482, ... [ID: Amulet, Priority: -10000000000, Version: 3.5.2, Uses Lovely]
        exp_color: default
        thread_fix_num: yes
        thread_fix: modify
    3: DebugPlus by WilsontheWolf [ID: DebugPlus, Version: 1.5.2, Uses Lovely]
    4: Cryptid by MathIsFun_, Cryptid and Balatro Discords [ID: Cryptid, Priority: 114, Version: 0.5.14a, Uses Lovely]
    5: Spectrallib by lord.ruby, InvalidOS [ID: Spectrallib, Priority: -10000, Version: 1.1.2, Uses Lovely]
Lovely Mods:

Stack Traceback
===============
(3) LÖVE metamethod at file 'boot.lua:352'
Local variables:
 errhand = Lua function '(LÖVE Function)' (defined at line 616 of chunk [lovely debugplus.console "debugplus/console.lua"])
 handler = Lua function '(LÖVE Function)' (defined at line 616 of chunk [lovely debugplus.console "debugplus/console.lua"])
(4) Lua field 'func' at file 'game.lua:3609'
Local variables:
 nosave_shop = nil
 (for generator) = C function: next
 (for state) = table: 0x331ca848  {1:table: 0x32f1a1d0}
 (for control) = number: nan
 i = number: 1
 v = table: 0x32f1a1d0  {pos:1, card:c_temperance}
 area = nil
 (*temporary) = nil
 (*temporary) = table: 0x332138b8  {entr_vouchers_set:true, last_inversion:table: 0x335e5d18, tarot_rate:4, dollars:50, cry_revert:return {["BLIND"]={["chip_text"]="600",["disabled"]=false,["triggered"]=true,["name"]="The Pillar",["mult"]=2,["debuff"]={},["pos"]={["y"]=16,["x"]=0,},["config_blind"]="bl_pillar",["in_blind"]=false,["boss"]=true,["chips"]=(Big and to_big({[1]=600,}, 1) or 600),["effect"]={},["dollars"]=5,},["SMODS"]={["last_hand"]={["scoring_hand"]={},["full_hand"]={},["scoring_name"]="Full House",},},["STATE"]=8,["VERSION"]="1.0.1o-FULL", (more...)}
 (*temporary) = number: 0
 (*temporary) = number: nan
 (*temporary) = string: "ev_cry_choco0"
 (*temporary) = table: 0x33401cf8  {order:0, object_type:Event, cry_order:0, _saved_d_u:true, original_key:choco0, mod:table: 0x32b3f1a0, registered:true, atlas:Other, original_mod:table: 0x32b3f1a0 (more...)}
 (*temporary) = nil
 (*temporary) = string: "attempt to index local 'area' (a nil value)"
(5) Lua method 'handle' at file 'engine/event.lua:55'
Local variables:
 self = table: 0x3418c918  {start_timer:true, timer:TOTAL, blockable:false, trigger:after, func:function: 0x3418c8f8, delay:0.2, complete:false, time:31.553722525321, blocking:true (more...)}
 _results = table: 0x34bdbde8  {blocking:true, pause_skip:false, time_done:true, completed:false}
(6) Lua method 'update' at file 'engine/event.lua:186'
Local variables:
 self = table: 0x332cbf48  {queues:table: 0x332cbf70, queue_last_processed:9.9666666666667, append_count:0, append_queue:base, queue_dt:0.016666666666667, queue_timer:9.9732818170093 (more...)}
 dt = number: 0.0069478
 forced = nil
 (for generator) = C function: next
 (for state) = table: 0x332cbf70  {unlock:table: 0x332cc060, other:table: 0x332cc100, tutorial:table: 0x332cc0b0, entr_desc:table: 0x332cc128, base:table: 0x332cc088, achievement:table: 0x332cc0d8 (more...)}
 (for control) = number: nan
 k = string: "base"
 v = table: 0x332cc088  {1:table: 0x34896f18, 2:table: 0x3418c918, 3:table: 0x33f3d2a0, 4:table: 0x33f3d688, 5:table: 0x33b23968, 6:table: 0x337f8928, 7:table: 0x33b26018 (more...)}
 blocked = boolean: false
 i = number: 2
 results = table: 0x34bdbde8  {blocking:true, pause_skip:false, time_done:true, completed:false}
(7) Lua upvalue 'gameUpdateRef' at file 'game.lua:2787'
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
 http_resp = nil
(8) Lua upvalue 'upd' at Steamodded file 'src/ui.lua:385' 
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(9) Lua upvalue 'update_ref' at file 'blind_functions.lua:668' (from mod with id Spectrallib)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(10) Lua upvalue 'gu' at file 'Entropy/card_buttons.lua:758' (from mod with id Spectrallib)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(11) Lua upvalue 'upd' at file 'lib/gameset.lua:27' (from mod with id Cryptid)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(12) Lua upvalue 'update_ref' at file 'lib/overrides.lua:372' (from mod with id Cryptid)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(13) Lua upvalue 'update_ref' at file 'lib/hooks.lua:860' (from mod with id entr)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(14) Lua upvalue 'upd' at file 'lib/hooks.lua:1981' (from mod with id entr)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(15) Lua method 'update' at file 'lib/hooks.lua:2244' (from mod with id entr)
Local variables:
 self = table: 0x32a8edd0  {F_GUIDE:false, F_CRASH_REPORTS:false, runes:table: 0x3433cc28, F_QUIT_BUTTON:true, HUD_tags:table: 0x3433cbd8, F_ENGLISH_ONLY:false, viewed_stake:2 (more...)}
 dt = number: 0.0069478
(16) Lua field 'update' at file 'main.lua:1228'
Local variables:
 dt = number: 0.0069478
(17) Lua function '?' at file 'main.lua:991' (best guess)
(18) global C function 'xpcall'
(19) LÖVE function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '?' (defined at line 962 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"])

Activity

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

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