#💻・modding-dev

1 messages · Page 305 of 1

storm wharf
#

gotcha. imma wait till then. Thank you so much!!!

rapid stag
#

at the start of the function? cirThink

#

well now i'm back at my previous problem where it's not destroying the cards.

sturdy monolith
#

it doesn't require patching but it does require a method override

pliant totem
#

Might be a stupid question, but how do I check what the rightmost played card in a hand is?

I'm assuming it's along the lines of G.play.cards[i], where i=table_len-1 or something like that, but I don't know how to get the length

red flower
sturdy monolith
pliant totem
#

Is it #G.play.cards?

red flower
sturdy monolith
#

that's all

red flower
#

I don't think a lovely patch is complicated and the problem is that you're overriding which can create conflicts

#

the problem is not how difficult it is

sturdy monolith
icy oak
#

apparently theres both apply and in_pool, idk anymore

night juniper
#

just a tiny bit more memory efficient

red flower
night juniper
storm wharf
#

would i use add_to_hand for increasing xmult with number of jokers?

wooden nexus
#

2 Enemy of Jimbo suits recreated

#

why is it so big? idk blame LocalThunk for making HD sprites for the card

#

I have to scale it up for suits and the ace

#

For context

tepid crow
icy oak
#

🤔

#

do u know whats actually passed into args in in_pool

red flower
icy oak
#

hmm

rapid stag
#

how do i make this include unscored cards?

daring fern
next timber
#

why is this creating an error? card.lua:262: attempt to index local 'center'

rapid stag
iron haven
#

Hey guys, how do I fix this logic error? SMODS.Joker{ key = 'foxtrot', loc_txt = { name = 'F', text = { "Gains {C:mult}+#2#{} mult for played {C:attention}4's or 5's{}.", "{C:inactive}(Currently {C:mult}+#1#{C:inactive} mult)" } }, atlas = "Jokers", pos = {x = 5, y = 0}, config = { extra = { mult = 5, mult_gain = 2 } }, unlocked = true, discovered = true, rarity = 2, cost = 6, loc_vars = function(self, info_queue, card) return { vars = { card.ability.extra.mult, card.ability.extra.mult_gain, } } end, calculate = function(self,card,context) if context.individual and context.cardarea == G.play and (context.other_card.base.value == 4 or context.other_card.base.value == 5) then card.ability.extra.mult = card.ability.extra.mult + 2 return { message = 'Upgrade!', } end if context.joker_main and context.cardarea == G.jokers then return { mult = card.ability.extra.mult, card = card } end end }

daring fern
rapid stag
#

...that... doesn't feel right, but okay cirThink

iron haven
rapid stag
#

ok, that was right

icy oak
daring fern
iron haven
versed swan
#

guys rq is rarity=1 common?

iron haven
versed swan
#

thank you

daring fern
cyan lagoon
#

question how do i use card:set_ability on a modded joker?

daring fern
cyan lagoon
#

have one modded joker turn into another modded joker

daring fern
cyan lagoon
#

modprefix is MOD_ID?

daring fern
#

It has no relation to the id or name.

cyan lagoon
#

how do i find mine?

daring fern
cyan lagoon
#

no, only main.lua

daring fern
cyan lagoon
#

--- PREFIX: xmpl

#

that it?

daring fern
# cyan lagoon that it?

That would be it but I reccomend you change it to something relating to your mod instead of example.

cyan lagoon
#

aight

rapid stag
#

hey, so who told me that G.GAME.seeded says whether or not the run is seeded? because that isn't true? cirLost i was printing not G.GAME.seeded cirDerp

cyan lagoon
zealous glen
maiden phoenix
cyan lagoon
#

another question how do i make a joker do the spinny thing that cards do when they get an enchantment?

daring fern
# cyan lagoon another question how do i make a joker do the spinny thing that cards do when th...
G.E_MANAGER:add_event(Event({
    func = function()
        play_sound("tarot1")
        highlighted:juice_up(0.3, 0.5)
        highlighted:flip()
        return true
    end,
}))
G.E_MANAGER:add_event(Event({
    trigger = "after",
    delay = 0.1,
    func = function()
        if highlighted then
            highlighted:set_ability('j_modprefix_jokerkey')
        end
        return true
    end,
}))
delay(0.5)
G.E_MANAGER:add_event(Event({
    trigger = "after",
    delay = 0.2,
    func = function()
        play_sound("tarot2")
        highlighted:set_cost()
        highlighted:flip()
        return true
    end,
}))
#

highlighted would be the joker you want to change.

cyan lagoon
#

woag

next timber
zealous glen
unborn steeple
#

hey, I don't know if anyone here at the moment was up 14 hours ago the last time I was in here, but there's a new development:

basically, for complicated reasons, I'm using an older version of the non-Malverk texture pack template, and for some reason my custom planet cards aren't working. all the other texture packs I've made with this same exact method (including the playing card deck, the jokers, and the stickers) are working fine; it's JUST the planet cards that aren't working.

I've been puzzling over this, but I was just playing with the mod technically enabled (although it doesn't do anything, or so I thought) when I saw a weird thing and realized that the texture pack is working totally fine, but for some reason it's just not working on the planet part of Tarots.png? like, it's working on the tarot part -- I'm using a test sprite that just has a big black splodge over most of the image, and the black splodge is showing up on the tarot cards, but not on the planet cards.

can anyone explain how this is happening? aren't they supposed to be drawing from the same PNG? I can't find any reference or mention to the planet card textures being taken at a different time or with a different ID or variable.

this is my code (yeah I know it's an old version but it works on the other packs):

--- MOD_NAME: Adanadhel Planets
--- MOD_ID: AdanadhelPlanets
--- MOD_AUTHOR: [BerryBerryDogberry]
--- MOD_DESCRIPTION: Replaces planet cards with Selena

----------------------------------------------
------------MOD CODE--------------------------

function SMODS.INIT.AdanadhelPlanets()
    sendDebugMessage("Launching Adanadhel Planets! Get ready!")

    local tpt_mod = SMODS.findModByID("AdanadhelPlanets")

    local sprite_tarots = SMODS.Sprite:new("Tarot", tpt_mod.path, "AdanadhelTarots.png", 71, 95, "asset_atli")

    sprite_tarots:register()

end

----------------------------------------------
------------MOD CODE END----------------------```
#

can anyone help me out with this, or at least clue me in to how the game/mod is drawing the correct PNG for the tarot cards but not for the planet cards?

red flower
#

just some parameters passed depending on where in_pool is called

formal parrot
#

Omg hey N

#

I played your mod

#

It’s amazing

red flower
#

hii

#

thank you ❤️

formal parrot
#

I’m not a big yu gi oh enjoyer but i had a ton of fun

#

Thanks a lot

zealous glen
#

by the way, Joker with art

#

Humbleing Bundle
When you buy a card, get a card of the same type
(Must have room)

formal parrot
zealous glen
#

I turned the Joker into a tag

formal parrot
#

Oh

rapid stag
maiden phoenix
#

Ah sorry

rapid stag
rapid stag
mild basalt
#

can someone please help me make this joker actually give times 5 mult? i don't know what could be wrong here.

maiden phoenix
#

Also it should be card.ability.extra.Xmult and not x_mult since you're fetching the values in your config.extra table (it's case-sensitive)

rapid stag
#

...oh, i was printing not cirDerp my bad, G.GAME.seeded is working

spiral pike
#

how would i go about making a joker that affects glass card shatter chances (independent of other probabilities)?

zealous glen
#

You'd need to patch or take ownership of Glass Cards

#

or you could hack it and give it a chance to destroy Glass separately

unborn steeple
#

basically, why are tarot card and planet card textures separate, and how do I make it not do that?

zealous glen
#

did you try defining Planet sprites using the same file

unborn steeple
#

that sounds exactly like what I want to do! how do I do that

zealous glen
#

idk that seems like old format

#

try changing "Tarot" to "Planet"

pliant totem
#

So, cards like Hiker can add permanent bonus chips to a card using the .ability.perma_bonus parameter of a playing card, but is there an equivalent parameter for adding permanent +mult bonus to a card without having to create a new enhancement effect?

unborn steeple
#

there's no goddamn way

#

oh my god. it worked.

rapid stag
unborn steeple
#

I can't. believe. it was that easy.

#

I've been losing my mind about this for like. so long.

#

I was up until like 5am trying to figure out how to get this to work.

#

all I had to do was change the word "Tarot" to "Planet".

#

good god.

maiden phoenix
#

Happens to the best of us

unborn steeple
#

hey @zealous glen do you want my first-born son or something because dear god what a fuckin save

zealous glen
#

I was laughing out loud because I misread that as you asking me if I wanted to be your first-born son

unborn steeple
#

I MEAN IF YOU WANNA BE YOU CAN

#

I AM FOREVER IN YOUR DEBT

#

anyway.

#

thank you so much.

#

🙏

#

and now farewell

next timber
#

on a blind's in_pool function, ante 1, G.playing_cards hasn't loaded yet and is empty, is there any way around that?

zealous glen
zealous glen
#

can't you just if G.playing_cards

next timber
#

i did do if G.playing_cards, and its returning true but its empty

next timber
zealous glen
next timber
#

i mean yeah im checking that. but i would quite like for it to be able to appear on ante 1 if the player is using like. cryptid seal deck

#

or any future goofy decks i myself add

thick panther
#

Oh it was already answered lol

honest token
#

How do I set up vscode to start making mods? I installed the lua plugin by sumneko, what else do I need to do?

zealous glen
#

It might be good to have Balatro's source code in your project and/or the lovely dumps and/or Steamodded source code

#

Personally I have Balatro source code in my main project and other projects for the other folders

thick panther
honest token
#

how do I do that?

iron haven
#

How do I make it so a joker add moneys?

daring fern
honest token
iron haven
# daring fern Return `dollars = number` or do `ease_dollars(number)`

do I have to remove what SMODS.Joker{ key = 'golf', loc_txt = { name = 'G', text = { "Gains {C:mult}+#2#{} mult for played {C:attention}5's{}.", "{C:inactive}(Currently {C:mult}+#1#{C:inactive} mult)" } }, atlas = "Jokers", pos = {x = 6, y = 0}, config = { extra = { mult = 3, mult_gain = 2 } }, unlocked = true, discovered = true, rarity = 1, cost = 4, loc_vars = function(self, info_queue, card) return { vars = { card.ability.extra.mult, card.ability.extra.mult_gain, } } end, calculate = function(self,card,context) if context.individual and context.cardarea == G.play and context.other_card:get_id() == 5 then card.ability.extra.mult = card.ability.extra.mult + 2 return { message = 'Upgrade!', } end if context.joker_main and context.cardarea == G.jokers then return { mult = card.ability.extra.mult, card = card } end end }

#

like what do I replace?

daring fern
honest token
#

I cant tell what its supposed to do

iron haven
zealous glen
#

I tried but failed to configure LSP so Idk

thick panther
honest token
#

whats the direct path?

zealous glen
#

it depends on where your SMODS is

honest token
zealous glen
#

if you go inside SMODS you should find lsp_def

thick panther
#

I'm not sure if there is a dynamic way of doing this, but this is what I do.

zealous glen
#

I had tried configuring mine but it didn't work

iron haven
#

hm

thick panther
zealous glen
# thick panther the `lsp_dir` directory? Or do you mean the vscode config?

I put this into modname.luarc.json and it didn't work (inside my mod's folder)

{
    "workspace.library": [
        "C:/path/to/Balatro/Mods/Steamodded/lsp_def"
    ],
    "diagnostics.disable": [
        "undefined-global",
        "lowercase-global",
        "need-check-nil",
        "duplicate-set-field",
        "inject-field",
        "undefined-field"
    ],
    "runtime.version": "LuaJIT",
    "type.weakUnionCheck": true,
    "type.weakNilCheck": true
}
honest token
thick panther
zealous glen
runic pecan
#

Is there like a SMODS method for adding that compat/incompat box like the Blueprint/Brainstorm?

zealous glen
#

not that I'm aware of

#

I just make my own

honest token
#

what does this mean?

zealous glen
#

I think it means LSP isn't working properly

runic pecan
iron haven
#

I'm bumfuzzled

zealous glen
#

Ouroboros

honest token
# zealous glen I think it means LSP isn't working properly

Is there a way to make it work?

    "explorer.confirmDelete": false,
    "workbench.colorTheme": "Catppuccin Mocha",
    "workbench.iconTheme": "catppuccin-mocha",
    "terminal.integrated.minimumContrastRatio": 1,
    "catppuccin.accentColor": "blue",
    "[lua]": {
        "editor.defaultFormatter": "JohnnyMorganz.stylua"
    },
    "Lua.runtime.version": "LuaJIT",
    "Lua.diagnostics.globals": [
        "SMODS"
    ],
    "Lua.workspace.library": [
        "C:/Users/Keanu/Documents/vs/Balatro/smods/lsp_def",
    ],
    "Lua.workspace.checkThirdParty": false,
    "explorer.confirmDragAndDrop": false,
    "security.workspace.trust.untrustedFiles": "open",
}```
zealous glen
#

from my mod

zealous glen
thick panther
iron haven
#

@daring fern I'm bumfuzzled.

runic pecan
#

This crashed with the log says ability is nil.
Do I just need to add a ability={}, or there's more steps needed to fix it?

honest token
#

Does anyone here have a working LSP in vscode?

zealous glen
red flower
#

whats the problem

zealous glen
zealous glen
thick panther
daring fern
# iron haven <@696947656986984518> I'm bumfuzzled.

Remove everything in calculate and replace it with lua if context.end_of_round and G.GAME.blind.boss then card.ability.extra.money = card.ability.extra.money + 3 return { message = 'Upgrade!', card = card, } end Make sure to define money in config extra.

honest token
#

me and victin cant get it to work

red flower
#

oh i didnt do that i just open my entire mods folder :3

runic pecan
honest token
daring fern
#

In calculate.

#

Where did calculate go?

glad osprey
#

how do i do the remove part

thick panther
iron haven
daring fern
zealous glen
#

bad alignment

icy oak
#

im dead

honest token
iron haven
daring fern
thick panther
glad osprey
thick panther
#

I didn't touch any config files outside of it

iron haven
daring fern
zealous glen
iron haven
icy oak
honest token
#

did you add anything else to the settings to make it work?

zealous glen
honest token
#

bc just adding the lsp defs doesnt work for me

iron haven
#

does this fix the error?

icy oak
#

alignment is still kinda yikes but i suppose it can work

iron haven
#

I have to edit the text to...

honest token
daring fern
thick panther
daring fern
zealous glen
thick panther
hasty mist
#

I'm creating a scaling joker, I can't get the config to show in the description, though, it just shows nil, does anyone know why this might be?

iron haven
#

what should money equal?

daring fern
zealous glen
honest token
iron haven
zealous glen
thick panther
zealous glen
iron haven
#

Also I don't need mult and mult_gain and the thing I am highlighting

daring fern
thick panther
zealous glen
#

also 😭

iron haven
daring fern
versed swan
#

does anyone know if Jokers have a unique ID that persists between save loads?

#

i know there's card.ID but that changes per save load

hasty mist
iron haven
honest token
daring fern
#

With line numbers.

iron haven
thick panther
# honest token yes

I don't know then. Mine just worked, so I'm not sure what the issue would be.

daring fern
iron haven
daring fern
iron haven
daring fern
gaunt thistle
#

hahaha

iron haven
gaunt thistle
#

should still be there iirc

iron haven
#

this is in VSCodium.

daring fern
unborn bay
#

vscodium is the same as vscode without this mircosoft

#

they are the same program

iron haven
daring fern
#

Then search Lua

iron haven
daring fern
iron haven
#

yeah

daring fern
iron haven
#

I don't see any.

daring fern
iron haven
#

it's white.

daring fern
#

Does the game still crash?

iron haven
daring fern
iron haven
#

when end?

daring fern
iron haven
#

Can I remove the highlighted text and also I have to edit lines 277 and 278.

glad osprey
#

return { vars = {value1, value2,...}}

#

inside vars is what values you want to be passed onto the text

#

and the number you use to call the value is the number they are in the return

#

so value1 would be #1#, value2 would be #2# so on

glad osprey
#

if i wanted to bring xmult to it id do return {vars = {card.ability.xmult}}

scarlet thorn
iron haven
#

how do I change the text to what I want also I removed that comma?

scarlet thorn
glad osprey
iron haven
iron haven
glad osprey
scarlet thorn
# iron haven this

Line 295 has variables you return. the #1# and #2# are variables that were returned

#

#1# is card.ability.extra.money
#2# is nothing.

iron haven
#

does this work? I made it so it does 2 of them. what do I have to change?

glad osprey
#

please read what I sent

glad osprey
tardy reef
#

Hi, I'm trying to make a joker that gives cards held in hand random seals after a certain condition, how would I go about going through each card and giving them seals?

iron haven
tardy reef
#

I know it most likely involves the "set_seal" function, but it's the going through each individual card that I'm not sure of how to best do

iron haven
austere totem
#

Hey can anyone assist me in making a custom deck?

scarlet thorn
tardy reef
glad osprey
#

that should work

iron haven
scarlet thorn
tardy reef
#

What's the context for cards currently held in hand?

scarlet thorn
daring fern
scarlet thorn
# iron haven ?

Look at the description. #2# is the second variable defined. #1# is the first one.

tardy reef
tardy reef
scarlet thorn
#

Thats.. the code for held in hand...

glad osprey
austere totem
tardy reef
#

What I'm trying to do is this

iron haven
#

it does it for every card you are holding on the boss blind.

#

for G.

scarlet thorn
#

And to get a random seal, use SMODS.poll_seal

glad osprey
glad osprey
glad osprey
#

fym no 😭

scarlet thorn
#

It should be a loop using pairs

glad osprey
#

IT LITERALLY DOESNT CHANGE ANYTHING 😭

red flower
#

yeah its literally the same thing

glad osprey
#

i just prefer to do it like that incase I add cards to the area bcus if you do with pairs it'll be infinite

iron haven
#

it's at $2 currently.

#

now it is $41 dollars.

glad osprey
iron haven
#

I did.

glad osprey
#

then why is it still red 😭

scarlet thorn
iron haven
glad osprey
iron haven
#

if context.end_of_round and G.GAME.blind.boss then so I have to change this?

iron haven
#

oh

glad osprey
#

add what I sent to that

#

i think

#

oh and also not context.blueprint

daring fern
glad osprey
#

oh yea that may also work

red flower
#

context.main_eval

#

thats what you want

scarlet thorn
daring fern
red flower
iron haven
#

ok. I have to do something harder for H.

scarlet thorn
#

Err well, theres like 20 ways to implement it. The way vanilla campfire does it doesn't include hand.

iron haven
#

gains +4 for high card played (starts at +4 mult)

scarlet thorn
iron haven
#

how do I make it so it checks for high card?

scarlet thorn
topaz monolith
#

Does anybody know how to debuff through enhancement calculate? I have an enhancement that debuff itself if held in hand. I only need the debuff functionality

scarlet thorn
tardy reef
#

Ok this works just fine, thanks for the help!

topaz monolith
tardy reef
#

But now I'd like to do something to make it look nicer, how would I go about making the cards "twirl" when getting the seal? Kinda like how the sigil or ouija cards work when changing suit/rank of the cards in hand

scarlet thorn
#

The arguments being scale and rotation_amount

daring fern
tardy reef
#

And should that go before or after setting the seal?

austere totem
#

Alright I'm still lost. I'm trying to make a few decks. Can someone help me do these things: Start with jokers/tarots/vouchers, change starting money, change ante scaling, change starting hands/discards
sorry for asking for so much

scarlet thorn
iron haven
scarlet thorn
tardy reef
#

Actually juice_up was what I had in mind, I just said the wrong thing lol

scarlet thorn
iron haven
tardy reef
#

Yeah I got the two things mixed up, I forgot that cards only do a little wiggle when getting a seal, not a full flip

daring fern
rose dragon
scarlet thorn
tardy reef
rose dragon
iron haven
scarlet thorn
scarlet thorn
tardy reef
# daring fern

Weird, I could swear the cards didn't move when I tested without doing juice_up separetely

iron haven
scarlet thorn
iron haven
digital niche
#

what iis the size of the pixel art? like, not the one i have to put in the assets put what canvas size is used to do the cards in the app ill make the arts

#

71x95?

glad osprey
#

yea

digital niche
#

tyty!

glad osprey
#

actually maybe 73 95

#

i don't have good memory🙏

crisp coral
#

71x95 with 1px transparent border

digital niche
#

just remembered i had some placeholders saved, just had to check in there lol

iron haven
#

559 by 377. that's not right.

#

I'm missing 11 pixels....

#

from the right.

daring fern
#

How would I make seals on scored cards do things with hand cards?

tardy reef
digital niche
#

like, if you play a card with a pink seal, all cards with pink seal in hand gives +4 mult for example

#

?

digital niche
#

btw where can i find the assets for the enhanced cards bbut without the lots of stuff in the enhancement.png in the balatro files?

tall wharf
#

I'm not going to judge the mod by its art but like 😭

digital niche
# daring fern Yes.

something that would check for cards with that seal in hand and then score them as h_mult probably

digital niche
# tall wharf ?

the balatro enhancement file have all that, i wanted a image with just the enhancements itself

#

just to use as a base

tall wharf
#

you crop them

#

oh

#

you meant just the paper

digital niche
#

no like, with all the enhancements but only them

#

rock, gold, bonus, mult, wild, lucky etc

#

all of the enhancements in the same image

#

in this image i sent there is algso the decks, the soul card thing, seals and etc

daring fern
digital niche
tall wharf
#

no

#

that's all of them

digital niche
#

ok then, tyty!

carmine burrow
#

how can i add a box like on luchador, bp/bs, the fool to my joker description?

tepid crow
#

that's done through main_end

topaz monolith
#

I have a card debuff when the 1 in 3 chance hits when scoring, but it still scores its editions, chips, mults, etc. How do I make it so it debuff itself AND not score any points before being scored in enhancement calcs?

carmine burrow
#

i checked the source code and thought to look at loc_vars and similar places but i just skimmed too fast and didn't see that was there lmao

tall wharf
#

t ui s pmo sm

digital niche
#

what do yall think of this to a fusion of bonus+bonus enhancement?

frank bobcat
#

I have no clue of this is the right place for this question, but I’m trying to get Extra Credit to work and it is asking for a version of Smods that I can’t find anywhere (which is hilariously 404 beta)

I feel like I’m being pranked.

rapid stag
daring fern
rapid stag
#

i don't understand, wouldn't that context only happen if there are cards being destroyed in the first place? i thought there was a calculate() called per joker for the destroy_card context for things like canio's effect

#

cirDerp this doesn't make any sense to me girldmSad

daring fern
daring fern
daring fern
rapid stag
#

cirLost ...so does context.destroy_card always happen every hand regardless of whether or not a card is destroyed? is it just a phase of calculation?

rapid stag
#

oh so all the cards that have to be destroyed per hand HAVE to be destroyed wholesale. it can't be one at a time in sequence?

#

or can i like...

rapid stag
#

or am i right about all cards to be destroyed needing to be destroyed at once

daring fern
daring fern
short mountain
#

I'm ultra cooked

#

No matter what I CANNOT delete these files

#

💔 💔 💔

rapid stag
daring fern
rapid stag
short mountain
daring fern
rapid stag
daring fern
short mountain
#

Can you help me somethingcom

daring fern
short mountain
#

I have 50

#

I need like 7

#

All of them are just a ton of shit except for the 7 I want

#

I edit the mods folder I do anything I can

#

But a carbon copy is made, that is used

#

And it has all the mods

daring fern
short mountain
#

It just crashes

#

And nothing happens

#

Nothing?

daring fern
short mountain
#

Let me explain

#

So if I rename a folder, that folders contents just go to shit right

#

I renamed the mods file

#

With the 50 mods

#

And deleted the mods

#

Then

#

"Mods" appears

#

With the 50 mods

#

And it's used in the game

daring fern
short mountain
#

Like nopeus talisman

#

Yada yada

#

(I don't know shit sorry )

#

I'll try it anyway though

iron haven
#

how do I extend the image by 11 pixels?

daring fern
iron haven
daring fern
short mountain
#

I deleted lovely

#

Didn't crash

#

What now

iron haven
stark geode
#

What editor do you use?

short mountain
daring fern
short mountain
#

It didn't crash

#

What now

iron haven
marsh radish
#

hey

#

um

#

how do i

#

make balatro run the best

daring fern
marsh radish
#

i need it to run AMAZING

stark geode
marsh radish
#

my computer can handle balatro

#

but my library computer can't.

short mountain
#

Lovely didn't reappear

iron haven
daring fern
daring fern
short mountain
stark geode
#

Just extend your canvas

#

11 pixels

daring fern
stark geode
#

Then recreate what's missing

#

You can use the Jimbo texture as a template for what's missing

short mountain
stark geode
#

Or the egg texture

short mountain
iron haven
short mountain
#

Like the lovely folders and the toml ones?

iron haven
#

the image

daring fern
stark geode
short mountain
stark geode
#

At least that's what it is on asperite

daring fern
short mountain
#

Got it

#

It's refusing

iron haven
short mountain
#

It's just

iron haven
#

oh

short mountain
#

Not deleting anything at all

daring fern
topaz monolith
stark geode
iron haven
#

oh it is fixed now

short mountain
#

@daring fern it isn't even deselecting it, it says "deleting" for like a millisecond and it disappears

short mountain
daring fern
short mountain
#

Ngl

#

All I want is the fucking ff thing

#

But it's only on one application

iron haven
#

How do I resize an image in GIMP?

short mountain
#

Because the other is outdated

#

And the one with fast forward is the 50 mods one

daring fern
iron haven
#

I have to make a 2x scale version of the jokers.

short mountain
#

Fuuuuuuuuck

#

My balatro is gonna run slow as shi forever ig

daring fern
daring fern
rapid stag
daring fern
#

context.destroy_card is like context.after

#

It happens after scoring.

rapid stag
#

...oh.

iron haven
#

what is this gray bar on the size for?

glass scaffold
daring fern
glass scaffold
#

Jokers are usually 71 x 95.

-# Unless you're me, in which case, I used 710 x 950.

rapid stag
glass scaffold
daring fern
glass scaffold
red flower
rapid stag
#

...can i attach a sprite to a card?

glass scaffold
rapid stag
glass scaffold
rapid stag
#

hmm

red flower
iron haven
#

now H doesn't add mult when I play a high card.

vague helm
#

Hi! I'm working with the post_trigger feature. It seems like, no matter what I do, the return message shows up in the wrong place when using this context. I explicitly tried setting "card" and "focus" to the appropriate Joker, but it will show the message by the Joker that did the trigger or the playing card related to the trigger. Is this a bug or is there a workaround I'm not familiar with?

faint yacht
#

message_card?

red flower
iron haven
daring fern
vague helm
daring fern
#

Also a card cannot be in play and in jokers.

iron haven
#

"High Card"

faint yacht
#

¯_(ツ)_/¯

red flower
iron haven
daring fern
gilded blaze
vague helm
#

Thanks!

gilded blaze
#

is there anything wrong with image processing, why is Wormy Chaos too black in-game 💀

iron haven
daring fern
iron haven
#

H still isn't upgrading.

stark geode
#

It's late for me

iron haven
#

ok...

daring fern
slate bison
#

hey guys, im trying to make a joker decrease the level of ur played poker hand and get its +chips and +mult permanently

iron haven
slate bison
daring fern
iron haven
weak brook
#

any updates on this?

gilded blaze
daring fern
gilded blaze
#

take a look at Runner 2

iron haven
iron haven
daring fern
iron haven
gilded blaze
#

the proper way to scale a joker via playing certain hand types is to do so in context.before

#

you tried to do it in context.individual

iron haven
daring fern
iron haven
#

hold on.

digital niche
#

Bonus+Bonus = lots, +80 chips
Bonus+Mult = Extra, +30 chips, +4 mult
Bonus+Wild = Untamed, +30 chips, works as any suit
Bonus+Glass = Tempered Glass, X2 chips, 1 in 6 chance to break
Bonus+Steel = Sapphire, X1.5 chips when stays in hands
Bonus+Stone = Cobalt, +100 chips, no suit or rank
Bonus+Gold = Diamond, +6$ if held, gives chips based on current money

rapid stag
digital niche
#

i forgor now what was glass+gold tbh, lemme try to find what it was

#

but yeah it makes sense

#

i dont even remember what it did

stiff locust
#

sapphire is my favourite metal

digital niche
stiff locust
#

ok but sapphire isn't a metal

digital niche
#

yeah but i couldnt think of anything better

#

i just took steel as a ore

#

there is even a "Miner" joker that makes the cards you score into random card ores

#

i just have to code it still

manic rune
#

is it me or this looks like a dawg

digital niche
#

from joker to barker

manic rune
#

😭

digital niche
digital niche
#

plato also said that this ore was made to build atlanta

#

even tho looking back now, it looks more like a bonus+gold thing than a glass+gold

#

yeah imma invert the names

manic rune
#

looks delicious

digital niche
#

some mint chocolate thing

manic rune
#

id lowkey try and bite that

digital niche
#

same

shut crater
#

what is the best way for a sticker to prevent a joker from being sold or destroyed (basically to mimic eternal but under certain conditions)?

digital niche
#

there you go!

#

now to the mult ones!

rapid stag
# slate bison im just trying to know how can i get the +chips and +mults from a played poker h...

uhhhhhhhhhhhhhhh try
G.GAME.hands['hand name here'] to get the hand - and then in there, it should have... .mult and .chips according to its current level...? not confident about that - can also just get from scoring_hand in your joker's calculate() context: https://github.com/Steamodded/smods/wiki/Calculate-Functions
probably the easier way

and then iirc there's a specific way you can level down a hand which you can look at the blind code for the arm for

slate bison
#

i was about to do the most horrendous thing which is doing an if statement for every poker hand and apply it form there

#

but i rather try those first

digital niche
rapid stag
#

in fact, doesn't even have to be a metal. jade

#

oh, bonus

#

i read gold for whatever reason cirDerp

digital niche
rapid stag
#

precious metalbrained

digital niche
#

scratch card i think

digital niche
digital niche
rapid stag
weak gate
#

how do i test whether a playing card has foil edition?

digital niche
rapid stag
daring fern
weak gate
#

hmm, in the deck; what I want actually is to debuff some un-editioned cards when starting this boss blind

rapid stag
digital niche
#

oh in the code 😅

rapid stag
daring fern
rapid stag
# daring fern What are you trying to do?

put a sprite on top of a played card if i plan to destroy it

i was gonna wonder if i could just cheat it by making a hidden seal that does nothing but just has the graphic and doing it that way, but then i realised what if the card already has a seal

daring fern
still jacinth
#

is there a hand-level-up context? or any way to trigger something when a hand levels up

rapid stag
daring fern
rapid stag
iron haven
#

It works

daring fern
daring fern
#

It drew it over in the corner.

#

Start a new run?

rapid stag
#

i see the issue, yeah. now it's placing it in the wrong position like you showed

rapid stag
digital niche
#

what could mult+gold be?

#

oh i remember, it was a "Casino" card, you payed 1$ and had the chance to get 10

#

i think it could be better with glass+lucky actually

rapid stag
# digital niche what could mult+gold be?

💻Thanks to Opera for sponsoring this video! Get a browser that’s literally better at everything, download Opera today: https://opr.as/12-Opera-Browser-NileRed

A few years ago I stumbled onto something called purple gold and I really wanted to buy a pure purple gold ring. However, I was devastated when I found out that it didn't exist...so ...

▶ Play video
digital niche
#

oooooh i saw this video once!

rapid stag
#

although that might be better as steel+gold, since the purple gold is an alloy of aluminium and gold cirThink

digital niche
#

there is a red gold, is a alloy of copper and gold

rapid stag
#

yeah, could do that instead

digital niche
digital niche
rapid stag
#

rose gold always good

#

pretty

digital niche
#

yess!!

#

one of my fav types of gold

weak gate
#

can a challenge force a specific 8th ante boss blind?

digital niche
#

but purple gold in number one, i love purple

rapid stag
# weak gate can a challenge force a specific 8th ante boss blind?

... cirThink

you have a few options. quick and dirty is you could just ban every finale blind but one, but then that affects all future finale blinds

other way is that you could look at how director's cut rerolls the boss blind and try to use that code as part of a call specific to your challenge to force the blind to be that

probably other, better ways, but

#

i do recall there being code that decides some future boss blinds?

weak gate
#

banning every finale blind would be acceptable hmm, repeating it on ante 16, etc

#

ah yeah that'll do nicely

wintry solar
weak gate
#

(sic)

crisp coral
#

how we feelin

rapid stag
rapid stag
digital niche
#

what could mult+lucky be?

primal shoal
#

lead

south lintel
digital niche
#

i was first thinking of doing a clover but it would be harrd to make it as a rectangle and it would break the collor thing

primal shoal
#

or just a golden 4 leaf clove yeah

digital niche
#

the collors are going so satisfying, adding a gold there would break it 😭

primal shoal
digital niche
#

also would be a little hard to make a golden 4 leaf clove in a rectangle

shell timber
#

so bonus + mult is the same as mult + bonus?

digital niche
digital niche
south lintel
digital niche
primal shoal
south lintel
digital niche
#

OOOOOH

south lintel
#

so double mult = taking to a power

#

so power card

digital niche
#

thats so genius

hasty mist
#

finally finished that factorial mult joker i was struggling on for a few days here (ignore the bad sprite)

south lintel
digital niche
hasty mist
#

i used direct computation for values from 3-720, and approximation for higher numbers so that the values are clean AND fast

digital niche
#

sound fun

hasty mist
hasty mist
#

im very proud of it

digital niche
# digital niche but then

btw just to be sure, in the "pos = {X=0,Y=0}" in the X ill just add 72 for the second, then 144 for the third and there it goes right?

south lintel
primal shoal
hasty mist
#

yep! i've tested it, its insane

digital niche
hasty mist
shell timber
#

basically ^^2?? kind of busted

#

ok its more like ^^1.5 but still

hasty mist
#

it was grueling to figure out how to actually do it 😭

#

worth it though

#

completely bug free (to my knowledge)

primal shoal
#

works with blueprint though

hasty mist
#

yep!

#

oh whoops

hasty mist
#

forgot to remove my print debugging

runic pecan
#

I'm making a sticker that a playing card with it gives chips when played instead of when scored, which context timing should I use?

gleaming zealot
shell timber
#

im 99% omeganum.js has a factorial method

gleaming zealot
primal shoal
gleaming zealot
hasty mist
#

well i know very little about coding in general so

digital niche
south lintel
weak gate
#

is it possible to manually add text inside Custom Rules? Wait, yes it is, just reading balatro vanilla's typecast challenge and its localization

south lintel
#

at least it should

#

I just realised you were still talking about the cards

#

but I don't see why the system shouldn't be the same as with the jokers

hasty mist
#

i like the way atlas does spritesheet coordinates

shell timber
hasty mist
#

i see

shell timber
#

so you're not far off!

topaz monolith
#

Searched in this chat for solutions about ghost cards and I am confused. Anyone got any solutions about how to stop ghost cards from being created when shattering in my code?

shell timber
#

actually the last return is identical to what you did

digital niche
#

btw anyone knows what i could do with wild+wild? i was gonna make it create a "monster" joker that makes steel cards into claw cards (claw card is wild+steel, gives 3X mult but breaks after 3 rounds)

#

its casically a steel card marked with claws in it

primal shoal
digital niche
#

since any suit+any rank is just too hard

ruby lily
#

I have my mod in the mods folder but does not appear ingame. are there any common things i can look out for?

hasty mist
#

yeah idk much about like

hasty mist
#

stuff like libraries

shell timber
#

and considering errorfixer isn't touched it's exactly the same

ruby lily
south lintel
digital niche
digital niche
ruby lily
#

o ty

digital niche
gleaming zealot
#

SMODS.Estrogen

digital niche
gleaming zealot
shell timber
#

the smods.estrogen in question

south lintel
digital niche
scarlet spire
#

you ever implement a whole joker mechanic and then realize it sucks to play with

gleaming zealot
#

if card.debuffed then crash

topaz monolith
digital niche
#

this is so genius

primal shoal
gleaming zealot
scarlet spire
#

and the shatter, too

#

remove = true is handling the destruction itself

digital niche
hasty mist
#

🔥 🔥 🔥

#

we love estrogen

gleaming zealot
south lintel
#

gato

#

:3

digital niche
gleaming zealot
#

they took over your country and culture only for you to be richer than them later 💔

south lintel
digital niche
#

now you know 2

#

thats coffee

south lintel
#

🔥

gleaming zealot
#

How to say 2 in portuguese

south lintel
#

dos?

digital niche
#

dois

#

with an i

south lintel
#

close

digital niche
#

dos is spanish

south lintel
#

makes sense

gleaming zealot
#

El wee joker +8 chipos lua dois played

primal shoal
#
G.E_MANAGER:add_event(Event({trigger = 'after',delay = 0.1,
                                func = function()
                                    c:shatter()
                                    c = nil
                                    return true
                                end
                            }))

this is how i did it if its still not working

digital niche
#

Brasil joker +dois cafés and gatos when scored

south lintel
ruby lily
#

whoops 👀

#

at least it acknowledges it tho

primal shoal
south lintel
#

that's the entire point of programming

#

you just progress through different errors until the code starts working

south lintel
digital niche
#

i gave up coding in gdscript because it didnt say "you got an error, go back", he just sat there staring at me, balatro says "you are DUMB in this line:"

ruby lily
gleaming zealot
topaz monolith
hasty mist
#

I dread the day someone sends me my first bug report

crisp coral
primal shoal
south lintel
gleaming zealot
hasty mist
#

i mean so far the 3 jokers i made i tested VERY thoroughly

native zinc
#

yeah one of my jokers has had really poor behaviour

ruby lily
#

thats def why

south lintel
#

yeah likely that

hasty mist
#

my leftwards blueprint joker was a pain in the ass to make because it kept getting into a feeback loop with regular blueprint and crashing... until i realized i accidentally disabled the VANILLA function to prevent blueprint from getting into a feedback loop

#

absolutely maddening

primal shoal
#

"if not context.blueprint then" is your friend

gleaming zealot
hasty mist
#

my factorial joker took like 2 whole days of work and a LOT of print debugging

hasty mist
icy oak
#

how do i add a playing card to a deck at the start

topaz monolith
primal shoal
primal shoal
south lintel
primal shoal
gleaming zealot
#

if G then G = nil

south lintel
#

ah I'm slow

gleaming zealot
native zinc
#

it does work so i have no complaints

primal shoal
hasty mist
native zinc
#

+5 free rerolls, doubles shop prices

hasty mist
#

i see

gleaming zealot
primal shoal
#

general rule of thumb I have is
variable
variable changes
if statements
functions

just makes it way easier to read

gleaming zealot
hasty mist
#

LOLL

slate bison
#

hey so, it says im indexing a nil value, how could i change this?

reef belfry
#

Back hole ahh effect

slate bison
#

ohh that may be the problem

hasty mist
#

my leftwards blueprint joker is put together so poorly but if it works it works™️

slate bison
gleaming zealot
#

sued

slate bison
#

that reduces ur hand level

gleaming zealot
#

It just works™️ is an apple copywested sentence

hasty mist
primal shoal
#

ooh now i want to make a deck that times your score by -1 and have a bunch of joker that play around that

hasty mist
#

balatro but you have to get the lowest score possible

native zinc
chrome widget
#

Does SMODS.find_mod finds mods that are currently disabled?

slate bison
#

ok so what if i want to call the poker hand played? should i say context.hand_info or smth?

topaz monolith
primal shoal
digital niche
#

is there a way to repeat the same enhancement twice in the collections page?

primal shoal
#

dup it name the key slighty different

digital niche
#

tyty!

native zinc
#

illusion of choice

#

i love dumb challenges

hard needle
#

the one on the right is the better joker

#

left one is trash ngl

native zinc
#

oh

#

okay

#

i'll take it then

#

what do i sell

hard needle
#

sell the joker

native zinc
#

obviously

primal shoal
native zinc
#

the indents ...

primal shoal
#

gone with the wind

#

discords being weird today

gusty iron
#

how would i upgrade a poker hand using a joker?

daring fern
gusty iron
#

the current one played

#

but both for later reference please!!

primal shoal
#

the burnt joker would have that code right?

daring fern
#

Change 1 to the number of level ups.

rapid stag
daring fern
gusty iron
#

Oh!

#

Okay that

#

was not hard at all

#

thank you!!

primal shoal
digital niche
#

i think im doing a good jobb with this

hasty mist
#

how would i make certain items free (booster pack types, jokers/consumable types, etc) with a joker?

slate bison
#

how do i get the name of the pokerhand played?

reef belfry
#

Is that mita from hit game miside

hasty mist
digital niche
rapid stag
gusty iron
#

any formatting i need here?

digital niche
#

yeaah! i was surprised i never saw someone do

hasty mist
#

the mod im working on doesnt really have any set direction, its just sort of an outlet for me to express my ideas for content

digital niche
#

#1# being G.GAME.probabilities.normal and #2# being card.extra.ability.odds

gusty iron
#

like this?

#

oh wait

#

this wont be compatible with that

digital niche
#

nono, in loc_vars you add those variables

#

oh wait

#

missread

gusty iron
#

as 2 in 2 would just

#

go on forever

gleaming zealot
#

balala

digital niche
daring fern
gusty iron
#

how the joker works is:

roll a 1 in 2
if it hits, level up your most recent hand by one
repeat until the chance doesnt hit

digital niche
#

and it would be

loc_vars = function(self, info_queue, card)
        return {vars={(G.GAME.probabilities.normal or 1), card.ability.extra.odds}}```
gleaming zealot
gusty iron
#

i have that, i just showed the return portion

gusty iron
digital niche
#

and you would need to add the config = {extra={ odds = 2}}

primal shoal
# gusty iron any formatting i need here?
text = {
  "Every time a {C:attention}hand{} is played",
  "repetitively roll a{C:green)#1#/#2#{} chance",
  "every success {C:attention}Levels up{} hand by one",
}```
best ive got