#⚙・modding-general

1 messages · Page 67 of 1

sleek granite
#

seems odd

rough horizon
#

it should probably support custom stuff

grand geode
#

hm would the fusion for options and credits just
+2 hand size

#

lol

fallow bramble
#

How is this working like other colours if it gives nothing concrete?

wanton rapids
#

triggers every X rounds

#

hm

fallow bramble
#

Oh in that way

grand geode
#

drawing a Pictured as Perfect jimbo would be cool

sleek granite
#

i wish i had jokers to fuse
oh no wait i dont want that

grand geode
#

wait this frame with jimbo would go so hard i think

haughty hinge
fallow bramble
#

Might as well jump on the logo train

wary moth
#

equality logo because why not

haughty hinge
#

equality is busted

wary moth
#

is it still?

#

did you update

haughty hinge
#

has it changed?

wary moth
#

yes

haughty hinge
#

to what?

wary moth
#

1.5x

haughty hinge
wary moth
#

nah its fine

#

it was clearly too powerful and the fact that its possible to reach mult that high that fast was just a side effect of it being imbalanced

haughty hinge
#

dang
my 2 billion mult would translate to 300k mult with the 1.5 change lmao

wary moth
#

i feel like thats fine but it might still be too powerful

#

idk though

haughty hinge
#

it took 30 ish hands lol

sleek granite
#

only 300k mult, rookie numbers

wary moth
#

yeah fair

#

balanced

haughty hinge
#

the run took forever cause i had to lock in every time i went to the shop so i can have $1 left

wary moth
#

yeah it does that

#

intentional, even

haughty hinge
#

if im being honest the only reason i couldn't go higher is because in 1 round i went from beating the blind in a couple hands to one shotting when i didn't want to

wary moth
#

yeah i can understand that with 2x

haughty hinge
#

blue deck was an amazing choice llo

#

plasma would've been an amazing-er choice

wary moth
#

lol

haughty hinge
#

i could've hit e18 :(

grand geode
#

@cunning silo what is extra_stat for

cunning silo
grand geode
#

ic

cunning silo
haughty hinge
grand geode
#

now i have three unsprited jokers.....

#

killing myself now

gilded vortex
#

I'm trying to create a slightly more complicated Joker whose ability triggers off getting another Joker. Has anyone done anything similar?

#

The closest base Joker I can think of is Hologram, but it triggers off adding playing cards, so I don't think that's the same context

wary moth
#

technically ceremonial dagger/blueprint/brainstorm as well

haughty hinge
#

i thin it's more of the act of obtaining the joker

wary moth
#

yeah

haughty hinge
#

like 1 in x chance to gain money when a joker is bought or something

wary moth
#

i feel like the most useful thing would be a way to detect whenever a joker is gained

#

maybe detecting whenever used joker slots goes up?

#

those are definitely equivalent

gilded vortex
#

So no

#

There are Jokers that react to selling

#

But I want to know if there's a way to detect adding a Joker to the deck

wary moth
#

detect whenever the amount of used joker slots goes up

#

and abstract measures the amount of used joker slots so theres probably a way to implement that

strange frigate
#

Guys, I'm trying to define an effect to a joker that gives the user $5 when you play a straight that contains a 6. What should I do to achieve that?

gilded vortex
#

Abstract just checks how many you have when you need the number, if I understood correctly

gilded vortex
strange frigate
#

alr ty

gilded vortex
#

My idea is to scale when you get a Joker, so it doesn't work similarly

#

The Card.lua file defines add_to_deck, which is the function I need to detect, I believe, but I don't know how to do it

wanton rapids
#

they all work now yay!

gilded vortex
#

I mean, if there's not something built-in I imagine I could add a call to calculate Jokers myself (which I don't know how to do either), but I imagine there should be a way to make it work natively

cunning silo
#

HOW MANY SLOTS??????

wanton rapids
#

custom challenge

strange frigate
sleek granite
#

i should make a +1 consumable slot voucher

sleek granite
#

hi lyman

#

enhanceapi happened

cunning silo
#

fusion jokers also happened

gilded vortex
sleek granite
#

yes thats exactly what that says

strange frigate
#

idk, i just copied it from superposition and changed "aces" to "6" lmao

gilded vortex
gilded vortex
rare shell
#

oh boy does that mean i get to pull out my "check for X" code

gilded vortex
sleek granite
#

whip out that code

rare shell
#

its funny you mention 6 because i have code that i usually show people to check the hand containing something

hardy brook
#

So question: where do i find the code for vouchers?

rare shell
#

and the example i use is for sixes

#

so you don't need the 6>=1 part of the code, it can just be the next(context.poker etc)

strange frigate
#

so

if next(context.poker_hands["Straight"]) then
ease_dollars(5)
end
#

?

rare shell
#

give me one moment to write out a miniguide

strange frigate
#

alr ty

grand geode
hardy brook
#

Welp, made my voucher test

sleek granite
#

vouchme

hardy brook
#

And it crashed. I think because I bought every voucher or something

#

idk

#

I'll take a look

rare shell
# strange frigate so ```lua if next(context.poker_hands["Straight"]) then ease_dollars(5) end ```

so this might be a bit intimidating, but i tried my best to explain every piece of code here, this would all go under "if next(blah blah)" basically where you currently have ease_dollars(5)

                local has_a_six = false -- we declare a variable, starting as false
                for k, v in ipairs(context.full_hand) do -- for every card in your full hand
                    if v:get_id() == 6 then -- check if the current card we're looking at is a 6
                      has_a_six = true -- if it is, we set the variable to true!
                    end
                end
                if not has_a_six then -- if its not true...
                    return nil -- then we return nothing, this ends our function and ignores the rest of the code
                end
                ease_dollars(5) --other wise we give 5 dollars
                return { --and we return a message showing we got money
                  message = localize('$')..self.ability.extra.penalty,
                  colour = G.C.MONEY,
                  delay = 0.45,
                  card = self
                }```
hardy brook
#

Okay so it's not with the vouchers

rare shell
#

it might not be exactly this you might need to change your message

rare shell
#

yee

#

in this context returning nil does a similar thing

grand geode
#

and here's if i utterly murder fusionjokers

gilded vortex
# rare shell yee

I meant that you don't need to continue the for loop once you set it to true

rare shell
#

i wouldnt use my code exactly, because, mind you, i did edit this from My joker code that has some specifically named variables like self.ability.extra.penalty

#

oh yeah definitely

hardy brook
#

Okay it definitely is something with the vouchers

rare shell
#

i just hand edited the code in discord lmao

#

the original code is actually checking if its exclusively 6s so i tweaked it

strange frigate
rare shell
#

its actually probably a good idea to figure out how to do those variables

#

so when you define your joker, you have a config field, with extra slots

#

you can put almost any type of variable inside of these extra slots

#

an example declaration

#
local wanted_poster = {
            loc = {
                name = "Wanted Poster",
                text = {
                    "Gain {C:attention}$10{} when you",
                    "beat a {C:attention}Blind{} first hand.",
                    "Lose {C:attention}$2{} when you play",
                    "a hand past your first"
                }
            },
            ability_name = "Wanted Poster",
            slug = "wanted_poster",
            ability = {
                extra = { 
                    dollars = 10,
                    penalty = 2, }
            },
            rarity = 2,
            cost = 5,
            unlocked = true,
            discovered = true,
            blueprint_compat = true,
            eternal_compat = true
        }```
#

and if i want to get the variable "penalty" thats where we use self.ability.extra.penalty to call the "2" here

hardy brook
#

Huh... I think the challenges don't know how to deal with you grabbing all the vouchers lol

rare shell
#

it defaults you getting blank does it not

hardy brook
#

or having 4 at the start

#

Hang on, might be because of the rerolls

#

It's either freaking out because you have more than 3 vouchers at the start of challenge or freaking out because it's trying to do reroll at the start of challenge

#

Okay so it was v_reroll_surplus and v_reroll_glut

#

But hey, at least I can test the other vouchers once i add them now

#

oh crap lol forgot i have the wip archived installed

rare shell
gilded vortex
#

Anyways, while I can't figure out how to check for the context I want to, let me see if i can figure out how to do a random effect that's not succeed or fail

hardy brook
#

Time to test

brittle gorge
#

does someone know why this happens?

hardy brook
#

Price works before you ask

#

Ability... did not

sleek granite
white scarab
sleek granite
#

use version 0.2.1 if you need my seals in collection

white scarab
#

Overstock++ is not plus plusing

sleek granite
#

ill figure out how to collect my stamps later

brittle gorge
sleek granite
#

the autumn circus theautumncircus the autumncircus theautumn circus

#

E

brittle gorge
#

the main file?

#

no , i guess it's jokerstamps.lua

sleek granite
#

yea sorry

#

you may also need to check where i register the seals proper in data.lua if memory serves

#

i'll figure out a comfortable way to organize things someday

grand geode
#

a

#

i might make the text 2x2 because it doesn't take a lot of space rn

brittle gorge
#

i love your personality

hardy brook
#

Welp, one voucher added. No i am not fixing the UI

grand geode
#

ante -1

#

moment

brittle gorge
#

well...

hardy brook
#

oops

strange frigate
grand geode
#

it's so cool

hardy brook
#

hm?

rare shell
#

fusion jonklers lets go

brittle gorge
#

does anyone here understands what's going on here

#

or how to fix it

rare shell
#

penalty can be whatever, its what i named my variable

strange frigate
#

ooh got it

hardy brook
#

I know this probably is a messy way of doing this for the code, but I'm copying all the effects over into the tier 3 mod and changing it to what i need

#

I rather it work without affecting the originals with messier code than it conflict with other mods

grand geode
#

okay now i need to sprite pebbler joker. animated jonkler time

gilded vortex
wanton rapids
#

time to figure out how feder did that cool fusion display thing

grand geode
#

where is the xmult from

#

cavendish??

wanton rapids
grand geode
#

oh

strange frigate
sleek granite
cunning silo
brittle gorge
#

i have no clue

strange frigate
#

alr

rare shell
#

you can have multiple things in that area, like i did in that other example, but youll probably only need 1 for now

sleek granite
brittle gorge
#

obviously , how does it work?

gilded vortex
#

How can I change existing game functions to add my own context to them?

sleek granite
#

you need to make a SMODS.Seal to register it

wanton rapids
#

yo! now to get it to work.

mossy cairn
brittle gorge
strange frigate
#
 local j_test = SMODS.Joker:new('Test', 'test', {
                ability_name = 'test',
                ability = {
                    extra = {
                        penalty = 0}
                } 
```is this correct?
rare shell
#

theres usually a lot of things here besides just this but this is the general idea

#

stuff like cost, rarity, etc- but this is how you would doit

#

still have waking up brain

gilded vortex
sleek granite
cunning silo
sleek granite
#

you have to end with _seal

wanton rapids
#

oh i could probably do that

sleek granite
#

and cant use any others

rare shell
#

lets go

sleek granite
#

it makes no sense and i dont understand it

brittle gorge
strange frigate
sleek granite
#

yea try it

strange frigate
#

ty

gilded vortex
brittle gorge
rare shell
#

todays gonna be another one of those stun lock days

grand geode
#

mood

strange frigate
gilded vortex
brittle gorge
sleek granite
#

shit

brittle gorge
#

i can try copying the code for the green seal mod and see if that loads the text

rare shell
tranquil roost
#

Currently struggling with my card designs

rare shell
#

example using calculate_dollar_bonus

#
local calculate_dollar_bonusref = Card.calculate_dollar_bonus
function Card:calculate_dollar_bonus()
    local calc_dollar_ret_val = calculate_dollar_bonusref(self)
    if self.debuff then return end
    if self.ability.set == "Joker" then
        if self.ability.name == 'Wanted Poster' and G.GAME.current_round.hands_played == 1 then
            return self.ability.extra.dollars
        end
    end
    return calc_dollar_ret_val
end```
tranquil roost
brittle gorge
rare shell
#

(i dead ass had this variable declared as dollaf_bonusref and didnt notice it i hate myself)

tranquil roost
#

Nah just coming up with designs

gilded vortex
rare shell
#

its outside

#

i put it at the bottom of my code

tranquil roost
#

I’m making the designs for the mod I’m working on, like, on the spot with no planning

gilded vortex
tranquil roost
#

Art

tranquil roost
#

And I remembered I made those designs ages ago and didn’t think of making a mod for them

rare shell
#

wtf

#

pretty doodles

gilded vortex
cunning silo
#

the balatro rpg

grand geode
#

i enjoy second row fourth column

tranquil roost
#

I guess I’m gonna make two mods now lol

gilded vortex
#

Balatro dating sim

grand geode
tranquil roost
#

When are we adding a dating sim to Balatro that lets you make out with your joker cards

rare shell
#

fusion jokers

tranquil roost
#

The jokers had babies….

cunning silo
cunning silo
#

joker

tranquil roost
#

aSDVabigailkiss🔪

cunning silo
sleek granite
#

yuri joker is ceremonial dagger and madness

tranquil roost
#

Toxic yuri joker

cunning silo
#

XD

carmine mortar
rare shell
#

satoru umezawa joker

tranquil roost
#

I’m guessing the fusion is only like, jokers from the base game getting fused right?

cunning silo
#

you can do that with modded jokers

#

and with other fusion jokers

rare shell
#

ye but theres an api

cunning silo
#

there's an api

rare shell
#

so you can write whatever

carmine mortar
# carmine mortar Not that one

If I say something and there happens to be a H:SR or GI character named after it, assume I’m NOT talking about the character

tranquil roost
#

Link link I wanna see the fusion mod stuff

strange frigate
gilded vortex
rare shell
rare shell
cunning silo
grand geode
#

latter

rare shell
#

ive done it with calculate_dollar_bonus and add_to_deck

strange frigate
#

calculate = function(self,context)?

rare shell
#

and with add_to_deck i didnt need to delcare any extra args

brittle gorge
grand geode
#

i still stand by the fact that hsr gameplay sucks

gilded vortex
cunning silo
rare shell
#

ah yeah youre going to want to at least keep that same for the actual func declaration

#

so like

local add_to_deckref = Card.add_to_deck
function Card:add_to_deck(from_debuff)
    if not self.added_to_deck then
        if self.ability.name == 'Mind Mage' then
            G.hand:change_size(self.ability.extra.h_size)
        end
    end
    add_to_deckref(self, from_debuff)
end
#

sorry had to scrounge some old versions of my code

#

mind mage will come back one day

brittle gorge
#

does someone know why this shows as ERROR under the blank description of the seal?
local localization = {
name = "Golden Egg Seal",
text = {
"When played gives {X:blue, C:attention}X1.2 chips{}",
"and {C:yellow} 1$ {}"
}
}

local seal = SMODS.Seal:new("Golden Egg Seal","goldenegg_seal"," Golden Egg Seal",{x=0 , y=0}, localization ,"Golden Egg Seal", true , HEX('6c3082') )
seal:register()
local sprite = SMODS.Sprite:new("Golden Egg Seal", SMODS.findModByID("Splat_Jokers").path,"goldenegg_seal.png", 71, 95, "asset_atli" )
sprite:register()
strange frigate
gilded vortex
wanton rapids
#

this is huge

rare shell
#

well you said "whenever you add a joker" right?

gilded vortex
wanton rapids
#

yeah,

rare shell
#

add_to_deck would be the function you would want to hack

gilded vortex
#

That's the idea anyways

rare shell
#

ah, that sounds like it might be dicey

#

regardless, all i laid out here should be enough to get you through function injection though

rare shell
gilded vortex
#

Do you know when to add events to the event manager and when not to?

#

buy_from_shop adds an event which does multiple things, including iterate over Jokers to calculate them, but there's also a separate event created inside of it in some specific circunstance

wanton rapids
#

i do quite like the little ascii progress bar the colours have

tranquil roost
#

The piss card

solemn rover
wanton rapids
#

last new colour for tonight

#

still need crimson, brown, grey, silver, green, and peach

cunning silo
stone brook
#

can you make red's number 40

wanton rapids
#

not in the pico8 palette

stone brook
#

also good morning chatroom

cunning silo
#

There’s no purple?

cunning silo
wanton rapids
#

there's a shade close to purple in the extended palette

#

which counts

#

but i'm doing the base 16 first

stone brook
#

i woke up and immediately figured out how to do something i was stuck on last night

cunning silo
#

Purple’s my favorite color ):

stone brook
#

i love sleeping on problems

lean dune
wanton rapids
#

oh hm

hardy brook
lean dune
#

what's that 👀

hardy brook
#

Vouchers

lean dune
#

ik

wanton rapids
#

does this make sense? 2 in 2 is from oops

hardy brook
#

You have a 50% chance to skip a round basically

#

I think it makes sense

wanton rapids
#

mhm

#

it is time to make big money

dapper helm
#

big money gaming

hardy brook
#

reroll addiction starts you at $0 for reroll

#

It decreases by 1 actually but that puts it to 0

dapper helm
#

may i suggest an alternate ability?

hardy brook
#

I mean... eh but sure

dapper helm
#

"Rerolls only increase price by $1 every 2 Rerolls"

half crescent
#

if you want to call it reroll addiction, make it so every reroll increases the number of times you reroll each time you do it. so the first time's free, the second time it rerolls twice and you can't control it, and so on

dapper helm
#

that sounds mostly useless

hardy brook
#

that sounds like a downgrade

#

Also i don't know how to change that coro

half crescent
#

i mean, the name "reroll addiction" made me think of that

dapper helm
#

would probably require rewriting it which doesn't seem like it'd ruin compatibility? idk

half crescent
#

i didn't want to touch modding until i had everything unlocked and wow y'all have a beautiful canvas to work with and things are very nice. this game could get an uncommon added called "odder todder" that gave a larger boost but only every other day and it would cause me to rethink my entire strategy for the game

stone brook
#

that sounds amazing

#

what if it got stronger based on how many odd numbers are in the date

#

i.e 1/1/2025 is strongest

grand geode
hardy brook
dapper helm
stone brook
#

11/11/3111

#

my greatx10 grandchildren fulfilling my will of playing the strongest odder todder

dapper helm
#

so true

stone brook
#

no i have like 30 ideas down

#

also sorry i went to bed immediately after my message

brittle gorge
#

opinions on this jokers design?

slim swallow
#

very nice art

brittle gorge
#

thanks

#

it's the third i've made , trying to improve from the others

supple cypress
cunning silo
brittle gorge
#

i've already done the egg one

cunning silo
#

I love this reference

brittle gorge
#

two of them actually

brittle gorge
cunning silo
#

I love this

sleek granite
#

im sorry i cant be of more help

brittle gorge
#

don't worry i tried contacting the creator of green seal to see if he can help

hardy brook
#

More tier 3s will be done later. I feel like trash and Gotta get ready for something

cunning silo
tranquil roost
brittle gorge
hardy brook
#

Thanks. I blame myself. I ate something and it’s causing stomach problems and air problems at the same time

#

It’s really painful

brittle gorge
#

get well soon

tranquil roost
#

That sucks

dapper helm
#

get well soon

hardy brook
#

3 vouchers so far is not bad though

rare shell
#

chat how do i channel my burning rage and fury i have today into joker ideas

dapper helm
#

political jokers

rare shell
dapper helm
#

lmao

carmine mortar
# rare shell chat how do i channel my burning rage and fury i have today into joker ideas

Parade Marshall (Uncommon)
+6 Mult per Planet, Tarot or Spectral card used without consecutive card types. (last card used: [TYPE])

Band Maestro (Uncommon)
+25 Chips per consecutive Planet, Tarot or Spectral card used. (last card used: [TYPE])

The inspiration?

I’m at a concert with a parade group and the clothes looked neat, in addition to the Showman Joker

dapper helm
#

what if wojak joker

carmine mortar
#

+Mult per hand of five with either a one rank or suit deviation

rare shell
#

wojoker...

tranquil roost
#

It’d be so fitting

rare shell
#

but they have to be 18th century politicans

tranquil roost
#

Oh my god nobody would get the references then

rare shell
#

yeah its great

tranquil roost
#

Make a dandy joker

#

He’s perfect

rare shell
#

listen i feel like i can safely say that most of the legendary jokers are from pieces of literature most people have never even heard of or read

#

with the exception of yorick

carmine mortar
#

Sanzang

fallow bramble
#

So evil

rare shell
#

frick!!

fallow bramble
#

!!!!

carmine mortar
#

Ni

brittle gorge
#

lyman , i have a new design

dapper helm
#

what if grawlix joker

carmine mortar
rare shell
#

i love racism

#

whats the new design

brittle gorge
rare shell
#

oo i saw

brittle gorge
#

the goop needs reworking

rare shell
#

i should draw goop joker

brittle gorge
#

that's a great idea

rare shell
#

oh wait i did do that

#

i need to pester feder to add it to the new codex update

grand geode
#

gooper

dapper helm
#

ur a gooper

tranquil roost
#

Been getting distracted by watching tiktoks back to drawing I go sobglasses

grand geode
dapper helm
#

yw gooper

silver isle
#

Messing around with card art, and I got this on accident:

#

JUST JIMBO

strong swift
rare shell
#

a lot of things

dapper helm
#

real...

strong swift
#

same

dapper helm
#

1 nothing wrong with me

astral glade
#

modding chat is so wholesome

strange frigate
tranquil roost
#

Might wanna take a picture of the crash log

strange frigate
#

alr

#

the game closes entirely and I can't get the crashlog

silver bane
#

can i ask if anyone else is having the problem of when i install the steammoded modloader it comes up as a blocked download because of a virus

#

i can download it anyway just wanted to ask if anyone else has the problem

brittle gorge
#

he had a similar problem

hybrid finch
#

was playing around with mods and realized reshuffed added this had a good chuckle lmfao

astral glade
strange frigate
#

Oh alr

west magnet
#

When is modding likely to be officially supported in Balatro? Something like Steamodded just feels like a temporary hack to get modding working, than a proper answer to long term mod support. Especially how Windows likes to flag it as a trojan, which definitely doesnt feel like thats how modding should be (having to disable Windows Security to allow modding is insane)

strange frigate
tacit crest
#

Looks pretty

cunning silo
#

Been waiting to see news on that

hoary trellis
#

anyone know if balatro will be getting official mod support (i.e. steam workshop or similar?)

dapper helm
#

out for thunderstore pretty sure

hoary trellis
#

thunderstore? never heard of that before

tacit crest
tacit crest
rare shell
#

reverie lore

cunning silo
#

So many interesting projects are coming out soon

#

I’m so happy with how this community evolved

strange frigate
#

pls if anyone is available to help I'm struggling a lot 😭

glossy mesa
#

how does steam modded work

gilded vortex
knotty roost
#

yes

rare shell
#

fyi if its crashing without an error log its usually a formatting error

#

like a missing comma somewhere or a misplaced bracket

strange frigate
#

alright

tropic arrow
#

Is there a guide somewhere for getting started creating mods?

strange frigate
#

i hope that after the first joker its smooth sailing from there

gilded vortex
gilded vortex
#

The mod loads but the Joker doesn't get added >_<

simple venture
glossy mesa
#

how do i download steam modded

#

i can't steam modded

viscid spear
simple venture
stone brook
#

i dont think theres a guide, you just gotta read other mods source code

#

and learn from them

west magnet
glossy mesa
#

wait

#

so

#

is this what i need

#

in the mods folder

#

with these

west magnet
#

the master directory just gives you the source code if you want to manually build it

stone brook
#

do the lovely method

glossy mesa
#

which is

stone brook
#

what coro linked

glossy mesa
#

which is

#

i mean

#

im follow it

west magnet
#

I use firefox, but you should have the little arrow on the right that lets you allow the download

dapper helm
#

you need version.dll from the lovely github

#

then you download the steamodded source code

#

version.dll goes in the same folder as balatro.exe

#

steamodded goes in the mods folder

glossy mesa
#

i get version.dll?

dapper helm
#

yes

glossy mesa
#

which is what

#

the entire download?

dapper helm
#

go to releases

glossy mesa
#

where

stone brook
#

on the right

glossy mesa
#

i see it

#

downloaded

#

and that goes where

#

in balatro's folder?

dapper helm
#

yes

glossy mesa
#

roaming?

dapper helm
#

the one with the exe

simple venture
stone brook
#

the one that steam opens when you browse files

dapper helm
#

right click on steam and browse local files

glossy mesa
stone brook
#

yea

dapper helm
#

yes

glossy mesa
#

done

#

what goes here

#

just core debug and loader?

dapper helm
#

download the steamodded source code and put it in the mods folder

glossy mesa
#

source code zip?

#

or extract zip into mods

dapper helm
#

source code zip and extract it into mods like this

glossy mesa
dapper helm
#

yup

glossy mesa
#

and now?

#

its good?

#

and i just need to mod

#

download

dapper helm
#

open game and check if it says steamodded top right

glossy mesa
#

well

#

i now have a command prompt

dapper helm
#

i don't remember for sure but that version of lovely may require balatro 1.0.1 (the public beta branch)

glossy mesa
dapper helm
#

yeah now you can just download mods

glossy mesa
#

so where do i mod

#

put mod

#

oh

#

there's a mod directory

dapper helm
#

yeah

glossy mesa
#

and it goes to mods

#

ok

rare shell
#

how would you inject into a function like that?

stone brook
#

the same way you wrap any other function

dapper helm
# glossy mesa here?

should keep them in their only folders if they have more than 1 file btw, so anything with a lua + assets should be in its own folder inside mods

stone brook
#
funcs_evaluate_play = G.FUNCS.evaluate_play
G.FUNCS.evaluate_play = function(e)
  funcs_evaluate_play(e)
  -- your code here
end``` like that
glossy mesa
#

oops

glossy mesa
#

so this goes in own folder or nah?

dapper helm
#

if its just luas it can be in mods

glossy mesa
#

ok

#

perfect

#

downloads mods just to play the game while knowing the score of what they're gonna play and doesn't bother downloading other mods

stone brook
#

@wanton rapids hey sorry for the ping, how did you do the progress bars for colours? can you just pass in the {C:attention} stuff in through loc_vars/loc_defs/whatever steamodded calls it?

tranquil roost
#

Okay need some eyes that aren’t my own to gimme their thoughts

#

Drawing a Queen of hearts right now, is her hair too red?

#

I’m thinking I can’t make her too pink in case I want to make a six deck expansion, cause the star suit uses pink in that

stone brook
#

alright that didnt work

cunning silo
#

It genuinely looks amazing

tranquil roost
#

Himeko? _Confused_Dog

cunning silo
#

She just has long, very red hair, and it reminded me

tranquil roost
#

Ohhh I haven’t played that game

cunning silo
atomic eagle
#

are we allowed to post the games source code?

#

to pair with a question?

cunning silo
#

No

atomic eagle
#

ok ty

stone brook
#

just say which file+line it is

cunning silo
#

I mean, they say don’t do that

stone brook
#

alright there we go

cunning silo
atomic eagle
#

so my question is to do with standard pack ability. and the create card functio nwhen creating a card for a standard pack.

where are the bonuses decided?

stone brook
atomic eagle
#

i see seal and editions and wherer the card is decided (suit and number) but no bonus decisions

card.lua line 1707

stone brook
#

wdym bonus decisions

rare shell
#

wow great, I rerolled the card into itself (actually awesome that nothing broke)

atomic eagle
stone brook
#

it uses poll_edition in the create_card function

#

wait am i mixing up editions and enhancements

atomic eagle
#

does that not just do if its poly/multed/foil?

stone brook
#

i am

#

thats mb

atomic eagle
#

nah nws

#

i had to rethink for a sec

#

cuz mult is shared by both

stone brook
#

oh it does it in the create_card call

atomic eagle
#

it looks like its something to do with the inline if in the create_card line

#

depending on the string parsed

stone brook
#

"Enhanced" is enhancements

atomic eagle
#

but then i dont see anything in create_card or get_pool that actually does the enhancment

stone brook
#

so basically it generates a random number between 0 and 1, and if its >0.6 it chooses a random enhancement

#

in the first line in the standard pack generation if block

#

if you ctrl+f "stdset" thats the random number generator

#

its weird syntax

atomic eagle
#

i thought that just decides if it should pass "enhanced" or "base" into the create card function

stone brook
#

yea

#

so basically if it passes "Enhanced" then create_card will choose a random enhancement

atomic eagle
#

sorry my question is bad

#

i was unsure on where the create_card function does the enhancment decision

#

mb

stone brook
#

ohh

atomic eagle
#

like i have followed it through but im not sure where it says this string is "enhanced" i will now decide the enhancment

#

its like it treats both strings the same

#

common_events file line 2120 looks like the one

#

but i cant see it selecting any enhancments just the actual suit and rank

stone brook
#

so in the create_card function, once we pass "Enhanced", it becomes the _type, which informs the function which 'pool' that create_card will pull from

#

which is the "_pool" variable

#

that _pool variable contains all the different enhancements

#

in the next line, it chooses a random enhancement by using pseudorandom_element

atomic eagle
#

yes this is it

#

i think

#

ty

stone brook
#

npnp

atomic eagle
#

its so hidden away cuz it forces the base to be a forced key

#

and lets the enhanced go through to the pool

stone brook
#

i think base being a forced key is to just save on computation

atomic eagle
#

not having 2 monitors is killing me when tryna look through

#

hence the slow response

stone brook
#

all good all good

atomic eagle
stone brook
#

this is such a jank way to do it but it works...

#

technically, if the base forced key didnt exist, it should do the same thing

#

it just does a bunch of extra things it doesnt need to

#

like searching the "Base" pool, which is literally just the base type

#

also, i think you might be misunderstanding, but enhancements REPLACE the 'base' card rather than go on top of them

west hill
#

which is the mod people use to be able to spawn in jokers and rotate through editions on them?

stone brook
#

debugplus

#

probably

stone brook
#

im 100% sure on that

#

i have to deal with it in my code

#

base is basically just an enhancement that does nothing

atomic eagle
#

but on line 2100 if the string is base then it sets a forced key

#

which then skips the pool selection in the if statement after

#

then on line 2120 the card is selected

#

from my understanding

stone brook
#

like i said, im pretty sure thats to save computation time

#

if it didnt skip the pool selection, it would just choose base anyways

atomic eagle
#

o yh cuz it wont select the pool of enhancments

stone brook
#

yea

atomic eagle
#

ok i appreciate the help

stone brook
#

np np

atomic eagle
#

that was bugging me for a while

#

cuz it acts nothing like the other addons to cards

gilded vortex
#

Do you know how to edit Balatro's localization for a mod?

stone brook
#

yea the way enhancements work are unique to them

#

its kinda annoying

atomic eagle
#

yh im tryna replicate it and ima have to rip some code apart to get it to work

gilded vortex
atomic eagle
#

the conversation me and @stone brook had above kinda goes over it

drowsy phoenix
#

anyone know of a mod that adds certain jokers/cards to a run?

gilded vortex
#

Has anyone else made a Joker that adds Chips and Mult at the same time? (I guess any combination of Chips, Mult, and xMult would work)

stone brook
#

yes, but the message will only show mult

gilded vortex
#

I think if I edit the localization dictionary I can do it

#

But the question is how to edit it

stone brook
#

technically i did do that, but its because i used a completely different scoring step

gilded vortex
#

My backup option was to call calculate_joker from inside calculate_joker just to trigger itself again

stone brook
#

i did it by wrapping calculate_joker, yea

hardy brook
#

Welp, stomach's feeling better now, so back to work on Tier 3 Vouchers

stone brook
#

you can reference it if you'd like

gilded vortex
stone brook
#

outer

gilded vortex
#

Good ol' Dog

hardy brook
#

I'll come back to the harder ones like omniscience and exoplanets

stone brook
#

dog my goat

gilded vortex
stone brook
#

you might be able to get away with wrapping calculate_joker, then specifically checking for if its Dog

#

then just card_eval_status_text the chips message

hardy brook
gilded vortex
#

I was going to create a context like is_this_dog=true and use that

stone brook
#

id definitely suggest against calling calculate_joker from calculate_joker

#

it will definitely break something, and also lag

gilded vortex
#

I agree, which is why I wanted to try and mod the localization files

rare shell
#

hello yes, this is dog

stone brook
#

there is no name

#

it is all of them

#

ctrl+f card_eval_status_text

#

the ones in calculate_joker are the ones youre looking for

gilded vortex
stone brook
#

yea

#

thats how you make a second instance of the message quip

sullen bison
# hardy brook

gaff deck to make your shop even worse. Surely they could start coming with seals and editions

gilded vortex
astral glade
#

the bonus...

west magnet
#

Is it at all possible for a mod to control what cards are selected when giving you a hand?

carmine mortar
west magnet
#

Lot of mods I find end up making the game far too easy or be way too overpowered, taking the fun away. But it would be neat for a mod to slightly weight the deck to be more likely to deal you better hands based on what jokers youve got. Say you have "The Order" then its more likely to deal you cards that let you get a straight, without it just giving you a 100% chance of getting that hand

#

its sad when you have the perfect jokers, then a run dies the moment all your dealt hands dont give you the right stuff

#

A mod to tilt the odds slightly more in your favour would go a long way, and wouldnt feel super broken

carmine mortar
#

And some people (me included) just want to make funny jokers for the funny gambling game and don’t balance

At all

#

In either direction

west magnet
#

the perfect joker doesnt exist
"+100 Mult per consecutive hand played"

fallow bramble
#

"Win all rounds if you do anything"

white scarab
#

+naneinf mult if there is at least 1 hand remaining

sullen bison
#

disable the boss blind if hand would trigger ability

carmine mortar
#

I try to make thematically fun cards at the very least

tropic arrow
#

Does anyone here make mods with Balamod? I can't figure out how to structure my files so that I can use apis. It seems like a lot of mods use GE_API and I can never get that to work

rare shell
#

@stone brook rise up

#

(if you feel like it peepoheart )

stone brook
#

RAHHHHHHHH

#

hullo

#

are you using the master branch or the latest release

jovial notch
#

hi people

#

i did a thing!

tropic arrow
stone brook
#

alright gimme a sec i needa dig through ge_api to refresh my mind

hardy brook
#

Because y'know... Tier 3

sullen bison
#

Yeah, those other two vouchers are uh, bad

tropic arrow
#

I'm trying to just do the "Planet Multiplicator" example mod, but formatted with GE:inject

sullen bison
#

1 in 52 to get a rank/suit you want, ooh, it might be an enhanced card, worth about $3

hardy brook
#

O...kay?

#

Nobody asked you to redeem the vouchers

stone brook
#

why isnt my github loading

#

😭 i just wanna help a fellow balamodder

tropic arrow
#

lol I really broke it

hardy brook
#

what did you do?

sullen bison
#

I think you mistook my intention, I want to make the mod shine, not break it down. For a tier 3 voucher, it's just underwhelming. Cards are already $1, you are generally not happy to see them in your shops. So making those cards actually good, would make the vouchers actually worth it.

rare shell
#

gaff deck could also just start with smaller amount of cards imo

#

that'd be a neat angle

sleek granite
#

chungus

rare shell
#

hi autumn!!

sleek granite
#

i think gaff deck is a voucher

hardy brook
#

gaff deck is a voucher

sleek granite
#

tier 3 of the playing cards in shop voucher line, which tier 2 permits seals, enhancements, and editions iirc

sullen bison
#

only enchanments iirc?

astral glade
#

its all three

hardy brook
#

That's why I made it free and 2x more likely

sullen bison
#

My bad

rare shell
#

oh

#

wew

hardy brook
#

if it was just enhancements then I would've added edition and seals as the tier 3 option

gilded vortex
#

@stone brook @rare shell Thanks to you (and other people) I got my second Joker to work

sleek granite
#

chat should i be evil with enhanceapi

gilded vortex
sleek granite
#

DOG

astral glade
rare shell
#

can i channel my anger today into also being evil with enhanceapi

astral glade
#

bad enhancements,,,

gilded vortex
#

I do want to create "bad enhancements" in the future

fallow bramble
tall seal
#

you can pick it? or do mult jokers give mult

#

and chip give chip

gilded vortex
#

And isn't or.

sleek granite
jovial notch
#

i wanna see the chaos people unfold with it

#

(and help test it out)

gilded vortex
gilded vortex
fallow bramble
#

Ooh interesting, haven't tought of that, kept thinking I had to change "create_card" func, thanks for the info 👍

sullen bison
#

Contrivance
Gets all gains of Joker to the left.

gilded vortex
tall seal
#

or "randomly gains A or B"

gilded vortex
#

One alternative uses fewer words

tall seal
#

one alternative is better communication

stone brook
glad sedge
#

i copied everything i found from luchador joker to matador joker and replaced all about it in card and game
matador doesnt work ingame . luchador works fine. i set rarity 3 for matador. any ideas why? codes are identical i dont see a reason why this would happen

stone brook
#

i finally managed to pull it up

gilded vortex
#

why many word when few words work

tall seal
#

why word when few word?

tropic arrow
stone brook
#

GE:inject takes 1 extra parameter, which is mod_id

#

maybe thats the issue?

gilded vortex
#

@stone brook If I may ask a question, do you know if I can change the color of the square when I call card_eval_status_text?

#

I don't know if i have to because honestly I don't know what color the game uses, but I feel like +Mult shouldn't have a blue square

stone brook
severe fog
#

does anyone know where selecting played cards (during hand) is located in the files? even just file name is amazing

stone brook
severe fog
#

thank you

tropic arrow
gilded vortex
#

This is the full excerpt, maybe it helps more

stone brook
stark gorge
#

how tf do i install balamod

jovial notch
stark gorge
#

are balamod and steammodded modding any diffrent?

jovial notch
#

steammodded is more common

#

so you an use more mods

stone brook
#

balamod supports injection

#

thats about the one advantage it has over steamodded

#

i love it tho so

#

it is very good!

tropic arrow
astral glade
#

doesnt steamodded support injection too through lovely

stone brook
#

idk i dont use it xdd

stone brook
#

so you remove gsubs from the inject(path, function_name, to_replace:gsub(), replacement:gsub()) line

tropic arrow
#

Ah I see. Thank you

hardy brook
stone brook
tropic arrow
#

Makes sense

fallow bramble
#

Wait this might have not happen to you nvm

fickle elbow
umbral pilot
#

in general use steamodded injection unless you NEED the power of a lovely patch or want to make it modloader-independent

#

always use the most simple tool possible, it makes things easier in the long run

hardy brook
#

Oh we testing this already

strong swift
umbral pilot
#

I'm talking about the API, not the actual injector which installs steamodded into the game

#

I should've been more clear about that

fallow bramble
#

Oh yea the Steamodded API definitly makes things easier

gilded vortex
fallow bramble
strong swift
tropic arrow
#

Is there anywhere with documentation on steamodded though? I couldn't find anything about the apis at first glance

fallow bramble
tropic arrow
#

Ah, that is helpful thanks

gilded vortex
fallow bramble
#

👍

swift reef
#

hey do you guys know where this one mod download is ?
it was one where you could hold right click to slide and select cards really easily

#

you could also scroll up to play the hand or scroll down to discard

strange frigate
#

whats up chat, the mod im making rn keeps crashing at startup, and i cant really find whats making it crash.

#

anyone available to help?

strong swift
#

fitting

gilded vortex
#

But it's probably a syntax error

strange frigate
#

ive done that, still cant really get whats going on

gilded vortex
#

What comes next should inform you the error

#

Try searching for "Oops"

strange frigate
#
main.lua:6163: [string "--- STEAMODDED HEADER..."]:22: '}' expected (to close '{' at line 16) near 'config'```
what does this mean?
rare shell
#

something went wrong relating to line 16 of your code

gilded vortex
rare shell
#

you didn't close your brackets

#

Does anyone know the function that removes the cards after they are played?

#

😔

gilded vortex
#

Here I'd google something like "lua '}' expected (to close '{' at line 16) near"

strange frigate
#

yeah i figured, but all of the brackets that i opened on line 16 are closed

rare shell
#

ive only hacked in a way of doing that

umbral pilot
#

next lovely release will the log output to a file as well

rare shell
#

I'm deleting the cards but the sound of them moving out of bounds stays lol

gilded vortex
stone brook
#

it pops that error when youre missing a comma too

umbral pilot
#

so it'll be easier to debug when raw dogging it

rare shell
#

oh is it like

#

trying to mass delete cards or something

rare shell
#

because the way i do it is "delete" the card, then delete it again at end of round so it properly gets baleted

#

it kinda behaves like cards are still here

#

maybe the sound is played based on some table that I don't know about

strange frigate
rare shell
#

honestly if you paste your code block into chatgpt and ask it "am i missing a closed bracket in this lua code?" it usually gets it

strange frigate
#

alr ill try that

rare shell
#

listen say what you will about chatgpt but it is excellent for telling me im an idiot because i missed a comma somewhere

astral glade
#

chatgpt is good for assistance as a tool, but not as someting to generate ideas

rare shell
#

which is why i suggested it as more of a "validator" of sorts

#

theres other tools that do the same thing ftr

astral glade
#

did a whole class where we researched AI and learned to use chatgpt in an academic enviroment

#

it was so much fun

rare shell
#

okay different question: what is the cardarea of played cards? (might be stupid but I forgot)

umbral pilot
#

also ya'll should absolutely be using a lua lsp

#

like, vscode has an extension that works and will catch this sorta stuff

#

most of the time ™️

rare shell
#

oh

#

cardarea

#

i am also stupid

astral glade
#

use less evil words like silly instead of stupid

rare shell
#

i mean i run my deletion code in G.jokers for fortuno

#

this "no" implies that I'm the only stupid out here lmaoo

#

srry im an intellect devourer

umbral pilot
#

v**e?

rare shell
#

jason voorheez??

astral glade
#

chat do i open it

gilded vortex
astral glade
#

real

rare shell
#

hee hee hoo hoo

astral glade
rare shell
#

how many homestuck fans are there

gilded vortex
#

There's two of them, maybe even three

rare shell
#

balatro really is the beacon for all homestuck fans to congregate it seems

gilded vortex
#

The clowns needed a circus

rare shell
#

akai is the ringleader...

#

oh wait you already saw it

gilded vortex
#

Yes, her art is phenomenal

#

I didn't expect to find Homestuck in 2024

#

And here we are (poyo)

sleek granite
#

bingus

rare shell
sleek granite
#

how dare you

rare shell
gilded vortex
astral glade
#

this is not a bingus safe space

#

get it out of here

rare shell
#

dont make me get reno jackson piss cannon asmr

gilded vortex
#

🚿

#

😿

sleek granite
rare shell
#

Okay my solution to nonexistent cards making sound is to make their destroy animation slower lol

strange frigate
rare shell
#

not at all

#

pass the code

strange frigate
#

dms?

gilded vortex
stone brook
#

got my whole vibe messed up today

rare shell
#

or here, doesnt matter

strange frigate
#

alr

stone brook
#

was on a roll coding stuff but now i gotta go outside

#

outside...

rare shell
#

but you can find wooper outside

gilded vortex
#

You can use triple crasis pairs and write the language name to write code in multiline in Discord

rare shell
#

:)

#

i have never heard anyone describe it as that

#

but now i know that is what that is refered to as

stone brook
#

i wish i could find wooper outside...

gilded vortex
#
function foo()
    return
end
umbral pilot
gilded vortex
rare shell
#

yeah thats what i call it

#

triple graves

strange frigate
gilded vortex
#

There's no comma after 'BoolMod'

stone brook
#

i told ya it was a missing comma smh

rare shell
#

you need commas at the end of your brackets yea

#

so stuff like this?

stone brook
#

i call it triple lowercase tilde

rare shell
#
                ability = {
                    extra = {
                        penalty = 0}
                } ```
stone brook
#

xdd

hardy brook
rare shell
#
                ability = {
                    extra = {
                        penalty = 0},
                },```
#

or even

sleek granite
#

where does ability end

gilded vortex
strange frigate
#

ok so chatgpt WAS right, i just had even more issues

#

huh

stone brook
#

yea but on keyboards the shift+` key is tilde

#

and me n my friends only know tilde

gilded vortex
stone brook
#

o

gilded vortex
#

Tilde is its own key

#

and shift+~ is ^

sleek granite
#

on beyblades, tilde is its own key

stone brook
#

for me n my friends keyboards thats how we get tilde, so thats why we call it lowercase tilde

strange frigate
gilded vortex
#

I don't think you do but Idk Lua

rare shell
#

there's other stuff too

#

but yeah youre missing a lot of commas

gilded vortex
#

My brackets don't end in commas but they work

rare shell
#

do you use any programs like visual studio code?

stone brook
#

yea whatre you using to code

#

highly suggest using an ide with a lua extension

strange frigate
stone brook
#

how hard is it to code on mobile

#

i was on a roll and i dont want to lose it