#💻・modding-dev
1 messages · Page 216 of 1
Oh god that ui 😂
how do i calculate the requirement for the blind then take 30% off of it?
anyway i think the edition shader looks kinda fire
yep - is op, thus the name
What're you guys getting into regarding shaders? I'll be diving into that soon but don't know where I want to begin design wise
you cry for a week straight
Do my previous tears roll over
no
Hate to see it
you'll have to tally new tears
So remember how the old issue was that instead of setting it to a "Talisman number" (a fancy table), you were setting it using a "regular number" (just lua ints)?
You're having a very similar issue right now, where you're comparing a "Talisman number" to a "regular number"; wrap both sides of the comparison in to_big
but is it worth it
why doesnt it work 😭
im setting the stuff in context.before already
wtf...
theres no way destroying cards can be this complicated
If it’s not working you aren’t assigning it correctly
oh ok, so like
if to_big(card.num < 42069) then
yeah probably, im printing to see
No, both sides. if a < b then -> if to_big(a) < to_big(b) then
I understand the confusion though lol
aight I am doing that, do I need to set a like a = to_big(66) or can I leave it an integer until I need to compare?
also thank you so much
converting a regular lua integer to a "talisman number" (basically a fancy table that represents a number)
the context.before definitely ran first, and card.ability["card_to_destroy"] is definitely a card
wha
Change it to destroying card
And you don’t need the area check either
Destroying card is unique to played cards
I'm not sure to be honest. Just try not to leave any edge cases where you could compare a regular number with a talisman number
oh, so instead of context.other_card, its context.destroying_card?
nngngngn yeah that makes sense, thanks 😭
How could I make to specify how blueprint/brainstorm/etc should react to a joker ? I know there is blueprint_compat, but I would like something more specific
(My joker is supposed to upgrade when I play a High Card. The problem is when a Blueprint is copying the joker, it upgrades twice because of Blueprint)
ok thanks !
Thank you very much, I gotta find where that's happening still but this is progress!
NGNGNGH OH MY GOD IT WORKS NOW, THANKS EREMEL AND MARIE 😭🙏
is there a mod that has a joker that allows you to see how much a played hand would score?
i can finally sleep early...
the other 12 jokers and about 9 relic sets development resumes tomorrow
there is but I forgot which mod 😭
:3
I saw it the other day
Nuh uh
This is entering prime dev hours
Development resumes NOW!!!
but it was in #🎨・fan-art
I think I saw it in a zaino vid? maybe?
i WOULD if my parents arent always showing up at my room to check lmfao 😭
My dev time is pretty much 2 am to 6 am of grinding
And then I'll just periodically do shit throughout the day
oh, probably already implemented then, its been a few weeks since i saw that idea after all
I see
i dev'ed from 1 pm until now lmfao
(halted from 7 pm to 10 pm though)
Hell yea
Now double it and go again
God when is ur git coming so I can stare at all you've done...
half way there 😭
please dont, my jokers.lua is 3k3 lines already 😭
is this a fair nerf (used to gain X[half of rank] per card)
I think it's a good decision 😭
(not a flex, since i want to make my code as SHORT as possible)
I'm feeling you
But godspeed
omg these card arts are so good
if i didnt stop about 3 times to rewrite everything (to shorten the code)
split it into multiple files 🗣️ 🗣️ 🗣️
devolve into madness like me
i would probablyyyyyy be at about 9k lines
💀
definitely double of what i currently have
i mean, i have functions worth 1k lines rn
well, they're not mine
they're actually from the game (friends vs friends) itself
but I agree, the art is wonderful
ok
wtf
imagine me not stopping mid-way to add those in 😭
functions of 1k lines sound like an issue
i mean, my jokers account for a lot of stuff
Anyone can help?? I tried to change the order but it's not working 😦
like relic set effects
speed, action value
some stats
buffs, playing card debuffs (its different from them being debuffed)

oh, and i also implemented this uhh neat system
It IS an issue in Thunk's code 😭
basically, if i were to simply add "mult = 5" in there
then in joker_main, the card will also return 5 mult
which is very efficient as it automates a lot of my work
which also helps with determining whether jokers originally give mult/chips for some niche effects my relic sets have
that does sound pretty good
the reason why my functions are so long is because im accounting for every future possibility lol
is there a way to restart the game faster when I wanna reload my mods?
hold M
or alternatively, add it to your taskbar
close the game -> reopen it
its actually faster that way for me, and i wont have to see "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"
😭
or alternatively alternatively, use this (and make sure to not push this to your github branch)
SMODS.Keybind{
key_pressed = 'f5',
action = function(self)
SMODS.restart_game()
end,
}
Nah I'm pushing this stat
(my mod crashed once because of this 😭)
thank
who the fuck is pressing f5 on balatro though, lets be real
I'm also making it pick a random key so you can randomly shut off your game
tell this to the steamodded devs, I asked them to implement a safer version of this which used ctrl or alt + f5 and they didn't want it in case someone accidentally pressed it 😭
alt f5
😭 how do you accidentally press alt f5
😭
You always need to make a product as stupid proof as possible so I feel it
just remove the alt+f4 at this point
on top of that, implemented this very simplified version of adding buffs, its basically lego
at the end of the day art is just math all over again
That's all it ever was
what the fuck is going on 🔥
always has been
didnt someone draw a picture of grapes with only maths
they drew a grape
Guys...they did surgery on a grape...
crazy...
With computers, art can be math
exhibit A:
surely no one will ever make their mod delete this part in my mod
Heh, just wait.
lovely patching balatro star rail rn
😭
making a mod specifically just to replace that with hello world
oh right
I'm mostly afraid of other mods breaking my 'at' patches
the indispensable hello world func
I'll patch in to replace everything in balatro star rail with just one really long rhythm game
Losing corrupts save
EXACTLY, thats why i always try my best to avoid patches 😭
so far im doing pretty well
I've been VERY reliant on them patches
I don't have that many, I always prefer hooking
I should start hooking
ive only ever done one patch but the shit i do is very vanilla
hooks are your friend
i love hooks
Don't need to worry about how clean patching looks when it's on one fuck off file I'm not touching outside of that so it's okay...
i hook so much you can call me a-
S
FGIKERADHAET
pirate
ALREXX
hi
WHAT DOES THIS MEAN
am i the only one who archives my old code here lol

I archive mine in a separate build
(yanqing is lost into oblivion though, sadly)
I archive mine in old commits thats what git is for
I just use git lol
I only just made my shit into git this morning
i usually just comment the thing and place it at the end of the related script
Git is helpful for convenience I think
it's called VERSION CONTROL
im yanqing so hard rn
she control on my version till I git
Erm, if I want to control my version I can just ctrl z and ctrl y
Checkmate
what
so true
restarts your program
ye ik
okay but what if you want to control my version
What if we were best friends
last I checked we weren't
dang.
my code's still shit and I hope no one ever looks at it ❤️
That's why it's a what if
mine is more realistic though
I THINK I HAVE PEAKED
people control my versions all the time
You haven't been checking your walls i see
how are you doing this
my code is shit but i have it publicly visible so i make sure to add comments that tell people how shit the code is
eremel roasted me for my formatting and i've never recovered. : (
teach me your ways
Did I?
the roasting was so hard he lost his name except for one letter...
when you were looking at something for jokerdisplay i think
oh shit
im just kidding tho
i copied a bunch of code and made it work
bruh how so high res?
tbh I just use the vscode formatting for lua and tbh
it looks ass 90% of the time 😭
Yoink
Our code now
I don’t remember ever looking at the joker display code apart from when I helped with the config 😂
y'all be doing stuff that's been done before 💀
finna ask chatgpt how to make negative polychrome jimbo in balatro
couldn't be me
ok but like how many pixels is that?
thats illegal.
like this looks cool as hell
Everything has been done before
We are late to the party
you cant have 2 editions on 1 joker.
ur right
You can if you fix that
watch me
its 2x, so about that res
But what if we could
oh and also...
Or even 2 enhancements or 2 seals
i will REFUSE jokers with more than 1 edition.
People have never thought to do it before
wait genuinely not even a bad mod idea to have double editions (now programming it and making it look decent is a whole other problem)
no, you are
ooh
i dumb
Actually surprised there isn't a mod that adds new editions that are just combinations of existing editions
true
I'm a frayed knot
People have discussed multiple editions
okay frayed knot
i think i planned on making this animated
top half polychrome bottom half negative
No I want combinations of enhancements
though i never got my hands on a spritesheet (at 71x95)
new hardest effect unlocked:
jesus
you will have them
good luck soldier
If you try hard enough I'm sure anything can
we're calculating the calculations
bruh no way that is calculated in under an hour in the late game lmao, I wanna see it
indentation...
any ideas how to fix the crash
i feel like if i implement that it'd just be like "oh can you play a flush five? no? then maybe a five of a kind?" and so on and so forth, basically how the game itself calculates the highest hand you can play
for i,card in ipairs(G.deck.cards) do card:set_edition("e_akyrs_noire") end
do not do this
yeah thats what im thinking too
but the thing is, that shit will lag, a lot.
like, consider that it will be checking for high cards
it will start calculating every single card in your hand, one by one
If fps < 15 then pls
Easy, then no lag
i probably wouldn't like ever make it highlight high cards
tbh
aw man, I wanted a new way to turn my pc into a grill :(
the player can probably do that on their own lmao
oh, but you also gotta account for lucky cards too
kinda hard to calculate with those
Lucky, glass, red seal
and basically every other rng-related enhancements/editions
its very hard to estimate how much score you will get from those, unless you repeat the calculation more than once
bruh that deck looks sick
oh no, I don't think that's what timing tutor would do.
Now this one probably would...
have my child aikoyori, you are so cool...
F
probably would only consider playing card effects and not any RNG at all too just for my sanity
if you are intending to score the hand and check how much score it gives first, then it will still use the rng lol
some tips how to at least get more useful information out of the crash
i mean you could just assume best/worst scenario
nah but imagine balatro multiplayer but you go co-op instead of pvp...
I CRASHED MY GAME
that'd be sick
like, taking the total score from you and your friend, then check with the score requirement
❤️
did you make a vegetable consumable type
ooh
would like to see that in general for roguelikes and rougelites
coop would be fun asf
i think with Balatro Multiplayer, it shouldnt be impossible at all
co-op but you have to share the cards in hand
Oh my god you share the same deck
But that would be cool
NO I NEED THAT KING FOR MY TWO PAIR PLEASE DONT USE IT
Everything else would be different between the two players
bruh where is the problem here???
oh its fucking suggested already lmfaooo
didnt have to make it a speech bubble man 😭
What do you mean that coop is planned?!
lmfao didn't realize it'd look like that
you copied my print("aaa").
👉
see you in court.
so true
forbidden to dog
don't use math.random, just use pseudorandom because it's different for each seed
also does your to_big function look something like
i think void might be on something yall

SEE YOU IN COURT MATE
did you try removing cryptid bigames
me when i have to shoot the creator of cryptid because im bored
did u try hacking into github and deleting talisman
ANYONE WANNA LETTER DECK 1V1
no, I probably should eh?
aikoyori, if my mod ever releases, can you make a blind for it which destroys all hsr jokers :3
surprisingly enough, none of my jokers involve rng in their functionalities yet
new cosmetic effects just dropped:
good
should i add crit rate
yeah
uh
i think
i made a card that is a vegetable and a consumable
yeah
and it just looks like shit
edition would be fire
vegetable as a card type is crazy
im NOT eating my vegetable
didnt someone ask for a cooking mod you might be onto something
yeah maybe XD
who tf go gambling to eat vegetables though 😭
it was me lmfao
did you make a SMODS.ConsumableType
THE VIDEO
can i have your playlist
5 billion letters
:3
The Entire Fucking Dictionary in Its Entirety
fucking fire, thanks
oh fuck i didnt even knew that existed XD
found it under objecttypes
WAIT
bocchi the rock mentioned
oh I like bocchi
try these editions out NOW, on #1326135270759993364 !
change "The Head" description to "was fire"
available on Macs, Windows and Linux!
the debuff seal
also how you select so fast?
handy
pfft
it lets you hold right click and hover across the cards to auto select them
wordle
bruh I need more mods
i hate chicot
(do yall play balatro without it or something 😭)
lmfao
oh btw is there a way to make a button that allows you to reset config to its default values?
I played vanilla for a while
tetration
these descriptions are getting a bit long
also MY MOD STILL BROKE 
i dont think 1.4 is 40%
basically i want to make it so that when I press a button in my mod's config, it resets the config to be their default values (aka values that I set)
since /2 is 50%
i think you need to *0.6
chicot is indeed roughly 70%
ok thanks
thank you for your wise words, void
Chicot was too overpowered and had to be nerfed
i hate baron
after this blind
:(
gain 120 dollars
nvm
All Jokers become Superpositions
Me when I play 3 High cards intentionally to get x16 Mult from my 8 Jokers that have this Badge:
gain 120 dollars AND lose 120 dollars
all jokers disappear until ante 9
...i think one of my hsr jokers do exactly that 😭
istg coding while listening to my math prof is so much harder :(
I swear localthunk gaslighted me into thining consumeables was the right spelling
gaining mult when you are in peril?
yeah
me when two modders have the same idea:
If you believe it hard enough surely
it should play the low health music from pokemon bw
new balatro music but it's just low health music
that would actually be really cool
also this: (no im not going to steal cryptid's music for code packs you're crazy)
i love balatro from windows xp so much
i fucking love pants and uranus
that sounds like a fun idea
Eternal if it was based:
yoink
oh, so you can still sell it?
yes
nope, a sticker effect
oh.
powercrept eternal
Even if it were not every joker needs much
it should definitely be really rare
ice power mr bones
except you can only have one of these sticker effects at a time so you have to give up a potentially OP badge effect for ice power
real question asked
yeah it'd continue to give you negative mult
true synergy
I'm not sure why but all that popped into my head was frozone
yeah so weirdly it works fine on the later bosses, but on the first one it just subtracts 40 chips
then theres a joker which gives you x negative mult, turning it into a huge amount of mult in the end
the rest it does work as intended
these effects i've been sending are what I'm gonna call badges, which are just stickers but you can only have one of them at a time (as opposed to stickers which you can have multiple of at a time)
Actually that raises a question, regarding negatives since you can get negative score can you set a blind score to negative and have the player reach a neg score to win, or would it just give you the win at 0?
well the art would just be the regular joker upside down
the benefit is that jokers give negative mult much more compared to those that give positive mult
so ice power, sure your Joker is safe but you might be giving up effects like:
the downside is that you really need a x negative mult joker
i think it would be fun ❤️
Drained?
for a overflow?
oh wait
math nvm
reminds me of when I forgot to check for stone cards with a joker and ended up with X-2e15 mult 😭
or something close
status effect from my mod that disables a Joker and you must play cards of a certain suit in order to remove the effect
also this effect could be kind of fun:
wait
Lowkey might reach ante 8 with that one 💯
isnt that just almanac jokers
they have jokers with that exact effect but for spectral, planet and tarot respectively
wtf negative
for double dip?
what do you mean "} expected near localization" its right fucking there????
what did i do wrong im confused
i think you might've added an extra }
comma after keys
yeah you forgot a comma 😭
oh god damn it
I've never seen somebody so mad at an error message
uwhar
idk how to word this correctly
you haven't seen me then... 
forgor a colon
bruh Where?!?!
yeah thats like a very common crashout if you meet any programmer
im the calmest programmer
does it run like that? all commented out?
If blind score is exceeded, grant x5 mult on first hand of next round?
cuz if not then ig it calls that somewhere else

probably because of the to_big function? dunno
the height would like to meet
also yeah i have no fucking clue what this means how do i fix this
does it without :(
i dont know where the atlas file data is
real question
idk if it would fix anything but have you tried updating smods and talisman
are you coding in notepad 😭
should welt be able to give Black Hole in some ways
an animation when this is triggered?
since uh, he can summon Black Hole :3
yeah text edit lol
I did just a few days ago
maybe
https://youtu.be/DXtt5s1iuGc Missed by a few versions, but, sure.
This is what Balatro would look like on Windows 98!
If someone could make this real i would cry.
Midi by @AirRice
kinda like the "Upgraded!" the hiker/runner has
works for cryptid tho
doesnt seem like it on your logs
i dont care enough to download a programming application idk where a good free one for mac is and i dont wanna go outta my way when like
obviously
lua can be opened in text edit :V
CHAT
huh?
what's the in game bpm of balatro theme
i caught a mosquito with one hand...
you have older versions of both
🙋♂️
ok I believe u
bepis always tells the truth and i always lie
i always lie and he always tells the truth
the riddle is set, answer correctly and you shall receive your talisman latest version
none of them speaks the truth
if you want talisman compat answer these riddles three
balatro modding discord mini challenge start
jesus christ what does any of this mean what is the file data
-# genuinely dont know what riddle should i be asking 😭
define atlas
what is atlas??????
actually no
what mod is better:
- cryptid better calc
- cryptid old calc
i should learn malverk just to troubleshoot people here
i dont see what i did wrong here
start making yugioh joker skin...
can you imagine the 5 legendary jokers being each part of exodia
i will make a touhou joker skin
wait do i need a json
yes
(they will all be sumireko)
FUUUUUUUUUCK
its not that deep maxx C, chill 😭
(ik im just overreacting cuz its silly)
yeah ok I believe you but that means that you be lying about that so then i shouldn't believe you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I shouldn't believe you. But bepis says that you tell the truth so I should believe you? but you said you lie so I shouldn't believe you? but then bepis says that you tell the truth. I believe bepis but then you said that you allways lie so then I shouldn't believe bepis. But I trust bepis and you but I can't trust bepis and you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I shouldn't believe you. Bepis says you allways tell the truth though, so I should believe you? but then you say that bepis always tells the truth which means that you're telling the truth but you said that you lie? That means that you be lying about that so then i shouldn't believe you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I shouldn't believe you. But bepis says that you tell the truth so I should believe you? but you said you lie so I shouldn't believe you? but then bepis says that you tell the truth. I believe bepis but then you said that you allways lie so then I shouldn't believe bepis. But I trust bepis and you but I can't trust bepis and you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I shouldn't believe you. Bepis says you allways tell the truth though, so I should believe you? but then you say that bepis always tells the truth which means that you're telling the truth but you said that you lie? So then you're lying but you are telling the truth? Bepis says you allways tell the truth though, so I should believe you? but then you say that bepis always tells the truth which means that you're telling the truth but you said that you lie? That means that you be lying about that so then i shouldn't believe you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I can't trust you? but I trust you? but then you say that I can't so then should I? But then if I do then I can't trust you? Bepis says I can and I trust bepis so then I should trust you but I can't trust you? I can trust bepis but Bepis says I can't trust Bepis so then I can't? But I trust bepis and you but I can't trust bepis and you? but I believe you so that means that you're telling the truth. but you said that you lie so that means I need to not trust you. but then bepis says that you tell the truth so I should believe you, but they lie so I shouldn't believe you, but you said you lie so that means I shouldn't believe you. Bepis says you allways tell the truth though, so I should believe you? but then you say that bepis always tells the truth which means that you're telling the truth but you said that you lie? That means that you be lying about that so then i shouldn't believe you? but so if I can't believe you can I tust bepis but I trust Bepis so then do I trust you? Bepis says I should trust you but you say I can't so then wha
wha
wha
Woah
copy pasta?
Is there like a template file for the json needed for atlas
just drink the wine in front of you its not that deep
Bepis what have you done
minor spelling mistake i win
ayo what happened here
Just some tomfoolery
mr steamodded
text walls? in my balatrocord?
Sorry Mr mods won't happen for 3 minutes
@manic rune please I need help here, do I trust you or do I not but you said you lie... So can I trust you or @red flower do I trust you? But you always lie how...
theyv both are lying
jesus balatro christ 😭
sorry i dont continue bits past the 5 minute mark
this is what happens when you try to code
anyways my mod is still broken 
the person you should trust is me frfr
Ok I trust you too
the plot thickens
yeah so what's broken
my mod
I don't know why but that answer made me chuckle
no shit
I'm fine I promice I'm doing amazing even like really well and i'm even cheery but my mod is the thing that's broken
mr steamodded please add calculate function to https://github.com/Steamodded/smods/wiki/SMODS.Edition
i was confused for 5 years
not my wiki page, not my problem
-# /j will do
where can i see the example programmed jokers
also steamodded updated like literally yesterday, not my fault for being out of date
i see the ligh
it's not your fault, but I recommend updating everything before troubleshooting
It just started to crash on startup when I updated now 
bruh I'm getting too tired for this
oh update cryptid too
I removed it, the voices told me to get rid of it before I troubleshooted my own mod
105
and what speed do i need to ramp it up to in audio editor
a mod's config menu isn't automatically generated, but needs to be set up yourself, right?
yes
i guess that's next on the to-do list. Can't push a feature with a potential for breaking this badly without having it be opt-in haha
@tall wharf i added a json file but its still the same error :V
it's pitched down by a factor of 0.7, so 150
ah ok
is it possible to make a deck that renders like the legendary jokers
ty
that comma
keys should be a table
ok
thanks
i need to learn better comma placement, they cause 99 percent of my issues along with brackets
that didnt fix it >:(
commas go inside tables and almost nothing else
oh, and function arguments i guess but those are not usually followed by line breaks
show code
ok u can remove these actually but
oh
to where
prefix_snowman
ahh ok
balala remix
didnt fix it
it appears not 😔
(left is a joker right is the deck)
I don't get it.
provide code?
your talisman folder is nested, i.e. it's inside another talisman folder
certified moment in history
you have malverk installed right
yeah
how does the soul rendering work and how would i recreate it
in vanilla or in smods? cause smods makes it way easier to see how it works. If SMODS, look at the card_draw.lua file in SMODS's source code and CTRL+F 'soul'
I honestly don't get it
this should be as simple as it gets no?
just return the number
you're returning a table with a number
ok so from my understanding i do not understand
i have no clue how to do the thing
how do i define that i would like to draw the soul
do you want the soul sprite itself?
no
oh
i just want to render my deck like its a soul
Hello, good people from the internet! I come here with a maybe complex, maybe simple question: How does one edit the main menu? Mainly the balatro title, which I don't want to replace, but rather add something new to it (that isn't replacing the sprite).
hi jogla
do something like
local scale_mod = 0.07 + 0.02*math.sin(1.8*G.TIMERS.REAL) + 0.00*math.sin((G.TIMERS.REAL - math.floor(G.TIMERS.REAL))*math.pi*14)*(1 - (G.TIMERS.REAL - math.floor(G.TIMERS.REAL)))^3
local rotate_mod = 0.05*math.sin(1.219*G.TIMERS.REAL) + 0.00*math.sin((G.TIMERS.REAL)*math.pi*5)*(1 - (G.TIMERS.REAL - math.floor(G.TIMERS.REAL)))^2
self.children.floating_sprite:draw_shader('dissolve',0, nil, nil, self.children.center,scale_mod, rotate_mod,nil, 0.1 + 0.03*math.sin(1.8*G.TIMERS.REAL),nil, 0.6)
self.children.floating_sprite:draw_shader('dissolve', nil, nil, nil, self.children.center, scale_mod, rotate_mod)
this could be how you get the soul sprite? just change all of the instances of self to card
i put that in draw?
prob
yes?
i did something similar for my replica edition tho idk how it would go for decks
good news it didnt crash bad news it didnt work
it has to be return card.ability... not return {card.ability..., don't return a table for calc_dollar_bonus
I would like it to be known that I figured it out about 10 seconds before you sent this and i literally said "you have to be fucking kidding me"
so, anyone got a helping hand for it?
I want to like, add a splash text like minecraft java edition does.
Not randomized.
lovely patch my beloved
i don't know how to lovely patch
Here 
also btw you're awesome for helping
so uh... add a funny minecraft java edition splash-like text to the title screen.
Ty 👍
Like shown in the image.
oh Idk sorry I was making joke 
oh
It is fine.
Well, it is fine...
As long as you give up 2 of your hands.
-2 hands, good luck
okayy :(
i have a collection if you want some.
jogla dont you come on in here referencing rhythm doctor
7th beat cards.
-# suar, ok now for real, help
wait whatre ya tryna do
also lovely patches sound scary at first but it aint that bad at all
i didnt have anything better in hand
beautiful
- what the heck
- the problem is i don't understand the code.
oh uh i don't know ui things my bad g
And I don't like to implement code that I don't understand.
Like, what the heck does that do?
this is good practice
How what huh?
you just need to change "joy_Dragonmaid" for your own atlas
i mean understanding the code you write
some mfs out here copypasting from chatgpt
I believe it is very important if you want to like, work on your project for more than 2 months.
and also commenting
-# note: it is not 'my' project but rather someone elses's project and I just work for it because funs
ive had projects i didnt write a single comment then came back a few months later and was like what the fuck
this is what the game does
I have heard a lot about it. That it is a good practice, that it is a bad practice.
good in moderation
Literally me in a datapack I made with someone else.
We made the thing 'work', stopped working on it for 6 months, went back to it and instantly went "what the fuck is going on here?"
tbh most of my comments are just goofy shit
too real
the comments in question:
So uh... again, help
I don't know how to lovely patch, I don't know if I have to.
If you tell me what you're not understanding about the code I posted I can help
@tall wharf The Recession
-$1 for:
- Every played card
- Every card held in hand
- Every joker
- Every consumable
- -$25 if defeated
- Permanent: raises debt cap to -$150. If debt reaches cap, lose the run.
- Temporary: Disables all economy jokers
- Disables selling this round.
I am sorry for being that guy but like, I don't understand a single line 😭
Do you know what a hook is?
woah that shit is wild.
this has not been coded yet so feel free to use my art and idea lol
So hooking is basically adding extra functionality to a function forums.kleientertainment.com/forums/topic/129557-tutorial-function-hooking-and-you/
What I'm doing there is taking the code that runs to make the sprites for the main menu and replacing the SPLASH_LOGO
observatory:
What you need to do is make an atlas like this and replace that with the logo you made
You might also need to change those 13 * 1.2 values (they're the width and height of the sprite)
mmmmm
Trying to understand.
So that thing like, overrides the oroginal function or something?
basically
Like, not fully, but the values that you add in?
yeah
Alright.
I am sorry for the rather stupid question. But is there some balatro api documentation somewhere? To look up available objects/functions etc.
I somehow couldn't find it myself.
Well, that partially answers another question I had.
the SMODS wiki and example repo
Give me a sec.
I'll find 'em for ya'.
there's one for SMODS https://github.com/Steamodded/smods/wiki
figuring out steammodded deckskins is giving me gray hairs and wrinkles
Thanks a lot!
So uh... is there a way to add stuff to a function without overwriting it?
ok i have to end for today, but here is my consumabletyp, any potentially errors?
what i did
Like the 'hook' thing but without completely f*cking up the previous values.
You can either hook or patch it
Doesn't that completely obliterate what was previously there?
but in both instances you need to replace the splash logo
cr() is a reference to what was there before and it's called first so it does anything that the function was already doing + my stuff
Let me ask the specific question: Is there a way to add a info_queue thing through for example, a for look?
i gave it a bad name because i was doing it quick
wdym

i forgot
is it possible to disable the shadow on the soul sprite of a joker?
when listen to your mother joker
Is there a way to get the calculate / context functions work outside of an object / joker?
I effectively want 4 random numbers to be generated when a new round starts, or on blind selection, but so far can only get the random numbers to change if set to an object, and then that object is collected in the run. Without being set to something the game either won't open, or it picks a number and sticks with it until the game is reloaded.
Feel like there's probs an easier way I'm missing tbh
what if you made an invisible joker
and stored it off screen
and didn't emplace it
and then used it as a medium for joker contexts
I really want this to be an idea that is used even though I am totally overcomplicating it
Guys what is discord trying to tell me here?
What does the 1 mean? !
you have been pinged

Thank you @gleaming zealot it won't stop showing me the pink and I cant find the ping either!
Is that something other mods do?
Feel like you'd need to be granted that joker when every run starts, which I imagine I could set up for the base game decks, but then any modded runs it wouldn't apply?
Also just feel like there's probably a simpler way.
that's called a ghost ping
just press shift escape
someone pings you and deletes the message
to read all
absolutely not
nobody would ever do that
Is this like when we told people to hold f4 then hit Alt for the secret dev console in Runescape?
no it actually works
the dark side of balatro modding is a pathway to many contexts some would consider unnatural
has signed offline
dodges
Hey @stiff locust , did you figure out the repetition behavior problem from last night. I tried to repro and spent two hours trying to get a custom edition working before giving up for the night
I tried to help!
oh yeah I got the enhancement working
my observer works by detecting changes
now I gotta figure out the chariot code
Yea, but I also feel like my mod is gonna add enough slowdown to the game without complicating areas that I wasn't planning on touching. :P
i have no idea how balatro does that and honestly i dont wanna deal with the vanilla method
I implemented my own chariot behavior for golden cards, let me know if you'd like to see
I mean for gold seal cards*
chariot applies steel enhancement to 1 card
i just need a tarot that does that so i can reference it
I have a sample of that too, want me to IM you
ligma shield
IM? what
DM, sorry
btw this button you can see all pings
oh
fun fact
i have 40,000 unread pings
this button hard crashes my discord when I press it
congrattation
and it always has that stupid red dot
and I can't remove it cause it crashes graagh
anyway sure
G.E_MANAGER:add_event(Event({
trigger = 'after',
delay = 0.3,
func = function()
local card = G.hand.highlighted[i]
card:flip();
card:set_edition("Fox_ghostRare", true)
return true
end
}))
My edition is called ghostRare and my prefix is fox. The error message is 'nil value in p_edition' which comes from line 1441 in overrides.lua
If my edition naturally spawns, it works. But if I try to set_edition, it fails
e_Fox_ghostRare
why are you flipping the card
wait why are you only flipping it once
you gotta flip it back up again (but edition application doesn't flip the card)
This code snippet is not what I was sharing with you, sorry. That was for Eremel
oh my god! That was it! Thank you!!!
In my scenario, I am flipping over all the cards, applying an enhancement to one or none of them, then flipping them back over
well you do need to flip the cards back up then
I actually did forget that at first. And they all stayed flipped down. It was very puzzling lol
yeah they do that
why does the left one work but the right one not? i literally copied the lua and just changed the keywords in the files so that theyre recognized as separate mods but its just not working??????
i dont see what im missing help
eh
i wonder if you can make it so that a shader applies to the border of a joker
aka what if i can like add borders to jokers and then apply shaders to those sprites
Does anyone know what's wrong?
hmmmmm
update SMODS
I did update it
Is there an updater or something? I tried reinstalling from the github
This is alpha, not beta
I'm on the beta
i think they are talking to me
Oh
Oops! The game crashed:
Oops! all sixes:
Oops! All D20s
I’m not cheating, I’m just a pro dnd player
Oops! All nils
Oops! All "Oops! All Sixes!"
lets say for the sake of argument i want this song to play while opening a specific type of booster pack
how do i perform this action
I forgot to send my message oops
I was gonna ask if anyone knows how to make a copy of a card like DNA or something
I wrote this function to keep me from throwing all the time when logging
local retVal = ""
if s == nil then
return retVal
else
return s
end
end
depending on what image you're using for the atlas, you may need to change posStyle to 'hand' instead of 'deck'
wait not hand
I'm dumb
suit
G.playing_card = (G.playing_card and G.playing_card + 1) or 1
local _card = copy_card(context.other_card, nil, nil, G.playing_card)
_card:add_to_deck()
G.deck.config.card_limit = G.deck.config.card_limit + 1
G.deck:emplace(_card)
table.insert(G.playing_cards, _card)
playing_card_joker_effects({ true })
card_eval_status_text(context.blueprint_card or card, 'extra', nil, nil, nil,
{ message = localize('k_copied_ex'), colour = G.C.FILTER })
Depends on when you want to copy, but if you're in context.individual and want to copy a card, this would copy a card and add it to your deck.
You could change the line to G.hand:emplace(_card) if you want to put it in your hand instead of the deck
You can condense that whole function to just return s or "".
okay so how do i use this
i need to check if the player is in the process of opening a booster pack of a specific type
does localization need anything outside the localization file?
Okay yeah that'll work for sure! Thanks FoxDeploy!
I'll have to fiddle around with the contexts now to get the timing right
Can anyone help me with this ?
how can i give a random card in the played hand an edition?
SMODS.Joker {
key = 'growing_joker',
loc_txt = {
name = 'Growing Joker',
text = {
"Starts with {X:mult,C:white}X#1#{} Mult",
"Gains {X:mult,C:white}X#2#{} Mult for",
"each card triggered"
}
},
config = { extra = { Xmult = 1, growth = 2 } },
rarity = 2,
cost = 8,
atlas = 'ModdedVanilla',
pos = { x = 6, y = 0 },
loc_vars = function(self, info_queue, card)
return { vars = { card.ability.extra.Xmult, card.ability.extra.growth } }
end,
calculate = function(self, card, context)
if context.joker_main then
return {
message = localize { type = 'variable', key = 'a_xmult', vars = { card.ability.extra.Xmult } },
Xmult_mod = card.ability.extra.Xmult
}
end
-- Increase multiplier every time a card is triggered
if context.repetition then
card.ability.extra.Xmult = card.ability.extra.Xmult + card.ability.extra.growth
return {
message = 'Growing Stronger!',
colour = G.C.MULT,
card = card
}
end
end
}
It doesn’t work for some reason
Could you elaborate on how it doesn't work? Does it crash on start or something?
Yea when i play a hand
It supposed to give extra x2 mult whenever a card is scored
The card description also doesn’t seem to work
so what does the crash message say

I think you should be able to get a card from hand using G.play.cards[] and randomize the number you give it to get a random card from hand, then set that card's edition with set_edition
try updating steamodded to the latest version
Wait
ok thanks, how is randomising done?
I actually have the latest version but i switched so i can play crypit halloween update
I forgor
I think lua uses math.random()
use pseudorandom or pseudorandom_element
random doesn't account for the seed
Yeah I didn't think about that lol
and this'll just pick a random card from the played hand?
any of yall ever done custom music before?

pseudorandom_element(context.scoring_hand, pseudoseed("whatever")) gives you a random card if you're doing it in a context
thanks
so is this correct? all this bit is trying to do is pick a random card
Never fucking mind
the fact that i'm resorting to digging through cryptid code to try and find out how they do custom music and instead i find the entire bee movie script
Attempt to preform arithmetic on field ‘perma_w_chips’ [a nil value]
yes it should be
Any idea ?
then i just need to upgrade the chosen card into a Gold card
which should be fairly easy?
is this on launch?
On card play
start a new one
oh my god theres a fucking music example mod why didnt i check the example mods
It’s a bit overpowered
this is Exotic 😭
actually yeah
Yeah but x35 mult after 2 rounds is actually insane
might wanna tone it down or add a condition for triggering the upgrade
how do i upgrade a card from a Joker
What the fuck it’s on 75x mult
instead of x2 mult every played cart what about x1 mult every few played cards
as in, make a card upgraded because of a Joker
For every face card ? Maybe
i meant more like yorick where it upgrades every 25ish discarded cards
I'm having trouble making a new custom rarity that is excluded from the pool of Jokers that appear in the shop. Anyone got a direction they can point me in?
