#💻・modding-dev

1 messages · Page 391 of 1

manic rune
#

saber animations were really disappointing

spice wadi
#

I'm working on a mod for a game I've basically quit

manic rune
#

and shes my motivation to grind hsr

#

so it kind of demotivated me a lot

#

its only the ult that i think is cool

normal crest
#

really? she looked fine to me

manic rune
#

other animations are like, 4*-quality

keen totem
#

what do yall think of the quadratic formula joker

normal crest
#

castorice is the outlier tbh

manic rune
#

asides from the ultimate

normal crest
#

yeah

manic rune
#

i think its pretty bland

#

like, i will argue that xueyi's animations look more satisfying 😭

keen totem
#

whats with needing to publish source code

#

is that for like the mod manager

spice wadi
keen totem
manic rune
keen totem
#

like half joker

wind steppe
manic rune
#

doesnt help the fact that shes in the same version with phainon too

#

and phainon animations are just insane

outer basalt
#

thats actually a similar to my idea. i dont really know how it would be implemented though. kindof like equipment esque for your jokers. let me just flex a bit on my drawing skillz

keen totem
#

the plus-minus sign is

  • for chips
    '-' for mult
wind steppe
#

what is x

keen totem
#

x is +chips and +mult

spice wadi
manic rune
#

and a lot of important reruns in 3.4 like tribbie, with phainon and 2 collab characters is just making my wallet cry

#

sob

outer basalt
keen totem
#

what point do you need to publish it

keen totem
#

cause idk where you actually publish balatro mods

manic rune
#

reminds me of yellow diamond from steven universe actually

wind steppe
normal crest
red flower
keen totem
#

here, thunderstore, and that one mod manager right?

outer basalt
manic rune
outer basalt
keen totem
#

(i hate thunderstore's publishing to my very core tho)

normal crest
#

i will admit that sucks, personally i just don't bother with trying to get a specific character

red flower
#

i got castorice and no one else from >3.0

#

is that good

manic rune
#

same

outer basalt
#

YES

gusty iron
#

i had a cool boss blind idea, and i want to know if its possible.

"The Anomaly."
"Replay the same boss blind 8 times."
"If there is an anomaly, please lose the blind."

manic rune
#

though the dot buffs are very nice

normal crest
#

castorice is quite broken

spice wadi
manic rune
#

dot team's average cycles in moc lessened by like, 3c now

keen totem
#

is there a base SMODS thing for ^mult

normal crest
#

i got both castorice and anaxa, won both 50/50s at ~75 pity

keen totem
#

or do you need to customcode that

manic rune
#

damn

red flower
normal crest
#

i'm more happy with anaxa than castorice tbh

outer basalt
#

i have dragon, butterfly, and meaning of death autism so ofc i needed castorice

normal crest
#

he's my favorite character so far

keen totem
#

oh

#

i just custom made it myself

outer basalt
#

i didnt even see her kit before getting her

manic rune
rustic swallow
#

how do i make soul_pos use a different sprite than the base joker sprite

outer basalt
#

just that she has a MASSIVE FUCKIN DRAGON

manic rune
keen totem
red flower
normal crest
#

phainon's feel like they could belong to any random gacha turn based game

red flower
keen totem
#

yes

red flower
#

yeah thats talisman

keen totem
#

its the part where it compares amt in common_functions

rustic swallow
manic rune
#

soul_pos uses the same atlas as pos, like i previously said

#

aka the same image

outer basalt
manic rune
keen totem
#

should i put the name of the mod im working on in my name or is that just something some ppl do

outer basalt
manic rune
#

sob

red flower
normal crest
#

i guess for me i haven't spent money in the game so I don't have any kind of attachment to it

#

i don't expect anything out of it

keen totem
#

my mod name is just my username

#

so

red flower
#

i spent a lot on hsr

#

that reminds me i need to but the battle pass

manic rune
#

ive been playing since 1.1, so yeah

#

:3

#

silver wolf buff is super cool

normal crest
#

i started in 2.6

keen totem
#

all of my mods in any game are just "CGNik's [whatever the mod adds]"

manic rune
#

r/acheronmain is going wild now

normal crest
rustic swallow
manic rune
#

wuh

red flower
manic rune
#

what do you mean by that

normal crest
outer basalt
manic rune
#

im currently playing zzz and pgr, i think i might like hack and slash games

outer basalt
#

I'm also playing zzz yooo

keen totem
#

i am playing too many incremental games please help me

manic rune
#

balatro zone zero coming soon

normal crest
outer basalt
#

played it once wayyy back and kindof hated it at first but now I love it sm

normal crest
red flower
normal crest
#

aw

#

i wish they added cross region friend lists

manic rune
#

same

outer basalt
red flower
#

the ping is crazy tho im just there because my friend is italian

rustic swallow
normal crest
#

change x and y accordingly

#

position in the same atlas as pos

manic rune
normal crest
#

it's like 180ms most of the time

wind steppe
#

why does my achievement not pop up visually?
code:

SMODS.Achievement{
    key = 'deathbypineapple',
    hidden_name = false,
    hidden_text = true,
    bypass_all_unlocked = true,
    earned = false,
    unlocked = false,
    reset_on_startup = true, -- uncomment to reset achievement. Should be a onetime thing and then the player goes "dont do that again"
    unlock_condition = function(self, args)
        return args.type == 'deathbypineapple'
    end
}
SMODS.Joker{ -- Pineapple implementation. TODO: fix achievement
    key = 'pineapple',
    config = { extra = {
        xmult = 3
    }
    },
    pools = { ["Food"] = true },
    rarity = 1,
    cost = 2,
    blueprint_compat = true,
    eternal_compat = false,
    perishable_compat = false,
    loc_vars = function(self,info_queue,card)
        return {vars = {card.ability.extra.xmult}}
    end,
    calculate = function(self, card, context)
        if context.joker_main then
            return {
                xmult = card.ability.extra.xmult
            }
        elseif context.end_of_round then
            G.STATE = G.STATES.GAME_OVER
            G.STATE_COMPLETE = false
            check_for_unlock({type = 'deathbypineapple'})
        end
    end
}
manic rune
#

still very proud of this little guy :3

wind steppe
#

i can hear it pop up and checking the mod settings shows i got it but it doesn't appear visually

normal crest
#

big chicken

outer basalt
normal crest
#

sushang and lynx were the two characters that made me see hsr as an absurd comedy game tbh

#

the other characters all had serious animations

manic rune
#

lynx and her bigass pill

normal crest
#

i used lynx so much too

manic rune
#

what about m7 hunt tho

outer basalt
#

lynx was deadass my only healer for ages

normal crest
#

by the point i got m7 hunt i was used to it

outer basalt
#

I was scraping by with. SUSTAIN WELT

normal crest
#

also it really fits her

manic rune
#

yeah true

#

cant wait to see her new 5* form in hsr

keen totem
#

X5 Mult in a common joker, but at the end of the round it goes Eternal and loses all effects

manic rune
#

i think 3.5 will have another form of dan heng, if im not wrong

red flower
#

i started the game with bronya seele bailu tingyun

normal crest
#

will it actually be good

manic rune
#

i started the game with silver wolf, yanqing, gepard and someone else i forgot

#

:3

normal crest
#

i have dhil and i never used him

manic rune
#

lost 50/50 to yanqing

#

fuck

normal crest
#

dhil and his light cone

outer basalt
manic rune
normal crest
#

I played all the early game with yanqing xueyi lynx and someone else

wind steppe
#

why is gacha in the balala modding channel

rustic swallow
normal crest
#

got yanqing on the beginner banner

outer basalt
#

wait ya we should move

manic rune
#

i have yanqing e2 rn

#

:3

outer basalt
#

the gacha discussion

manic rune
#

true

red flower
manic rune
outer basalt
#

oo

manic rune
#

-# check it out btw

#

i think the cocolia boss fight is cool

normal crest
#

i haven't touched balatro in months

rustic swallow
red flower
#

balatro star rail is like one of the top 5 mods i played this year

normal crest
rustic swallow
#

oh

manic rune
normal crest
#

afaik you can't define different atlases for soul and normal pos

outer basalt
#

my early game was uh. Welt with his Light Cone, Kafka, Lynx and Robin w/ her Lightcone

manic rune
#

im considering adding light cones to bsr

#

:3

normal crest
#

that reminds me, I loved Welt at first, but he was very underwhelming

#

Anaxa is just better welt

outer basalt
#

you dont understand the bit

rustic swallow
manic rune
#

oh no, welt was fine for me, dps welt was cool as hell

normal crest
#

i got him on 2.7 :(

manic rune
# rustic swallow

im pretty sure i told you the soul sprite needs to be in the same image as the joker

manic rune
#

-# and i think very few people used it too

#

sorry

#

;(

outer basalt
#

my robin is also like. beefed up as like a sub dps.

rustic swallow
normal crest
manic rune
#

separate?

normal crest
#

just add a different joker slot on the right of that and put the soul sprite

#

so you get two joker sprites side by side

rustic swallow
manic rune
#

im very proud of my jingliu build

normal crest
#

with weaker enemies

manic rune
#

got like, 3k5 atk, 40/280 crit

#

though shes gonna switch to hp-scaling, so

#

gjamlds

spice wadi
manic rune
#

and i dont think she needs that much crit dmg anymore too

normal crest
#

yeah she gets a lot of crit dmg in the buffs

manic rune
#

rip my SSS/OP relic pieces

#

i spent ~6 months grinding for her

normal crest
#

prob better to go for ice dmg (i don't have her tho, so ignore me)

manic rune
#

:(

manic rune
red flower
#

bepis can i give you 50 dollars to manage my relics for me

manic rune
#

i also have full dot team too, so thats cool

manic rune
red flower
#

i hate metagaming

normal crest
red flower
#

i need someone to hold my hand and tell me exactly what to put on characters or i get bored

manic rune
#

i think only myst ever used SMODS.Achievement

normal crest
#

glad to seeing people use the Food pool tho

red flower
keen totem
manic rune
manic rune
#

a

normal crest
#

i never farm relics, I just craft them

red flower
normal crest
#

i did a bit on the 3x drops but i got trash

manic rune
#

i use prydwen to figure out what build i should have for my characters

#

super cool website

normal crest
#

i use that for end game stats mostly

spice wadi
manic rune
#

i will also add achievements to yggdrasil soon, just uh, when i get the art done :3

#

is this good actually

outer basalt
#

oh god the soul_pos discussion is gone my shitty diagram is useless

outer basalt
manic rune
#

im new to pixel art so

normal crest
wind steppe
normal crest
#

is that for yggdrasil

manic rune
#

:3 aw thanks

manic rune
normal crest
#

skill tree mod?!

manic rune
#

skill tree, crafting mod

#

yggdrasil was initially not planned at all, actually

#

bsr was supposed to have a skill tree as one of its updates

#

but people wanted it to be a separate mod of its own, so

normal crest
#

is it a library for skill trees or a content mod

manic rune
#

both

normal crest
#

:D

outer basalt
#

i opened my art to see which character i was working on next and its the reason i dumped all my free eidolons into welt 😭

manic rune
#

you can add your own sections and skills very easily, so yeah

outer basalt
#

well. he doesnt look much like him in this era

#

but the second card for him will be much more welt-y

keen totem
#

how do i make a joker eternal

manic rune
#

:add_sticker("eternal")? not sure if thats the key

signal rose
#

like always be eternal or when its spawned by something

keen totem
#

when triggered to be eternal

normal crest
#

card:set_eternal()

#

i think

#

don't look at me if it's wrong tho

manic rune
#

seems like it

red flower
#

i want to make this animation look a bit nicer..

faint yacht
#

:set_eternal(true) and :set_eternal(false) to add/remove respectively.

manic rune
normal crest
manic rune
#

and maybe some shuffle effects?

normal crest
#

or is that too much

outer basalt
#

maybe if it moved to the left a bit as its being flipped over like in an arc

red flower
#

i feel like dissolve would make it look like they are being destroyed, same with shuffle, i dont want them to think the deck is shuffled

outer basalt
keen totem
red flower
#

evil

keen totem
#

yeah

#

how do i get the tag of the current blind

red flower
outer basalt
# red flower hmm i dont get it

like to give it a more natural feel than just turning over in place. It makes it look like its actually being grabbed and flipped over.
Like adding anticipation to the animation can make it clearer and easier on the eyes

red flower
#

my problems would be solved if the deck drew from the top like a normal deck would lol

outer basalt
#

oh is it from the bottonm??

#

I mean I think my idea still works lol its just extremely cursed to me

red flower
outer basalt
#

ah

normal crest
#

i think the flipping animation looks fine

#

you're right that the disappearing feels a bit sudden

outer basalt
#

maybe just like throwing them off to the side with a little fade?

red flower
#

yeah, I don't know how to make it look like it's the top card of the deck

#

(because it's actually not in the deck)

red flower
outer basalt
#

like just a simple transition whilst moving them to the side? Now that I think about it im not sure thats what you were going for

keen totem
red flower
#

im trying to show the top x cards of the deck

outer basalt
#

okay

manic rune
#

chat will i win

red flower
#

there are going to be effects that depend on hitting a certain rank/suit/enhancement etc

normal crest
red flower
normal crest
#

don't remember any tag ids

wind steppe
keen totem
normal crest
#

uhhh

wind steppe
keen totem
#

(like how that one cryptid joker does)

#

it does

manic rune
normal crest
#

it's buried somewhere in G.GAME.current_round or smt

#

i don't remember exactly but if you have debugplus you might be able to find it easily

red flower
keen totem
manic rune
#

true

normal crest
#

i need to know

manic rune
#

one sec

outer basalt
# red flower im trying to show the top x cards of the deck

hm. the best thing I can think of is the original idea i had. Or making it slower actually, since it might make it a bit easier to understand whats going on.

OR maybe particles coming out from the card when its 'put back' think like dust ?

#

Not sure how feasible either of those would be

red flower
#

a bit slower would be annoying i feel, someone already asked me to do multiple at once lol

manic rune
#

classic balatro stuffs yk

red flower
normal crest
#

Insane eidolons

#

Infinite money

manic rune
#

polterwox joker but balanced
-# i think

outer basalt
#

must have fast dingding ding number Bigggg

red flower
#

i mean this is supposed to happen once a blind so i get it

outer basalt
#

I also understand not wanting it to be slower LOL animation is all about making sure you can see whats happening while gaming is all about speed

manic rune
#

i might actually have to nerf kafka later

#

its still crazy how good she is just from eidolon 0

normal crest
#

you can't!

#

you have to buff her along with the game

manic rune
#

sob

red flower
normal crest
#

also from what I saw it seems they made the buffs optional

manic rune
#

yeah

normal crest
#

so you still can use the old versino

manic rune
#

but lets be honest, why would we want kafka to be worse

high sinew
#

@red flower this right? crashing game

normal crest
#

for comparisons!!!

manic rune
#

i get it for jingliu since her build is completely different now

#

true

red flower
#

kafka is my fav hsr character probably

outer basalt
manic rune
#

same

#

biased since shes my first dps too

#

:3

red flower
signal rose
#

any quick way to find whats triggering G.FUNCS.text_input_key, because i can't figure out whats calling it at all

high sinew
normal crest
#

it's prob called in ui elements

#

some definition of an ui element that specifies that func

high sinew
uncut cloud
signal rose
high sinew
normal crest
#

could also be other mods, or even steamodded itself

manic rune
#

i need a button in the middle

signal rose
#

well right now im just trying to make it possible to type 0 into create_text_input, and while bepis has done it in yggdrasil, and that method 100% works, i want to try and make a way that won't cause a mod conflict
nevermind, i was just doing the patch wrong lol

red flower
normal crest
#

it plays a very loud pom pom sound

uncut cloud
red flower
#

you also need a button in between those and the joyousspring graveyard

normal crest
#

you need a button on every empty space

manic rune
#

good idea

normal crest
#

if you click the correct one you win the round

#

otherwise the game closes

high sinew
#

@uncut cloud pretty sure i did tho

red flower
#

let's replace all card based gameplay with buttons

manic rune
#

otherwise you are obligated to do a x10 in hsr

manic rune
#

and removes the spacing

outer basalt
manic rune
#

{C:purple,s:1.2}

normal crest
#

blasphemy, i always did s:1.2 first

red flower
#

i want to play the new hsr story but hundred line is so long lmao

manic rune
#

i did the color first

#

:3

unborn bay
#

hi bepis

#

hi n

red flower
#

hi hayaya

normal crest
#

i actually enjoyed the new hsr story

manic rune
#

also, from what i heard, ||everyone fucking dies in the story??|| story spoilers

high sinew
manic rune
#

hi haya

manic rune
#

truly a heartwarming story

uncut cloud
outer basalt
#

how is he still triggering multiple times 😭 what the hell is happening

high sinew
manic rune
#

yeah, thats just something i noticed

normal crest
manic rune
#

also, probably unrelated but update smods

high sinew
normal crest
#

it finally allowed me to truly enjoy it

#

you don't expect fancy animations from a book anyway

outer basalt
high sinew
outer basalt
#

sometimes even sleep to them

normal crest
#

i can't imagine sleeping to them

#

and waking up to mem

#

mem mem mem

red flower
outer basalt
manic rune
outer basalt
manic rune
#

fell asleep while doing hsr story once

normal crest
#

that might mean it's so boring u get sleepy

high sinew
normal crest
outer basalt
#

OH MY GOD IT WORKS

manic rune
#

wake up to see 10 am turning to 7 fucking pm 😭

#

felt like i was in a dream, cant explain ihy

red flower
high sinew
uncut cloud
#

does anyone have any idea why this doesnt work
this' a joker btw im testing a part of it rn and havent been able to get a sticker on another joker

normal crest
manic rune
#

trailblazer spacing out for 9 hours and they can do nothing about that

normal crest
#

there has to be a horror story about being an npc in that scenario

manic rune
#

wouldnt be surprised if theres a niche side story about that tucked in a hidden corner somewhere

normal crest
red flower
normal crest
#

nil == false is false apparently

red flower
red flower
#

that game_over means something when its nil

normal crest
#

huh

manic rune
#

oh thats new knowledge

red flower
#

but idk if that's true

normal crest
#

probably not important enough

#

unless it's smt new from smods

red flower
#

but anyway if you see it it's because they're copying my vanillaremade stuff

outer basalt
# outer basalt

I think my cat fixed it cause as soon as she started hanging out around my laptop it worked <333

normal crest
#

noted

hybrid shadow
#

is it possible to do smth inside a calculate function that counts up like

      for k, v in pairs(G.play.cards) do
         if v:is_suit("Hearts") then
           suits = suits + 1
         if v:is_suit("Spades") then
           suits = suits + 1
         if v:is_suit("Clubs") then
           suits = suits + 1
         if v:is_suit("Diamonds") then
           suits = suits + 1
end```

?
uncut cloud
normal crest
hybrid shadow
red flower
#

you can also use context.full_hand

outer basalt
hybrid shadow
red flower
#

no it's a local so it will reset every time

#

the only problem is with wild cards probably

#

oh wait i thought those were eleseif

hybrid shadow
red flower
#

you wrote

if cond then
    code
if cond then
    code
end

so i read those as elseifs

#

if they're elseif they're not going to count wild cards properly

hybrid shadow
#

since they're just if, do they count wild cards properly

red flower
#

probably

manic rune
#

i think good coders will throw up reading yggdrasil's code

red flower
#

i throw up reading any code not made by me

manic rune
#

even eremel's? damn you got some ego

red flower
#

i throw up reading any code not made by me in the last 3 months

manic rune
#

a

sturdy compass
#

Oh my god I just pulled SMODS to find out Eremel finally pushed a universal hand limit API HandsUp

#

At long last

vagrant cedar
#

Guys I am become lost

manic rune
#

yeah its super cool

vagrant cedar
#

I'm trying to make a consumable

manic rune
#

🔥

vagrant cedar
#

That when used, creates a specific Joker

red flower
#

i want my PRs to get merged

outer basalt
manic rune
sturdy compass
#

Whatever at least it's less destructive now

red flower
manic rune
#

yeah it looks super useful

outer basalt
manic rune
#

i gamedev because roblox sucks

hybrid shadow
#

how would i make a deck where all the cards have one enhancement

sturdy compass
#

Same body makes code in two wildly different styles 😭

outer basalt
# manic rune i gamedev because roblox sucks

okay so our first project was inspired by pressure but we were so adamant about not doing it on roblox so we learned gdscript. only to learn that we couldve been doing lua the entire time

vagrant cedar
red flower
#

i love godot but ive never finished a game

manic rune
#

@glad osprey

sturdy compass
#

gdscript is admittedly pretty neat

glad osprey
#

hello

red flower
#

hi

manic rune
sturdy compass
#

hello quid

outer basalt
#

also hi

glad osprey
manic rune
#

gdscript, like, geometry dash script??

sturdy compass
outer basalt
#

im an (not introject but close enough) of our pressure au oc lol

red flower
#

anyway i should sleep i work tomorrow

outer basalt
#

byeee

hybrid shadow
hardy viper
#

opnly british people like teto

outer basalt
#

thanks for all your help

manic rune
#

N', is using math.huge in this case valid

#

:3

rustic swallow
#

how would i set up the soul_pos so that only the joker is used?

vagrant cedar
manic rune
vagrant cedar
#

or just remove it and move the other part to the next line

manic rune
#

yes

vagrant cedar
#

ok

#

let me test that

outer basalt
sturdy compass
#

lol nice

manic rune
#

also, gn N'
-# i read that too late i think

outer basalt
manic rune
rustic swallow
manic rune
#

talking with yall was so nice i forgot to code my mod for like 2 hours wtf

#

sob

sturdy compass
#

LMAO

#

Honestly kind of a mood tho

wind steppe
#

real

high sinew
#

found issue since it still was crashing does the table for colors need to be number? i have input as hex string but lsp def says other

#

this too was with it

outer basalt
#

grrr

sturdy compass
#

Dev chat is supposed to help make that easier on ya lol

manic rune
#

i think im good enough with ui now, hopefully?

#

the past 1 week of ONLY working on ui made me want to poke my eyes out so badly, but at least they work now

#

-# eremel will still probably kill themselves reading my mod's code

wind steppe
#

before i go does anyone know why my achievement does not pop up visually?
code:

SMODS.Achievement{
    key = 'deathbypineapple',
    hidden_name = false,
    hidden_text = true,
    bypass_all_unlocked = true,
    earned = false,
    unlocked = false,
    reset_on_startup = true, -- uncomment to reset achievement. Should be a onetime thing and then the player goes "dont do that again"
    unlock_condition = function(self, args)
        return args.type == 'deathbypineapple'
    end
}
SMODS.Joker{ -- Pineapple implementation. TODO: fix achievement
    key = 'pineapple',
    config = { extra = {
        xmult = 3
    }
    },
    pools = { ["Food"] = true },
    rarity = 1,
    cost = 2,
    blueprint_compat = true,
    eternal_compat = false,
    perishable_compat = false,
    loc_vars = function(self,info_queue,card)
        return {vars = {card.ability.extra.xmult}}
    end,
    calculate = function(self, card, context)
        if context.joker_main then
            return {
                xmult = card.ability.extra.xmult
            }
        elseif context.end_of_round then
            G.STATE = G.STATES.GAME_OVER
            G.STATE_COMPLETE = false
            check_for_unlock({type = 'deathbypineapple'})
        end
    end
}
manic rune
#

sadly no :(

outer basalt
outer basalt
#

also.. death by pinapple...

#

anwyays uh. how to destroy card. I've been so focused on moving the card i. realized i dont know how to do this

wheat jewel
#

Idk what happened but a joker that's supposed to be retriggering isn't retriggering jokers at all

glad osprey
#

tell tanger

#

something idk wjat

sturdy compass
wind steppe
sturdy compass
wind steppe
#

it just doesnt pop up visually

#

hold on let me send a recording

sturdy compass
#

That's kinda what I meant

#

hmm

glad osprey
outer basalt
sturdy compass
#

She still wouldn't care tr

glad osprey
#

fair enough

sturdy compass
outer basalt
#

poggers

sturdy compass
#

where 'card' is a reference to a card object

wind steppe
sturdy compass
#

I wonder if it's some weird conflict with the states changing

outer basalt
#

off topic but artirabid the card textures

wind steppe
#

how do i delay something

sturdy compass
#

maybe slap your unlock check in an event??

#

Just an idea

rustic swallow
#

how would i make context.remove_playing_cards include all playing cards removed instead of just if a playing card is removed?

wind steppe
#

like this?

        elseif context.end_of_round then
            G.STATE = G.STATES.GAME_OVER
            G.STATE_COMPLETE = false
            G.E_MANAGER:add_event(Event({
                func = function()
                    check_for_unlock({type = 'deathbypineapple'})
                end
                return true
            }))
        end
sturdy compass
#

ye try that

wooden nexus
#
    calculate = function(self, card, context)
        if context.cardarea == G.play and context.main_scoring then
            for i = 1, self.config.extra.DupeAmount do
        local new_card = copy_card(card, nil, nil, G.playing_card)
        new_card:set_seal(nil)
        new_card:add_to_deck()
        G.deck.config.card_limit = G.deck.config.card_limit + 1
        table.insert(G.playing_cards, new_card)
        G.hand:emplace(new_card)
        new_card.states.visible = nil
        G.E_MANAGER:add_event(Event({
            func = function()
                new_card:start_materialize()
                G.GAME.blind:debuff_card(new_card)
                G.hand:sort()
                return true
            end,
        }))
            end
        end
    end,
}```

Why is this not working with Hologram?
#

It's a seal btw, (is that why it's not working?)

wheat jewel
#

i'm trying to make a retrigger joker but it isn't retriggering any jokers to the right

wind steppe
sturdy compass
#

Now that's quite odd

sturdy compass
#

Specifically not hologram? or is it all jokers

outer basalt
sturdy compass
#

LMAO

wooden nexus
#

Well the seal creates a copy of itself, so specifically hologram

wind steppe
#

do stone joker and steel joker properly update?

sturdy compass
wooden nexus
#

Stone does properly update

vagrant cedar
#

Guys, anybody know what I did wrong here? I'm not getting a crash, the card shows up in game, but it doesn't let me click use.

wooden nexus
#

It's just hologram

sturdy compass
#

My guess is copy_card doesn't actually trip the playing_card_added context

wooden nexus
#

DNA trips it

wind steppe
sturdy compass
#

hm

#

it does

wooden nexus
sturdy compass
#

AH ok I see how DNA does it

wind steppe
#

why is it designed like this

#

lmao

sturdy compass
#

there's this funny extra thing in the return that probably trips it

#

So maybe do this in your seal?

faint yacht
#

I just playing_card_joker_effects(addedcards).

glad osprey
#

where are decks defined in the source code (the decks themselves, not the class)

wind steppe
sturdy compass
#

Why am I not looking in there I fkn contributed to it 😭

glad osprey
#

because I'm trying to make a mod not dependant on smods

wind steppe
#

that is a death sentence

glad osprey
#

ok you got an answer or

wind steppe
#

no

#

probably in card.lua

outer basalt
#

how to i implement my own custom colors?

wooden nexus
#
SMODS.Seal {
    key = "Silver",
    atlas = "BCU_centers",
    pos = {x = 0, y = 5},
    config = {extra = {DupeNum = 1, DupeDenom = 2, DupeAmount = 1}},
    discovered = false,
    prefix_config = {
        key = {mod = false}
    },
    badge_colour = HEX('B1B1B1'),
    shiny = true,
    sound = { sound = 'gold_seal', per = 1.2, vol = 0.4 },
    loc_vars = function(self, info_queue, card)
        return {vars = {self.config.extra.DupeNum, self.config.extra.DupeDenom}}
    end,
    calculate = function(self, card, context)
        if context.cardarea == G.play and context.main_scoring then
            for i = 1, self.config.extra.DupeAmount do
        local new_card = copy_card(card, nil, nil, G.playing_card)
        new_card:set_seal(nil)
        new_card:add_to_deck()
        G.deck.config.card_limit = G.deck.config.card_limit + 1
        table.insert(G.playing_cards, new_card)
        G.hand:emplace(new_card)
        new_card.states.visible = nil
            G.E_MANAGER:add_event(Event({
                func = function()
                    new_card:start_materialize()
                    G.GAME.blind:debuff_card(new_card)
                    G.hand:sort()
                    return true
                end,
            }))
            return {
                card = self,
                playing_cards_created = {true}
            }
            end
        end
    end,
}```
#

And... nothing

sturdy compass
sturdy compass
outer basalt
wind steppe
# wooden nexus i'm so confused

dna does this

                func = function() -- This is for timing purposes, it runs after the message
                    G.E_MANAGER:add_event(Event({
                        func = function()
                            SMODS.calculate_context({ playing_card_added = true, cards = { copy_card } })
                            return true
                        end
                    }))
glad osprey
outer basalt
glad osprey
outer basalt
#

i think i found them once before because I was VERY lost on my fist attempt at modding. godforbid i remember though

high sinew
#

im not sure honestly what im doing wrong tested with norm colors in game and still crashing anyone know?

outer basalt
outer basalt
sturdy compass
glad osprey
sturdy compass
umbral zodiac
#

anyone know what card area that cards in packs are in?

glad osprey
#

iirc

wind steppe
umbral zodiac
#

ty

glad osprey
sturdy compass
#

u got it

outer basalt
sturdy compass
#

That's the functionality of the deck, not the deck object

wheat jewel
#

i'm trying to make a joker retrigger jokers to the right but it doesn't do so

outer basalt
#

yeah that would be game.lua 😭

umbral zodiac
#

how could i forcefully move a card from g.pack_cards to g.consumeables
trying to make a card that forces itself into your consumables if you see it at all

#

would it just be emplacing it in consumables or smtn else

wind steppe
wooden nexus
wind steppe
#

maybe other way around

sturdy compass
#

Looks like a rogue self error lol

wind steppe
#

should be card:juice_up() afaik

wooden nexus
sturdy compass
#

Hmm

outer basalt
#

THIS SCARED ME SO BAD I THOUGHT I BSOD'ed 😭 why is the crash like this

sturdy compass
#

well something's not happy about you trying to juice it up

sturdy compass
#

Your consumable type doesn't have any color attributes

outer basalt
#

i never made any consumables

wooden nexus
#

So what do I do then? add a juice_up?

sturdy compass
#

I think

sturdy compass
outer basalt
#

no. i renabled cryptid though? idk if something went weird with it

#

so logically i disabled it again and now i get this

sturdy compass
#

Did you make a rarity? 😭

wind steppe
#

i think balatro has decided to delete all its important files

#

reinstall it and steamodded

outer basalt
sturdy compass
#

Also it's typically best to develop with a clean environment (no other mods you don't intend to develop alongside)

outer basalt
#

yeahhh thats why i disabled them but i wanted to study something from cryptid

#

I'm gonna restart my computer bcs i was having random ass issues with JenLib earlier for no apparent reason that restarting fixed (it wasnt even modding related. it just hated me)

sturdy compass
#
  1. If you wanna do that just pull up the github lol
  2. Cryptid is notoriously bad to study because of it's self-defined conventions built on old modding standards that are well outdated
outer basalt
#

fair enough

wind steppe
#

the only reason to look at cryptid is if you specifically want cryptid compatibility

#

and you dont have it yet

sturdy compass
#

Or it does something nothing else does and you wanna figure out how

wooden nexus
#

coding while food poisoned. yaaaay

sturdy compass
#

Looking closer it's in common_events.lua so it's no one of yours

sturdy compass
wooden nexus
#

I can't sleep because of it

sturdy compass
#

blegh

wind steppe
#

you have to try anyways

wooden nexus
#

I wanna get this seal working before i try

wind steppe
#

what do we think

outer basalt
#

Okay resetting did not work. Looks like I'll either need to reinstall or replace files cause I do just have another copy of the files on my computer. Because I was very lost on my first foray into modding.

#

That's a thing for tomorrow me though. I'm going to take this as a sign from God to Cease

wheat jewel
#

i'm trying to make a joker retrigger other jokers to the right but it doesn't do it, does anyone know what's causing that issue

sturdy compass
#

/j

wooden nexus
#

I got no idea tbh

sturdy compass
#

Yeah no that sounds like a mess lol

willow nimbus
#

are there any other documentations outside of steamodded's github?

outer basalt
#

Seems easy from a game dev perspective. Idk how well it would work in Smodded

wind steppe
#

i could also just make multiple recolored versions

willow nimbus
sturdy compass
#

np

wooden nexus
outer basalt
sturdy compass
outer basalt
wooden nexus
#
    G.E_MANAGER:add_event(Event({
        trigger = 'immediate',
        func = (function() card:juice_up(0.7);return true end)
    }))
end```

that's where it's crashing
wind steppe
sturdy compass
#

where tf does juice_card get called 😭

wooden nexus
#
functions/common_events.lua:1255: attempt to call method 'juice_up' (a nil value)

Additional Context:
Balatro Version: 1.A.0-FULL
Modded Version: 1.0.0~BETA-0506a-STEAMODDED
LÖVE Version: 11.5.0
Lovely Version: 0.7.1
Platform: Windows
Steamodded Mods:
    1: Galdur by Eremel_ [ID: galdur, Priority: -10000, Version: 1.1.4, Uses Lovely]
    2: 1.A.0 by ??? [ID: BalatroCommunityUpdate, Version: 1.A.0, Uses Lovely]
    3: DebugPlus by WilsontheWolf [ID: DebugPlus, Version: 1.3.0, Uses Lovely]
Lovely Mods:

Stack Traceback
===============
(3) Lua field 'func' at file 'functions/common_events.lua:1255'
Local variables:
 (*temporary) = nil
 (*temporary) = table: 0x08a92940  {loc_vars:function: 0x08a92dc0, _saved_d_u:true, original_key:Silver, mod:table: 0x08834bf0, registered:true, badge_colour:table: 0x08a92ce0, _discovered_unlocked_overwritten:true (more...)}
 (*temporary) = number: 0.7
 (*temporary) = string: "attempt to call method 'juice_up' (a nil value)"
(4) Lua method 'handle' at file 'engine/event.lua:99'
Local variables:
 self = table: 0x088b17e8  {start_timer:true, timer:TOTAL, blockable:true, trigger:immediate, func:function: 0x08e8ec48, delay:0, complete:false, time:35.335690537427, blocking:true (more...)}
 _results = table: 0x08c41348  {blocking:true, pause_skip:false, time_done:false, completed:false}
(5) Lua method 'update' at file 'engine/event.lua:182'
Local variables:
 self = table: 0x0848ad58  {queue_last_processed:77.53333333333, queues:table: 0x084886f0, queue_dt:0.016666666666667, queue_timer:77.656603529895}
 dt = number: 0.0166752
 forced = nil
 (for generator) = C function: next
 (for state) = table: 0x084886f0  {unlock:table: 0x08405700, galdur:table: 0x08b68ba0, other:table: 0x0832a0d8, tutorial:table: 0x0851d4d0, base:table: 0x0856a388, achievement:table: 0x0847e330 (more...)}
 (for control) = number: nan
 k = string: "base"
 v = table: 0x0856a388  {1:table: 0x08881c20, 2:table: 0x088b17e8, 3:table: 0x086f7b18, 4:table: 0x08a99a38, 5:table: 0x08567208, 6:table: 0x08e27f90, 7:table: 0x087b3608 (more...)}
 blocked = boolean: false
 i = number: 2
 results = table: 0x08c41348  {blocking:true, pause_skip:false, time_done:false, completed:false}
(6) Lua upvalue 'gameUpdateRef' at file 'game.lua:2573'
Local variables:
 self = table: 0x08349618  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x08cab1a0, F_ENGLISH_ONLY:false, viewed_stake:1, HUD:table: 0x089d1ea0 (more...)}
 dt = number: 0.0166752
 http_resp = nil
(7) Lua method 'update' at Steamodded file 'src/ui.lua:86' 
Local variables:
 self = table: 0x08349618  {F_GUIDE:false, F_CRASH_REPORTS:false, F_QUIT_BUTTON:true, HUD_tags:table: 0x08cab1a0, F_ENGLISH_ONLY:false, viewed_stake:1, HUD:table: 0x089d1ea0 (more...)}
 dt = number: 0.0166752
(8) Lua field 'update' at file 'main.lua:999'
Local variables:
 dt = number: 0.0166752
(9) Lua function '?' at file 'main.lua:938' (best guess)
(10) global C function 'xpcall'
(11) LÖVE function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '?' (defined at line 909 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"])```
#

oop

wind steppe
#

you can send it as a file i think

wooden nexus
#

guess cause I have nitro it won't let me

wind steppe
wooden nexus
#

then what is it?

wind steppe
wind steppe
wooden nexus
#

oh right, no sticker

manic rune
#

redshell mentioned

outer basalt
#

What i do in this situation is put print statements everywhere to find exactly where the value got lost and turned to nil

#

Print my debugging beloved

wind steppe
#

does anyone know why my achievement doesn't pop up visually? i can still hear it and i still get it it just doesnt visually show up when its granted
code:

SMODS.Achievement{
    key = 'deathbypineapple',
    hidden_name = false,
    hidden_text = true,
    bypass_all_unlocked = true,
    earned = false,
    unlocked = false,
    reset_on_startup = true, -- uncomment to reset achievement. Should be a onetime thing and then the player goes "dont do that again"
    unlock_condition = function(self, args)
        return args.type == 'deathbypineapple'
    end
}
SMODS.Joker{ -- Pineapple implementation. TODO: fix achievement
    key = 'pineapple',
    config = { extra = {
        xmult = 3
    }
    },
    pools = { ["Food"] = true },
    rarity = 1,
    cost = 2,
    blueprint_compat = true,
    eternal_compat = false,
    perishable_compat = false,
    loc_vars = function(self,info_queue,card)
        return {vars = {card.ability.extra.xmult}}
    end,
    calculate = function(self, card, context)
        if context.joker_main then
            return {
                xmult = card.ability.extra.xmult
            }
        elseif context.end_of_round then
            G.STATE = G.STATES.GAME_OVER
            G.STATE_COMPLETE = false
            check_for_unlock({type = 'deathbypineapple'})
        end
    end
}
oblique pond
faint yacht
#

G.GAME.blind.config.blind.key hm...

wooden nexus
#

Welp, guess for now it won't trigger hologram, idk

outer basalt
sturdy compass
wooden nexus
#

where?

sturdy compass
#

it's just a function call instead of a return value

wind steppe
#

i doubt its that

#

besides jokers arent invisible with no atlas

outer basalt
#

Interesting

sturdy compass
#

Achievements don't need any sort of atlas/sprites

outer basalt
#

Only other thing I can think of is maybe something going awry with the Loc_txt but I can really tell

sturdy compass
#

I still think it's some weird state shenannigans

wooden nexus
#
SMODS.Seal {
    key = "Silver",
    atlas = "BCU_centers",
    pos = {x = 0, y = 5},
    config = {extra = {DupeNum = 1, DupeDenom = 2, DupeAmount = 1}},
    discovered = false,
    prefix_config = {
        key = {mod = false}
    },
    badge_colour = HEX('B1B1B1'),
    shiny = true,
    sound = { sound = 'gold_seal', per = 1.2, vol = 0.4 },
    loc_vars = function(self, info_queue, card)
        return {vars = {self.config.extra.DupeNum, self.config.extra.DupeDenom}}
    end,
    calculate = function(self, card, context)
        if context.cardarea == G.play and context.main_scoring then
            for i = 1, self.config.extra.DupeAmount do
        local new_card = copy_card(card, nil, nil, G.playing_card)
        new_card:set_seal(nil)
        new_card:add_to_deck()
        G.deck.config.card_limit = G.deck.config.card_limit + 1
        table.insert(G.playing_cards, new_card)
        G.hand:emplace(new_card)
        new_card.states.visible = nil
        G.E_MANAGER:add_event(Event({
            func = function()
                new_card:start_materialize()
                G.GAME.blind:debuff_card(new_card)
                G.hand:sort()
                playing_card_joker_effects(new_card).
                return true
            end,
        }))
            end
        end
    end,
}```
#

Like this?

wind steppe
outer basalt
#

Mym

#

You said it worked just fine on startup?

#

What would the ideal/intended unlock look like for this

sturdy compass
wind steppe
#

this is the ideal unlock (except i want to see it)

#

hold on let me show you the startup one

outer basalt
wooden nexus
wheat jewel
#

Posting this again but i'm having issues with trying to make a joker retrigger another joker to the right but the retrigger never takes effect

sturdy compass
fading cedar
#

I know this question probably gets asked a ton, but how accessible would you guys say modding this game is? I know you can unpack the game's files which has me started on making textures, but I wanted to know how difficult of a task you guys find making jokers are

wooden nexus
#

ok lemme try again

sturdy compass
wooden nexus
#

GRAH I'M GONNA THROW THIS

#

still isn't working

fading cedar
sturdy compass
fading cedar
#

Oh sick thank you

outer basalt
sturdy compass
#

np

#

welcome to the club lol

sturdy compass
#

Pretty sure all of those things are in that thread lol

wind steppe
#

oh are they

sturdy compass
#

Just confirmed it lol

wooden nexus
outer basalt
sturdy compass
#

Try calling the function after your event

wooden nexus
#

you know what's stupid that i should check

outer basalt
#

At least your card didn't fucking eat the files from your Balatro </3

fading cedar
#

Eat the files is crazy work

wooden nexus
#

Check What the heck does Hologram does in-code

wind steppe
#

tastes like spaghetti

outer basalt
#

Don't call my code spaghetti!!!

sturdy compass
#

I don't think it's a hologram issue, it's just a context issue since you're not getting it to trigger lol

outer basalt
#

Actually it's local thunks code I think

#

Or Smodded people's

wind steppe
#

yeah i meant thunks

willow nimbus
#

does anyone know what this means?

wind steppe
#

wasnt really designed to be looked at ig

willow nimbus
#

cant tell if its a stupid mistake of mine or if i installed something wrong

wooden nexus
sturdy compass
wind steppe
#

scroll down

willow nimbus
willow nimbus
outer basalt
wooden nexus
#

why the heck is it called hawk tuah Balatro

willow nimbus
fading cedar
#

I found a website mentioned in the ultrakill mod chat about a website for making jokers. Is this a reliable way to get the blueprint of a joker started or is it more for reference? Sorry for all the questions

outer basalt
wind steppe
#

also why ultrakill of all places

fading cedar
#

Idk it's the ultrakill balatro mod thread

sturdy compass
#

I think I know the one. Honestly it's better to just do it yourself for the experience

fading cedar
#

I was lookin around

#

This

willow nimbus
#

hold on ill send the code

outer basalt
sturdy compass
wheat jewel
#

Idk why this code doesn't retrigger jokers to the right without having another mod installed

willow nimbus
#

(again ignore my poor attempt at naming my mod)

wheat jewel
#

like the retrigger effect just doesn't work at all unless i had another mod loaded for some reason

wind steppe
outer basalt
glad osprey
#

where's the code that makes gold seal render differently than the others

willow nimbus
sturdy compass
willow nimbus
#

im just going off of what i can find from searches in this channel 💔

#

thanks though

outer basalt
wheat jewel
#

What’s that?

sturdy compass
#

Add this to your main file
SMODS.current_mod.optional_features = { retrigger_joker = true }

wheat jewel
#

Ok i added it now i’ll see if it’ll work

outer basalt
wheat jewel
#

It works!!!

outer basalt
#

!;

#

!!

sturdy compass
outer basalt
#

😭😭

wind steppe
#

jimbo needs mouse bites to live

sturdy compass
#

House, MD Joker -
Gives Jimbo a house to live in

wind steppe
outer basalt
#

House had a pet mouse for a couple of episodes

willow nimbus
outer basalt
#

I forgot what happened to it

willow nimbus
#

is it meant to look like this or

wind steppe
sturdy compass
#

LOL

#

If Talisman is causing the crash completely on its own you might just have a bad install

willow nimbus
#

huh

#

that's odd

#

let me try removing it then

glad osprey
outer basalt
sturdy compass
#

...you weren't supposed to know that

wind steppe
#

snorting my spectral cards

willow nimbus
#

not sure why that was happening when it was launching FINE earlier

outer basalt
#

Dude I had a completely random crash happen with JenLib (aka polterworx dependency I think) for NO REASON. Didn't even change code in mine or JenLib. Restarted my computer. Completely fine.

sturdy compass
#

Polterworx a tiny bit smelly imo

outer basalt
outer basalt
sturdy compass
#

Yes but art theft is smelly

wind steppe
#

okay i have to go to bed gn yall

sturdy compass
#

cya paradox

wind steppe
sturdy compass
#

OH GOD

#

So, I heard you wanted Reserved Parking in your Arcana Pack

outer basalt
willow nimbus
#

is there a good way to check/test if a joker i made is actually in the game or not

sturdy compass
willow nimbus
#

alr

#

thanks

sturdy compass
#

Oh wait you mean check if the joker exists in game

#

Just go in your collections

willow nimbus
#

thats a problem because... it wasnt there

sturdy compass
#

Show your code

#

Actually wait do you have a metadata file

willow nimbus
#
SMODS.Atlas = {
    key = "HawkTuahJokers",
    path = "hawktuahjokers.png",
    px = 71,
    py = 95

}

SMODS.Joker = {
    key = "testjoker",
    loc_txt = {
        name = "test joker",
        text = {"test joker"}
    },

    config = {
        extra = {
            regularxmult = 1.25,
            bossblindxmult = 1.75
        }
    },

    loc_vars = function(self,info_queue,card)
        return {vars = {card.ability.extra.regularxmult,card.ability.extra.bossblindxmult}}
    end,

    rarity = 3,

    atlas = "HawkTuahJokers",

    pos = {x = 0,y = 0},

    cost = 7,

    calculate = function(self,card,context)
        if context.main_scoring and context.cardarea == G.play then
            if context.other_card:is_face() then
                if G.GAME.blind.boss then
                    return {
                        x_mult_mod = card.ability.extra.bossblindxmult,
                        message = "X1.75!"
                    }
                else
                    return {
                        x_mult_mod = card.ability.extra.regularxmult,
                        message = "X1.25!"
                    }
                end
            end
        end
    end
}
willow nimbus
sturdy compass
#

yeah

willow nimbus
#

i do

outer basalt
sturdy compass
sturdy compass
#

So your json specifies a file as the "main file" correct?

willow nimbus
#

It does, yeah

sturdy compass
#

Is this joker code in that file or a different one?

willow nimbus
#

I only have one lua file

sturdy compass
#

hmmm ok

willow nimbus
#

which the joker is in

#

and its the one that the json says is the main file

sturdy compass
#

Did you remember to save the file?

willow nimbus
#

i think i did

#

ill save again just in case

sturdy compass
#

And you're sure there's not a 151st joker?

willow nimbus
#

nope

#

only 150

sturdy compass
#

weird

outer basalt
#

Is your mod enabled?

willow nimbus
outer basalt
#

Aight

willow nimbus
#

wait actually

#

are mods compatible with lovely by default or do you have to add some extra stuff in

sturdy compass
#

They are

willow nimbus
#

huh

#

alright then

sturdy compass
#

Yeah this is weird

willow nimbus
#

i have cryptid installed as well but it's disabled

#

if that would make any difference

sturdy compass
#

Disabling it shouldn't make the difference

#

but it is good that you do have it disabled

#

really quick I'd highly recommend installing the Lua VSC extension in case you haven't. Could be something in syntax that's not coming up

sturdy compass
#

Good but hmmmmmmm

#

this keeps getting weirder

willow nimbus
#

absolutely, im completely stumped

sturdy compass
#

If you don't mind could you shoot over the file so I could toy with it?

willow nimbus
#

like the whole mod or just the lua file?

sturdy compass
#

Whole thing actually. I wanna see if it boots for me

willow nimbus
#

alright, give me a moment

#

here

#

btw thanks so much for all the help with this i realize im taking up a lot of your time

sturdy compass
#

All good all good

#

ok that's weird

#

Dropping your mod into my environment made one of my mods' atlases come up wrong

#

so it might be your atlas that's the problem

willow nimbus
#

huuuuuuh??? ?? 😭

#

my mod is evil and cursed

#

what might be the issue with the atlas

sturdy compass
#

Oh my god I see it

willow nimbus
#

what is it...

sturdy compass
#

You're overriding SMODS.Atlas with this table 😭

willow nimbus
#

OH

#

MY GOD

#

IM STUPID

#

😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭

sturdy compass
#

One little equals sign causing all this havok lol

willow nimbus
#

well

#

THANK GOD we found the problem (equals sign)

charred magnet
#

i need help asap this is happening to all my code idk what happened

willow nimbus
#

again thanks so much

sturdy compass
#

Same goes for the Joker btw

charred magnet
willow nimbus
#

OKAY YES its in the game now

charred magnet
#

like what happened : (

sturdy compass
willow nimbus
#

LOL I FORGOT IT USED THE CECIL IMAGE

charred magnet
#

Undefined global SMODS.Lua Diagnostics.(undefined-globa

someone help please

manic rune
#

SEASALT

#

I NEED YOU SEASALT

sturdy compass
charred magnet
#

but its pissing me off

manic rune
#

open your entire mods folder then

#

it should disappear in which case

charred magnet
sturdy compass
#

Or you can hover over it and click quick fix and define as global variable

manic rune
#

what do you mean ? sob

manic rune
#

open your entire mods folder

sturdy compass
#

If it's still showing then reopen vsc

sturdy compass
willow nimbus
#

annoyingly means i gotta reinstall

sturdy compass
#

Boowomp

willow nimbus
#

by the way is there like a mod that exists that lets you give yourself cards/jokers

sturdy compass
#

That’s DebugPlus

willow nimbus
#

so i can give myself my jokers to test

#

perfect, thanks again

sturdy compass
#

Of course

#

Welcome to the hobby lol

willow nimbus
#

haha thanks

#

i HEAVILY underestimated how big of a challenge this was gonna be

sturdy compass
#

Honestly your actual joker code looked solid, it was just that one semantic issue lol

#

So I think you’ll be fine

willow nimbus
sturdy compass
#

Deceptively simple answers tbh

willow nimbus
#

it's a lot to take in at once and annoyingly i think theres a lot in the github documentation it just doesnt go over

sturdy compass
#

That is very true, SMODS docs are pretty outdated

#

Def check out #1349064230825103441 if you haven’t, tons and tons of resources expanding further on the subject there

willow nimbus
#

Oh yeah I did have a look at that

sturdy compass
#

Dig deeper as needed, I wish I had it when I started out lol

willow nimbus
#

of course

#

thanks again!

vale glen
cinder cliff
#

Why is it that when the example walkie talkie joker is triggered, the joker doesn't move like jokers usually do when triggered?

scarlet imp
#

Trying to make a Joker that permanently grants the player +1 discard when sold, kind of like a Recyclomancy voucher. Currently I have the following code:

calculate = function(self, card, context)
        if not context.blueprint then
            if context.selling_self then
                G.GAME.round_resets.discards = G.GAME.round_resets.discards + card.ability.d_size
            end
        end
    end

But it's only applying the ability while the Joker is held (so it behaves like Drunkard rn)
Anyone got any ideas?

faint urchin
#

Is it possible to make a challenge where only specific jokers are allowed as to banning specific jokers? I want to ban every joker in the game except one for this challenge so I don't want to have to type out every other joker

cinder cliff
#

Where do I see the documentation of the context section of calculate?

#

oh wait I found it nvm

slow brook
#

can I have a joker that every round has the ability of a randomly picked different joker? not like blueprit, cuz it doesn’t work on all of them, but like turning into a different joker every blind

daring fern
slow brook
cursive sentinel
#

so having it copies the config, calculate, remove_from_deck, etc and all of a random owned joker?

#

wether it is blueprintable or no?

daring fern
#

It still says not context.blueprint

#

And it wouldn't work properly if you don't set that.

cursive sentinel
#

quick question, got this check to find a joker although it doesn't seem to print anythhing at all, what have i done wrong?

local artofwar = nil
for _, j in ipairs(G.jokers.cards or {}) do
  if j.effect and j.effect.config then
      print(j.effect.config.key)
      --artofwar = j
      print("found")
      --break
  end
end