#💻・modding-dev
1 messages · Page 268 of 1
?
@crisp coral what do i put for set?
like do i put a table
for that
and set is like what type of card?
i was trying to patch the multhit sounds from the game
like tarot or spectral
with other sound
that doesn't require any hooking or patching on your part
it dont?
string
hi aure how are you doing
you just make a SMODS.Sound and put replace = 'multHit1' or whatever you want to replace
but heres the thing
WOAH
i already done it,,,,,,,,,,,,,,,,,,,
💀
ill turn it off next time
oh i see, then you hook and just change the argument passed in
what if i flesh this out
how do i get a list of all sets in the game
like
planet
tarot
spectral
joker
and modded things
local ps = play_sound
function play_sound(key, per, vol)
if key == 'multHit1' then
key = 'logic for changed key here'
end
return ps(key, per, vol)
end
bump
check for the specific blind here
so like
joker is calling
pick up phone
your phone linging
local ps = play_sound
function play_sound(key, per, vol)
if key == 'multHit1' then
key = 'audjung_multhit'
end
return ps(key, per, vol)
end
?
i will take a look, thanks :D
with math.random?
LINKIN PARK
key = 'audjung_multhit'..pseudorandom('some_seed', 1, 16) i guess if you want to be consistent with game seeds
otherwise you're at risk of advancing another randomness queue
I'll try this out
thanks
wait
im so stupid
you cant use [] for arrays
at school i had to learn python so i used [] instead
now i got all confused
lua arrays don't even exist
coding so confusing
anyways i got the thing to work
calculate = function(self, card, context)
local randomsets = {
'Tarot',
'Spectral',
'Joker',
'Planet'
}
if context.ending_shop then
SMODS.add_card(
{
set = randomsets[math.random(1, #randomsets)]
}
)
end
end
Huh
but how do i get a table of sets
banana
Use pseudorandom_element(randomsets, pseudoseed('seed'))
you should probably use pseudorandom_element instead
if you want it to be consistent for each seed
-# poor phrasing
ohh
ok thanks both of you
i didnt think about that
im pretty sure if i use SMODS.ConsumableTypes for my sets it works too
I had to remake the entire blind calculation to achieve my vision, shit was crazy
OK it works
it gives me
tarot spectral and planet
but not joker so i have to manually add that
if i add new modded consumables or card types it will also show up in that table i assume?
mmmm anything else i should add
if their type is the same as thoe in randomsets, then yes
is this right
so for example
if i print smods.consumabletypes
and if i have cryptid mod installed
it should also include code cards
talisman for sure
oh, right
maybe some of these https://balatromods.miraheze.org/wiki/Category:API_Mods
These mods provide an API that provides pre-built functions that can be used by other mods.
i DEFINITELY need to add a guide for talisman too
Good schmorning chat
hello dilly :D
Hi bepis :D
Ooo what you make
Oh that looks sick
huh
why did you change per, vol to 1.0, 1.0
i didnt have to change that?
no these are the function arguments
million
add easemore (a total of 0 people will use it)
true
like the vfx potential....,,
how would i check for numbered cards scored?
not card:is_face()
if you dont want aces then you would have to check for its id too
thumnds uop 👍
there :3
oh tru
outdated tbh
true
if it was still maintained I'd say yeah but afaik there's just the one elbe fork that kinda probably maybe works idk
am i tripping or theres a symbol in here
not sure why Joker Evolution is not included in here actually
you're tripping
THE LOG SAID THERES A SYMBOL
the only symbol i see is =
all characters are symbols
fuck
What does the error say fully
Your variable doesn't have a name
naw
You just have local
Ah
so what do i need to do
move all that outside of the smods.sound call
you need to understand lua
trust me, my brain is melting as we speak
holding rn
who up holding
I'm holding too
im holin
you can now unhold
?
Hah, point and laugh at bepis
I could never lua to mod
imagine mod to lua smh
what are you trying to achieve
i can't glean much from these two lines of code
Or reply to tge part you explauned
Holding
holding
and then scroll down
linglin
you can now unhold
So you got the answer sent to you alreadu
check out my cat
Meow
i put it in
it gave me error
can i get help with this it says its crashing
Give a pet from me lowkey
lmao
mod tuah
💔
kill this user
you gotta give em that
sent to the shadow realm
i think thats a bit too vague
can you be more specific?
ok
Your issue is that you have code
youre right heres the log
guys can i ask a question
No
yes
Yes
Only if you pay aure 10 bucks
update your smods
I'm going to leave you on read in 2 hours and come back to say the question
if that's okay to ask
That's perfect
Yes
Usually it's 3 hours
That's a fast turnaround
guys why is this segfaulting
seggs... faulting?
it's not becoming 0
number = 0
what is this obscure text
here u go aiko
:3
when i check it says nil
if type(variable) == "number" and type(variable) ~= "string" and number ~= 0 then number = number and 0 or 0 end
nope still doesn't work
actually it's not nil i mistyped
what's nil
local number = 1
while number ~= 0 do
number = math.random(-1000, 1000)
end
60
goes up to 40
goes up by -20??
gambling with your code is crazy
😭
goes down to like 240
i can't stop winning
it usually stays at 240
10 crash in a minute
idk
Go buy a printer and fill it with ink and open up a LibreOffice Writer and write Hello World and then print it
im so good
what number are u trying to set anwyays
am i doing it correctly
I'm trying to set the fps
dawg
I should try this trick in monster hunter wilds
i love x y problem
so true
play with kids numbers
from phasmophobia
alright I'll come back in 2 hours to say the question
sooo below 18?
this should be made into a card
Bye aiko
the cat of light
Rain world but real
ok jokes aside has anyone seen LED bulb explode
I have
In Arduino courses
no as in
There were many fallen LEDs that day
the bulb
Oh like ones in houses?
like the thing you screw in the thing
I don't think I have
i ate one once and it exploded in my throat
house lights
We'll table that for later
i was in the hospital for a year
oddly enough having almost your entire neck ruptured by glass shards means you have to get quite a lot of blood
who would have thunk it
Does anybody know if this is possible?
30 crashes
29 broken glass cards
How do I change the colour though?
aure how are you doing !!
pretty good, ty
im glad you were okay
the human body truly is surprisingly enduring
oh that didn't happen i was just lying
damn
i feel like im the type of guy to eat a lightbulb though
Respond to Ari I think they want to play
light
yeas
crunchy
true
Want to play Balatro?
I LOVE PATCHING 3 DIFFERENT FUNCTIONS TO ACHIEVE THE EFFECT OF JUST SIMPLY NOT DIVIDING BY 2 AT ONE POINT IN VANILLA CODE
i want to play balatro
i want to KILL balatro....
I want to play jokergame
want to play balatro, cursed to mod it
like if u understand
joker poker
im going to balala
play balala yall
why so serious
not the greatest but
zahra
meow
how can i do an animated joker i remenber there was a mod where there was a joker called animation and it was moving
youre good at everything else, so id prefer you werent
ur AWESOME and SMART and EPIC with your BRAINS and INTELLECT so you cant be artistic also
lies
this is my excuse for being bad at art
Fake it till you make it yo
deception
wtf
i mean i tried drawing
I just did a bunch of tricks on a real image and then drew over some of it to make it look cleaner
this is far better than anything I could do on my own
is there a way to get a list of all the Jokers in the game?
i'd like to run through them all, and check each for a boolean it might have
G.P_CENTER_POOLS.Jokers?
Like especially the left two feel really polished
thanks <3
yea, i tried drawing once too
i love elainor forte
eleanor
i can;'t even spell ker name
amazing
art
x 432097856 chips and x3 mult
false
instantly wins all blinds and makes every menu and ui element look like himself
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^naninf Mult
:3
borger
what if i polish this and put it up as a guide
I LOST MY DREAMS IN THIS DISASTER
draws doodles on every other joker
so true
(the disaster was modding this game)
post it on #1349064230825103441... 🧌
It's alive!
what if i make a how to make UI in balatro
this is going to break so hard with my mod
use OR take 👀
damn it its been like years since i finished the show but the OST for SnK still hits
bepis
red pilled
hello
what if i make a Balatro UI guide
what if u make better balatro ui
that would be very useful
add React to Balatro
i will link it :3
what if aiko just makes everyones ui, then its all standardized
Yeah I'll just DM you my UI needs
Quick Draw / Drawn Quickly
Legendary
Gain +1 Mult per card drawn
it took me 5 hours
start adding recipes so people can cook new things, then add common fixes around the house
its a masterpiece, mind you
the "Take" should be "TAKE" actually
it means 😭 hope that helps!
it should :v
"free crazy error"
its bad I thought this was a compliant mechanism
or well
actually good
im not brainrotted
what is that
im gonna work on next
Add to the wiki’s UI guide
i ran out of salmon
The Entire Fucking Deck
Rare
If deck is exhausted, x[number of cards in full deck] Mult
theres alot you can add to the wiki frankly
@red flower
Common for sure
Useless in 99% of scenarios
hmm, my code isn't working. line 26 (the line with the for loop) says G.P_CENTER_POOLS.Jokers is nil
no i mean how sound
hai kusane :D
it's .Joker
hewwo oomfie :333
sound?
ah grand ^^
how do i destroy a card after it's scored
for i,v in pairs(G.P_CENTER_POOLS.Joker) do
You don't need two hooks, just put both ifs in the same one
mark the card with something
then in context.destroy_card, check if the card has the mark
elif?
if yes, return true
pseudorandom('some_seed', 1, 16) <- what aure sent you
whqt do you mean mark
sure that works
so the seeds were necessary?
no i mean like
okay, that's a start :>
destroy them immediately after it's scored
yes
if u call start_dissolve they'll be destroyed at the proper point in the calculation cycle
this conversation stops now
run that back
vro
ok freakster
balatro after hours call that shit freaktro

pseudorandom("this is a seed i guess", 1, 16)
seeded runs 🥵
😭
it's jimbover
she x on my mult until i extinct!
@hushed field we found a dlc name for your mod additions
nahhh
who are my oomfs
?
cbt
Put both ifs in the same hook!
chaotic balatro time
HOLD
Holding
im holdin
What are those '' at the end
is it necessary?
pov : joi
COGNITIVE BEHAVIOURAL THERAPY
No it's not, why are they there
:3
where
n pls 😭
hold
Holding
you're missing either an end or an elseif
can i unhold now
no
?
:(
weird formatting but yes
as in like start_dissolve(theCardGoesHere) or
250k score each phase, holy shit
750k total
theCardGoesHere:start_dissolve()
gaming!! fixed it
which is why i shove all discarded cards
back to deck
in wordle blind
i think you can just call G.FUNCS.draw_from_discards_to_deck()
no
yeah, blindexpander also has a function for that too
ALRIGHT IT WORKS
gotta stack my jokers, wait
who up expanding they blind
bup!
ok maybe that was a bit too much of overpreparation
It'll be the same sounds within the same seed
i figured
Thanks for the help! @hardy viper @red flower @normal crest
wait what if
defeating svarog drops a consumable item
and using it on a joker permanently increases its stat
hmmm
you know what, smart point
but i was also thinking like, making all showdown boss blinds dropping a unique consumable item called Lost Memory or something
if its used on specific jokers, it also grant them unique effects, like using Svarog's item on Clara make her give something more than just +Mult in her base kit
me when if key == 'multhit1' or key == 'multhit2' then
its still a perm stat increase, so its still beneficial :3
okay fine you got me
just that there wont be any significant changes
let me rewrite it
For my JoJo mod, we have a category of both regular Stands as well as Evolved Stands. I'd definitely like to be able to group stands their evolved forms together for display, but I do need them to be in separate pools because Evolved Stands can't be obtained through the same method. Right now, they're just separate consumable types, which automatically makes them appear in separate sections in the collection. So I guess I'm basically just going to have to define them as the same type, declare different pools for each, and then do some custom collection display thing to do what I want....... more work but it's the most intuitive for the player
gang, what this thingy in planets is used for ?
That's just a visual representation of the solar system
i noticed that, but what do i put there in my planet texture
shrug I guess it depends on what celestial body you're representing
randomest planet ever smh
K2-315b is an exoplanet located 185.3 light years away from Earth in the southern zodiac constellation Libra. It orbits the red dwarf K2-315.
...wait
You can define custom pools
Look at ObjectType in the wiki
:3
a bit confused at the "return" part rn
And with that you can make your consumables be part of the pool or not
you return a number that serves as a priority value
I'm more "worried" more on doing the custom collection interface stuff. Not that it'll be hard, just that it's an extra concern
if multiple music tracks try to select themselves, it chooses the one that returned the largest number
Ideally it'd look kinda like vouchers
oh
so basically, what i need to do here is:
- if current blind is the blind i want, return a big number?
Ah, I don't know how to do that
But look at the "your_collection_vouchers" functions
Somewhere...
But also where in the docs is info on defining custom pools? Cursory glance yesterday didn't find me anything
I know there's one for everything
-# i wonder when eremel's updated doc will be released for the public
I think in overrides.lua in smods
Oh is it not in the docs itself?
wha
ObjectType in wiki
Your key has to have 'music' in thr name
And maybe the file too
Its weird
oh
no need in the file
so it needs to be music_godfather?
but music has to be in the key
yeah that'd do it
icic, thanks
And make sure to have your music ingame on. i spent hours testing with it off and didn't know
:(
Pretty sure G is always defined but yeah
return math.huge lol
oh wait you are right
I'm crying
i forgot how menacing svarog's theme is
im gonna put a 12 minute song in there
i don't think huge is a function
it is
where is the code to replace background's color located?
im gonna try making it look like its snowing in the background
ease_background_colour_blind
Idk man the lua docs tell me it's a constant
Maybe it just has a metatable
oh
-# it indeed wasnt math.huge()
just make a large number and assign it to a variable
it was math.huge
you would rather have one large number that you know rather than a ‘huge’ number that has a chance of changing
math.huge is actually like, infinity or something, but its a really big number
Isn't it just math.huge without the ()?
math.huge is already the biggest value
changes the background color before the boss blind color kicks in
so it immediately resets to the normal one
how do i fix that
an event, perhaps?
I thought this was meant to be a function in your blind
Dunno, never made a blind
ease_background_color_blind doesnt seem to give me the option to make it a custom color
and it also runs ease_background_color anyways
this one?
it doesnt seem to be too customizable
wait no
thats not it
its just the color of the border i think
-# (the gray color)
Man why does it say background then
any good tool for resizing pixel images? most websites are just making it blurry asf
Libresprite
i just need something to make my ease_background_color function runs after the color function for the boss blind background is run
but i can think of nothing except hooks rn
thats inconvenient
💔
Check where this is called
i
I mean this code right here mentions boss_colour too
Oh your blind is a small blind
Not a boss blind
no no, its just the image thats a small blind
but it seems this is run in like
pretty much every Game:update function ever
Hmm I guess a better question is, how I can I stop an object type from showing up in the collection?
And are you certain boss_colour doesn't affect ingame
it ignores that part if its a showdown boss blind, which is annoying
Steamodded failure
I'm pretty sure there's a no_collection = true thing for objects
or something along those lines
i hope steamodded has something to change the showdown bg color within SMODS.Blind too
cuz this is annoying 💔
There appears to be for single objects, but I'm not sure for object types
oh I see
Define the create uibox function and use the snippet I shared earlier from smods
In the consumable type
DEVELOPMENT RESUMES TOMORROW
I don't that that gets rid of the main button though
If it does, great, but I was under the impression that was for actually displaying the UI on the page itself
but tomorrow never comes... 💔
Oh that was for customizing the UI like you wanted with the voucher style
I am not sure how to get rid of the button
Yeye
I still want to do the customizable collection thing, the main issue is that I have to both separate the two consumable types and not
does anyone know how to make edition tooltips change based on what type of card it's on
i.e. negative
your small blind has a ping
oh really, let me check it out
how do i print to debug console
thats complex
complicated
https://github.com/Steamodded/smods/blob/main/src/ui.lua#L745 try hooking this function and return 0 on both if it's your set
there's the logging methods in SMODS, but I'm assuming you're talking about something else
i think you're a heretic for trying to print to console
Decent idea, let met try!
met
is there any method that prints text onto a card
i actually feel bad for making this joker
the joker has 4 pages of description
Nahhhh
Yeah that is evil
eidolons
would this be how you check for numbered cards?
yes, but that includes aces too
ah
Easy fix if you don’t want them
I’m on phone and don’t quite remember it but
Just get the card id context and put it after card:is_face[] with an and between
Might need another not as well idk
no

it should be not context.other_card:is_face()
you are checking whether the joker is a numbered card
-# card refers to the joker
but also, if you want it to ignore aces
wait what lol
if not context.other_card:is_face() and context.other_card:get_id() ~= 14 then
id 14 refers to aces
i see...

Egg
egg :3
thank you for blessing this information onto me
npnp

this, but again
you'd wanna write a custom generate_ui I think
time for more work, I suppose...
hey fellas whats the proper way to force draw cards from the deck to the players hand
it is not coming to my mind
hold on I have that exact effect rn
Jimbo feet
-# oh come on, not that joke again 😭
if G.hand then G.FUNCS.draw_from_deck_to_hand(3) end
hmm, i wodner which emote i should react with
pleasure, thank you
Cool guy farts on pregnant man?
what the hell is this
it's annoying that it turns itself on for every game by default
The new ui has me crying actually
ive seen both loving and hating it
but thats just every discord change ever to exist
the update hasnt hit me yet so i ahve no stance yet
am i cooked
Yeah true
Oooo
ring ring
whos there
balala
balala who
balala b lala
fair enough
surely this meets rare standards!
surely
-# im not the best at balance i just like making my ideas come true
I think they are actually
So befuddling news: I do need to do this if I have actual items added to the category, but frustratingly, even though I have zero added items (and therefore it should return 0 already and not show up), it only correctly excludes it from the mod additions tab
I don't think the idea is bad, it's just not rare 😭
it's actually a pretty useful card
but you'd never see it when you need it in a run
those are uncommon
you're talking about onyx agate
Yeah you are right no rare cards give +mult
Bro does not count!
A very hacky solution might be to just have evolved stands not show up in the collection, and make a dummy item to show in the collection
Or put them in the stands category if there’s no other choice
The main reason I want to keep them as a separate consumable type is because of the built-in support for shop appearance rates
I have a set of two vouchers that allow you to buy Stands and then Evolved Stands, even though they aren't accessible by default like playing cards and spectrals
If I have them all within the proper main Stands category, I have to do something else to edit the logic for shop rolls
Hi :3
Would evolved stands be rarer than regular stands, even after the voucher?
I'm thinking of reworking the Yume Nikki Jokers once again tbh
Yeah
yeah then two separate pools is the best options without needing to do something hacky
but honestly, if I were you, I'd avoid complicated hooks and patches and solve it with some dummy items for the collection
Playing Cards have logic to do extra rolls for enhancements/editions (and not seals) because it's bugged, so I could do something similar, I just prefer to avoid lovely patches since they're inherently more unstable than isolated code
because I'd say that collection display logic isn't worth complicating your code for, generally
No yeah, I don't want to complicate the base code further. I'm willing to do weird bullshit for the collection itself, and I'll work within the limitations
.....so I have to find out how to hide the evolved tab because WHY doesn't it work consistently between the main collection categories and the mod additions 😭
I also realized that's the case a while back, when I learned that my spells show up in the collection, but not in my mod additions, haha
afaik in defining the custom UIBox for the stands tab, I should just be able to manually do the display by alternating between the regular and evolved pools, there's nothing really stopping me, so this is my only roadblock currently
how do I run a command to lose the game immediately
In much more exciting news, I've gotta define the best representative colors for the nine current jojo parts
what if i just blueprint

my commit history
the pink (purple?) of the Jojo text
I tried to do that as the text color over backgrounds, but it doesn't really work for every option (Phantom Blood's looks alright)
i need this it'll be really funny i promise
The others... less so
oh uh i should probably inform you that jojokers is a mod that exists
just in case you guys have any clashes
debugplus has a button Lose this Run or smt
check what its doing
oof
debugplus code scares me
just hold tab
it scares me too
luckily it let me make one of my favorite cards
I'm not adding jokers here, I'm adding Stands as a separate consumable category
the fuck did i do 😭
press Ctrl + Shift + F and search for the text of that button, if its in localization then trace where its used
;3
oh do you mean like
how to do it in code?
okay but if you have the same mod prefix as jojokers it will cause issues
"a little bit of this, a little bit of that" type effect 😭
i hope no hsr mods use "hsr" prefix
im using it rn :3
I don't
<@&1133519078540185692>
good
shoot em down
thats why i always put SG infront of my prefixes
🔫
🔫
yes
okay thanks
sorry
LMAO
ok how do I check if a card is in the collection
will this hand go crazy
Open it 💀
no but like I need to check in the code
if the card is in the collection I need to not run the code
Ahhh
ending the round from the collection is a bit of an issue
causes a crash from the main menu collection
what are you cooking up 😭
wait no I need to lose the run does end_round end the run?
no, but if you run end_round() without enough chips scored then you'd lose anyway
i am here once again to ask how the fuck i open a shop at any time
bcus using cryptids run card didnt do shit
did you find it
damn
i figured it out
maybe
oh nvm I found it
G.FUNCS.DT_lose_game = function() if G.STAGE == G.STAGES.RUN then G.STATE = G.STATES.GAME_OVER; G.STATE_COMPLETE = false end end
needs a couple more hacks i reckon
guys pls im losing me mind
the mod is ready
2k, great
I'm pretty sure most of us don't know 😭
dam
that's not something that regularly happens lmao
cryptid has the joker that goes to shop when you sell it, look up what they did
it's probably some incomprehensible state manipulation
maybe look up at the fucking message
oh awiyt
holdon
lemme make sure my rude comment is justified
no gimme a moment i may be a dumbass
bit too late
you came in way too hot 😭
i thought they were talking about the run code card which i said i already looked at
check cryptid's lovely patches
there's probably a patch that associates with run
yea no im not seeing that joker but i may just have missed it in the collection
i'd look up what it was but tbh i inexplicably lost interest a bit ago
was someone rude to you or smth
omg
Henlo. Is there a way to add an enhancement to any given card (like :set_edition?)
hi aiko
this was such a tragic sequence to observe lmfao
ok but like genuinely is that a joker and i just missed it
im not sure, i havent looked at cryptid in a hot minute
card:set_ability(G.P_CENTERS.[enhancement's key])
ty
it definitely exists; whether it's in cryptid is another story
you can probably look for g.states.shop inside of cryptid
I do remember hearing of it
did not find that joker in cryptid
it was a code card
run?
yes
i take it you forgot about that and thought it was a joker?
from this it looks like I was mostly right and G.STATE = G.STATES.SHOP; G.STATE_COMPLETE = false should start a transition to shop, whether there's something stupid patched in, no idea
yeah it was months ago that i last touched cryptid
i tried taht and uh
Did you figure something out
Otherwise I'll keep looking
look for this line:
local gus = Game.update_shop in CodeCards.lua
apparently there's a bunch of update functions being hooked to make it work
actually just look into where cryptid uses G.GAME.USING_RUN
how do people add that funky little Compatibility popup for blueprint-like jokers
Got sidetracked doing soething for someone else. I'll figure it out eventually!!
I appreciate the offer though!!
this is what happened when i did state = shop
did you never even get a shop?
I think you might have to override the vanilla function for it only
i did

