#đŸ’»ăƒ»modding-dev

1 messages · Page 286 of 1

zealous glen
#

To be fair they might not know what to search

red flower
#

i just assume many people here don't know how to read code

zealous glen
#

Though they could’ve searched some effect like Grim

#

Personally I try to tell people what I remember and otherwise I tell them to look it up

agile thistle
finite kernel
#

sorry

gilded goblet
finite kernel
#

it does work

#

lua make me angry

gilded goblet
#

as long as they're trying to put in the effort to learn

gilded goblet
agile thistle
#

i think its good to read the manual though

#

before you start anything

heady siren
#

I've been modding Garry's Mod for years so lua is basically my native language [=

agile thistle
#

that way you have an understanding of basic things at least

red flower
#

i unironically love lua so i dont understand when people complain

finite kernel
#

lua is great but i have java brainrot

gilded goblet
#

it has some issues but it's unironically a great language

red flower
#

i hate java

heady siren
agile thistle
#

i only dont like lua because of the natural language

#

i hate your thens and ends

finite kernel
#

one thing i find kind of silly is no ++ or +=

finite kernel
agile thistle
#

rainbow brackets allll the way

#

❀

heady siren
finite kernel
#

the ammount of times ive typed if (..) {

#

only to get slapped

agile thistle
#

which another thing

gilded goblet
red flower
#

maybe im too used to python

agile thistle
#

tables use {} because they can act both as classical arrays and structs

#

and it pisses me off

heady siren
#

Tables are tables [=

chrome widget
#

Out of curiosity, I'm using quantum enhancements, and I have this card that treats lucky and glass cards as interchangable. But for some reason it crashes when using Justice or Magician. Does anyone know why?

    if context.other_card.config.center.key == 'm_lucky' then
        return {
            ['m_glass'] = true,
        }
    elseif context.other_card.config.center.key == 'm_glass' then
        return {
            ['m_lucky'] = true,
        }
    end
end```
stiff locust
#

how do I make an enhancement conditionally give mult

#

I should've figured this out by now but it just isn't working and i don't know why

manic rune
heady siren
stiff locust
#

ohhhhhh context.main_scoring

heady siren
#

Yeah, individual is for jokers

stiff locust
#

not context.individual and context.cardarea

heady siren
#

main_scoring is for enhancements

stiff locust
#

riight okay yeah that makes sense

heady siren
#

Just make sure to do context.cardarea == G.play or it'll do it from your hand too

stiff locust
#

i was about to make that mistake lol

zealous glen
#

I don’t know if your code is also broken

#

But—

agile thistle
chrome widget
#

Was this due to a recent smods update?

agile thistle
#

i even looked through recent smods it looked fine

chrome widget
#

Oh damn changing enhancements via debug breaks now too

#

This did work before

zealous glen
#

I can’t ping you there

chrome widget
#

Yeah I don't usually hang out there directly

stiff locust
#

there's an smods server?

red flower
spiral crown
#

Anyone know how I can get a range of money specifically -5 through 5?

zealous glen
#

The forwarded message is from MathIsFun (Cryptid)

manic rune
#

wait

#

quantum enhancement is broken rn?

zealous glen
#

Seemingly

manic rune
#

ack

next timber
#

why are some of the cards missing???

manic rune
#

i was about to add relics that use quantum enhancements too

chrome widget
zealous glen
red flower
#

i havent used any optional features yet

zealous glen
agile thistle
next timber
#

lol

#

but seriously does anyone know why the deck is just sniping random cards when it loads

zealous glen
#

That sounds like it would randomly remove cards

next timber
#

the remove is just on a list of indices though, that shouldnt be removing entire cards from the deck surely

finite kernel
#

so my code is creating the cards properly, but apparently adding them to your hand is a different thing lol

#

so they just float around

zealous glen
#

It is indeed different

finite kernel
#

does smod have stuff for adding cards to your hand

stiff locust
#

idk if this works differently for playing cards

#

but for jokers you have to do G.jokers:emplace(card) to put them in the G.jokers cardarea

#

so maybe you need to do that with your playing card?

#

check certificate code

finite kernel
#

will do

spiral crown
#

getting a "'then' expected near 'equals'" error here

chrome widget
#

What's the best check to not do certain sprite stuff if something is in the collection?

#

I thought it was checking if card.area.config.collection but that doesn't seem to work?

hushed field
#

if card.area and card.area.config.collection then is how i check for showing things exclusively in the collection

hushed field
#

ohh, hmm

thin anchor
#

hi

manic rune
#

...and dollarcalc >=...

#

omg random dude

modern kindle
#

winter just jumpscared me with summer

spiral crown
manic rune
#

but imagine autumn though

modern kindle
agile thistle
stiff locust
#

snow is the sequel to water

manic rune
#

what about ice

zealous glen
#

Evil idea: SUPERHOT but it’s Balatro

spiral crown
chrome widget
#

No

zealous glen
modern kindle
hardy viper
manic rune
#

man

agile thistle
#

speaking of this i still hate you lua why don't you have switch statements

manic rune
#

april fools is already over

thin anchor
#

its gonna snow soon
minnesota is such a fun state

zealous glen
agile thistle
manic rune
hushed field
modern kindle
manic rune
#

immediate flex 😭

zealous glen
spiral crown
red flower
#

superhot vr is really cool

hardy viper
agile thistle
#

this isn't even how it works in like

#

regular math

hardy viper
#

i hate that that's allowed

modern kindle
zealous glen
red flower
#

i dont feel like that

hardy viper
thin anchor
zealous glen
stiff locust
#

anyone know why this code wouldn't be scoring every card held in hand

for i = 1, #G.hand.cards do
                context.scoring_hand[#context.scoring_hand + 1] = G.hand.cards[i]
            end
#

it's

#

not lua colored

modern kindle
zealous glen
thin anchor
#

i love searchbars

hushed field
red flower
zealous glen
hardy viper
#

pressing collection arrow 30 times vs cool epic searchbar

agile thistle
#

games suck

#

i never complete them ever

zealous glen
modern kindle
thin anchor
#

at least 20% of my games i havent played in about a year or half

modern kindle
#

help ive spent over 10k on this account

zealous glen
manic rune
#

i have like < 20 games in my steam acc

thin anchor
manic rune
#

😭

stiff locust
manic rune
#

and i haven't finished any of them

zealous glen
modern kindle
thin anchor
#

the only game ive truly finished is pizza tower

manic rune
#

i bought sts

#

and still haven't played it

#

💔

modern kindle
#

its funny though because my top hours quickly change

manic rune
#

-# slay the spite

thin anchor
#

gmod superior

heady siren
manic rune
next timber
modern kindle
zealous glen
red flower
#

i think balatro is my most played game but 70% of that is mod testing

modern kindle
manic rune
#

i would have like

#

150 hours of balatro

hushed field
#

Dishonored is also genuinely one of my favorite games. I've beaten that game like 25 times

zealous glen
manic rune
#

if steam wasnt blocked in my country

#

:l

zealous glen
#

Though my most played is DotA 2

next timber
#

my most hours on a game is just like 250 on celeste

stiff locust
#

i wish i could see how many times ive opened balatro

modern kindle
#

across the series of dishonored ive put in 610 in dishonored 1, 521 in dishonored 2, and and 478 in doto

manic rune
modern kindle
#

no, death of the outsider

#

for dishonored

hushed field
#

2 has some amazing level design

gilded goblet
#

i used to love playing dishonored

#

so good

modern kindle
#

2 has the best level design but the storyt was so lackluster

hushed field
#

Dishonored runes mod đŸ€”

manic rune
#

dishonored mod in balatro

thin anchor
#

i only have around 20 hours on balatro on steam because i got the game on my switch first

hushed field
#

I didn't love the story of two, but I enjoyed it a lot still

manic rune
#

lets go

hushed field
#

But it's flawed just because it has to repeat a premise, honestly

modern kindle
#

lmao

zealous glen
modern kindle
#

my balatro time isnt that high yet

manic rune
#

@modern kindle also, i updated my mod :3

modern kindle
#

huge!

hushed field
hushed field
thin anchor
zealous glen
#

10/10 would be 11/10 if not for those energy balls

modern kindle
zealous glen
#

Maybe dilly is just smol

red flower
#

oh damn it's still yugioh

zealous glen
#

So everyone is huge from their POV

modern kindle
#

im only 6'2 in american so im pretty small

zealous glen
#

That’s taller than me

hushed field
#

If Legends of Runeterra was on steam, I'm sure that'd be my most played

modern kindle
#

my friends are all aorund 6'5 in american

manic rune
zealous glen
#

I’m 173 cm

modern kindle
#

so im on the smaller end

stiff locust
zealous glen
manic rune
#

😭

#

yeah but im INCREDIBLY light though

#

only 51 kg rn

#

how? dunno

chrome widget
#

Me when I'm 5'10" and not nearly big lady enough 😔

#

I wear heels to make up the difference

zealous glen
hushed field
#

Who's adding the joker that'll give mult depending on how tall you are?

agile thistle
thin anchor
#

peanut butter pickle sandwich

agile thistle
manic rune
#

yeah but somehow im still stronger than most boys in my class

#

so thats something

manic rune
digital niche
#

anyone knows why this is happening?

modern kindle
stiff locust
manic rune
#

what

zealous glen
#

well

agile thistle
stiff locust
#

i am visually impaired

zealous glen
#

be not he

manic rune
#

huh???

hushed field
zealous glen
chrome widget
modern kindle
#

winter you existing is the advantage heart emoji

manic rune
digital niche
chrome widget
#

Aww thanks dilly

hushed field
zealous glen
#

Dilly is 6’2’’ and 6’ of that is just brain

hushed field
#

Enhancement loc vars I don't think has access to vars not defined in its own config, through card, but I'm not entirely sure

agile thistle
#

im like 5'11 but i hate it

#

id like to be short

stiff locust
#

i am more than 80% splash

modern kindle
stiff locust
#

but i can't swim

zealous glen
#

I like being average because it can be the best of both worlds

digital niche
zealous glen
#

Just gotta find someone who’s taller or shorter to benefit from it

manic rune
#

you mean

#

the joker?

thin anchor
#

is 5'5 tall

manic rune
#

:3

stiff locust
gilded goblet
agile thistle
manic rune
#

can someone give me a bit of their height pls

stiff locust
modern kindle
#

my gf is like 5'10 or 5'11 and i still call her a shorty so it works out everyone is short

manic rune
#

❀

gilded goblet
thin anchor
#

30'30

digital niche
zealous glen
#

or just short basketball players

modern kindle
agile thistle
#

Important note! Texan is a species

zealous glen
#

short basketball players then I guess

modern kindle
#

yes

modern kindle
#

i dont remember what she is aside of texan so thats her species to me

thin anchor
#

le'baron james

manic rune
modern kindle
hushed field
modern kindle
manic rune
#

the fact i dont know any movie at all:

stark geode
#

So I'm having an issue where when I switch pixel art smoothing on or off the game unloads it and loads the vanilla textures

modern kindle
zealous glen
manic rune
#

nop

zealous glen
manic rune
#

what is grease even about

#

??

modern kindle
#

being a bad boy and dancing

agile thistle
#

grease

stark geode
hushed field
#

being a bad girl and singing

zealous glen
stark geode
#

It goes back to vanilla

modern kindle
#

lmfao

stark geode
#

Unless I restart the game

manic rune
#

wtf ....

stark geode
#

Then it applies my textures

chrome widget
# zealous glen It doesn’t?

Anyway wrapping back around to this, I have this joker that sets sprite pos, but clearly this check doesn't stop it from changing 1 sprite pos on the atlas

thin anchor
#

i really want to make shadrs but they are scary!!!

manic rune
stark geode
#

Bruhhhh

#

There's no like function I can hook or something

modern kindle
#

oop

#

apologies

zealous glen
chrome widget
stark geode
#

Well I'm planning on releasing this as a mod lol

zealous glen
#

So it’s changed for every future instance of it

manic rune
#

đŸ€”

zealous glen
#

Does it work when you load the game before starting a run?

manic rune
#

i remember figuring out a method to change only the current instance's sprite

but im off my pc rn, fuck

#

💔

chrome widget
#

I'm only checking in the collection rn

#

oh wait

stiff locust
#

must score cards held in hand

for i = 1, #G.hand.cards do
                context.scoring_hand[#context.scoring_hand + 1] = G.hand.cards[i]
            end

code not working
i tried moving it to my lovely patch for the splash effect and it didn't work there with scoring_hand either what do I do

hushed field
#

oh yeah, are the cards in the collection real cards? đŸ€” or are they fake card objects?

zealous glen
#

Real baby

stark geode
#

Well

stiff locust
chrome widget
#

I needed to change the check, because apparently cards in the collection don't have card.area

#

It's nil

hushed field
#

ooh yeah, that's on the config

#

no it's how i do it too

zealous glen
#

Oh

#

Maybe that’s it

chrome widget
#

So is it card.config.area.collection?

hushed field
#

no wait, i'm reading too quickly and misinterpreting

#

if card.area and card.area.config.collection then works for me, but that's not on the sprites, but on the info_queue

manic rune
chrome widget
#

I tried printing card.area, it returns nil

zealous glen
thin anchor
#

i ~~hate ~~ love april fools

chrome widget
#

At the time of set_sprites, area is nil I guess

next timber
#

it seems my problem in debugging my mod has gone from figuring out why something is happening to figuring out when its happening

zealous glen
next timber
#

we love errors that arent easily reproducible!!

zealous glen
#

which is why it doesn't have an area at the time the sprite is set

#

I mostly use this to make tooltips

chrome widget
#

Hmm

hushed field
#

the collection area only exists while the collection is open, right?

zealous glen
#

Yes

chrome widget
#

This is annoying, I don't want to make the extra sprites in the collection if I don't need to

zealous glen
hushed field
#

perhaps you could see if it sets a global, then check for that global

manic rune
# chrome widget

wait, how about

adding a while loop in an event, which stops when card.area exists?

chrome widget
#

hmm yeah if I return when the area is nil specifically, it'll fail to create the sprites even when added to deck

manic rune
#

ack, i had that implemented for my world code since sometimes the Boss blind doesn't appear yet

chrome widget
#

This is a very specific use case, because this only applies to making them appear correctly in the collection when undiscovered

zealous glen
#

I mean you can add the sprite and if the collection exists remove it balatrojoker

strong jacinth
#

How would i create my own "discard" display

spiral crown
#

okay, I am attempting to make a joker that gives a random amount of money from -5 to 5 dollars (including everything between) at the end of round and am STRUGGLING on the calculate portion, anyone have any suggestions

red flower
#

isn't it calc_dollar_bonus = function(self, card) return pseudorandom("seed", -5, 5) end
maybe that can't do negatives

thin anchor
#

cry some moor
heavy weapons guy

vernal path
thin anchor
#

jimbo isnt joking around anymore

spiral crown
tall wharf
modern kindle
#

you look sus

red flower
spiral crown
signal oak
#

what does this mean 💔

red flower
spiral crown
#

and no I don't have talisman

red flower
#

oh you don't return a table there

#

just return the pseudorandom part

#

without the {dollars = }

spiral crown
#

same error sadly

red flower
#

what error

placid star
#

is there something wrong with my code? do i need to declare the atlas as a soul or anything like that? I keep getting an error anytime I go into the page with my joker in the collection

spiral crown
red flower
red flower
placid star
spiral crown
placid star
red flower
red flower
placid star
#

wait no you are super duper correct, i just added more sprites and you are right, my bad! but thanks to you my joker looks... decent(? ig) now! :)

next timber
#

is there a way to change the blind goal during the bind?

hardy viper
#

yes but im pretty sure it isn't standardized

#

i think that one blind utilities mod has it

next timber
#

i know you can change G.GAME.blind.chips but that doesnt update the text and neither does G.GAME.blind.chips_text

red flower
#

chips_text should update the text

hardy viper
#

i see

#

i guess im wrong i thought it was complicated

red flower
#

should be something like

G.GAME.blind.chips = number
G.GAME.blind.chip_text = number_format(G.GAME.blind.chips)

zealous glen
#

-# not champion's belt, champion

peak tiger
#

How do I check if a card's value is a specific number?

zealous glen
#

@next timber

calculate = function(self, card, context)
        if context.setting_blind and card:can_calculate() and not context.blueprint then
            local create_champion_event = function()
                G.E_MANAGER:add_event(Event({
                    trigger = 'after',
                    delay = 0.8,
                    func = function()
                        if G.hand_text_area.blind_chips then
                            local new_chips = math.floor(G.GAME.blind.chips * card.ability.extra.difficulty)
                            local mod_text = number_format(
                                math.floor(G.GAME.blind.chips * card.ability.extra.difficulty) - G.GAME.blind.chips
                            )
                            G.GAME.blind.chips = new_chips
                            G.GAME.blind.chip_text = number_format(G.GAME.blind.chips)

                            local chips_UI = G.hand_text_area.blind_chips
                            G.FUNCS.blind_chip_UI_scale(G.hand_text_area.blind_chips)
                            G.HUD_blind:recalculate()

                            attention_text({
                                text = '+' .. mod_text,
                                scale = 0.8,
                                hold = 0.7,
                                cover = chips_UI.parent,
                                cover_colour = G.C.RED,
                                align = 'cm'
                            })

                            chips_UI:juice_up()

                            play_sound('chips2')
                        else
                            return false --create_champion_event()
                        end
                        return true
                    end
                }))
            end
            create_champion_event()
        end
    end,
spring lantern
unkempt thicket
#

How do you draw something from an atlas on a card without any object, so just a pos and atlas to an image on the card?

spiral crown
granite bane
#

how do you make card:set_ability change the card sprite? Specifically for m_lucky

spring lantern
#

having a bit of trouble. i got a joker that has a chance to add polychrome to each scored playing card, and i would like for it to contribute to the calculation phase but also apply the visual elements when the card is scored rather than before - right now it seems like i can't have both, but maybe there's a method i haven't thought of? are quantum editions a thing maybe? :v

spark pumice
#

Working on a Cryptid Inspired set of Legendary Jokers based on various Robot Antagonists, how’s the pixel art?

#

Ignore the legendary background that was just a recolor of the Canino one

rapid stag
#

anyone? cirBox

spring lantern
stiff locust
#

i'd like to put forward a suggestion

stiff locust
spark pumice
spark pumice
spring lantern
#

ah sweet just making sure you know ThumbsUp

spark pumice
#

👍

stiff locust
spring lantern
#

fellow looks quite dapper

granite bane
spark pumice
#

Ghostrunner
 Don’t think I have, but I think I know a few people who have

stiff locust
#

the guy who gives you the tutorial in that game yeah he's evil

spark pumice
#

Oh I love that

stiff locust
#

it has a sequel so i am allowed to spoil it

#

he's with you for the entire game and then you kill him in your mind at the end

spark pumice
#

That’s sick tbh

stiff locust
#

it has been a while since i played ghostrunner and i'm so washed at it that I can't replay it lmao

#

so i'm very hazy on this stuff

spark pumice
#

Fair enough

#

I’ll definitely check it out!

stiff locust
#

oh yeah, and the antagonist of brothership technically counts

#

that game has not had a sequel, so i am not allowed to spoil it

granite bane
#

the joker I'm making functions similar to midas mask, but for some reason the sprites aren't changing to the lucky card sprite till after they're back in the deck

#

the text of the card changes immediately to have the lucky ability

#

Does card:set_ability just not work properly in mods?

I can't imagine how I'd possibly fix this issue

#

this is how it currently is card:set_ability(G.P_CENTERS.m_lucky, nil, true)

#

it does set the card to be lucky, but only after the cards go back in the deck, but i want it to work like midas mask

red flower
#

try changing the last argument to false

granite bane
#

ok

#

if that works that'd be strange cause midas mask has it as true lol

#

oh okay so that does work. huh.

#

thanks i guess, this games code makes no sense i swear

shadow falcon
#

hai guys, im looking to change text and sprites of the base game, how would i go about doing this

#

i dont want to add anything new

red flower
#

yeah no idea either lol but that argument delays the sprite changing

granite bane
placid star
#

does anyone know the shop weights of all the current rarities of jokers? looking to make a new rarity above legendary and not sure what to make its weight

shadow falcon
#

i wanna say rare is like 4% uncommon 20%? i wanna say the soul is around .4% chance to replace a tarot or planet

#

i was close

limber blaze
#

rarities above legendary or above rare even should probably not be in the shop

#

its either too rare to be significant or too powerful compared to how rare it is

#

getting them via special means makes it a lot better though like soul

placid star
#

any suggestions in that case? i don't rly want to just make another soul that seems uninspired

#

and i dont want to make it a low drop chance in a soul considering the low drop rate of a soul

spring lantern
#

so how does the sound return in calc functions work again?...

radiant plank
#

how would one go about changing the game's background to a static image?

spring lantern
limber blaze
placid star
limber blaze
#

spectral card was my main idea

placid star
#

hm thats a rly good idea tysm!!

limber blaze
#

you could make it a rare spectral but you could also make it show up with a regular weight if you meet the requirements to use it depends on how difficult you want it to be to get higher rarities

#

its a lot more impactful to get higher rarities by doing something special even if its just the soul because they almost always define the run entirely by themselves unless you have multiple higher rarities so just finding them is a little uneventful

graceful magnet
#

does Smeared really only do one side of the suit melding?

glad crane
#

Im trying to find a way to check if your current hand has at least one card of a rank, then do something to each card of that rank. Anyone have any ideas?

graceful magnet
#

wanting to make a similar Joker

maiden phoenix
rapid stag
graceful magnet
maiden phoenix
#

Inside Steamodded's code

narrow maple
#

(I've updated my usual mods)

maiden phoenix
#

Whichever mod have a joker called "quarter dumb" is the cause

graceful magnet
#

welp stupid solutions cuz I can't find the elusive smeared_check

#

expectedly, stupid solution does not work

#

it does now

#

sweet

signal oak
graceful magnet
#

funniest bit of code from all of this

lament sparrow
#

Thinking of joker concepts is hard lol

#

I got to 8 and ran out of gas

graceful magnet
#

cursed ass hand

gilded goblet
#

usually helps

lament sparrow
#

but sitting on the toilet is where all the big brain ideas come from

graceful magnet
graceful magnet
# lament sparrow Thinking of joker concepts is hard lol

as somebody would made a 60 Joker mod, and is currently working on another 60, yeah it can be but it can be easier to think of an idea, like an object, creature, concept, and then think about what would be a thematic effect for that idea

lament sparrow
#

The question is thinking of what kind of effects to object will work

quartz ravine
#

Ok, it looks like Cryptid does a ton of work to force apply editions or enhancements in a given custom Back / Deck

old bane
granite bane
#

how do you check for consumable slots?

#

so like have a create consumable only trigger if there's open slots

old bane
#

#G.consumables is the amount of consumables i think, and then theres like a card_limit for the total slots

#

i think

#

(you can prolly also look at cards like Tarotmancer for an example)

granite bane
#

those just use a different kind of function i think

#

ok i think its
#G.consumeables.cards + G.GAME.consumeable_buffer < G.consumeables.config.card_limit

iron haven
#

How do I add custom cards in Balatro?

quartz ravine
#

Hi folks, what does this position refer to, for decks? It doesn't look like it uses a normal Atlas like other SMODS items

quartz ravine
iron haven
finite zephyr
#

is there a way to specify a certain probability within the game? there's obv G.GAME.probabilities but is there for example a suffix you could add to specify glass card probs/lucky card probs/etc?

chrome widget
#

Is there a way to determine if something is the current title screen card?

iron haven
quartz ravine
#

That would be an enhancement I think. The way to do it is make a mod, add a config and lua file and put your code to do whatever you'd like with your enhancement in the lua file. Then start the game and use CONTROL+W to cycle through enhancements

#

I would not try editing in the source for the game, way too fragile. Just use SMODS.

quartz ravine
sturdy compass
quartz ravine
#

good cohesive vision too

long sun
#

woah very cool!!!

sturdy compass
#

ty both

quartz ravine
#

Hi GhostSalt, I've seen you around a lot. Do you have a mod you made?

#

I answered my question, decks / backs also support an atlas

iron haven
quartz ravine
#

I wonder...what is the thing that made most folks here start modding? For me, it was wanting there to be an opposite card to 'Strength'

long sun
long sun
quartz ravine
#

What's BFDI?

long sun
#

Battle For Dream Island, it's the most popular and most influential object show

#

lemme link you to the mod :D

quartz ravine
#

Ohhh I have seen this before! Very nice and unified design. I don't know the source material but it looks really lovingly done

iron haven
#

so. what do I do?

sturdy compass
#

Or you could just use Malverk

placid star
#

hey urm guys... how do you feel about a jjk mod â˜ïžđŸ’Ą

sturdy compass
#

I'm indifferent but you do what you wanna do!

quartz ravine
#

Sweet, my whole deck, and all of the jokers are spawning now with this new custom edition I made 🙂

My dream of having every card have a built-in hiker is complete

long sun
#

oughhhh i love the Joker on the right!!

placid star
iron haven
#

Malverk?

sturdy compass
iron haven
#

oh

sturdy compass
iron haven
#

where do I put the file?

quartz ravine
#

Read the mod guide I linked to you, I think it will help you a lot. You are trying to make your own mod, get it to load, then add a DeckSkin as the other person suggested. Those are the steps, and once you've done them, it should work 🙂

#

This is weird, I made a custom shader for an edition, and it looks different on my own custom jokers v ones from the base game

sturdy compass
#

huh

iron haven
#

damn it. I lost my Balatro files.

quartz ravine
#

Yeah I do not know why the shader would look different between mine and base game jokers. It's supposed to be a shiney glittery effect like from special yugioh trading cards

reef belfry
#

Does this seem fair

iron haven
#

And my cloud now can't sync up... WAH.

thin anchor
#

heavy jokers guy

crisp elbow
#

Or it could be the way it’s rendered onto cards with darker colors

iron haven
#

I lost all my runs and vouchers and stuff...........

#

WAAAAAAAAAH

granite bane
#

how do I check what a played card's current enhancement is

#

i know it'd be card.ability something

long sun
#

context.other_card.ability.name == 'Lucky Card', for example

#

so in general, it's .ability.name

iron haven
#

nvm

narrow iron
#

why is the if statement on line 30 never running?

iron haven
graceful magnet
narrow iron
#

tried that out first

#

it didnt work either

#

i only need line 30-on to run when valid_hand is false

#

and the return statement doesnt run in that case anyways

graceful magnet
#

then the true answer is, from experience:

Working with context.after fucking sucks

narrow iron
#

yea im also noticing that

#

like, i tried removing and context.cardare == G.play and it ran before the cards began scoring

graceful magnet
#

there's like very specific instances where it activates, but I believe after and G.play will never coincide

narrow iron
#

bruh 😭

graceful magnet
#

nvm!

#

I ain't got a clue

narrow iron
#

these docs are so weird

glad crane
#

So I have made a tarot card as a test and when the game goes to the shop it crashes with
attempt to perform arithmetic on a nil value
I have set everything I need to, the card works and I do have a rarity and a shop rate for the object type, so I am not sure what it is actually trying to math here. The crash log is not at all helpful.

narrow iron
#

what?!

iron haven
#

um

graceful magnet
narrow iron
#

yea that may be a slight issue

lament sparrow
#

Thoughts?
"Long Black Coffee: Every played card gets double the chip value when scored for the next 4 (or 6?) hands."

iron haven
#

I don't see the setting thing.

#

in Malverk

sturdy monolith
#

I'm trying to make an edition that functions as dna without the joker

narrow iron
#

your probably not returning in the editions calculate function

iron haven
#

guys?

graceful magnet
#

I have to ask if I'm even hooking into the get_straight function correctly or not, I'm trying to make a Joker that lets you make Straights with only 3 cards but well it's not doing that

sturdy monolith
#

sorry that was so delayed my Internet is shit rn

iron haven
#

I don't see this

#

in the game

narrow iron
#

right after this end

#

just put return true

#

should work then

#

well, actually im not sure that will fix your current issue

sturdy monolith
#

it says it needs to return a table

#

will return {}

#

Oki now it works

#

thanks

narrow iron
#

does it run correctly when you play the card?

graceful magnet
sturdy monolith
#

now when i press on the card the game crashes

#

it doesn't even let me play it

#

wait wrong end

narrow iron
#

wait i got it

#

change full_hand to scoring_hand

iron haven
sturdy monolith
#

still dupes it infinitely
i want mitosis, not a full civilization of single cell organisms

red flower
# sturdy monolith

i don't know much about editions but you are calling this in every context that has full_hand

#

you need to narrow it down to a specific one

sturdy monolith
red flower
#

same thing, a lot of contexts have scoring_hand

sturdy monolith
#

huh
fair enough
not really used to having to deal with context in modding lol

red flower
iron haven
#

guys?

sturdy monolith
#

pretty much all of those are for jokers though, almost none apply to editions

red flower
#

they should be the same or similar

iron haven
sturdy monolith
sturdy monolith
iron haven
sterile crater
#

How would i make a mod to retexture a joker with a higher resolution picture than normal?

narrow iron
#

change the size defined on the atlas

sturdy monolith
narrow iron
graceful magnet
sterile crater
sturdy monolith
iron haven
sturdy monolith
#

i cannot for the life of me to get this edition to not form a full civilization instead of just performing mitosis a single time

iron haven
manic rune
reef belfry
#

What does this look like

thin anchor
#

white door

manic rune
#

omori

sleek siren
#

omor

iron haven
sturdy monolith
manic rune
red flower
iron haven
sleek siren
#

I'm attempting to create the pointer card from cryptid for a deck type, but it seems to crash, it works for base game consumables,

manic rune
#

nop, does your balatro folder have version.dll in it

manic rune
#

theres your answer

#

go download lovely lol

iron haven
#

It does have love.dll

manic rune
#

thats not everything

iron haven
sturdy monolith
#

wrong reply

red flower
manic rune
sleek siren
#

Oh! Ok thank you! ^^

zealous glen
#

another teto

iron haven
#

so drag version.dll in?

manic rune
#

mhm

sleek siren
iron haven
#

now what?

red flower
#

isnt it tetos birthday

sleek siren
#

It is!! ^^

reef belfry
#

These look so inconsistent

zealous glen
graceful magnet
sleek siren
#

Yooooo!!!!!

iron haven
#

@manic rune my cards don't change.

#

how is that?

mental nacelle
stark geode
#

Is there a way to make myod detect when a setting has been changed

iron haven
#

guys?

manic rune
sturdy monolith
#

also you need to install some mods before your cards will change

iron haven
sturdy monolith
manic rune
#

you know what

iron haven
#

where's the download for steamodded?

glad osprey
reef belfry
#

Sir! Sir! How do i make x do y?!

sturdy monolith
manic rune
glad osprey
glad osprey
#

i need it to come out of the jokers rather than the deck

manic rune
iron haven
sturdy monolith
glad crane
#

So I have narrowed down the error to this code block, but I fail to see anything wrong and after checking the documentation I have not left anything out:

    key = 'Test',
    collection_rows = {3, 3},
    primary_colour = HEX("337e83"),
    secondary_colour = HEX("a56047"),
    loc_txt = {
        name = 'Test Tarot',
        collection = 'Test Tarot'
    },
    shop_rate = 0.0,
    default = "Hiker"
}```

For context - I am getting a nil arithmetic error when entering the shop. Commenting out this code block fixes the error. Anyone have any insight?
zealous glen
sturdy monolith
sturdy monolith
zealous glen
#

IIRC card = 
 doesn't do anything

red flower
#

it's message_card

zealous glen
#

I think the correct key is message_card = 


glad osprey
#

lets see first

#

ah

zealous glen
#

It shouldn't break, it should just be ignored

manic rune
#

wha

iron haven
manic rune
#

was i lied to 😭

sturdy monolith
glad osprey
#

im blind

manic rune
#

I SWEAR SOMEONE TOLD ME CARD = ... IS FOR THE MESSAGE STUFF

#

wtf...

red flower
# glad osprey

this doesn't actually give xmult though, is that intended?

glad osprey
zealous glen
iron haven
sturdy monolith
#

sending an image but it's probably gonna be delayed

iron haven
#

and nothing.

sturdy monolith
iron haven
manic rune
#

😭

#

please read a guide

sturdy monolith
iron haven
zealous glen
#

@manic rune choose a number: 2 or 2

sturdy monolith
sturdy monolith
manic rune
glad osprey
manic rune
sturdy monolith
glad osprey
zealous glen
red flower
# sturdy monolith

card = card doesn't do anything there because the message is always going to be in card in those contexts iirc

manic rune
#

fuck

manic rune
#

:(

iron haven
manic rune
sturdy monolith
glad osprey
#

C:\Users\<user>\AppData\Roaming\Balatro\Mods

zealous glen
manic rune
#

was that sarcasm

#

💔

zealous glen
#

no

#

:(

manic rune
#

my code is anything but organized lmfao

red flower
#

i put every single function in a different file

granite bane
#

would it be possible to destroy a card immediately after it's scored

zealous glen
red flower
#

context.destroy_card

storm wharf
#

hey y'all. I'm trying to make a joker that specifically retriggers jacks 5 times but when i test the joker the game crashes

zealous glen
#

oh unless you mean with glass timing

iron haven
zealous glen
#

then yeah easily

manic rune
#

yes

granite bane
zealous glen
manic rune
storm wharf
manic rune
#

i feel like my code is really messy compared to N'

zealous glen
manic rune
#

i mean

true

red flower
zealous glen
iron haven
#

ok so.

zealous glen
red flower
#

it's my other kin

granite bane
zealous glen
sturdy monolith
red flower
iron haven
#

folder

red flower
glad osprey
manic rune
zealous glen
granite bane
#

Frankly I probably just won't include it

glad osprey
red flower
manic rune
red flower
#

go outside

manic rune
zealous glen
#

win a world cup?

red flower
#

i am lionel messi

granite bane
#

I'm making a joker where wild cards can do anything when scored, and I was gonna have one of the things it could do be destroy itself. But it wouldn't really fit the vibe if it didn't destroy till after everything was scored.

storm wharf
granite bane
#

So I just won't have that be one of the things

manic rune
#

i can do anything

zealous glen
#

balatro meets calvinball

granite bane
zealous glen
zealous glen
red flower
#

i cant say much because idk anything about sports

sturdy monolith
glad osprey
zealous glen
granite bane
#

right now it can either

  • give between +5 and +50 chips
  • give between +1 and +10 mult
  • give between x1.1 and x2.0 mult
  • give between 1 and 10 dollars
  • create a random planet
  • create a random tarot
  • create a random new card
  • create a random joker
  • retrigger itself
zealous glen
#

did Argentina win the last World Cup

sturdy monolith
#

super delayed image coming

iron haven
#

oh

keen tiger
#

how are button onclick handlers done in balatros codebase

red flower
zealous glen
sturdy monolith
iron haven
#

It is in Mods

glad osprey
sturdy monolith
red flower
keen tiger
#

epic thx

iron haven
zealous glen
#

no

sturdy monolith
iron haven
#

nothing...

sturdy monolith
#

how

iron haven
#

Yay, I don't

red flower
#

maybe the version.dll got eaten by the antivirus

sleek siren
red flower
#

does a console open with the game?

iron haven
red flower
iron haven
#

I just dragged version.dll into the folder and still nothing

glad osprey
#

version.dll goes into the balatro folder that you had mods in originally

red flower
red flower
iron haven
glad osprey
#

wrong folder again

iron haven
#

???

sturdy monolith
glad osprey
#

the one you originally had the mods folder in

#

yea that

sleek siren
iron haven
sturdy monolith
glad osprey
#

yes

sturdy monolith
#

rate this joker
it's only able to appear after ante 39 and doubles its x mult at the end of ante 39 :D

iron haven
#

ok so now?

glad osprey
#

yes

sturdy monolith
#

holy lag

iron haven
#

What do I do?

glad osprey
#

open the game

iron haven
red flower
#

does a console open alongside the game?

iron haven
red flower
#

then lovely is installed correctly

long sun
#

Ya it's an issue with your SMODS

glad osprey
glad osprey
#

directly?

long sun
#

Did you not try following the instructions on the SMODS wiki?

glad osprey
#

not like a folder in a folder?

long sun
#

Iirc it also has to be called Steamodded

glad osprey
#

no

#

name does not matter

keen tiger
sturdy monolith
long sun
#

Iri (I recall incorrectly) :>

red flower
iron haven
stark geode
#

hey anyone got a pixel art program with better image scaling

glad osprey
#

aseprite

stark geode
#

im dying here

red flower
sturdy monolith
#

not exactly dedicated to it tho

stark geode
#

well im using paint rn

glad osprey
#

aseprite

stark geode
#

so anything is better

stark geode
stark geode
#

and we dont to piracy here

glad osprey
sturdy monolith
#

krita

glad osprey
#

or source available

iron haven
keen tiger
#

finally found what i need to trigger

stark geode
glad osprey
#

you can compile it yourself

sturdy monolith
keen tiger
#

is there a lua equivalent to setTimeout or something like that

#

like, if the game starts, wait a few secs then run a thing

sturdy monolith
keen tiger
#

im trying to test if this is the right function

#

to trigger a new run

#

will prolly explode

stark geode
iron haven
# sturdy monolith you have a bug in your code

AltTexture({ key = 'myprefix_F deck', -- the key of the texture set = 'Cards', -- define the object type that you are retexturing, see wiki for full list of types id = "foxtrotdeck" name = "F deck" path = '8BitDeck.xcf', -- the filename of your spritesheet, saved in assets/1x AND assets/2x loc_txt = { -- [NYI] Localization text for tooltips displayed in the texture selection screen - can be added to a localization file under [descriptions][alt_texture] name = 'F Texture', text = 'Cards are different' } }) This?

stark geode
#

dawg what is that key

sturdy monolith
iron haven
#

that's the part I added

sturdy monolith
iron haven
sturdy monolith
iron haven
#

where do I put it?

#

the code

sturdy monolith
#

nowhere, you need to fix the code

#

it's not a matter of where the code is but what it is

iron haven
#

how do I fix it?

red flower
#

i recommend getting an actual code editor to highlight syntax errors

sturdy monolith
#

i would recommend neovim but you should not use neovim
get something like vscode

#

while neovim is best for lua dev, it's not nearly as easy to use

iron haven
#

why is it preview?

sturdy monolith
#

or a debugger

#

or lsp hints

#

or error highlighting

red flower
#

i would never willingly choose to use regular visual studio

iron haven
sturdy monolith
#

oh wait it's vs not notepad++

#

yeah don't use that unless you're writing C# which you are not

iron haven
#

notepad++?

sturdy monolith
iron haven
#

I'm in notepad++

keen tiger
#

balatros codebase makes me cry

#

so much global state

sturdy monolith
iron haven
sturdy monolith
#

why'd you go from VS to notepad++ for coding 😭😭😭😭

rapid stag
#

another bump cirBox

red flower
sturdy monolith
red flower
# rapid stag

I use that in some places, what exactly do you need?

rapid stag
# red flower I use that in some places, what exactly do you need?

i just need to know the basics on how to add a sprite object to a UI node table and what properties it expects. the smods wiki only describes that it exists, but never anything specific about how to properly define them

it's one of the few things it doesn't talk about

old bane
#

is there a way to disable the boss blind for like one hand and then undisable it next turn?

red flower
iron haven
stark geode
#

bettre

red flower
keen tiger
#

okay, so i got a new run triggering, but it basically blocks the rest of the game startup

#

how can i make it so that it doesnt block up the pipeline and starts like 5 seconds after getting to the welcome screen

red flower
#

delay the event more and make it so it doesn't block by setting blocking = false?

#

maybe

iron haven
#

ok so...

#

what now?

red flower
#

it should underline your syntax errors in red

keen tiger
#

what kind of boolean values could i check that would allow me to see if its on the start screen?

#

G.SCREEN or smth???

iron haven
red flower
#

hmm weird

red flower
iron haven
#

AltTexture({ key = 'myprefix_F deck', -- the key of the texture set = 'Cards', -- define the object type that you are retexturing, see wiki for full list of types id = "foxtrotdeck", name = "F deck", path = '8BitDeck.xcf', -- the filename of your spritesheet, saved in assets/1x AND assets/2x loc_txt = { -- [NYI] Localization text for tooltips displayed in the texture selection screen - can be added to a localization file under [descriptions][alt_texture] name = 'F Texture', text = 'Cards are different' } }) is my code

keen tiger
red flower
#

fixed it

tawny narwhal
#

Yo I was playtesting some jokers last night, and apparently the 'extra' in this line of code causes a crash randomly. I'll try and recreate the error to show it.
if context.retrigger_joker_check and context.other_card ~= card and [--->]context.other_card.ability.extra[<---] and context.other_card.ability.extra.is_jet_joker and not (context.other_card.ability.name == 'SUPCruise' and context.other_context.end_of_round) then

red flower
# iron haven

it seems to be OK but I'm not sure if that's how you do malverk textures