Skip to content

missing rarity badge #7

@AshenPumpkin

Description

@AshenPumpkin

when using the mod, fusion jokers are created, but the game crashes when you try to hover over them

Oops! The game crashed:
[SMODS _ "src/game_object.lua"]:766: attempt to index local 'rarity' (a number value)

Additional Context:
Balatro Version: 1.0.1n-FULL
Modded Version: 1.0.0~ALPHA-1221d-STEAMODDED
LÖVE Version: 11.5.0
Lovely Version: 0.6.0
Steamodded Mods:
    1: Fusion Jokers by itayfeder, Lyman [ID: FusionJokers, Priority: -10000]
Lovely Mods:
    1: DebugPlus

Stack Traceback
===============
(3) Lua method 'get_rarity_badge' at Steamodded file 'src/game_object.lua:766' 
Local variables:
 self = table: 0x13780ee0  {required_params:table: 0x13780df8, process_loc_text:function: 0x13780ea0 (more...)}
 rarity = number: 5
 vanilla_rarity_keys = table: 0x135c5d28  {1:Common, 2:Uncommon, 3:Rare, 4:Legendary}
 (*temporary) = Lua function '?' (defined at line 1819 of chunk functions/misc_functions.lua)
 (*temporary) = string: "k_"
 (*temporary) = nil
 (*temporary) = number: 5
 (*temporary) = string: "attempt to index local 'rarity' (a number value)"
(4) Lua upvalue 'card_h_popupref' at file 'functions/UI_definitions.lua:1143'
Local variables:
 card = table: 0x1388b750  {ability:table: 0x1388db88, click_offset:table: 0x1388b8a0, sell_cost:6 (more...)}
 AUT = table: 0x13915970  {badges:table: 0x13915910, info:table: 0x13915a28, main:table: 0x13915a00 (more...)}
 debuffed = boolean: false
 card_type_colour = table: 0x1363f258  {1:0.96862745098039, 2:0.84313725490196, 3:0.3843137254902, 4:1}
 card_type_background = table: 0x1346ccd8  {1:0.19411764705882, 2:0.23294117647059, 3:0.24, 4:1}
 outer_padding = number: 0.05
 card_type = string: "Joker"
(5) Lua field 'card_h_popup' at file 'FusionJokers.lua:279' (from mod with id FusionJokers)
Local variables:
 card = table: 0x1388b750  {ability:table: 0x1388db88, click_offset:table: 0x1388b8a0, sell_cost:6 (more...)}
(6) Lua method 'hover' at file 'card.lua:4493'
Local variables:
 self = table: 0x1388b750  {ability:table: 0x1388db88, click_offset:table: 0x1388b8a0, sell_cost:6 (more...)}
 (*temporary) = table: 0x1388bf58  {center:table: 0x13702160, center_key:j_heart_paladin, card:table: 0x1388dbd8 (more...)}
(7) Lua method 'update' at file 'engine/controller.lua:399'
Local variables:
 self = table: 0x13349aa8  {held_button_times:table: 0x13209f90, focus_cursor_stack_level:1, snap_cursor_to:table: 0x1363f9f8 (more...)}
 dt = number: 0.0170876
(8) Lua upvalue 'gameUpdateRef' at file 'game.lua:2652'
Local variables:
 self = table: 0x130fe748  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, collection_alert:table: 0x13621440 (more...)}
 dt = number: 0
(9) Lua method 'update' at Steamodded file 'src/ui.lua:81' 
Local variables:
 self = table: 0x130fe748  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, collection_alert:table: 0x13621440 (more...)}
 dt = number: 0.0170876
(10) Lua field 'update' at file 'main.lua:991'
Local variables:
 dt = number: 0.0170876
(11) Lua function '?' at file 'main.lua:935' (best guess)
(12) global C function 'xpcall'
(13) LÖVE function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '?' (defined at line 906 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

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions