#Wheel of "Lets go gambling! *buzzer* Aw dang it!"

1 messages · Page 1 of 1 (latest)

steady jackal
#

plays "buzzer Aw dang it!" when wheel of fortune fails.
compatible with steamodded 1.0+ AND balamod 1.0+ with the same file (holy moly!)

make sure you nest the folders correctly, it WILL crash

im not putting any more effort into this, so please dont @ me with bugs on this, its a shitpost

https://github.com/nicholassam6425/gamblecore/tree/main

GitHub

balatro mod that plays a funny clip when wheel of fortune fails - nicholassam6425/gamblecore

#

just pushed a small fix that adds the Nope! text back

#

so that video is mildly outdated

bleak cargo
#

if only you could add a sound effect when clicking on it

steady jackal
#

wait is the repo private

#

oops

#

alr there we go

dapper night
#

aw dangit

steady jackal
#

aw dangit

silk aspen
#

aw dangit

visual juniper
#

aw dangit

jade ether
#

aw dangit

crystal jacinth
#

Peak balatro experience

#

🚨 aw dangit

median egret
#

aw dangit

gray abyss
#

aw dangit

strong gale
#

aw dangit

gray abyss
#

equally mid effort textures cause i'm bored

#

idk if I exported those properly

#

i don't do this very often

gray abyss
steady jackal
#

terrible news, chat

#

i didnt test this at all and it may break things

#

:3

civic ridge
#

I tested this while testing a mod I'm creating. I didn't hear the "*cha-ching!* I can't stop winning!" when wheel of fortune gave polychrome to the "lucky swallow" joker.

steady jackal
#

sanity check, youre on the latest version right

#

check if gamblecore2.ogg is in t he sounds folder

civic ridge
steady jackal
#

try updating your steamodded

steady jackal
#

(also if anyone else has this issue lmk, im having trouble recreating it)

#

also what OS are you on @civic ridge

#

it might be a backslash/forwardslash thing that i have no clue how to solve

civic ridge
steady jackal
#

10 or 11

#

or other

civic ridge
steady jackal
#

do any of your other enabled mods hook onto poll_edition

#

it might be that

#

if its not that then im stumped

civic ridge
#

I have a function I borrowed from evolved jokers that uses poll_edition but doesn't edit it. Is that a problem?

#

The function in question:

-- Credit to Joker Evolution for the code for creating cards

function create_card_alt(_type, area, legendary, _rarity, skip_materialize, soulable, forced_key, key_append, edition_append, forced_edition)
    local area = area or G.jokers
    local center = G.P_CENTERS.b_red
        

    --should pool be skipped with a forced key
    if not forced_key and soulable and (not G.GAME.banned_keys['c_soul']) then
        if (_type == 'Tarot' or _type == 'Spectral' or _type == 'Tarot_Planet') and
        not (G.GAME.used_jokers['c_soul'] and not next(find_joker("Showman")))  then
            if pseudorandom('soul_'.._type..G.GAME.round_resets.ante) > 0.997 then
                forced_key = 'c_soul'
            end
        end
        if (_type == 'Planet' or _type == 'Spectral') and
        not (G.GAME.used_jokers['c_black_hole'] and not next(find_joker("Showman")))  then 
            if pseudorandom('soul_'.._type..G.GAME.round_resets.ante) > 0.997 then
                forced_key = 'c_black_hole'
            end
        end
    end

    if _type == 'Base' then 
        forced_key = 'c_base'
    end

    if forced_key and not G.GAME.banned_keys[forced_key] then 
        center = G.P_CENTERS[forced_key]
        _type = (center.set ~= 'Default' and center.set or _type)
    else
        local _pool, _pool_key = get_current_pool(_type, _rarity, legendary, key_append)
        center = pseudorandom_element(_pool, pseudoseed(_pool_key))
        local it = 1
        while center == 'UNAVAILABLE' do
            it = it + 1
            center = pseudorandom_element(_pool, pseudoseed(_pool_key..'_resample'..it))
        end

        center = G.P_CENTERS[center]
    end

    local front = ((_type=='Base' or _type == 'Enhanced') and pseudorandom_element(G.P_CARDS, pseudoseed('front'..(key_append or '')..G.GAME.round_resets.ante))) or nil

    local card = Card(area.T.x + area.T.w/2, area.T.y, G.CARD_W, G.CARD_H, front, center,
    {bypass_discovery_center = area==G.shop_jokers or area == G.pack_cards or area == G.shop_vouchers or (G.shop_demo and area==G.shop_demo) or area==G.jokers or area==G.consumeables,
     bypass_discovery_ui = area==G.shop_jokers or area == G.pack_cards or area==G.shop_vouchers or (G.shop_demo and area==G.shop_demo),
     discover = area==G.jokers or area==G.consumeables, 
     bypass_back = G.GAME.selected_back.pos})
    if card.ability.consumeable and not skip_materialize then card:start_materialize() end

    if _type == 'Joker' then
        if G.GAME.modifiers.all_eternal then
            card:set_eternal(true)
        end
        if (area == G.shop_jokers) or (area == G.pack_cards) then 
            local eternal_perishable_poll = pseudorandom((area == G.pack_cards and 'packetper' or 'etperpoll')..G.GAME.round_resets.ante)
            if G.GAME.modifiers.enable_eternals_in_shop and eternal_perishable_poll > 0.7 then
                card:set_eternal(true)
            elseif G.GAME.modifiers.enable_perishables_in_shop and ((eternal_perishable_poll > 0.4) and (eternal_perishable_poll <= 0.7)) then
                card:set_perishable(true)
            end
            if G.GAME.modifiers.enable_rentals_in_shop and pseudorandom((area == G.pack_cards and 'packssjr' or 'ssjr')..G.GAME.round_resets.ante) > 0.7 then
                card:set_rental(true)
            end
        end

        if edition_append then
            if forced_edition == nil then
                local edition = poll_edition('edi'..(key_append or '')..G.GAME.round_resets.ante)
                card:set_edition(edition)
            else
                card:set_edition(forced_edition)
            end
            check_for_unlock({type = 'have_edition'})
        end
    end
    return card
end
steady jackal
#

nah shouldnt be a problem, i think

#

im stumped then

civic ridge
#

Put all of the "Old verisons" of mods in the recycling bin and it works now. I guess it was just that steamodded was trying to load an older version of this mod and somehow succeeded.

civic ridge
# steady jackal im stumped then

I believe I fixed the issue by uninstalling an older version of this mod (which I thought I deactivated by putting in a folder)

steady jackal
#

well

#

yea

dapper night
#

get to work

steady jackal
#

oh gog ...

sudden ether
#

When wheel of fortune sold

steady remnant
#

Imagine hearing "Today's Lesson: Keep Gambling" after losing a run

rough violet
#

Whenever a WOF is sold, 1/4 chance to create a negative WOF, playing this sfx

#

do not mention this in the github

steady jackal
#

oh gog... another one ...

dapper night
#

oh gog...

civic ridge
rough violet
#

if you spam click use a bunch, it triggers on every joker

radiant folio
civic ridge
dense olive
#

Plays when you lose a run when you have at least 3 jokers with editions

warped stone
#

Will there be a version of this that works with the Gambling Tag from Cryptid?

steady jackal
#

oh gog ... gamble core 1 billion ...

#

ive mostly stopped modding, but if i get back into it i'll look into mod compats

warped stone
#

👍

warped stone
scenic skiff
heady lantern
#

got this crash

#

Oops! The game crashed:
[SMODS arachnei_gamblecore "main.lua"]11 attempt to index field 'gamblecore' (a nil value)

Additional Context:
Balatro Version: 1.0.1g-FULL
Modded Version: 1.0.0~ALPHA-0919a-STEAMODDED
Love2D Version: 11.5.0
Lovely Version: 0.5.0-beta7
Steamodded Mods:
1: Metal Pipe Crashing Noise by WilsontheWolf [ID: PipeCrash, Version: 1.0, Uses Lovely]
2: gamblecore by arachnei [ID: arachnei_gamblecore]
Lovely Mods:
1: DebugPlus

Stack Traceback

(3) Lua global 'attention_text' at file 'main.lua:11' (from mod with id arachnei_gamblecore)
Local variables:
args = table: 0x0cfdc350 {backdrop_colour:table: 0x0c721520, scale:1.3, align:cm, major:table: 0x0cdd15b8 (more...)}
(*temporary) = nil
(*temporary) = string: "Nope!"
(*temporary) = string: "k_nope_ex"
(*temporary) = nil
(*temporary) = string: "attempt to index field 'gamblecore' (a nil value)"
(4) Lua field 'func' at file 'card.lua:1610'
(5) Lua method 'handle' at file 'engine/event.lua:55'
Local variables:
self = table: 0x0c910fb8 {start_timer:true, timer:TOTAL, blockable:true, trigger:after, func:function: 0x0cdc8828 (more...)}
_results = table: 0x0ce18888 {blocking:true, pause_skip:false, time_done:true, completed:false}
(6) Lua method 'update' at file 'engine/event.lua:182'
Local variables:
self = table: 0x0cd62cd8 {queue_last_processed:21.55, queues:table: 0x0cd62d00, queue_dt:0.016666666666667 (more...)}
dt = number: 0.0166644
forced = nil
(for generator) = C function: next
(for state) = table: 0x0cd62d00 {unlock:table: 0x0cd62d28, other:table: 0x0cd631a0, tutorial:table: 0x0cd62d78 (more...)}
(for control) = number: nan
k = string: "base"
v = table: 0x0cd62d50 {1:table: 0x0c829808, 2:table: 0x0c910fb8, 3:table: 0x0c736490, 4:table: 0x0cce18e0 (more...)}
blocked = boolean: false
i = number: 2
results = table: 0x0ce18888 {blocking:true, pause_skip:false, time_done:true, completed:false}
(7) Lua upvalue 'gameUpdateRef' at file 'game.lua:2491'
Local variables:
self = table: 0x0c7179c0 {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x0d14a5a0 (more...)}
dt = number: 0.0166644
http_resp = nil
(8) Lua method 'update' at Steamodded file 'core/ui.lua:81'
Local variables:
self = table: 0x0c7179c0 {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x0d14a5a0 (more...)}
dt = number: 0.0166644
(9) Lua field 'update' at file 'main.lua:972'
Local variables:
dt = number: 0.0166644
(10) Lua function '?' at file 'main.lua:916' (best guess)
(11) global C function 'xpcall'
(12) Love2D function at file 'boot.lua:377' (best guess)
Local variables:
func = Lua function '?' (defined at line 887 of chunk main.lua)
inerror = boolean: true
deferErrhand = Lua function '(Love2D Function)' (defined at line 348 of chunk [love "boot.lua"])
earlyinit = Lua function '(Love2D Function)' (defined at line 355 of chunk [love "boot.lua"])

#

what is the issue

sudden ether
#

what does the gamblecore folder look like?

heady lantern
#

(also why the hell did discord turn a part of it into an emoji)

sudden ether
#

also what a compelling mod list

heady lantern
#

oh

#

its it twice ffs

#

i only now noticed it Anna_Facepalm

sudden ether
#

yeah actually why is there a folder for it in the repo?

#

makes it annoying to clone into

heady lantern
soft salmon
gray abyss
#

turn this off

heady lantern
soft salmon
#

the only emoji in there is :11: which is an emoji from another server you are in

gray abyss
#

i mean if you didnt already have it off you may as well

soft salmon
#

that's not discord's fault that's nitro messing with stuff

soft salmon
#

this should play when Perkeo copies a WoF (while writing this message i realized Wheel of Fortune has the same abbreviation as Wall of Flesh)

hidden yacht
#

Re;Shuffled idea?

gray abyss
hidden yacht
#

Wall of Flesh as Wheel of Fortune

rough violet
#

dont forget fishingcore

soft salmon
#

Shiver me Timbers! (when wheel of fortune hits swashbuckler)

civic ridge
soft salmon
#

plays if the first tarot you use in a run is WoF

mighty jolt
#

how do i nest the folders right

soft salmon
#

just be sure that there aren't 2 folders with the same name

#

balatro/mods/gamblecore/