#💻・modding-dev

1 messages · Page 227 of 1

turbid maple
#

🤔

manic rune
#

theres no consistent way to run through a table with indexes which are just words

#

that isnt random

#

and not requiring other tables to assist with that task

vague helm
#

That modification prevents the crash, but it has the same effect as the old version of the code

manic rune
#

...im pretty sure it should debuff the joker during scoring, and de-debuffs it back after scoring

vague helm
#

It does, but the X doesn't remain. I think the after is after scoring, but not after the scoring animation?

old bane
#

how do i get a card's rarity?

frosty dock
#

center 😭

manic rune
#

wait, im a little bit lost here, you want the "X" to remain?

vague helm
#

Until the animation completes

manic rune
frosty dock
#

😭

vague helm
#

Let me go ahead and take a video recording of the current effect

manic rune
#

-# i will change all center to card later

long sun
#

how can i give a Joker the booster pack shader?

turbid maple
#

At some point I have genuinely considered running a preprocessor so I don't have to type card.ability.extra for the 500th time

manic rune
gilded blaze
#

suppose deck ability is to remove enhancements from scoring cards and earn some money for each enhancement removed
how do I use context.individual correctly
this piece of code doesn't crash the game, but doesn't work the way I intended it to 💀

frosty dock
tall apex
#

hey quick question goobers, if i want to narrow down a hand type played would i change pokerhands = pokerhands to pokerhands = flush or something?

frosty dock
#

or I guess anything that isn't a dot

manic rune
vague helm
turbid maple
#

wdym, are you trying to check what the current scoring poker hand is?

vague helm
#

If I remove the rebuff code, the X will show, but then the card will never get rebuffed

frosty dock
#

regex supremacy

tall apex
manic rune
vague helm
#

Exactly, unless I remove the rebuff code

manic rune
#

wait wait, hm

#

you should probably put the rebuff code inside an event

manic rune
#

i will kms later

lyric wadi
#

i have confirmed this and yea, converted cards with enhancements that triggers on scoring stopped working

lyric wadi
#

enhancements that trigger when held still work tho

#

like steel and gold

#

have tested seals yet

tall apex
gilded blaze
#

going to bed soon dammit

lyric wadi
#

how and why

#

wtf

turbid maple
#

unless you want to check if hand contains the poker hand you want then you'd check for context.poker_hands["Flush"]

tall apex
#

per usual, ty for helping me learn c:

manic rune
# vague helm <@487818116773052425>
   G.E_MANAGER:add_event(Event({
      trigger = 'after',
      delay = 0.0,
      func = function()
        card.ability.extra["debuffed_card"]:set_debuff(false)  
         return true
       end
   }))

maybe try adding this inside context.after instead

manic rune
tall apex
#

the goal is a joker that retriggers your hand when its a flush consisting of the largest suit in your deck

#

which is a bit of a coding jump for but im ready to tango >:3

turbid maple
#

okay yeah you're right

lyric wadi
#

oh heck its kawai

#

hello

#

how are youer jonklers shaping up to be

turbid maple
vague helm
#

@manic rune Very close. I had to make some modifications to ensure that the card was truthy. But, now, it flashes the X and immediately goes away. I think the core issue is that I believe the game triggers after after the score is calculated, not when the animation is done

stiff locust
#

can vouchers use calculate

turbid maple
#

I think observatory does it

stiff locust
manic rune
turbid maple
#

wiki lists calculate as an api method under Vouchers so I assume it'd work?

stiff locust
#

well i'll hope so

#

better calc likely added it to vouchers

manic rune
gilded blaze
#

I play a base card and a stone card

#

it gives money twice, when it should only do once

manic rune
#

yeah i can see why

#

if context.individual and context.cardarea == G.play runs for each played card

#

but you are also running a for loop inside it to check for every card too

stiff locust
#

change the context to context.before

#

or context.after

manic rune
#

so essentially, if you play 2 cards, it will go through every card twice

#

^

stiff locust
#

depending if you want the enhancements to score or not before being removed

#

if you do before the enhancements won't be scored, if you do after they will be scored

gilded blaze
#

both didn't work

#

the enhancement only gets removed properly if I use context.individual

manic rune
#

if so, you dont need the loop

#

use context.other_card instead

gilded blaze
#

this is deck ability

#

there is no "card" variable

#

context.other_card crashes the game

stiff locust
#

there is in context.individual and context.repetition

#

context.other_card refers to the card currently being scored

vague helm
#

@manic rune This works:

if context.hand_drawn and card.ability["debuffed_card"] then card.ability["debuffed_card"]:set_debuff(false) end

manic rune
gilded blaze
#

like this?

stiff locust
#

also why delay 0.7

#

that's a pretty long delay for an event

latent portal
#

chat did i cook

manic rune
#

dumbbell

stiff locust
#

vertical

frosty dock
manic rune
#

epic

gilded blaze
gilded blaze
frosty dock
#

return { dollars = <amount> }

gilded blaze
#

💀

vague helm
#

Confirmed, you are correct @manic rune

manic rune
#

also @frosty dock, i had to manually check how many times my joker is gonna be retriggered, put it into a var AND run it through this for the joker to actually retrigger played cards like i intended 😭

manic rune
gilded blaze
#

the game still crashes

#

because of non-existent context.other_card

manic rune
manic rune
tall apex
#

ok i got sidetracked from my current joker, genuinely how do i call for sfx, i have everything set up to a T

old bane
#

let's goooo replicas can spawn in shop now! (only if there's a copy of an existing joker)

vague helm
manic rune
#

...draw?

gilded blaze
#

the crash log says context.other_card on line 284 is non-existent

#

😭

vague helm
#

Bepis It hangs before my hand is drawn.

#

Like picked up, drawn

manic rune
#

fgngngngh i hate timing 💔

frosty dock
tall apex
#

wait, whats the joker equivilent of e_something.ogg or music_something.ogg

vague helm
#

You would think post_trigger would work....

tall apex
#

is there one

#

am i stupid

frosty dock
#

joker equivalent? wdym

tall apex
#

like for a sound a joker is supposed to make

#

do i have to name the file j_something.ogg

manic rune
#

no, its just sounds

#

i think its
prefix_(your sound's key)

old bane
tall apex
frosty dock
tall apex
frosty dock
#

and you need to play it

tall apex
#

...

frosty dock
#

either using play_sound

#

or returning it in a calculate function

tall apex
#

or sound = in a return function yes ik

manic rune
#

so that i can do the same :3

frosty dock
manic rune
#

yes, but it retriggers the cards for all jokers to benefit from

#

.

#

oh wait

frosty dock
frosty dock
gilded blaze
frosty dock
manic rune
frosty dock
manic rune
#

no, im doing exactly that

#

but like i said, it only retriggers context.joker_main consistently

#

for other contexts, it doesnt work properly at all

frosty dock
#

what's your smods version

manic rune
#

uh, wait

tall apex
manic rune
#

i think its pretty new

gilded blaze
#

ok that worked but did I do something wrong with return { dollars = <amount> } because I did not gain money

frosty dock
vague helm
#

@manic rune Could G.jokers help? I am not sure what those values are.

tall apex
frosty dock
# manic rune

huh should be fine then, I'm like pretty sure that's been working

#

but I can investigate

manic rune
#

i made sure it does retrigger properly

tall apex
#

its prob gonna be something super stoobid

manic rune
manic rune
#

😭

tall apex
manic rune
#

it is, since my mod has self retriggers as a core mechanic

vague helm
#

How is context.cardarea used in this context?

manic rune
#

im literally considering about removing it entirely if its this inconsistent and buggy lmfao

manic rune
#

and in your case, its G.jokers, which is already correct

frosty dock
#

it's reset to zero after one calculation

vague helm
#

There's gotta be an event for post play

tardy wind
#

after

frosty dock
#

I only see it modified in joker_main

tardy wind
#

if context.end_of_round

vague helm
#

That's end of round, not end of hand

tardy wind
#

what does end of hand played would mean ?

frosty dock
#

does context.after work?

tardy wind
#

all cards are triggered but score not added to tally ?

tall apex
vague helm
#

Once the hand animation completes. after appears to be after scoring is calculated, not when the animation is actually done

vague helm
#

I need hand_drawn, but for it to also trigger if you're done playing and there's no more cards to draw because you're near the end of the deck

manic rune
# frosty dock when is self_retriggers set?

yeah uh, what im planning to do is:

  • during joker_main, the joker increases self_retriggers when a certain condition is met
  • afterwards, that var is sent to context.retrigger_joker_check to be checked, then retriggers the joker by that number of times

i also tried moving the self_retriggers modification part to context.before, but the same happens, and its even buggier since context.individual and context.cardarea == G.play now only retriggers for the first played card

frosty dock
#

yeah there's your problem

#

you're resetting it to zero after the first retrigger check

manic rune
frosty dock
#

So it retriggers one context, then does nothing until set again

manic rune
tardy wind
manic rune
# tardy wind hell of a joker

it was supposed to retrigger for all played cards lol, but it only works for the first card which has been on my nerves for quite a while now

tardy wind
#

show code

frosty dock
manic rune
#

:3 i blame the non-existence of a documentation about this

#

but yeah, that does explain everything, thanks :D

tall wharf
manic rune
# tardy wind show code

it was uh, the context.individual and context.cardarea == G.play + retrigger joker stuff, should be fixed now though
-# maybe

modern kindle
#

Hi chat Smiley face

manic rune
#

hello dilly

#

IM SORRY

modern kindle
#

EGADS

manic rune
#

😭

modern kindle
#

you tried sending me straight to the abyss

hard flume
#

How many chips should Cat Rank give

modern kindle
#

9 base for 9 lives prob

analog pilot
#

10000000000

manic rune
# manic rune

...wait, so where am i supposed to set card.ability.extra["self_retriggers"] = 0?

tall wharf
#

?????????????????????????????????????????????????????????????????????????????????????????????????????????

modern kindle
#

then just add the rank to each 9 for individualized score

manic rune
#

im supposed to tell the code to stop retriggering at one point

#

but like

tall apex
#

i finally got it, i feel so stupid

manic rune
#

at the first retrigger, it will definitely stop when it goes through that context

#

probably need a workaround for this one, fuck

tall apex
#

it says play a sound WITH any message, i didn't put it in the same return with the message i put it in the return that was scoring the hand

frosty dock
tall wharf
vague helm
#

@manic rune Is there a hook for when next_joker would have been triggered? Perhaps that's the answer? I'm at wits end

tall wharf
manic rune
tall apex
frosty dock
tall wharf
#

there we go

frosty dock
#

context.other_context is the checked context

modern kindle
manic rune
#

oh shit, i can do that?

#

yeah i think that might be what im looking for, lemme try

vague helm
#

@tall wharf How did you assign the Art Credit?

tall wharf
#

a lot of shenanigans

manic rune
#

unfortunately, i think im too inexperienced with this timing kinda stuff to help you

#

maybe try asking john smods or someone else, sorry :(

hard flume
#

Hmm... Would Cash work better as a suit or rank?

manic rune
#

...what

#

suit

frosty dock
#

9 of Cash

#

or

#

Cash of Spades

#

hm

manic rune
#

Cash of Cash

frosty dock
#

both could work ngl

manic rune
#

Clash of Clans

frosty dock
#

Cash of Clubs

#

Club of Cash

tall wharf
#

Call of Cutie

manic rune
#

i absolutely despise retrigger_joker now that i realize the way i thought how it worked is wrong

#

😭

lyric wadi
#

wait how does it work

vague helm
#

@frosty dock Here's the context: #💻・modding-dev message - I want to show the card next to my custom card as debuffed, but I want that to disappear as soon as the player is able to play another hand. The problem with after is it appears that triggers after the scoring is done, not when the whole animation completes. This works, but it doesn't show the Joker as being debuffed, which can be confusing

frosty dock
lyric wadi
#

hello john smods now that you're here

gilded blaze
#

💀 no money

lyric wadi
#

i'll be queing up behind brandon

modern kindle
#

yea i wont lie retrigger joker kinda worked as i expected it to lmao

tall wharf
modern kindle
#

you had some high hopes bepis

manic rune
#

💔

frosty dock
hard flume
#

The original idea I had was for it to be a rank that gives chips equal to money, but I felt that was too... strange for a rank?

manic rune
#

welp, off to fixing pretty much all jokers which work around that

tall wharf
hard flume
tall wharf
tardy wind
frosty dock
vague helm
#

Thank you! I'll maybe do some real work now 🙂

manic rune
hard flume
#

Not literally

#

Just the idea/mechanics

manic rune
#

why did you sit on chips

#

i think you need to add a chair joker

tall wharf
#

❤️

manic rune
#

show off 💔

modern kindle
#

oh the example clarified what you meant

#

sick

pale temple
#

losing my mind over end_of_round return func why is it not doing anything 💔

manic rune
#

wym by that

pale temple
lyric wadi
#

@frosty dock hi sorgy for another ping but i also want to ask now that you're here

so i have a joker which changes the suit of all the cards in your held hand with the change_base function
for some reason Mult and Lucky enhancement all stopped working on any card converted this way
Bonus still gives the extra chips correctly, Glass still triggers, and Gold and Steel behaves as normal

is this something about the game or am i using change_base wrong? or should i use somethingh else

#

please have a look after you're done with brandon thanks

manic rune
#

just if context.end_of_round should suffice, honestly

vague helm
#

For mine, @manic rune ? That would make this play a lot less dynamically

manic rune
#

what the fuck

#

i didnt set it to 0 this time

pale temple
manic rune
#

this still doesnt retireogimamgamo

manic rune
tall wharf
#

:(

pale temple
#

no no that bit is already fine

#

it's the return

#

shi aint doing nothing

#

not even the print

manic rune
#

never used functions in return before, so idk 💔

manic rune
#

LIKE

#

ok wait, im completely removing ALL methods of setting self_retriggers to 0

green plank
tall wharf
#

asd

manic rune
#

man

#

🔫

rapid stag
#

does anyone have any further insight into either this or the undiscovered custom legendary joker description thing i'm still having?

manic rune
#

is there a context which tells whether the joker is being retriggered or not?

latent portal
#

guys

#

i have a serious question

#

MASSIVE question

manic rune
#

im a bit LOW right now though

latent portal
#

so

#

i want to make something cool and awesome and special

#

a new kind of booster pack

#

a Jimbo Pack

manic rune
#

-# that doesnt seem special

modern kindle
manic rune
#

set this to 0

#

but somehow making it so that this block wont run

latent portal
#

when you open it, it shows you some cards you could potentially get (tarot/planet/spectral cards, jokers, playing cards, special cards that give you money, cards that do nothing, and sometimes rarely even a voucher), then flips them over and shuffles them, before forcing you to pick one to take like a little minigame

manic rune
#

if the joker is being retriggered

latent portal
#

how plausible is this

hushed field
#

very possible, though you'll need to be a bit comfortable with lua, because the wiki won't have a very direct guide for that

modern kindle
#

what are you trying to do? dont retriggers count themselves down to 0 anyway?

manic rune
hushed field
#

then it's definitely doable!

manic rune
#

i just want the joker to retrigger everything in its calculation once

green plank
#

quick question, would this be pleasible or not

manic rune
#

then after that, set self_retriggers to 0, so that the next time it wont retrigger everything again

latent portal
#

or well

#

input FROM the system clock

manic rune
#

so like, retriggers are shutting themselves down because of that

#

-# god im dumb at transferring my idea over

modern kindle
manic rune
#

once per round isnt exactly what im looking for, my jokers basically have this stat called Speed

each point above 100 increases Excess Action Value by 1, and each 100 Excess Action Value will retrigger the joker once

modern kindle
#

ye i know it wasnt once per round thats why i said once or however many times per scoring hand

#

just an exmaple was mine was once per round

manic rune
#

but if the joker is being retriggered, then it will still go through that context and affect it too, right?

obsidian nexus
#

Can i make a consumable not sellable ? Like selling it does nothing nor gives money, or just straight up disable the sell button ?

modern kindle
#

cant you store how many it was triggered, once it reaches the amount triggered then set whatever flag to false so then it can return what youre looking for

ie, triggers once, sets flag to false unless it has whatever value to trigger again, then it increases storage table by +1

manic rune
#

i did exactly that, actually

manic rune
#

but it still doesnt work

modern kindle
#

huh

#

what kind wack shit is ur game tryna pull

manic rune
#

i dont know 😭

#

so my idea was that it retriggers all contexts, right?

#

then i set a "timer" here, which goes down by 1 for each time its run

#

when it reaches 0, self_retriggers is also set to 0

#

but the thing is that it still shuts itself down immediately ❤️

red flower
#

have you tried asking it nicely to retrigger correctly

tardy wind
#

nicely(card.ability.extra["self_retrigger"] = 0)

modern kindle
#

you can also give your code the idea that youre about to crash out in a supremely diabolical way and it will take pity on you sometimes

(this is effective for me 30% of the time)

tall apex
#

hey is there a context for if you're actively in a blind?

tardy wind
tall apex
wintry solar
manic rune
modern kindle
#

dont we have a shop start context now anyway

tall apex
wintry solar
modern kindle
#

i thin context.starting_shop is the new context for shop

old bane
#

is there an unlock condition to unlocks a Joker after defeating a certain boss blind?

manic rune
#

it definitely retriggers properly now, but i dont know how to set self_retriggers to 0 at context.before, but also make it so that the code completely ignores it if the joker is currently being retriggered

modern kindle
#

so you can just debuff it when that happens, undebuff after

wintry solar
#

You can add a not context.retrigger_joker to anything you don’t want to retrigger

open trench
#

anyone else getting an issue rn with the mod manager where the game just won't open?

#

i tried swapping the steam mod, it'll start to boot up

#

and then just close itself

#

and the lovely log seemingly says theres nothing wrong

latent portal
#

hey guys

#

so

#

i just found out

#

that

#

there's actually a booster pack template in the files of balatro

maiden river
#

huge

manic rune
#

i managed to fix everything on my own with that, so theres no need to trouble you with dumb problems about that mechanic anymore ❤️

modern kindle
#

at least for now..

#

lmao

manic rune
#

-# please dont say that

modern kindle
#

LMAO

open trench
#

honestly lua programming is the most obnoxious shit i've ever worked with lmfao

wintry solar
open trench
#

me when I try to launch balatro and it doesn't open ^

manic rune
#

that would be really great, and maybe finally we will have DOCUMENTED undocumented features :3

wintry solar
#

Don’t be silly I’ll just add more undocumented stuff

latent portal
open trench
#

LITERALLY

#

i'm fiending :3

hushed field
#

what's the most obscure undocumented feature in smods rn?

modern kindle
#

the one none know of

old bane
#

rn for me it's unlock conditions

open trench
#

rn for me it's launching the game

modern kindle
#

i think we'd be in a pretty freakin bad position there if we couldnt launch the game

manic rune
#

quantum enhancements

#

i still dont know how to use them :3

modern kindle
#

well when you enhance, you quanumify them, hope that helped

modern kindle
#

have you already done the method of removing mods 1 by 1 to see if a mod doesnt agree with your setup

open trench
#

yes it seemingly isn't any one mod

#

but occasionally the game just doesn't work

#

idk

tall apex
#

so i've got my joker sort of working, but im running into an issue where the text is showing up on the joker it's looking at rather than the preffered outcome being it shows it's own message under itself

manic rune
#

probably your computer issues at that point 😭

tall apex
#

can you specify where a message comes from?

manic rune
#

you can

tall apex
#

oh how?

open trench
manic rune
#

return{
card = (the card you want the message to pop out from),
message = "something"
}

tall apex
manic rune
#

or alternatively, if you want the return{} to still have messages on the joker, but you also want some messages to be on other cards

#

use card_eval_status_text()

tall apex
#

this is my set up rn, im aiming for the chips to be under this joker, rather than the one it's seeing trigger

manic rune
#

card_eval_status_text(card, 'extra', nil, nil, nil, {message = "Hello World!"})

manic rune
#

remove cardarea, post_trigger

#

remove other_card

#

put card = card, in there

#

so it should be something like

return {
card = card,
chips = card.ability.extra.chips,
sound = 'cringe_sfx_mfw',
}
chrome widget
#

This isn't the correct format for return tables

manic rune
#

^

#

its more like references

manic rune
#

not something you actually return lol

tall apex
#

so um, now my game crashes when i select cards

manic rune
#

💀

#

wha

chrome widget
#

Not sure it's 100% related to this, but you'll need to add an additional check for the cardarea

tall apex
#

do you goobs wanna see the joker btw

chrome widget
#

Right now you're only checking context.post_trigger, but you only want to check that for certain card areas (G.jokers, primarily)

manic rune
#

oops, wrong direction

tall apex
manic rune
#

no

chrome widget
#

No

tall apex
#

ah.

manic rune
#

if context.post_trigger and context.cardarea == G.jokers then

#

thats what they meant

chrome widget
#

if context.post_trigger and context.cardarea == G.jokers then

#

oop, beat me to it

tall apex
#

oh.....

manic rune
#

i average at about 150 wpm lol

#

sometimes 180 wpm if im feeling like it :3

tall apex
#

okie lemme try this

chrome widget
#

Im like 120 on a good day but I never actually learned home keys typing so I only use my index fingers, which is more mistake prone

#

Larger movements and all that

modern kindle
#

i leave you all int he dust at a solid lioke 40-60 😎

manic rune
#

i forgot to log in most of the times, but here :3

tall apex
#

OK NOW I CAN EARN CHIPS IN THE STORE WHAT THE FUCK

#

thats actually kinda cool i might keep that

chrome widget
#

Perhaps the post_trigger needs to be checked for G.play instead?

tall apex
manic rune
#

post_trigger checks for a lot of context lol

modern kindle
#

cant you also just debuff it in context.starting_shop so it doesnt work in shop

tall apex
#

behold, premptive scoring

hushed field
#

I'm trying to finish up every joker I have an asset for and I'm now arriving at them being either coding challenges or really vaguely defined concepts of a concept for an ability 😢 I miss being able to just burp up 10 jokers in an hour

manic rune
manic rune
#

because of the nature of my mod

tall apex
manic rune
#

its fine :3

tall apex
#

it gives 5 chips whenever a joker triggers

hushed field
#

Yeah, I can imagine, Bepis, haha

tall apex
#

which, i didd not expect to count WHEN NOT IN THE GAME

#

happy acciddent, keeping it

modern kindle
#

remember, all bugs are features

hushed field
#

I have some that are really easy to do, but then I've been working 3 days exclusively on getting Nope to work (though that did need a whole generic system to be set up, so that makes sense)

manic rune
#

i uh, always try to make my jokers more unique than others, like this one

tall apex
#

little fun fact for you folks c:

manic rune
#

you would have to reposition the inflicted card in your hand so that it always spread to 2 cards

hard flume
#

Balatro modding is fun cuz I get to add whatever and no one can stop me /hj

tall apex
tall apex
#

my first joker is a chain smoker, it really is open ended

manic rune
#

no one can stop me from turning balatro into a turn-based game :3

tall apex
#

boofin' benji my beloved <3

manic rune
tall apex
manic rune
#

well im definitely rusty now ❤️

tall wharf
#

wat hte ufkc

#

HOW

modern kindle
# manic rune crap

zamn, i think before i had some surgeries on my arms i was up there in wpm too

#

now though im in agony going to 60

manic rune
modern kindle
#

i was in the service, nerves got fried in both arms and prior to surgeries my body tried fixing it by destroying muscle

#

so now im sorta cucked on typing speeds

green mica
#

holy fuck I just figured out how to hook functions

#

It's like the whole world just opened up to me

tall wharf
#

how do people use google sheets

hard flume
#

I had an idea for the Cat Rank, but I'm not sure how easy it would be to implement.

tall wharf
#

i don't like using sheets frankly

manic rune
tall wharf
#

sorry to hear that

manic rune
#

make your own website instead :3

modern kindle
manic rune
#

nah but srsly, yall use google sheets to plan out your jokers?

tall wharf
#

do you just slap this here

modern kindle
tall wharf
#

i don't like planning

manic rune
#

i use notepad 😭

modern kindle
#

i got that real bad memory so if i dont write it down i will NOT remember

manic rune
#

i actually still have some of the jokers i planned here

#

:3

#

the way i described them doesnt make it sound like they are jokers from balatro at all lmfao

hard flume
#

The idea is that it starts out giving 9 chips, but loses .5 chips every time it's played, until it reaches 0, then resets back to 9

tall apex
manic rune
#

should be easy

#

good luck :D

tall apex
#

oh also in hindsight i should ask bepis, preferred pronounce? c:

manic rune
#

im a guy

tall wharf
tall apex
#

okie cool just checking!

manic rune
#

doesnt prevent me from using ":3" though :3

#

its silly

tall apex
hard flume
#

I'll probably get that working later, when I implement more stuff to my mod

tall wharf
#

:3

tall apex
#

NORMALIZE SILLY GUYS

dusk basin
#

Hey is there a program that makes programming a mod for balatro easier?

manic rune
#

visual studio code

#

best code editor available
-# that i know of

tall apex
#

who up coding in they visual studio

manic rune
#

my jokers.lua will soon reach 4k lines

#

yipee

modern kindle
manic rune
#

i dunno how yall have that game activity tbh 😭

hardy viper
#

extension

manic rune
#

gah

#

what extension

dusk basin
wintry solar
#

This is my current list of anyone can think of anything else they’d like explaining

manic rune
#

cant wait to flex to my friends that im a no-life on visual studio code

#

:3

modern kindle
manic rune
#

oh i see

formal parrot
tall apex
manic rune
#

hi :D
-# do i know u?

formal parrot
#

How’s working on your mod been ?

tall wharf
#

can i even edit my own mod wiki page

manic rune
#

its been good

tall wharf
#

on wikipedia it's like

manic rune
#

made a lot of progress thanks to everyone's help

tall wharf
#

conflict of interest but this isn't

manic rune
#

:3

#

oh, what about stuffs like where to find the colors?

#

for localization

manic rune
#

some people dont know where to find them lol

#

and maybe other global vars some people will be asking for too, like current score, score requirement, but that does seem a bit too much work

tall wharf
#

how do i phrase

tall apex
#

ok new question time

tall wharf
#

"whatever I wanna add"

#

to sound more professional

manic rune
#

"fuck your opinions"

#

uh

tall apex
#

the chips are triggering, but the sound is only triggering once and not when other jokers are triggered

#

. 3.

tall wharf
manic rune
modern kindle
manic rune
tall wharf
#

😭

#

life is tough

modern kindle
#

hear me out

#

have you tried making it not tough

manic rune
#

yeah but do you have to vent it towards others :3

manic rune
#

that seems a bit random, but i really appreciate it

modern kindle
#

secret super fan you have

manic rune
#

theres no way i have fans lmfao

modern kindle
#

im ur fan bestie

manic rune
#

i mean, my mod is not even out yet 💀

manic rune
tall apex
#

awe c:

wintry solar
manic rune
#

that would be cool to have for beginners

tall apex
#

i need more help ugh-

wintry solar
tall wharf
#

i hit the wall with a stick so hard i chipped a tiny bit of it away

tall apex
wintry solar
#

What’s the intended effect?

tall apex
#

right now i have this, but the intended effect is for this joker to be the one with the +5 flair

wintry solar
#

This will trigger an awful lot

#

Is that okay?

tall apex
#

the other problem is the sound isn't playing when it's scoring chips, but rather before the played even starts which is weird

tall apex
#

it's called cringe circus for a reason LMAO

wintry solar
#

Anyway, you’ll need to provide a custom message to have a custom sound play

#

And replace the card = card line with message_card = card

tall apex
#

gotcha

#

that won't effect scoring tho?

wintry solar
#

No

#

For your custom message use chip_message = something and add sound = “key” instead of your play sound line

tall apex
#

can i make the custom message just say how many chips are scoring (almost always 5 at a time)

#

i tried this but that didnt work

wintry solar
#

Don’t use brackets

tall apex
#

ohhh

tall wharf
#

i hit my limit of 10 YouTube shorts per day I'll go back to code

modern kindle
tall apex
#

hmm, now theres no message

wintry solar
#

Oh wait hang on

#
chip_message = {
    message = “+”..card.ability.extra.chips,
    sound = “key”
}```
wintry solar
#

I forgot how chip message works 🤣

hardy viper
#

concatenation operator

wintry solar
#

Yes

hardy viper
#

my face when . .. and ... have three completely different meanings

wintry solar
#

Looking at the code it seems message card doesn’t work for scoring messages, I should update that

latent portal
#

how does this look chat

tall apex
#

oh isn't there a way to make the backround blue instead of yellow?

#

like the particles behind the text

#

i did that a bit ago but now ive forgot

hardy viper
#

completely valid code that does absolutely nothing

kind hedge
#

Would anyone know how to fix this?

#

full stack traceback if that helps

formal parrot
#

Who’s gonna be the first to add blackjack to balatro

strong jacinth
#

Yo

strong jacinth
#

A popup is just a root node right?

old bane
#

battle music accomplished! all battle themes cleanly sync with each other, though they won't sync with balatro's standard theme because idk how long it is thunk

#

also nintendo lawyers please don't kill me

wintry solar
tall apex
#

wait i think having two of these and one trigger genuinely softlocks the game...

#

nice!!

#

oh shoot the chip message is still appearing

zealous glen
simple mural
#

How to determine that the boss blind is over?

old bane
#

true

open trench
#

anyone got any ideas?

sharp blade
#

if it's a joker effect at end of round (like campfire resetting) then you can just use context.end_of_round and G.GAME.blind.boss

tall wharf
open trench
# open trench anyone got any ideas?

I thought it might have been talisman but i'm not sure, Shuffling out mods hasn't seemed to help? it's almost like some mod is leaving behind files even after I remove them from the modfolder?

sharp blade
open trench
#

idk honestly anyone willing to help me is my actual fucking hero 🙏🏻

tall wharf
#

have u tried removing mod half by half

zealous glen
strong jacinth
#

Yo

zealous glen
tall wharf
#

😭

strong jacinth
#

How do i create a tab_definition_function

simple mural
zealous glen
simple mural
simple mural
tall apex
#

does anyone know how to get rid of the chip message?

zealous glen
red flower
zealous glen
#

But it’s the same mechanism as Rocket

simple mural
#

But I found another idea to implement

zealous glen
#

I’m not telling you to do Rocket 2: the Rocketning

tall wharf
#

chat wtf

zealous glen
#

Goth cards

red flower
#

kirby

tall apex
tall wharf
#

😭

strong jacinth
#

Yo N

tall wharf
#

im replacing the self destructs sticker

strong jacinth
#

How are you?

tall apex
simple mural
zealous glen
#

I wonder how many mods have the Temporary/Self-Destructive sticker

#

I think 3 at least

dim lynx
#

Isn’t that just perishable

zealous glen
#

No

dim lynx
#

How is it different

zealous glen
#

Temporary goes away at the end of round

dim lynx
#

So I buy a joker for one round?

dim lynx
#

Ah that makes more sense

#

It’s for playing cards not jokers

zealous glen
#

It can go on Jokers too

#

But you won’t find it in the shop

tall wharf
#

better?

simple mural
#

How can I add money?

zealous glen
#

You can just return dollars IIRC

zealous glen
#

On a card?

#

I think I like the original more

#

You could also do three teeth instead of buck teeth, maybe

simple mural
zealous glen
#

What error

latent portal
#

hey quick question

tall wharf
latent portal
#

how do i set up the loc_vars of a booster pack

zealous glen
latent portal
#

because card.config doesn't work

zealous glen
#

Also on a card in-game

tall wharf
#

oh

strong jacinth
simple mural
zealous glen
#

Since Stickers have their own shader too

zealous glen
simple mural
#

(I also don't know how to make random normally)

tall wharf
zealous glen
#

Not quite the same but similar

simple mural
# tall wharf

Is this some kind of mod or did you make it yourself?

zealous glen
#

I think you can use the Eternal space

#

Since nothing should be Eternal and Temporary

#

That’s what I did

tall wharf
latent portal
#

nvm

tall wharf
zealous glen
# tall wharf

It looks good. At most I’d suggest what already suggested re: positioning and teeth, but the art itself looks

tall wharf
strong jacinth
latent portal
#

is anyone here experienced with making custom booster packs?

strong jacinth
#

Depends, why

latent portal
#

i'm trying to make one

#

I got the basic information down, but I need help with basically everything else

strong jacinth
#

Like what, specifically

latent portal
#

Like how to set up certain cards to appear in the booster pack

strong jacinth
#

Have you checked the docs for anything useful?

latent portal
#

I've been reading the docs

#

But I learn better with examples

#

Also

#

Quick question

#

Can you generate a voucher inside a booster pack

#

like is it theoretically possible

strong jacinth
#

Yes

latent portal
#

Awesome

strong jacinth
#

Theoretically anything is possible, it just depends how far you're willing to go

open trench
#

i might be giving up on trying to get as many mods as possible

#

it's simply just too obnoxious and mods simply just aren't compatable enough lol

#

i wanted to see what it would be like if I had like 1K different jokers lol

#

balatro modding is difficult :3

marble thunder
#

On the smod wiki is there an updated guide/example on registering new objs

#

Not specifically creating their functions, just registering

red flower
#

Everything in the wiki is updated afaik, some things might just be undocumented

strong jacinth
#

Yo N

red flower
#

no

strong jacinth
#

Hru?

red flower
#

fine thanks

latent portal
#

Sup N

red flower
#

hii

latent portal
#

:3

#

currently trying to figure out how to make a booster pack

old bane
#

i love undocumented things in smods wow

red flower
strong jacinth
kind hedge
red flower
#

just the one

strong jacinth
#

Or still joyous

red flower
#

im making 170 new jokers for it

strong jacinth
#

Holy shit

#

Where do you get the art?

dim lynx
red flower
#

it's official art

strong jacinth
#

Or do you make it yourself

red flower
#

dont tell konami

strong jacinth
#

-# Sure

tall wharf
#

sorry

latent portal
# kind hedge how did you manage to get this sorted? mine just crashes

this is my code

SMODS.Booster{
    key = "jimbopack",
    loc_txt = {
        name = "Jimbo Pack",
        group_name = "Jimbo Pack",
        text ={ 
            "Play a minigame for",
            "{C:attention}#1#{} of {C:attention}#2#{}",
            "random rewards"
        }
    },
    atlas = "boosteratlas",
    pos = {x = 0, y = 0},
    config = { extra = 3, choose = 1},
    loc_vars = function(self, info_queue, pack)
        return { vars= {self.config.choose, self.config.extra} }
    end,
    weight = 3,
    cost = 5,
    kind = "jimbo"
}```
kind hedge
#

Anyone know how to compare money with a value since it just crashes for me when I attempt it

latent portal
#

btw

#

u dont need to add EVERY value

#

some values are just set automatically by default

#

for example, blueprint_compat is always true by default

strong jacinth
#

Btw does anyone know what i need in a tab definitoion

wintry solar
#

I’d recommend setting them all

marble thunder
red flower
marble thunder
#

as opposed to doing them manually 1 by 1 ( eugh )

hard flume
#

Hihi

red flower
strong jacinth
red flower
#

you need to create it inside the function or it will get destroyed after and cause problems

strong jacinth
#

So inside the tab create func

red flower
#

yeah

tardy wind
#

Anyone's got a guideline list for spritesheets like jokers ?

strong jacinth
#

Wait, i forgot, how do i create a card area?

tardy wind
#

Theres an aseprite plugin I intend to use but its more about the overall sheet formatting, spacing..

simple mural
#

How can I repeat Hiker Joker but with money?

tall wharf
#

YOOOOOOOO WTF

#

WHY IS THE BG BLACK

red flower
regal pagoda
#

Hey, quick question, is there a simple way to always spawn a joker as a certain edition (like when it shows up in the shop I guess)

red flower
tall tangle
regal pagoda
#

Nice, thanks for the lead

kindred heron
#

how do i change the starting deck like abandoned deck

strong jacinth
red flower
#

i dont play many mods sorry

stiff locust
#

is this not how you change a card's base anymore
assert(SMODS.change_base(context.other_card, nil, "5"))

#

getting assertion failed crash on this line

wintry solar
#

show full code

tall wharf
simple mural
frosty dock
old bane
old bane
strong jacinth
#

How do i create a basic button?

simple mural
#

I'm stupid what should I do

normal crest
#

G.play not G.Play

strong jacinth
#

Wait, N

#

Whats the difference between

#

Open and show

tall wharf
#

i love UI

kindred heron
simple mural
strong jacinth
old bane
kindred heron
#

oh okay found it

#

thx

simple mural
red flower
frosty dock
#

small issue, i keep hitting this crash randomly out of nowhere

#

it only happens on my branch but I can't think of anything I've changed that would cause this

strong jacinth
#

Jist like: return true or sum

wintry solar
#

blind calculate is legit

red flower
frosty dock
#

i just don't know why it's so crashy 😭

strong jacinth
frosty dock
#

or is it literally just me

simple mural
kindred heron
#

Ok, so when a new run starts, I want the deck to remove a card and replace it with a queen, i have event manager set up but idk what to do

zealous glen
kindred heron
simple mural
zealous glen
#

I see

tall wharf
#

guild tags are dead

zealous glen
#

Guild Tags?

frosty dock
#

weird discord feature

gleaming zealot
#

gY

#

i stil have it should i update discord

tall wharf
zealous glen
#

I’ve only seen them recently

old bane
tall wharf
#

crying

old bane
#

you can remove by doing something like card:start_dissolve() or something

simple mural
kind hedge
#

Dumb question, firstly I dont know why G.GAME.dollars is a table, but how would I get the value of it to compare

kind hedge
#

ahhh

#

that'd be it

#

I didnt have it previous when working on this mod that explains it

#

thank you

tall wharf
#

wtf do i do to scale this down bruh 😭

old bane
#

you could also look at the examples for decks in the example mods from smods

#

they will probably be able to explain it better than i can

strong jacinth
kind hedge
#

how would I destroy a card after it scored?

red flower
kind hedge
# red flower

I saw this before but couldnt exactly figure it out
I'll attempt it again

thin atlas
#

i wanted to make a mod that replaces the polychrome sound but the game crashes every time the sound tries to play, what's missing here?

glad osprey
#

how do i combine my custom ace with the regular ace or hide the regular ace

latent portal
#

quick question

glad osprey
#

slow answer

strong jacinth
latent portal
#

i want to make a table with certain values

strong jacinth
#

Its the button that makes it crash

latent portal
#

i want each value to have a different weight

#

how could i do that

#

(im selecting one at random using pseudorandom)

glad osprey
#

lazy answer fill the table with lots of copys of the same item you want to have a higher weight

#

(dont do this)

red flower
#

smart answer fill the table with lots of copies of the same item

tall wharf
#

help

#

what do i need

#

to change the width of the thing while rendering

red flower
tall wharf
hard flume
#

Hihi :3
Is there a function to alter the base amount of chips a card gives?

simple mural
#

Wordly balatro

tall wharf
#

normally the letter doesn't go outside but for some reason if i scale the cards down properly it looks weird

#

what do i need to set to not have it do that

simple mural
tall wharf
strong jacinth
latent portal
#

hey whats the set key for tarot cards again

glad osprey
#

iirc

latent portal
#

capital T?

old bane
#

yes

latent portal
#

alr

red flower
zealous glen
#

@tall wharf how did you implement the debuff seal? I can't find it :<

obsidian nexus
#

How could I prevent a consumable from being sold ?

latent portal
#

is there anywhere where i can reference the keys for all the card sets (tarot, spectral, etc?)

unkempt thicket
latent portal
#

no like

#

somewhere where i can find them

#

and see them

#

so i know what they are

red flower
#

search P_CENTERS

latent portal
#

where that

red flower
#

it's in game.lua i think

unkempt thicket
latent portal
#

i found them

#

they were in P_CENTER_POOLS

latent portal
red flower
#

yes, the second and third arguments are min and max

zealous glen
#

Did you ever make this?

wintry solar
#

yes

latent portal
#

does pseudorandom generate decimal numbers by default?

#

is there a way to make it so it doesn't do that?

red flower
#

floor it?

latent portal
#

like for example

#

im looking for 1, 2, or 3

#

(entries in a table)

#

wtf do i do if it returns .34

red flower
#

math.floor

latent portal
#

ogh

#

thats a thing

zealous glen
haughty cypress
#

Fire idea or nah ?💯

zealous glen
#

you can cast it into an integer before or after

#

I think after might be easier to think about

#

but also if you want to select from a table

#

there's already a vanilla random function for that

zealous glen
waxen mesa
#

Like make it at least multiplicative multi

wintry solar
#
local ret = SMODS.blueprint_effect(card, blueprint_card, context)
if ret then SMODS.calculate_effect(ret, card) end
red flower
# latent portal thats a thing

btw what i was saying before with the weights was something like this:
{{item = "item1", weight = 1},
{item= "item2", weight = 0.2},
{item="item3", weight =0.1}}
then you get a number between 0 and 1.3 and if it falls for example in 1.25 then that's greater than the sum of the first 2 so you select item 3

latent portal
#

gotcha

zealous glen
latent portal
#

so for instance

wintry solar
#

or return it

zealous glen
#

also

latent portal
#

i could check the number i generated with the weight of every number in the list

zealous glen
#

I can change the colour of the message box

latent portal
#

then if the weight is lower i add it to a variable and keep looking?