#đ»ă»modding-dev
1 messages · Page 286 of 1
i just assume many people here don't know how to read code
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
heartbreaking: this is a good pointđ„
sorry
tru, and theres really no shame in that tbf, just leaving that clear for anyone who reads up on this
as long as they're trying to put in the effort to learn
welcome to the club đ
I've been modding Garry's Mod for years so lua is basically my native language [=
that way you have an understanding of basic things at least
i unironically love lua so i dont understand when people complain
lua is great but i have java brainrot
it has some issues but it's unironically a great language
i hate java
People being used to other languages and not liking that lua doesn't do all the same stuff the other languages do
one thing i find kind of silly is no ++ or +=
also this
I specifically like then and ends
which another thing
same lmao
maybe im too used to python
tables use {} because they can act both as classical arrays and structs
and it pisses me off
Tables are tables [=
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```
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
uhh wat u mean by that
context.main_scoring and return {mult = #}
ohhhhhh context.main_scoring
Yeah, individual is for jokers
not context.individual and context.cardarea
main_scoring is for enhancements
riight okay yeah that makes sense
Just make sure to do context.cardarea == G.play or it'll do it from your hand too
i was about to make that mistake lol
I think Quantum Enhancements are just broken now
I donât know if your code is also broken
Butâ
why are they though đ„
Was this due to a recent smods update?
i even looked through recent smods it looked fine
Ah youâre not in the SMODS server
I canât ping you there
Yeah I don't usually hang out there directly
there's an smods server?
Anyone know how I can get a range of money specifically -5 through 5?
Time
The forwarded message is from MathIsFun (Cryptid)
Seemingly
ack
why are some of the cards missing???
i was about to add relics that use quantum enhancements too
Yeah let me hop in
We lost them to drug addiction
i havent used any optional features yet
Nâ has only used 1% of their power
toxic metals. in your Cards.
lol
but seriously does anyone know why the deck is just sniping random cards when it loads
Maybe the remove combined with pseudorandom
That sounds like it would randomly remove cards
the remove is just on a list of indices though, that shouldnt be removing entire cards from the deck surely
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
It is indeed different
does smod have stuff for adding cards to your hand
you need to emplace them in an area
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
will do
getting a "'then' expected near 'equals'" error here
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?
if card.area and card.area.config.collection then is how i check for showing things exclusively in the collection
and >=
ohh, hmm
hi
winter just jumpscared me with summer
more used to command line than coding and large block of ifs was easier for me lol
but imagine autumn though
autumn...
never have i seen this be the case
snow is the sequel to water
what about ice
Evil idea: SUPERHOT but itâs Balatro
*easier to understand... used psuedorandom to generate a random number and then if statements to check where the number was between to create a range of outcomes
It doesnât?
No
Wait shouldnât it be card.area.config == âcollectionâ
evil idea, balatro but if it were balatro
there's no way =< is valid syntax right
man
speaking of this i still hate you lua why don't you have switch statements
april fools is already over
its gonna snow soon
minnesota is such a fun state
Do you know SUPERHOT?
really really boring one tbh
when are we gonna have a += 6...
That exact check works for only displaying my legendary's quests while in the collection, though
i might
immediate flex đ
Imagine having to shake the mouse to progress events
it seems fine, used to that being "less than or equal to"
superhot vr is really cool
what
more like equal to or less than
i hate that that's allowed
dont worry bestie i got you
SUPERHOT is how it feels to live in SA
i dont feel like that
surely you haven't played all those games
i love your mod 
It is the symbols are just very close to each other 
thanks 
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
slow and steady progress
Is it cooler over Argentina
i love searchbars
More games than I've logged movies on letterboxd, damn
no i just dont go outside
Misread that as DDLC and thought you bought the game 869 times
pressing collection arrow 30 times vs cool epic searchbar
Itâs still hot indoors unless you have money to spend on AC
i think id explode
at least 20% of my games i havent played in about a year or half
same except 90%
help ive spent over 10k on this account
Too much Monika
what the hell
i have like < 20 games in my steam acc
10% balatro
đ
help me score every card held in hand đ
and i haven't finished any of them
Help I have 2.9k hours of DotA 2 and I havenât completed it yet
i just really like gaming...
the only game ive truly finished is pizza tower
its funny though because my top hours quickly change
-# slay the spite
gmod superior
Only 3K hours in Garry's Mod?
dishonored is genuinely peak as fuck
ok so like. i cant reproduce this??? but this isnt the first time its happened but i have no clu ewhats causing it
yea, im lowbut i put in good time
Me too
i think balatro is my most played game but 70% of that is mod testing
its my favorite game series
Dishonored is also genuinely one of my favorite games. I've beaten that game like 25 times
Mood regarding mod testing
Though my most played is DotA 2
my most hours on a game is just like 250 on celeste
i wish i could see how many times ive opened balatro
across the series of dishonored ive put in 610 in dishonored 1, 521 in dishonored 2, and and 478 in doto
is doto DotA 2
i haven't seen dishonored 2, but
dishonored 1 got me kneeling
2 has some amazing level design
2 has the best level design but the storyt was so lackluster
Dishonored runes mod đ€
dishonored mod in balatro
i only have around 20 hours on balatro on steam because i got the game on my switch first
I didn't love the story of two, but I enjoyed it a lot still
lets go
But it's flawed just because it has to repeat a premise, honestly
i just didnt like that was basically 1 again
lmao
Have you played the Portal series
my balatro time isnt that high yet
@modern kindle also, i updated my mod :3
huge!
Of course
Me when someone posts their Cryptid score
10 total days diminished is a lot
10/10 would be 11/10 if not for those energy balls
me when i see you or bepis or vic or winter or aiko
Maybe dilly is just smol
oh damn it's still yugioh
So everyone is huge from their POV
im only 6'2 in american so im pretty small
Thatâs taller than me
...
If Legends of Runeterra was on steam, I'm sure that'd be my most played
my friends are all aorund 6'5 in american
Iâm 173 cm
so im on the smaller end
you're taller than me
Dang Bepis is 2 cm taker
Me when I'm 5'10" and not nearly big lady enough đ
I wear heels to make up the difference
Iâve struggled to stay at 60 kg due to chronic illness
Who's adding the joker that'll give mult depending on how tall you are?
you will be substituting for the feather in Galileo's gravity test
Steven Universe Joker
peanut butter pickle sandwich
no that's the neck
taller than most girls over here honestly
anyone knows why this is happening?
im only like 68 kg but im stronger than most people i know
so weight only plays somewhat of a factor
for a second i thought your pronouns were he/piss
what
Itâs hard to not read them that way
well
Delicious nil.
i am visually impaired
be not he
huh???
Does it still not work if you respawn the joker?
Click your profile
Tbf I had hormonal "advantage" if you can call it that
winter you existing is the advantage heart emoji
looks like be/pis to me đ
its an enhancement
Aww thanks dilly
Oh wait only reading it properly now
Dilly is 6â2ââ and 6â of that is just brain
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
i am more than 80% splash
man i fuckin WISH im a dumdum
winter is a smartypants
but i can't swim
I like being average because it can be the best of both worlds
i dont think thats it, i used it in other enhancements and worked
Just gotta find someone whoâs taller or shorter to benefit from it
is 5'5 tall
:3
Yes
can we balance out our heights i hate being 5'6
load up the plasma deck â€ïž
can someone give me a bit of their height pls
i would love to donate like 3 inches of height to your causes
my gf is like 5'10 or 5'11 and i still call her a shorty so it works out everyone is short
â€ïž
LMFAO
30'30
OH, i closed the loc_txt in the wrong place
are you both Nordic XP
or just short basketball players
im just some polish american and shes a texan
Important note! Texan is a species
short basketball players then I guess
yes
i dont remember what she is aside of texan so thats her species to me
le'baron james
u gave this ur highest rating on letterboxd didnt u
No I have a grudge against this movie because I was tricked into watching it as a child by my cousins who told me it was Grease 3 (and child me loved Grease 1 and 2)
get trolled lmao
my sister loved those movies
the fact i dont know any movie at all:
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
watch the lord of the rings
watch braveheart
What about the Paw Patrol movie
nop
Iâm interpreting the title like Rise of the Skywalker
being a bad boy and dancing
grease
Do you have x2 assets
Yes
being a bad girl and singing
eating grease
It goes back to vanilla
lmfao
Unless I restart the game
wtf ....
Then it applies my textures
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
i really want to make shadrs but they are scary!!!
oh, i think most mods suffer from this too
I replied to you above
@chrome widget
yea here it is if you didnt see @chrome widget
oop
apologies
Hold M I guess
This also doesn't work, seemingly
Well I'm planning on releasing this as a mod lol
Maybe itâs applying to the center rather than the card
So itâs changed for every future instance of it
can u try printing card.area.config and see if it actually runs
đ€
Does it work when you load the game before starting a run?
i remember figuring out a method to change only the current instance's sprite
but im off my pc rn, fuck
đ
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
oh yeah, are the cards in the collection real cards? đ€ or are they fake card objects?
Real baby
Well
there is one of those in fortune
mr debugplus fixed a sprite changing code i had to make it only do current instance
I needed to change the check, because apparently cards in the collection don't have card.area
It's nil
That sounds incorrect
So is it card.config.area.collection?
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
this works for me
if no one seems to have the answer, you can try printing the entire card and see what leads to collection â€ïž
this has always worked for me
i ~~hate ~~ love april fools
At the time of set_sprites, area is nil I guess
it seems my problem in debugging my mod has gone from figuring out why something is happening to figuring out when its happening
Ah, maybe the card is created and then emplaced into an area
we love errors that arent easily reproducible!!
which is why it doesn't have an area at the time the sprite is set
I mostly use this to make tooltips
Hmm
the collection area only exists while the collection is open, right?
Yes
This is annoying, I don't want to make the extra sprites in the collection if I don't need to
hence the first line here
perhaps you could see if it sets a global, then check for that global
Maybe see how Bunco handled it
wait, how about
adding a while loop in an event, which stops when card.area exists?
hmm yeah if I return when the area is nil specifically, it'll fail to create the sprites even when added to deck
Too bulky IMO
ack, i had that implemented for my world code since sometimes the Boss blind doesn't appear yet
This is a very specific use case, because this only applies to making them appear correctly in the collection when undiscovered
I mean you can add the sprite and if the collection exists remove it 
How would i create my own "discard" display
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
isn't it calc_dollar_bonus = function(self, card) return pseudorandom("seed", -5, 5) end
maybe that can't do negatives
I sure hope so
cry some moor
heavy weapons guy
that is terrifying
jimbo isnt joking around anymore
yea getting a nil value from psuedorandom
i think this looks sus đđđ
you look sus
what about pseudorandom("seed")*10-5
what does this mean đ
can i see the code
also do you have talisman installed
and no I don't have talisman
oh you don't return a table there
just return the pseudorandom part
without the {dollars = }
same error sadly
what error
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
pos should also have x and y and 1030 is probably incorrect
show code
x and y is what i needed tysm, but 1030 was correct (i have way too detailed sprites lmao)
you have 1030 sprites?
well no... thats how long each of them are on the x level
remove the brackets in the return
pos is the index in the atlas so if your joker is at pixel 1030x0 then the pos would be x = 1, y = 0
but if it's working then maybe I'm wrong
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! :)
is there a way to change the blind goal during the bind?
yes but im pretty sure it isn't standardized
i think that one blind utilities mod has it
i know you can change G.GAME.blind.chips but that doesnt update the text and neither does G.GAME.blind.chips_text
chips_text should update the text
should be something like
G.GAME.blind.chips = number
G.GAME.blind.chip_text = number_format(G.GAME.blind.chips)
Check out Champion from my mod
-# not champion's belt, champion
How do I check if a card's value is a specific number?
@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,
card:get_id()
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?
my smooth brain bows to your genius
how do you make card:set_ability change the card sprite? Specifically for m_lucky
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
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
that's cool - but do consider that you need the character portrait on a separate sprite so you can do the soul hovering effect
do cyborgs count
i'd like to put forward a suggestion
(like this)
also yeah this
Already did! The face sprite is in a separate folder!
Iâd love to hear it!
ah sweet just making sure you know 
đ
have you played ghostrunner
fellow looks quite dapper
cause i have card:set_ability working to set the ability, but the sprite doesn't change
Ghostrunner⊠Donât think I have, but I think I know a few people who have
the guy who gives you the tutorial in that game yeah he's evil
Oh I love that
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
Thatâs sick tbh
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
oh yeah, and the antagonist of brothership technically counts
that game has not had a sequel, so i am not allowed to spoil it
scratch that, it is updating the sprites, but only after the hand finishes playing
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
try changing the last argument to false
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
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
yeah no idea either lol but that argument delays the sprite changing
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
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
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
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
so how does the sound return in calc functions work again?...
how would one go about changing the game's background to a static image?
okay so i got it working but the sound is hella funky, how do i get it to play at a consistent pitch? (if that's even possible)
make a card that works with the rarities of existing jokers so you can get a higher than legendary rarity by already having a rare/legendary joker and then doing something special
ah thats a rly good idea, so like a joker/card that will evolve jokers?
spectral card was my main idea
hm thats a rly good idea tysm!!
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
does Smeared really only do one side of the suit melding?
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?
wanting to make a similar Joker
SMODS adds a better smeared check with SMODS.smeared_check func
bump
right, where can I find that
Inside Steamodded's code
Whichever mod have a joker called "quarter dumb" is the cause
try asking over in https://discord.com/channels/1116389027176787968/1229697382065639426
seems like your culprit
welp stupid solutions cuz I can't find the elusive smeared_check
expectedly, stupid solution does not work
it does now
sweet
as a checkered deck glazer i fucking love mismatch what that is AWESOME
funniest bit of code from all of this
manually making sure that if Smeared and Mismatch are together, the two suit pairings that aren't counted are still handled as you would think the combo would handle them
cursed ass hand
brainstorm (bALATRO REFERENCE??!?!) next time u go outside or whenever you take a shower
usually helps
ah shower thoughts, classic
but sitting on the toilet is where all the big brain ideas come from
I too am a Checkered fan and yeah this is gonna go nutty style with Checkered
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
I already have a theme for this joker mod
The question is thinking of what kind of effects to object will work
Ok, it looks like Cryptid does a ton of work to force apply editions or enhancements in a given custom Back / Deck
âFlushâ House
how do you check for consumable slots?
so like have a create consumable only trigger if there's open slots
#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)
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
How do I add custom cards in Balatro?
Hi folks, what does this position refer to, for decks? It doesn't look like it uses a normal Atlas like other SMODS items
Like a stone card or the equiv?
I mean like change the standard cards
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?
Is there a way to determine if something is the current title screen card?
I have a file for them so where do I put it?
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.
I am actually so good at coding wtf 
That is cool!
good cohesive vision too
woah very cool!!!
ty both
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
Mine is just a retexture of the playing cards.
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'
i've got BFDI, mainly? it's the only one i've got in Alpha so far
well, it was trying out pixel art of one of my OCs, Ghost, and then thinking "ya i really wanna make her a Joker :D"
What's BFDI?
Battle For Dream Island, it's the most popular and most influential object show
lemme link you to the mod :D
Ohhh I have seen this before! Very nice and unified design. I don't know the source material but it looks really lovingly done
so. what do I do?
You're gonna want to make a DeckSkin https://github.com/Steamodded/smods/wiki/SMODS.DeckSkin
Or you could just use Malverk
hey urm guys... how do you feel about a jjk mod âïžđĄ
I'm indifferent but you do what you wanna do!
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
oughhhh i love the Joker on the right!!
INDIFFERENT??? the correct answer was OMG YES THAT WOULD BE SO COOL AND PEAK ANS UR SO COOL
Malverk?

oh
It's a mod layer that makes making texture packs easier (or so I've heard)
where do I put the file?
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
huh
damn it. I lost my Balatro files.
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
Does this seem fair
And my cloud now can't sync up... WAH.
heavy jokers guy
Are yours a different resolution?
Or it could be the way itâs rendered onto cards with darker colors
how do I check what a played card's current enhancement is
i know it'd be card.ability something
context.other_card.ability.name == 'Lucky Card', for example
so in general, it's .ability.name
nvm
why is the if statement on line 30 never running?
where's the file I place AltTextures into?
because of the return in the first if, what you want to do is remove that end above the second context and change the second if to an elseif
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
then the true answer is, from experience:
Working with context.after fucking sucks
yea im also noticing that
like, i tried removing and context.cardare == G.play and it ran before the cards began scoring
there's like very specific instances where it activates, but I believe after and G.play will never coincide
bruh đ
these docs are so weird
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.
wait a minute, i did this exact implementation for another joker and it works fine!!
what?!
um
yea that may be a slight issue
Thoughts?
"Long Black Coffee: Every played card gets double the chip value when scored for the next 4 (or 6?) hands."
how can i replicate DNA without this happening
I'm trying to make an edition that functions as dna without the joker
your probably not returning in the editions calculate function
guys?
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
sorry that was so delayed my Internet is shit rn
yea, you need to add a return after the function runs
right after this end
just put return true
should work then
well, actually im not sure that will fix your current issue
does it run correctly when you play the card?
wait a second
is it, only registering Straights when...
k... this is something
now when i press on the card the game crashes
it doesn't even let me play it
wait wrong end
Is something wrong?
still dupes it infinitely
i want mitosis, not a full civilization of single cell organisms
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
i did change it to scoring hand
same thing, a lot of contexts have scoring_hand
huh
fair enough
not really used to having to deal with context in modding lol
I'll recommend picking one of these https://github.com/Steamodded/smods/wiki/calculate_functions
guys?
pretty much all of those are for jokers though, almost none apply to editions
they should be the same or similar
Can someone help?
are you adding your mod prefix before the key name when you're specifying a game objects localization key?
mod prefix?
the prefix you set in your metadata file
What also do I have to add?
How would i make a mod to retexture a joker with a higher resolution picture than normal?
change the size defined on the atlas
no no, put it before the key thingy
like
key = "myprefix_F deck"
well, making the mod is a bit more than that but thats the specific part you'd need to do for a larger texture
oops
Where do i find the atlas
ok now?
you should be done?
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
hmmm
lovely wasn't installed properly
What does this look like
white door
omori
omor
Wasn't installed propery?
omori
did you download lovely?
omori
lovely is in smods.
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,
nop, does your balatro folder have version.dll in it
no.
It does have love.dll
thats not everything
where's the lovely thing?
try changing all of that inside the for for
SMODS.add_card{key="c_cry_pointer", edition = "e_negative"}
Oh! Ok thank you! ^^
another teto
so drag version.dll in?
mhm
The tetoing shall spread
now what?
isnt it tetos birthday
It is!! ^^
These look so inconsistent
It works!!! Thank you ^^
hppy birthday @formal parrot
holy shit đ«”
Yooooo!!!!!
is that omorâŠ
Is there a way to make myod detect when a setting has been changed
guys?
cards wat
did you also install steamodded
also you need to install some mods before your cards will change
steamodded?
the main modding platform for balatro...?
where's the download for steamodded?
how would i make the Xmult message come out of the jokers
Sir! Sir! How do i make x do y?!
return {
message = "X" .. x_mult_var_ig
}
the fact thats its everywhere đ
thats what i have
i need it to come out of the jokers rather than the deck
add card = the joker you want to have the message
Can I have the download?
card = card
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?
I don't think that's correct
it is
IIRC card = ⊠doesn't do anything
it's message_card
I think the correct key is message_card = âŠ
It shouldn't break, it should just be ignored
wha
Is smods is steamodded?
was i lied to đ
yes...?
im blind
it is
this doesn't actually give xmult though, is that intended?
it was a generalized misconception aka misinformation aka fake news aka psyops aka gaslighting
oh I downloaded it.
sending an image but it's probably gonna be delayed
and nothing.
h u h
LMAO
??
@manic rune choose a number: 2 or 2
you need to put mods into the mods folder
1.9999999999999998
card = card also works
incorrect
card = card doesn't do anything there because the message is always going to be in card in those contexts iirc
fuck
:(
mods folder?
@iron haven follow the instructions
đ
C:\Users\<user>\AppData\Roaming\Balatro\Mods
if only my code was as organized's as bepsis'
my code is anything but organized lmfao
i put every single function in a different file
would it be possible to destroy a card immediately after it's scored
it seems very organized outside of it being a giant file
yes
context.destroy_card
not easily
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
oh unless you mean with glass timing
so I have to make a mods folder?
then yeah easily
yes
show code
how do i use that
also bopsis' output
did u read my code or did u assume that đ
i feel like my code is really messy compared to N'
wasn't that your issue earlier with the code formatters
i mean
true
it's similar to context.individual but you return { remove = true } to destroy the card
everyone's code is messy compared to N''s
ok so.
who's that pfp it's not shigure ui
it's my other kin
wouldn't that happen after all the cards are scored?
N?
left curly brace on a new line...
miles edgeworth
folder
oh then thats more difficult
C:\Users<user>\AppData\Roaming\Balatro\Mods
context.other_card doesn't exist here
âïž
Frankly I probably just won't include it
âïž
it's not a block, it's what's inside calculate
the docs are kinda weird
prosecutor + coder + vtuber + artist
is there anything else u dont do đ
go outside
âïž
win a world cup?
i am lionel messi
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.
oh lmao
oh. what exactly does context.other_card do? I just copied what was written in an example i found. also is there a place where i can see all the functions and what they do?
So I just won't have that be one of the things
"can do anything" is wild
i can do anything
balatro meets calvinball
it's jevil themed
TYSM
can wild cards pay my taxes
I can't say much because AFAIK the Brazilian team has been ahh
hmm
i cant say much because idk anything about sports
show hidden
windows + r , "%appdata%"
me too that's why I said AFAIK
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
did Argentina win the last World Cup
super delayed image coming
oh
how are button onclick handlers done in balatros codebase
yes
congrats
It is in Mods
shift windows s
now restart balatro
each button has a "button" field with the name of the function and that function is stored in G.FUNCS (in misc_functions.lua i think)
epic thx
restart like uninstall and reinstall?
no
no???
close and reopen it
nothing...
Yay, I don't
maybe the version.dll got eaten by the antivirus
I attempted to do a similar thing for adding jokers as well, but it crashes on run, is there another way to write jokers as well?
does a console open with the game?
hmmm
that looks correct, you don't even need the set. never made a deck tho
what's the crash?
I just dragged version.dll into the folder and still nothing
wrong folder
version.dll goes into the balatro folder that you had mods in originally
check if it's still in the other folder
gateway is not a joker i think?
still no.
wrong folder again
???
put version.dll in the folder with balatro.exe
ahhhhhh, that would make sense, I just kinda copied a list of names from the exotic.lua
Thank you! ^^
here?
yes
yes
rate this joker
it's only able to appear after ante 39 and doubles its x mult at the end of ante 39 :D
ok so now?
yes
holy lag
What do I do?
open the game
hmmmm
does a console open alongside the game?
yes.
then lovely is installed correctly
Ya it's an issue with your SMODS
whats the inside of this smods folder like
directly?
Did you not try following the instructions on the SMODS wiki?
not like a folder in a folder?
Iirc it also has to be called Steamodded
ok i see a func field but no button?
nah
Iri (I recall incorrectly) :>
func is to modify the UI (like making it light up when it's active)
pffff
hey anyone got a pixel art program with better image scaling
aseprite
im dying here
here's an example
krita has good stuff for pixel art
not exactly dedicated to it tho
well im using paint rn
aseprite
so anything is better
i dont wanna pay tho
notepad
and we dont to piracy here
its open source
krita
or source available
thank you
what is causing it to crash?
finally found what i need to trigger
đïž đ đïž
you can compile it yourself
you have a bug in your code
is there a lua equivalent to setTimeout or something like that
like, if the game starts, wait a few secs then run a thing
make an event with a delay
ight
im trying to test if this is the right function
to trigger a new run
will prolly explode
i see
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?
dawg what is that key
is that all the code you have
is that in the alttexture.lua file?
yes.
then that's your problem
nowhere, you need to fix the code
it's not a matter of where the code is but what it is
how do I fix it?
i recommend getting an actual code editor to highlight syntax errors
^
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
do you have tab completions in this?
or a debugger
or lsp hints
or error highlighting
i would never willingly choose to use regular visual studio
so.
oh wait it's vs not notepad++
yeah don't use that unless you're writing C# which you are not
notepad++?
better notepad
I'm in notepad++
no, you are not
why'd you go from VS to notepad++ for coding đđđđ
try this https://vscodium.com/
Free/Libre Open Source Software Binaries of VSCode
^
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
is there a way to disable the boss blind for like one hand and then undisable it next turn?
i have an example but its a lovely patch, should be the same
https://github.com/nh6574/JoyousSpring/blob/afd2ccbcfc78f34f7d15a559bbf60f94de97afb9/lovely/effects.toml#L81
so.
bettre
not an easy one afaik
now install this https://marketplace.visualstudio.com/items?itemName=sumneko.lua
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
delay the event more and make it so it doesn't block by setting blocking = false?
maybe
it should underline your syntax errors in red
hmmm i can make it a conditional?
what kind of boolean values could i check that would allow me to see if its on the start screen?
G.SCREEN or smth???
I don't see red.
hmm weird
G.STATE == G.STATES.MENU i think
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
ebin thx
fixed it
send the whole file pls
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
it seems to be OK but I'm not sure if that's how you do malverk textures
