#⚙・modding-general
1 messages · Page 65 of 1
I even used it for one of my mod so no !
I'm enjoying doing this work especially for someone else 🙂
hey! me and some friends are making a mod, and we're stuck on a crash and we can't seem to find the issue. Is anyone available to help us?
the crash log?
is there an error code ?
yeah
what mod loader do you use
steammodded
Send your code
wdym, the crashlog or the actual mod code
the mod code
alr
maybe you're missing a prenthesis or something
try removing useless functions etc
try making it little by little
is also the best way to avoid problems
or know where the problem comes from
Uhh... I am having a bit of trouble with lovely I think.
--- STEAMODDED HEADER
--- MOD_NAME: BoolMod
--- MOD_ID: BoolMod
--- MOD_AUTHOR: [Omni6, Ander, Plasmawave]
--- MOD_DESCRIPTION: bool.
--- BADGE_COLOUR: 66AB05
--- DISPLAY_NAME: Bool Mod
----------------------------------------------
------------MOD CODE -------------------------
function SMODS.INIT.BoolMod()
-- Wrap your code in pcall() to catch any errors
local success, error_message = pcall(function()
local j_omni6 = SMODS.Joker:new('Omni6', 'omni6', {
ability_name = 'Omni6',
config = {mult=10},
spritePos = {x=0,y=0},
loc_txt = {
name = 'Omni6',
text = {
'{C:red}+#1#{} Mult'
}
},
rarity = 2,
cost = 6,
unlocked = true,
discovered = true,
blueprint_compat = true,
eternal_compat = true,
atlas = '',
mod_id = 'BoolMod'
})
j_omni6:register()
end)
-- Check if there was an error
if not success then
print("Error initializing BoolMod:", error_message)
end
end
----------------------------------------------
------------MOD CODE END----------------------```
I got version.dll in my steam/steamapps/common/balatro. and my appdata/roaming/balatro/mods has this. the lovely.toml is in the steammodded folder.
and you replaced the version.dll in the balatro folder with the lovely one?
Lovely is where I got the version.dll in the first place.
redrawing face cards
This is the error I get when opening the game.
uhhh
Game opens when I move lovely.toml out of the steammodded folder. but no mods are then working.
can you go into the steamodded folder and screenshot what you have
Theres my mistake
not having anything in there...
does the calc work with plasma deck too?
is looking at green seal mod a decent way to understand how the mod works and trying to make my own seals?
i think it should work with everything vanilla
allright guys, how do I do a simple print("test") and where does it print to
btw there are a couple settings in the preview mod you might want to look at because they could be considered cheaty
they're just added to the ingame settings you dont gotta mess with the lua
a little more thorough
google of "tk_debug" balatro shows no results so that's a quick dead end
isn't it just sendDebugMessage("text")
then where does that go
to the console that opens with your balatro
Yea I'm not seeing it anywhere
Asking for a friend, does steammodded work with a macbook?
your game doesn't open with a console?
maybe thats just a lovely thing idk
oh wait you mean
where does the code go?
where does the message go `
if you dont have the log then idk
i guess here if you're using steamodded on its own
but i dont so idk how that works
oh wait
in the debug folder in steamodded
its tk_debug_window.py i think
python?.
yeah i think you need python to open that
king with butterfly 🤯 🦋
what suit is this?
hold on I think I need to have atleast one flower for king
ooh nixce
and the other one is axes?
(or halbards)
halberds yeah
any idea for ink and color face cards, in terms of item held
ink: pen, paper,
color: bucket, paintbrush
flower
i still would need 2 more items for kings
paint roller for color
a quilt for ink
how would quilt work, would he just be wraped up in it?
ok, cool
@fickle elbow do you actually use symmetry when drawing face cards (saw that you also started doing them)?
or do you use rotational symmetry of some sorts?*
because I always kinda need to flip them manually in order to check
im finding a thing that works still :/, but i think the program im using should have something like that
yep it has a rotational mirror tool
btw if there are anyone with some free time, and willing to. always need some art for my mods I've got a template and some particles if needed.
any help is much appreciated
I started making halberd king, wanted him to have some king of goat beard, and noticed that it looks like upside-down spade... 
now I'm sad that the actual spade king doesn't have this
I could possibly try I can’t promise anything excellent but I’ve been pixel arting for a bit and I like the concept of your mod
thanks, in case you end up making anything. what is and 6-7 letter name you go by and your favorite color?
btw this is all i have so far :/
I see. Brando and dark purple
would be funny to see this as a mod
can u mod on mac?
@fickle elbow Also it might be cool to have an “atom” card that you can create by fusing a proton and an electron card. And you can fuse more electrons to increase the “level” of its ability which would also change the name to each element (hydrogen, helium, etc)
I guess more specifically a quark and an electron
yea, i can use this UI that i have sitting around
erratic deck reskin frfr (playing cards instead of jokers)
Oh sweet
cooking up proton
Hell yeah
i dont think going to add particles to the pool, im probably going to have some subatomic cards that give random/specific particles
can i mod balatro on my steam deck? i wanna play some of the mods by default, but i also play balatro on my deck often cuz i can't be at my PC as much
can someone explain why the text doesn't show?
this is the code
just one for everything
kk
also theres an API for seals now
i can probably still use it in subatomic cards, just under a different name
(for your reference)
yeah thinkin about it all i really gotta do is fudge the + sign
what do you think it shoould be? one of the quarks?
or more like some "part" of quantum mechanics or w/e
what is the label for?
the slug
ohh
needs to end in _seal
Quantum entanglement?
probably going to go by a different name tho
Between Balamod and Steammodded what would people generally recommend to write mods for?
like how uncertainty principle is quantum flux
Strange Quark
“Strangeness”
steamodded is more widely used
Probably make it more green though (kurtzgesacht reference)
Thanks. I think the first resources I found were for Balamod.
Quantum chaos, people trying to make bridge the gap of theories and classical mechanics. that one sounds like fun to make
and full_name?
can steamodded inject lua in the middle of functions
thats the name that will appear in the badge
like "Red Seal"
ohh , why the "_"?
me using chatgpt as a notes app
why
yes
at least use a private discord
no, chatgpt
keep it on the same app
no, it must be inconvenient for me
Press enter and have it generate something goofy
Lol
Meanwhile i use Visual Studio Code for notes
oh god
i once made chatgpt give therapy to itself
Speaking of modding questions, how does it impact game progression? I reckon I should backup my data in any case, but I’d like to know
I make notes in balatro. I write code in balatro, I BREATHE BALATRO
just make another profile
The last one is a joke
why can't you 2 be normal
Boo start breathing Jokers
That’s what I thought, but I was wondering if it would affect progression
Being normal is all a matter of perspective
ima thread subatomic ideas
as long as you dont play modded on your main profile it shouldnt
It's just a measure of how average someone is
I only am using a discord thread post for notes on mobile
Subatomic Ideas
#1230576634424463440 i mean it’s relevant to the concept hence why
Now that you mention it, I need to find the option to change profiles lol I guess I’ll do that next time I play Balatro
this is true but i'm not looking to talk about philosophical stuff when saying using vscode or chatgpt for notes is not average
ima use this for all the subatomic talk https://discord.com/channels/1116389027176787968/1230965932504121374
Fair enough
the seal doesn't show up in the collections , any idea why?
ok , do i need to load the sprite like i did with the joker?
yes
perfect
any tweaks I should do?
halberd king looks like it is referencing something but fails lol
the queens heads look a bit small
wtf
now?
good
register the sprite under a new name
and change the atlas on the seal
like?
to the name of the new sprite
yeah but the sprite is still SplatJokers
i changed it to Golden Egg Seal but still broken
change it on the seal too
where
@cursive compass it is done
also the hex value needs HEX() around it
it is done
ok
I forgot how my mod worked for a good 30minutes before understanding what was wrong
nice i'll try it when i get home
i forgot to add i still don't have art for the back of the subatomic deck, and 7 booster packs for subatomic cards :/
HEX('6c3062')?
forgot the commas
the air thinghys
whatever they are called
but at least the sprite loaded
chat i need caffeine to lock in but its already 9pm, do i make coffee anyway or get nothing done today?
New idea for a joker, Norton antivirus
why that one in specific
I’m uninstalling it right now
It summons shit joker cards all with negative and when you delete one joker another one is created in its place
imagine bonzibuddy joker that stays on your screen till you close the game
get it on one run and it just doesn't leave
awesome
2 pair gaming
the boys
where is my other boy...
haven't added him yet
fleuron and halberd sin jokers will give +12 mult instead of +4
based
common halberd W
at the same time this'd make wild cards kinda goated
sin jokers give 3 mult in 1.0.1 btw
will need to rebalance some things at some point
you can only get the new sins if you've gotten the new suits right?
"Gives 4 mult to Wild Cards, 12 to Fleuron Cards"
yep
otherwise they will be automatically rerolled in the code
(I REALLY hope the way I make the rerolls wont destroy other things)
i think wild cards can have a buff, as a treat
instead of rerolling
I feel like I can add a joker that specifically unlocks the exotic suits in the run
i mean they can already give like +8 or whatever from onyx agate and +50 chips from arrowhead at the same time
and does nothing besides that
+12 isn't too much more
you can add a tag that you can call when the player has a certain suit
i don't call that tag in my code at all
so it wont appear in any pools
I have this sort of thing yeah
Even if you don't have suits but had them at some point you still will be able to get tarots and jokers
Reuse Glass/Steel Joker mechanic
but not the cards in booster packs because I'd need to register the suits
Pool flags can be basically used for anything so yea you should be able to make a flag based on if you have a specific suit
hmmm
I do need to recode this part then
I will need some assistance tho
because I don't really understand the whole thing that I need to set up
My code for disabling cards is this currently, look:
It works fine
I haven't encountered any weirdness but it feels like there is, hidden somewhere
if modded joker does something when you encounter cards in shop or booster packs for example
that will broke 100%
honestly the registering/unregistering suits system kinda scuffed too
I made it so the suits wont appear in the ui and they wont appear in other weird places, like in loading screen
and also because of that system the cards do not appear in booster packs by default
the scuffed part is:
- Exotic cards do not appear in booster packs if you do not have them in the deck yet still discovered them in the run; You can still encounter other exotic-related stuff
- I think UI problem could be handled differently
why did merry andy just yell at me for losing
what one of my mods got rid of jimbo yelling at me
oh yk, the one
Oh this is so satisfying
i have a guess but i want you to promise to keep it anyways
Missing one for the full rainbow
what
do not remove the andy trash talk
missing one for the full rainbow and for the seven sins
hmmmm
Coro if you tell me i will downgrade the mod BUT will add the andy trash talk to my personal one
huh
okay so
good deal
90% sure its the autumncircus
how the hell do i pass row and column arguments into a new page function...?
i've got 6 jokers for suits too :]
does the deal still stand if i change it from andy to a diff joker
perfect
side note
anyone wanna draw some dnd dice jokers?
(20,12,10,8,6,4,coin)
i wanna make dice jokers that each have their own separate effects but i already have a days worth of stuff to save on pixlr so
Omega Jimbo: NO! You're supposed to obey ME!!
the 6 jester souls:
Super smash bros ultimate intro starts playing
sorry i was supposed to remove that code
Balatro x TBoI when 🤔
Hm?
im very bad at all of this you see
:3
oh I ain’t ever played binding of issac, there’s a thread already tho lol #1229636980887912449
Not mine ofc
It's a joke about TBoI having dice as items but also the earlier tweets from the official Balatro account at Edmund McMillen
By the way, do you know where Balatro store saves?
(Watched videos, never played)
whats this for?
No idea
I ain’t a good modder
I wanted to back up my main one before I start modding
not gonna share much until the update is done!!
What should a D20 do in balatro? (Think dnd)
Same goes for the rest of the dnd dice
source?
mate i know what twitter is
okay but seriously: https://vxtwitter.com/BalatroGame/status/1781390509165965529
suit and rank packs would be a great way to add new suits and ranks in a large modpack
Anyways, does anyone know?
yeah, the current function i had in mind is a bit different, but thats a good idea definitely
ive also figured out a super easy work flow for making booster pack sprites
Got an idea for a jonkler or two, got the steamodder and lovely stuff setup, are there any other tutorials besides the one in the modding threads? https://discord.com/channels/1116389027176787968/1228599493914656788
Is it just a matter of writing all that up in a .lua file and slapping it in the steamodder folder?
Aw sheyit, just found this thread https://discord.com/channels/1116389027176787968/1227289111862448290 please excuse the nub
so if anyone wants one i can make some
themed booster pack with suits-matters jokers/consumables?
dice bag?
YEP!!
The Binding of Jimbo
Stealing Murphy's tweet I see...
wait holdup
Thanks for the references
this would give a num/othernum chance right?
if random('1,20') < G.GAME.probabilities.normal / self.ability.extra.odds then
foobar
end
with the middle thing being whatever effect
what the fuck is that random call
Also why is that random superior to 1
did you code a random function that takes a string?
well that explains a lot
ok but if i make it not a string would it work
"roll20"..G.GAME.round_resets.ante
That’s the most vanilla way to do it
as the string argument
C) youre trying to compare a number 1 thru 20 to the result of dividing 1 or 2 by your odds variable
which means it will literally never be less than that result and that code, even if it worked fundamentally, would never happen
D) please consult either the games source code or other mods to learn how things work
if it takes you a while to figure out, thats fine, rome wasnt built in a day and nobody expects it to be
E) please use something better than notepad
alright im out of talking points going back to sleep now
i just got notepad++ dw
ik you reccomended it yesterday i was busy editing stuff
no idea how to
syntax highlighting alone would help spot erroneous data types like the string random
How does one tally cards scored in a variable and then act on a specific number? I want my joker to add chips to itself every 7 cards played and add the jokers held chips to the chips side every hand
7zip can open Balatro.exe
wait rly
yes
I’m dumb with Lua
so you want wee joker for 7s?
Kinda except it’s all cards scored that count, but every 7th scored card adds seven chips to the joker
I'm trying to create a Joker to test if I installed Steammodded correctly and if the test Joker itself shows up. How do you test your mods?
you can just have a variable in your joker for the tally like you would for the chip boost, then add to the chip boost and reset the tally at 7
The thing is idk how to have it tally scored cards or how to have it add over to the joker at 7 and then add to the score
How is "Ride the Bus" able to get the context.scoring_hand in a context.cardarea == G.jokers and context.before but when I try to do it so I get a error with context.scoring_hand being nil?
check how wee joker does it, and just remove the parts where it cares about 2s?
a lot of modding is just "find thing thats similar to what you want to do, and then do that but with some changes"
Any tips?
you just see if its in the game?
Nvm I typed "scored_hand" 💀
The more I code in Balatro the less I know how to code it in
Also Autumn what happened to the thorn?
I mean, besides restarting until I see the Joker, is there a more straightforward method?
i mean i think thats the only way, unless you add it to collection
and if there isnt a mods button in the main menu then steamodded wasnt installed right
Then it wasn't installed right
collection should be automatic if youre using steamodded apis
Not sure what's the issue since I followed the instructions
lovely >>>>>>>>>>>>>>>> classic injector
I mean, the instructions are really straightforward. I downloaded steamodded_injector.exe, dragged the Balatro executable to it, and Powershell blinked so fast I had no idea what it did
this is just a way to install steamodded thats better in every way
- mods can use lovely's features to various ends
- its easier to update steamodded this way
- its easier to update balatro this way
- lovely itself is easier to update than injected steamodded
- you get access to a console output so you can just use print() instead of the really long name debug function
speaking of updating steamodded that hasnt happened in a bit has it i wonder whats up with that
a lot of apis
tbf maybe i just have unrealistic expectations because when i joined there was Many Update back to back
NotEnoughAPIs
Did they ever figure out why lovely wasn't working on new beta
@sleek granite Thanks. Using lovely worked. Now to try and add a Mod to test it (I see the Mods button)
yea, use lovely 0.4.0
just needed to change the dll they're pretending to be
fun fact: you can put the lovely dll in your system32 folder to add steamodded to windows (lies and misinformation)
i would like to publically apologise for my existence
that is all
nah youre fine
uh
i think aure just got busy and i have no idea about steamo
I love and hate how the calculator mod tells me what my EXACT score will be, even after all of the RNG based elements.
its no fun so i don't use it
then dont use it
they should let you disable that so that you have a range of what there is
Its love AND hate lol.
There is.
(then again i dont use it because i like doing the math)
they do have a range last i saw
oh well then thats nice
so whats the problem here
no idea
There was no problem, it was a comment.
hm
no problem just an opinion
the comment was how I LOVE and HATE that about the calculator lol.
8:

last I heard the dev implemented a feature that does that automatically
fun fact: you can delete system32 for more space! (do not)
how much space?
So I’m working with the loader in the into the jokerverse mod to load my work but it doesn’t show up in game, and idk if it’s my code or the main lua code that itsflowwey wrote
What should I share to help debug this?
a lot
so much space it becomes negative and instantly gets set to the max integer turning off your computer completely
in other words, DO NOT DELETE SYS32
its also an integral part to your system and will break windows
yeah ik
on my old pc my sibling deleted 2 folders from it
now im on a 3 or more year old laptop that has about 1/10th of the space said pc had had
Did you register your work with said register function?
ok but consider that 450gb of free space is not nearly enough
imagine how much space youd have if you entirely deleted Program Files and Program Files (x86)
so real
hear me out
if a d20 had an ability in balatro
what would it be
(other than the stupidly rare chance factor)
Different effect, from low worst to high best
misprint
Roll a 1 and it's game over 😈
thats different since you are rewarded 23/24 times
roll 1-20 evens give that amount of mult and odds give that amount of chips increased some way, squared or times 10 or something
Okay, I copy-edited an example mod and loaded it into the game. Is there an easy way to generate the Joker so I can test it?
oh thats actually cool
uh
Like via another mod or in the mod itself
yall have any ideas abt the other dice by chance?
i aint got the creative brain for abilities rn
So right now the calculator mod that I am using doesnt take into account some things, like Chad happening twice, is there a way to fix that?
smh smh imagine not being creative
me who made all my 3 joker sprites on my own
(speaking of which if someone wants to make some art for the dice that would be great)
i can code the abilities but im backed up on daily saves (smh pixlr) and im not got ability decision brain
d4 = rolled number as XMult
ill make a todo list :D
Thank you
This + Mystic Summit 🧠 💪
that'd anti-synergy tho
Yea that's the joke
yep
its 6am my funny bone isnt working
i think its really fun though like
because it also means another thing
if you reach 0 discards
you waste 1 anyways
so there is incentive not to use all your discards and leave 1 if possible
because you'll be wasting the Apple Juice
gg run won
Not necessarily.
how do i fix jellymod joker textures either copying other textures or just not being there?
Jellymod has been renamed to being outdated
xdd
so is there just no way to fix it?
Dunno, never played the mod
Sorry if this information is pinned/available somewhere, I didn't see it. Is there a generally accepted modloader? I see Balamod, Lovely, and Steamodded, but I don't know if either of those is preferrable. I do see there are 2 API's, but they both require Steamodded?
Steamodded has by far the best dev experience of the bunch imo
what about steamodded makes it easier for devs compared to the others
sorry i dont know much about modding
A lot of mods uses it so they can be used for references
i see ok i assume almost all devs are using steamodded then?
the number 1 thing people hate when writing code of any kind, especially mod code is writing an unnecessarily large amount of boilerplate
boilerplate code is like, code that does nothing in itself
but is needed to load in content and such
Okay
setup code so to speak
Okay, so Steamodded has its own API built in already?
mhm
Yes
fantastic
you can add Jokers, Vouchers, Planets, Spectrals, Tarots
Just information to pull?
things get dicey when you start adding custom consumables and such
V I C T O R Y
thats when you get into the "ah shit" territory
fellas what would a d12 do (1 in 12 chance or what per num, think consumable)
There's also this tutorial #1228599493914656788 message
why do a D12, do a D20
But that's for Joker specificaly
we already have that effect
Dungeons and Dragons reference
not surprising, custom consumables are more complicated than plugging values into a table :p
yep
i think that's it
And that's because it might be conflicting with a similarly named thing right?
not quite
enhanceAPI is
ready for beta testing~!
Evil Jonkler idea #2
define new behavior
what do it do :>
Ooh okay okay
hello modding chatroom again i had a nap because i had a terrible headache
hiiii welcome back
can i test :D

doesn't the name say it all?
thanks for the info btw
yeah, i'm gonna release it in a forum post soon
i mean i guess
cool
hi lyman
have you seen apple juice yet
EvKem came up with a cool effect for it
just gotta figure out what category it fits under and figure out who i gotta ping
hmm
apple juice..
so does that proc when you use your last discard? more than once in a round, or?
as many times as it can hold
you decide when to stop
and yeah
it procs on last discard use
so essentially, it has anti-synergy with mystic summit?
correct
Evil Jonkler effect works
HUH?
i did
i mean the effect
lol at the fps counter
in Balatro
yee
today has been a funky day and i feel like straight Garbage so sorry if im slow to respond
thats okay
do you have anything that messes with G.blind_select
also, any suggestions on what i should use for the forum post image for EnhanceAPI?
probably just the xcards i guess
i had this issue with my quick restart mod, the "Choose your next Blind" text is tied to that
No
Only thing I mess with is G.FUNC.evaluate_round()
i mean, i was planning on releasing those separately, but... yeah, probably best to just lump them together somehow, huh?
chat is this real?
no
this is so sad........ codex arcanum has only 7 packs and dont take up a full page
i still need to add the Aspect booster pack into the game
do it
SMODS has a booster api rght
nope, but you can take the "API" from codex arcanum
and then credit itay
until it comes out
its an "API" cuz all it does it adds the packs to the game, no opening logic
I'm trying to make a first mod but Balatro is crashing before I can open it. The command prompt shows some error message but it automatically closes before I can read it. Any help?
that means you have an error with the lua compiling
like a misplaced character or mispelling
is there not a log for that case?
If there is, I couldn't find it
i dont want to make more packs since i lost my layers for them

you are the bane of my existance
Do you know if I can get a log from trying to load the mod?
I haven't coded in Lua before, so I think that would help me find the error
i do my packs on like, 4 layers..
do you want my layers lyman
i can send you my shading layer
its set to hard light
I mean, I have those files installed already.
you guys name your layers?
Then launch the tk_debug_window with Balatro and it will give you actual logs
its more so that like
How do I do that?
WHAT THE HELL
I thought the command prompt that loaded alongside Balatro was already the debug window
its a whole Process
yep, that's the balatrostuck workspace
But as I said, it closes automatically when Balatro crashes
Yea but this one won't close with Balatro if it crashes at the beginning
me except when i only work on 1 layer
i think my fakemon spritesheet is actually like that lmao
How do I use it then?
I mean, I can run Python from the command prompt
python <python file>
I just said I know how to do it
a moment ago you literally said "How do I use it then?", I was just trying to be helpful 🤔
Yes, I asked how to use the tk_debug_window with Balatro, but if it's just running the Python file I can (and already did do it)
does anyone know when DEMO_CTA state is used?
Okay, I fixed an extra curly bracket and got another crash. This one doesn't close the game. Progress.
Forgot to add something to my evil jonklers (yes this joker is selected, spot what's missing)
I thought of just giving them eternal so you can't sell them but then the ugly eternal sticker would show up
So let's just delete the button to sell!
Rarity?
Hey anyone know how to add two effects to a joker, seal ?
oh shit wait thats hype
There's no "+" when you gain money no?
but is the joker still able to be deleted or transformed?
Forgot about that ngl
lol
deleting the sell button should be used for something, though. it's too funny a move
increase value of all jokers in possession. cannot sell lol
that's actually not bad, with the joker that gives you mult based on sell value
yeah, that's the first strat i thought of
but probably not all that useful outside that
eh, the cool jokers are the ones that don't synergize except for specific cases, very satisfying when they do though
Well I’m trying to have my seal remove itself after it’s played like the black seal mod but I can’t find out how to place the code he used
looking at the api wiki, there seems to be no api implementation for new stakes?
Evil Jonklers can no longer be deleted but they do trigger interaction that occur when they're supposed to be "destroyed"
I'll leave that niche interaction in
:]
i hate it here i hate it here
local use_consumeableref = Card.use_consumeable
function Card:use_consumeable(area, copier)
local used_aspect = copier or self
use_consumeableref(self, area, copier)
if self.ability.name == 'Space' then
-- Add sum(self.level) worth of hand size
elseif self.ability.name == 'Time' then
-- Add sum(self.level) worth of hands
elseif self.ability.name == 'Breath' then
-- Enable ability to get self.level amount of seals on cards scored
elseif self.ability.name == 'Blood' then
-- Enable ability to get self.level + 1 amount of enhancements on cards discarded
end
i need to figure out how to
execute effects on game run level
dear god why
Okay, I made some progress. Now I get an error that some for loop isn't limited by a number. Except I don't have any for loops in my code @_@
oh god no I have to code an entire new ability system oh jesus christ what have i done
might as well just fork the api and make a pull request after xD
Has anyone else modded a Joker that triggers cards multiple times?
is there a stacktrace?
Yes
I think I found the guilty for loop in the code:
Wait, can I post it here?
rules say source can't be shared, but that it can be discussed in this channel
idk
It's line 674 of state_events.lua
I'm on the beta, is it eval_card?
I guess eval.joker.repetitions isn't a number as a result of my code
looking at it, repetition is a boolean
I think it's inside evaluate_play
Well G.FUNCS.evaluate_play
Okay, Sock and Buskin and Hanging Chad both have a local variable self.ability.extra+1. Maybe that's what's missing?
Not sure how to specify that in Steamodded
where you declare your ability table in set_ability, you'd append the table with extra, card.ability.extra
wish I could be more helpful, but I literally just opened up the source today
or at least it should be something like that
My issue is what to put inside extra, since the code for the existing repetition Jokers write self.ability.extra+1
Which suggests that self.ability.extra is defined elsewhere
game.lua is your best bet
I think, anyways, Idk Lua syntax
lua is all tables, so
That's were jokers are initially built
Hmmm, there it seems to be defined as just 1
Yes, but why?
I'm looking into it
It works!
If you look at a retrigger card inside the Card:calculate function, you can see they use something called repetitions, which equals the "extra" value they have

Well it was worth writing this text lol
I was questioning why do they set local variables to be equal to extra+1, because I don't know where they use that
which file is card:calculate in btw
Since the repetition itself only uses extra
card.lua?

Anyways, my artwork is sized wrong, now I need to fix that
Autumn can I dm you about a problem
71x95, with 1 empty pixel border in it
passive effects without cards with all the context of calculation logic
i cant guarantee im helpful
thats ok
The file is that size, but in-game is has some weird wide pixels
weird, Seltzer's repetition is specifically 1 instead of ability.extra
The file I have saved versus how it looks in-game
The extra for this joker is for the remaining uses, not the repetition
Remove the pixels that are in the empty border
ah, that makes sense. so extra isn't necessarily for repetition, but for other attributes
Extra is for everything and anything
Ah, they must've been created when I sloppily scaled the image from 69x93 to 71x95
Better, but tiny
Maybe I need to add a file to the x1 folder?
The joker in the x2 folder needs to be double the size of x1
someone knows how to unlock the google blocks?
It should give you the option to go to config and unblock it
use the lovely method otherwise
And then you can undo the unblock
Thanks! I think tomorrow I'll fluff it up a bit, but now it seems to be working well
just redirect me to a page of why google blocks the download
use lovely instead
i did it
does anyone know where the stake logic is in the source?
idk what everyone's obsession with the classic injector is when lovely is Right There
I'm cheating by creating Tarot cards but seeing my custom Joker work is :0
The relief is better the more complex the joker is
so is there a reason to use extra instead of an arbitrary key for things outside the scope of the regular table values?
uh, so ability.extra is for values outside what is normally relevant
by regular table value I actually mean the basic table keys the game uses
so outside the scope of things like discovered, etc
Tbh I always use extra cuz for some reason some variables aren't written the same or other weird gimmick 💀
Some Joker use ingame element if that's your question (ex Diet Cola, Erosion)
maybe I'm confused, diet cola for example doesn't have an extra key. does it have a separate unusual function for its effect?
extra is useful if you're doing weird stuff that doesn't fit neatly into automated effects
sorry if I'm asking a lot, I haven't familiarized myself with the source much yet
like for example if I have an ability that needs to store some values like, played hands or such
gotcha
If you're not on the experimental version line 267 of card.lua has a list of usable non-extra variable
extra is literally that: extra values you want saved
I'm on experimental
Oh
I can imagine, but I want to start with simple Jokers to learn how it works
Go in card.lua and ctrl+f "self.ability = {"
I guess I haven't checked, but why use ability.extra instead of inserting my own key/value?
Ofc you must do that, don't want to disgust yourself of Joker-making
because private variable or?
Just check this
I see, thanks muchly
Tbh I should clean my code and stop using extra when not needed 😅
meanwhile i went from using ability's keys to exclusively using extra
So me
I've checked and all jokers who needed ability values have extra in it 😅
i thought set_ability was for enhancements
where it wouldnt make a difference to not use it
does anyone know where the card area for the deck overview is?
its for literally every center
but mainly used for enhancements
since you're not usually changing the center of anything else
True
all cards get set_ability called on it on init
(i didnt know set_ability gets called on enhancements thanks for that)
enhance your 2 of spades with Canio
hey uh
i thought there were talks of an "extra" debug menu at some point...?
whatever happened to that?
thank you!
i will once again
curse discord forum search
i wish eternal bad luck to whoever made that
yeah. why the hell doesn't it show debugplus when i search debug?
it only shows full match words
so since debugplus is one word, its not debug
so yea.
I have never made a Joker before, it is so confusing. Wish there was a good tutorial. However...
I think I have found a couple of the things I need
the tutorial is greatly myst
the easiest thing is to just find a very simple one that someone else made and study it vigorously
yea shoutout myst
myst when documentation
i gave up on documenting my code...
If I can get a Joker to set G.GAME.current_round.hands_played and G.GAME.current_round.discards_used to 0, I'm all set with one of my dumb jokers.
Oh, Myst's?
oh hey i do something similar in fortune tree lemme find that for you
this permanently sets discards to 0, the line you want for current round is the ease_discard one
this one reduces hands to 1
Amnesia/Amnesiac Joker makes every hand and discard the "first", to work with Burnt Joker, DNA, Trading Card, and Sixth Sense... along with any modded Jokers that require it.
interesting
how the hell did you do that
i am once again asking how i access the deck overview cardareas
whats a deck overview
this screen
well with that information maybe someone smarter than me can help you
Might be G.UIDEF.view_deck
Might be something already discussed in detail somewhere im missing but I want to find some sort of overall game editor that allows me to manipulate things like what cards you have on deck. As well as maybe spawning jokers or adding card traits.
mostly in an effort to find idealized runs and strategies. I’m wondering where I can find something like that.
Also im new here so be gentle thx :p
Also if you're looking for how runs go you have this https://discord.com/channels/1116389027176787968/1209513992519946250
yea immolate is the way to go if you dont want to gigacheat
that one finds seeds with certain things in it
Copy thx guys. Is there a short read about where to place mod files im kinda slow
the steamodded github
right sounds good ty
im going to cry
the deck overview is 3 different uibox functions deep
nodes[1].... nodes[1]....... nodes[1]...........
anyone know websites/programs that let you draw and save images more than 3 times a day
ok you know what im just not going to do this
gimp2 my goat
i would too if i tried to do ui
Can cards have any field? I don't see where "vampired" is defined
pixilart.com i think
i just wanted to do mild ux improvement...
I'll figure out how to make a joker make G.GAME.current_round.hands_played = 0, so all will be first
But... probably not tonight
pixilart.com lets u save freely
i believe photopea lets u save freely too
Holy they can, now that's handy
What if everything on Earth was a table....
lua sees a dog and is like "yo that shit has PROPERTIES from a CARD"
u r for sure a table
Ty I take it as a compliment
"What do you mean it isnt paper this data i have LITERALLY says it is."
yes, this one
wich article
man i swear everything is right im gonna lose my mind 
Any ideas on what I can make High and Low Roll? (Also this is ALOT of tooltips xdd)
I screwed up the green text noooo
are we just adding every possible dice thing now
cuz imworking on an entire set of dnd dice-
I just thought that an RNG evil jonkler would be really fun
valid
why are you making holkers
?
oh uhh
high roll gives 2 * roll mult and low roll gives roll * (chips^2)???
somethibg along the lines of high = mult and low = chips
Good idea but this is meant to be a joker with strong risk
make high roll +10 mult per joker and low roll +50 chips per joker
So both high roll and low roll being positive is kinda iffy
hmm
maybe low roll is just "this has no effect"?
like -mult(roll) or +mult(roll)
is G.discard a function for the game?
Steam modded injector is detected as a virus on my PC. I bypassed and followed the rules, drag/dropped balatro into it but all it does is run a CMD prompt then kicks me out without creating directories :/
I don’t know if this is a common thing or if I’m just doing something wrong tho
Is there a way just to directly move mods into Steam apps like with other games?
that is because it is technically a trojan
Yikes
not sure did you make a mods folder already?
that doesnt make it bad
Not yet no
a trojan is something that injects its code into another program
while MOST are bad
steammodded is not
however most antivirus do not know this and so they say "GET THAT OUTA HERE"
to do this do windows logo key+r then type %appdata%/balatro
yee
Real, call me schizo, but I like to err on the side of caution. I mean, the PC question is dedicated to Steam only lol
Thx was just gonna ask
i didnt know until someone told me either lol
thats fair, i had to check like 5 different sources before letting it work
make sure i had the right program n such
Does the mod folder need a specific name?
mods
"Mods"
also now every time you do win + r the command to get back will be pre loaded (for adding more mods)
Just “mods” in this directory and then I just download them into that folder
yes sir make sure its a folder
i booted up the game on thunderstore and now this keeps pooping up, any ideas on how to stop this from happening?
you using thunderstore to mod?
whats thunderstore
3rd party app for mods
ah
So like, for example, if I just extracted “debug mode“ into the mod folder, it just runs
i thought it would work and now that keeps coming when i open the game from steam
Thats incredibly simple
Do I need to activate it somehow? Is there like a special key I press while I’m in-game? Forgive me like I said, I’m incredibly simple.
hmm id verify the files and have balatro fix itself then load balatro through the injector again
ok
i cant beat the game no matter what omg
then just load from steam and itll be modded
game do be hard
haha yeah that happens sometimes
lmao once you learn tho the game is crack
im missing 3 separate games limited time events to mod balatro just because its fun
beat FOMO marketing with this one simple trick
on god my boi wants me to grind tekken but i cant w balatro out lmao
so true
Balatro > live service games
(those being splatoon, fortnite, and the family game happening in the other room)
theres been like 3 big updates for other games i play and i haven't touched any of them in favor of balatro
reject live service, embrace 
:jimbo:
i don't play live service tho, just a bunch of bullet heaven/survivors games
20mtd balatro mod when
u should make that
ill put it on The List
doesnt seem very correct
i love the list its where all my ideas are
im so close any help?
hm
they're the same color
idk how i can not keep this in so
without doing a lovely patch which the mod isn't targeting
I can't help you with the patch, but I've got no idea on how to fix that otherwise.
also the r2modman pr got accepted
LETS GOOOOOO
also if you want to forbid your cards from being negative you can try to override the Card:set_edition() function?
whats the problem
you could try rendering the color part as a separate sprite?
nah it's fine tbh
what a beautiful deep blue
i know vouchers apply a shader to only part of the image too
or you could change the sprite to Deep Blue? when it's negative
yellowless behavior
autumn i have a problem with aliasing draw cards to deck
gn chat
it seemingly overrides it fully
gn lyman
i hope the night treats everyone well
akai you need to call the aliased function within the new function
ohhh