#Twitch Overlay - A deck tracker with twitch overlay [WIP]

1 messages · Page 1 of 1 (latest)

native radish
#

The hearthstone deck tracker of balatro

Currently in development still working on making the mod work with vanilla jokers

#

Twitch Overlay - A deck tracker with twitch overlay [WIP]

native radish
#

made a bunch of progress on this. its coming together. we can now read the full shop state. next step is reading the pack states

native radish
native radish
#

Currently im working on the mod that can read any game state even modded ones. but once im done with that i want to be able to make a stand alone app that reads the state of the game without the help of SMODS so that fully vanilla streamers can play using my utility too.

#

So yes i was asking about modded packs because i was wondering how to do it so that its implemented inside of my mod, but when it comes time for me to make the app im gonna remove that feature

exotic locust
#

Was your question how to get modded objects without SMODS?

native radish
#

no how to get modded pack from smods event

exotic locust
#

So an SMODS.calculate_context hook isn't working for you?

native radish
#

i might not have updated smods in a while gimme a sec

#

im still on an old branch using the LSP def, didnt know they had merged it into main

exotic locust
#

yeah they merged a lot of stuff in beta

reef coral
native radish
#

very cool, ill see if the context works now

native radish
reef coral
native radish
native radish
#

just trying to integrate with what everyone else is doing

exotic locust
native radish
#

ok gimme a sec

#

so what should be the context i should hook into for the opening of the packs @exotic locust ?

exotic locust
#

context.open_booster

native radish
#

context is always nil for me

exotic locust
#

that's very weird

native radish
#

let me check if its because of a thing

#
local calculate_context_ref = SMODS.calculate_context
function SMODS:calculate_context(context, return_table)
    calculate_context_ref(self, context, return_table)
    print(context)
    if G.shop_jokers ~= nil and G.shop_jokers.cards ~= nil then
        local currentlyAvailableJokers = getAllCardContents(G.shop_jokers.cards)
        print(JSON.encode(jsonify(currentlyAvailableJokers)))
    end
    if G.shop_vouchers ~= nil and G.shop_vouchers.cards ~= nil then
        local currentlyAvailabkleVouchers = getAllCardContents(G.shop_vouchers.cards)
        print(JSON.encode(jsonify(currentlyAvailabkleVouchers)))
    end
    if G.shop_booster ~= nil and G.shop_booster.cards ~= nil then
        local currentlyAvailableBoosters = getAllCardContents(G.shop_booster.cards)
        print(JSON.encode(jsonify(currentlyAvailableBoosters)))
    end
end
#

am i doing something wrong here?

#

i wasnt returning...

exotic locust
#

yeah

native radish
#

and changing the way im calling the smods functions also did a thing

#

like i need to call it
SMODS.calculate_context(context,return_table) not SMODS:calculate_context(context,return_table) which is weird, its like the first function i need to call that way

exotic locust
#

yeah i just noticed that too

#

smods is not an object

native radish
#

OOOOOHHHHHHH

#

thats what it is

exotic locust
#

self was always nil

native radish
#

ok so now i know, SMODS function = . vanilla function = :

exotic locust
#

for the most part yeah

#

functions in G.FUNC are . as well

native radish
#

i havent had to call funcs from G yet only from Game

#

so yeah like i was thinking, if i try to use SMODS.calculate_context on boosters it also counts vanilla boosters, which i can already parse

#

i think ill try
SMODS.Booster.update_pack instead

exotic locust
#

well if that doesn't work you can also just check if it's a vanilla booster

native radish
#

yeah

#

well thats weird

exotic locust
#

did you resume a run after updating

native radish
#

it wont even launch

#

i just turned on cryptid

exotic locust
#

yeah you need to update cryptid

native radish
#

without cryptid it works

#

was about to do that