#⚙・modding-general

1 messages · Page 65 of 1

gleaming talon
#

I made it so that people could use it easily

#

I even used it for one of my mod so no !
I'm enjoying doing this work especially for someone else 🙂

strange frigate
#

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?

gleaming talon
#

Post the issue here

#

does it crash at startup ?

strange frigate
#

the crash log?

gleaming talon
#

is there an error code ?

strange frigate
gleaming talon
#

what mod loader do you use

strange frigate
#

steammodded

gleaming talon
#

Send your code

strange frigate
#

wdym, the crashlog or the actual mod code

gleaming talon
#

the mod code

strange frigate
#

alr

gleaming talon
#

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

finite thunder
#

Uhh... I am having a bit of trouble with lovely I think.

strange frigate
# gleaming talon the mod code
--- 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----------------------```
finite thunder
#

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.

cursive compass
#

and you replaced the version.dll in the balatro folder with the lovely one?

finite thunder
#

Lovely is where I got the version.dll in the first place.

fickle elbow
#

redrawing face cards

finite thunder
cursive compass
#

uhhh

finite thunder
#

Game opens when I move lovely.toml out of the steammodded folder. but no mods are then working.

cursive compass
#

can you go into the steamodded folder and screenshot what you have

finite thunder
#

What needs to be in that folder?

#

the steammodded source?

#

or the injector.exe?

cursive compass
#

the source

#

it should look like this

finite thunder
#

Theres my mistake

cursive compass
#

what was it

#

out of curiosity

finite thunder
#

not having anything in there...

cursive compass
#

😭

#

yeah its just the steamodded source

finite thunder
#

does the calc work with plasma deck too?

brittle gorge
#

is looking at green seal mod a decent way to understand how the mod works and trying to make my own seals?

cursive compass
#

i think it should work with everything vanilla

iron kraken
#

allright guys, how do I do a simple print("test") and where does it print to

gleaming talon
#

sendDebugMessage

#

and use tk_debug

cursive compass
#

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

iron kraken
#

a little more thorough

#

google of "tk_debug" balatro shows no results so that's a quick dead end

cursive compass
#

isn't it just sendDebugMessage("text")

iron kraken
#

then where does that go

cursive compass
#

to the console that opens with your balatro

iron kraken
#

Yea I'm not seeing it anywhere

civic grail
#

Asking for a friend, does steammodded work with a macbook?

cursive compass
#

your game doesn't open with a console?

#

maybe thats just a lovely thing idk

#

oh wait you mean

#

where does the code go?

iron kraken
#

where does the message go `

cursive compass
#

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

iron kraken
#

python?.

cursive compass
#

yeah i think you need python to open that

rare shell
#

king with butterfly 🤯 🦋

cunning silo
rare shell
#

hold on I think I need to have atleast one flower for king

rare shell
cunning silo
#

and the other one is axes?

#

(or halbards)

rare shell
#

halberds yeah

fickle elbow
#

any idea for ink and color face cards, in terms of item held

cunning silo
rare shell
#

flower

fickle elbow
#

i still would need 2 more items for kings

cunning silo
fickle elbow
#

how would quilt work, would he just be wraped up in it?

cunning silo
#

oh wait

#

quill

#

not quilt

fickle elbow
#

ok, cool

rare shell
#

@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

fickle elbow
#

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

rare shell
#

I started making halberd king, wanted him to have some king of goat beard, and noticed that it looks like upside-down spade... blatrospade
now I'm sad that the actual spade king doesn't have this

reef fern
fickle elbow
#

btw this is all i have so far :/

reef fern
#

I see. Brando and dark purple

fathom blade
#

would be funny to see this as a mod

golden rain
#

can u mod on mac?

reef fern
#

@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

fickle elbow
dapper helm
reef fern
#

Oh sweet

rare shell
#

cooking up proton

reef fern
#

Hell yeah

fickle elbow
#

i dont think going to add particles to the pool, im probably going to have some subatomic cards that give random/specific particles

rare shell
#

i just finished it too

#

oh well

fathom blade
#

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

brittle gorge
#

can someone explain why the text doesn't show?

astral glade
#

was just gonna ask for that!

#

why do you got two INIT functions?

brittle gorge
#

isn't one for jokers and one for seals?

#

should i use just one?

astral glade
#

just one for everything

brittle gorge
#

kk

astral glade
#

also theres an API for seals now

fickle elbow
# rare shell

i can probably still use it in subatomic cards, just under a different name

astral glade
rare shell
#

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

brittle gorge
astral glade
#

the slug

brittle gorge
#

ohh

astral glade
#

needs to end in _seal

fickle elbow
#

probably going to go by a different name tho

gilded vortex
#

Between Balamod and Steammodded what would people generally recommend to write mods for?

fickle elbow
#

like how uncertainty principle is quantum flux

carmine mortar
strong swift
carmine mortar
gilded vortex
fickle elbow
#

Quantum chaos, people trying to make bridge the gap of theories and classical mechanics. that one sounds like fun to make

brittle gorge
iron kraken
#

can steamodded inject lua in the middle of functions

astral glade
#

like "Red Seal"

brittle gorge
#

ohh , why the "_"?

fickle elbow
#

me using chatgpt as a notes app

dapper helm
#

why

fickle elbow
#

yes

dapper helm
#

at least use a private discord

fickle elbow
#

no, chatgpt

dapper helm
#

keep it on the same app

fickle elbow
#

no, it must be inconvenient for me

hardy brook
#

Lol

#

Meanwhile i use Visual Studio Code for notes

dapper helm
#

oh god

fickle elbow
#

i once made chatgpt give therapy to itself

gilded vortex
#

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

hardy brook
hardy brook
#

The last one is a joke

dapper helm
#

why can't you 2 be normal

primal minnow
gilded vortex
hardy brook
#

The heck is normal?

primal minnow
fickle elbow
#

ima thread subatomic ideas

strong swift
primal minnow
#

It's just a measure of how average someone is

hardy brook
#

I only am using a discord thread post for notes on mobile

fickle elbow
#

Subatomic Ideas

hardy brook
gilded vortex
dapper helm
fickle elbow
brittle gorge
astral glade
#

color needs to be something like HEX('ff00ff')

#

also you are not registering it

brittle gorge
#

ok , do i need to load the sprite like i did with the joker?

astral glade
#

yes

brittle gorge
#

perfect

rare shell
#

any tweaks I should do?

#

halberd king looks like it is referencing something but fails lol

dapper helm
#

the queens heads look a bit small

brittle gorge
rare shell
dapper helm
#

good

astral glade
#

and change the atlas on the seal

brittle gorge
#

like?

astral glade
#

to the name of the new sprite

brittle gorge
#

the name of the sprite is golden_egg_seal.png

#

which is written in there

astral glade
#

yeah but the sprite is still SplatJokers

brittle gorge
#

i changed it to Golden Egg Seal but still broken

astral glade
#

change it on the seal too

brittle gorge
#

where

astral glade
#

SplatJokers to the new sprite name

gleaming talon
#

@cursive compass it is done

astral glade
#

also the hex value needs HEX() around it

dapper helm
#

it is done

brittle gorge
#

ok

gleaming talon
#

I forgot how my mod worked for a good 30minutes before understanding what was wrong

cursive compass
fickle elbow
#

i forgot to add i still don't have art for the back of the subatomic deck, and 7 booster packs for subatomic cards :/

astral glade
#

HEX('6c3062')?

brittle gorge
#

forgot the commas

#

the air thinghys

#

whatever they are called

#

but at least the sprite loaded

dapper helm
#

chat i need caffeine to lock in but its already 9pm, do i make coffee anyway or get nothing done today?

tranquil roost
#

New idea for a joker, Norton antivirus

dapper helm
#

why that one in specific

tranquil roost
#

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

dapper helm
#

imagine bonzibuddy joker that stays on your screen till you close the game

#

get it on one run and it just doesn't leave

rare shell
#

awesome

dapper helm
#

2 pair gaming

rare shell
#

the boys

dapper helm
#

where is my other boy...

rare shell
#

haven't added him yet

#

fleuron and halberd sin jokers will give +12 mult instead of +4

fickle elbow
#

based

dapper helm
#

common halberd W

rare shell
#

at the same time this'd make wild cards kinda goated

dapper helm
#

sin jokers give 3 mult in 1.0.1 btw

rare shell
#

will need to rebalance some things at some point

dapper helm
rare shell
#

"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)

dapper helm
#

i think wild cards can have a buff, as a treat

rare shell
#

well that's fair

#

we'll see

#

playtesting is the best way to determine

fickle elbow
#

instead of rerolling

rare shell
#

I feel like I can add a joker that specifically unlocks the exotic suits in the run

dapper helm
#

i mean they can already give like +8 or whatever from onyx agate and +50 chips from arrowhead at the same time

rare shell
#

and does nothing besides that

dapper helm
#

+12 isn't too much more

fickle elbow
#

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

rare shell
#

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

white scarab
rare shell
rigid jewel
#

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

rare shell
#

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:

  1. 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
  2. I think UI problem could be handled differently
jovial notch
#

why did merry andy just yell at me for losing

#

what one of my mods got rid of jimbo yelling at me

dapper helm
#

oh yk, the one

rare shell
#

everyone is here

#

satisfying

cunning silo
#

Oh this is so satisfying

dapper helm
gilded vortex
#

Missing one for the full rainbow

dapper helm
#

do not remove the andy trash talk

rare shell
#

missing one for the full rainbow and for the seven sins

jovial notch
#

hmmmm

#

Coro if you tell me i will downgrade the mod BUT will add the andy trash talk to my personal one

dapper helm
#

huh

iron onyx
#

okay so

dapper helm
#

good deal

iron onyx
#

how the hell do i pass row and column arguments into a new page function...?

jovial notch
#

autmn how dare you

#

im stealing your angry andy code

fickle elbow
#

i've got 6 jokers for suits too :]

jovial notch
dapper helm
#

hmmm

#

sure

jovial notch
#

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

slim swallow
jovial notch
sleek granite
#

sorry i was supposed to remove that code

gilded vortex
jovial notch
#

Hm?

sleek granite
#

im very bad at all of this you see

astral glade
jovial notch
#

Not mine ofc

gilded vortex
# jovial notch Hm?

It's a joke about TBoI having dice as items but also the earlier tweets from the official Balatro account at Edmund McMillen

jovial notch
#

Ah

#

I was thinking more DnD but yeah I see it!

gilded vortex
#

By the way, do you know where Balatro store saves?

jovial notch
#

(Watched videos, never played)

fickle elbow
jovial notch
#

I ain’t a good modder

gilded vortex
#

I wanted to back up my main one before I start modding

jovial notch
#

oh btw I need ideas

#

Uh

astral glade
jovial notch
#

What should a D20 do in balatro? (Think dnd)

#

Same goes for the rest of the dnd dice

gilded vortex
sleek granite
#

mate i know what twitter is

gilded vortex
white scarab
# astral glade :3

suit and rank packs would be a great way to add new suits and ranks in a large modpack

gilded vortex
astral glade
#

ive also figured out a super easy work flow for making booster pack sprites

inland vessel
astral glade
#

so if anyone wants one i can make some

sleek granite
#

themed booster pack with suits-matters jokers/consumables?

jovial notch
rigid jewel
#

Stealing Murphy's tweet I see...

sleek granite
#

rip isaacmod then

#

ig

jovial notch
#

wait holdup

jovial notch
#

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

sleek granite
#

what the fuck is that random call

fallow bramble
#

Also why is that random superior to 1

jovial notch
#

a number 1 thru20

#

idk

#

what is it supposed to be ;-;

sleek granite
#

did you code a random function that takes a string?

jovial notch
#

ok but if i make it not a string would it work

sleek granite
#

no

#

wtf is random()

jovial notch
#

its like pythons randrange isnt it?

#

but for lua

sleek granite
#

A) random() doesnt exist

#

B) use pseudorandom(seed)

jovial notch
#

whats (seed) supposed to be

#

a number?

sleek granite
#

pseudorandom(pseudoseed(string))

#

like its used literally everywhere in the game

jovial notch
#

so like

#

pseudorandom(pseudoseed('roll20'))

white scarab
#

"roll20"..G.GAME.round_resets.ante

#

That’s the most vanilla way to do it

#

as the string argument

sleek granite
#

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

jovial notch
#

ik you reccomended it yesterday i was busy editing stuff

sleek granite
#

syntax highlighting alone would help spot erroneous data types like the string random

wheat mantle
#

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

sleek granite
#

7zip can open Balatro.exe

jovial notch
#

wait rly

sleek granite
#

yes

wheat mantle
#

I’m dumb with Lua

sleek granite
wheat mantle
#

Kinda except it’s all cards scored that count, but every 7th scored card adds seven chips to the joker

gilded vortex
#

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?

sleek granite
#

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

wheat mantle
#

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

fallow bramble
#

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?

sleek granite
#

a lot of modding is just "find thing thats similar to what you want to do, and then do that but with some changes"

strong swift
fallow bramble
#

The more I code in Balatro the less I know how to code it in

#

Also Autumn what happened to the thorn?

gilded vortex
strong swift
#

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

gilded vortex
sleek granite
#

collection should be automatic if youre using steamodded apis

gilded vortex
#

Not sure what's the issue since I followed the instructions

strong swift
#

you probably didnt then

#

did you use the regular injectors or lovely

sleek granite
#

lovely >>>>>>>>>>>>>>>> classic injector

gilded vortex
#

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

sleek granite
#
  • 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

strong swift
#

working on booster pack api

#

(no)

astral glade
#

a lot of apis

sleek granite
#

tbf maybe i just have unrealistic expectations because when i joined there was Many Update back to back

#

NotEnoughAPIs

rare shell
#

Did they ever figure out why lovely wasn't working on new beta

gilded vortex
sleek granite
#

just needed to change the dll they're pretending to be

strong swift
#

fun fact: you can put the lovely dll in your system32 folder to add steamodded to windows (lies and misinformation)

sleek granite
#

i would like to publically apologise for my existence
that is all

strong swift
#

nah youre fine

jovial notch
#

uh

dapper helm
finite thunder
#

I love and hate how the calculator mod tells me what my EXACT score will be, even after all of the RNG based elements.

dapper helm
#

its no fun so i don't use it

sleek granite
#

then dont use it

jovial notch
#

they should let you disable that so that you have a range of what there is

finite thunder
#

Its love AND hate lol.

jovial notch
#

(then again i dont use it because i like doing the math)

dapper helm
jovial notch
#

oh well then thats nice

strong swift
#

so whats the problem here

jovial notch
#

no idea

finite thunder
#

There was no problem, it was a comment.

strong swift
#

hm

dapper helm
#

no problem just an opinion

finite thunder
#

the comment was how I LOVE and HATE that about the calculator lol.

fickle elbow
#

8:

umbral pilot
#

last I heard the dev implemented a feature that does that automatically

boreal ibex
#

fun fact: you can delete system32 for more space! (do not)

dapper helm
#

how much space?

wheat mantle
#

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?

boreal ibex
jovial notch
#

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

boreal ibex
jovial notch
#

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

fallow bramble
dapper helm
boreal ibex
#

imagine how much space youd have if you entirely deleted Program Files and Program Files (x86)

dapper helm
#

you're so right

#

life hack found

astral glade
#

so real

jovial notch
#

hear me out

#

if a d20 had an ability in balatro

#

what would it be

#

(other than the stupidly rare chance factor)

fallow bramble
#

Different effect, from low worst to high best

thorny meteor
fallow bramble
#

Roll a 1 and it's game over 😈

jovial notch
dapper helm
#

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

gilded vortex
#

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?

gilded vortex
#

Like via another mod or in the mod itself

jovial notch
#

yall have any ideas abt the other dice by chance?

#

i aint got the creative brain for abilities rn

finite thunder
#

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?

dapper helm
#

smh smh imagine not being creative

jovial notch
#

(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

dapper helm
#

d4 = rolled number as XMult

jovial notch
#

here

jovial notch
#

ill make a todo list :D

lavish jackal
#

thanks to @sand thicket for this awesome suggestion

#

(it starts at 8)

fallow bramble
grand geode
#

that'd anti-synergy tho

fallow bramble
#

Yea that's the joke

lavish jackal
#

yep

grand geode
#

its 6am my funny bone isnt working

lavish jackal
#

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

grand geode
#

gg run won

finite thunder
#

Not necessarily.

restive dock
#

how do i fix jellymod joker textures either copying other textures or just not being there?

fallow bramble
#

Jellymod has been renamed to being outdated

rigid jewel
#

xdd

restive dock
fallow bramble
#

Dunno, never played the mod

primal latch
#

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?

astral glade
#

steamodded with lovely is the best'

#

most widely used i mean

lavish jackal
#

Steamodded has by far the best dev experience of the bunch imo

reef fern
#

what about steamodded makes it easier for devs compared to the others

#

sorry i dont know much about modding

fallow bramble
#

A lot of mods uses it so they can be used for references

reef fern
#

ah

#

thanks

lavish jackal
#

not just that

#

proper API as well

reef fern
#

i see ok i assume almost all devs are using steamodded then?

lavish jackal
#

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

kindred swallow
#

Okay

lavish jackal
#

setup code so to speak

primal latch
#

Okay, so Steamodded has its own API built in already?

lavish jackal
#

mhm

fallow bramble
#

Yes

primal latch
#

fantastic

lavish jackal
#

you can add Jokers, Vouchers, Planets, Spectrals, Tarots

fallow bramble
kindred swallow
lavish jackal
#

things get dicey when you start adding custom consumables and such

iron onyx
lavish jackal
#

thats when you get into the "ah shit" territory

jovial notch
#

fellas what would a d12 do (1 in 12 chance or what per num, think consumable)

fallow bramble
fallow bramble
#

But that's for Joker specificaly

jovial notch
lavish jackal
#

Dungeons and Dragons reference

jovial notch
primal latch
lavish jackal
#

yep

iron onyx
#

i think that's it

lavish jackal
#

I'm adding 2 consumable types

#

It's hell on earth

kindred swallow
lavish jackal
#

not quite

iron onyx
#

enhanceAPI is

ready for beta testing~!

lavish jackal
#

it's because you have to

#

insert UI elements

#

override methods

rigid jewel
#

Evil Jonkler idea #2

lavish jackal
#

define new behavior

jovial notch
kindred swallow
#

Ooh okay okay

stone brook
#

hello modding chatroom again i had a nap because i had a terrible headache

rare shell
#

its

#

$100

#

not

#

100$

jovial notch
rare shell
iron onyx
reef fern
iron onyx
#

yeah, i'm gonna release it in a forum post soon

jovial notch
jovial notch
lavish jackal
#

have you seen apple juice yet

#

EvKem came up with a cool effect for it

iron onyx
#

just gotta figure out what category it fits under and figure out who i gotta ping

lavish jackal
primal latch
#

hmm

lavish jackal
#

apple juice..

primal latch
#

so does that proc when you use your last discard? more than once in a round, or?

lavish jackal
#

as many times as it can hold

#

you decide when to stop

#

and yeah

#

it procs on last discard use

iron onyx
#

so essentially, it has anti-synergy with mystic summit?

lavish jackal
#

correct

rigid jewel
jovial notch
#

100 on gain?

#

rip

rigid jewel
rare shell
lavish jackal
#

i mean the effect

primal latch
#

lol at the fps counter
in Balatro

rare shell
#

yee

#

today has been a funky day and i feel like straight Garbage so sorry if im slow to respond

lavish jackal
#

thats okay

stone brook
iron onyx
#

also, any suggestions on what i should use for the forum post image for EnhanceAPI?

lavish jackal
#

probably just the xcards i guess

stone brook
#

i had this issue with my quick restart mod, the "Choose your next Blind" text is tied to that

rigid jewel
#

Only thing I mess with is G.FUNC.evaluate_round()

iron onyx
#

i mean, i was planning on releasing those separately, but... yeah, probably best to just lump them together somehow, huh?

stone brook
#

huh.

#

well.

#

goodluck!

rigid jewel
#

Forgot to defeat the blind xdd

#

Ok it's fixed

astral glade
#

chat is this real?

fallow bramble
#

no

astral glade
#

this is so sad........ codex arcanum has only 7 packs and dont take up a full page

lavish jackal
#

i still need to add the Aspect booster pack into the game

astral glade
#

do it

lavish jackal
#

SMODS has a booster api rght

astral glade
#

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

gilded vortex
#

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?

astral glade
#

that means you have an error with the lua compiling

#

like a misplaced character or mispelling

primal latch
#

is there not a log for that case?

gilded vortex
#

If there is, I couldn't find it

rare shell
astral glade
#

you are the bane of my existance

gilded vortex
#

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

fallow bramble
lavish jackal
#

do you want my layers lyman

#

i can send you my shading layer

#

its set to hard light

astral glade
#

ive got 6

#

5

#

i cant count

gilded vortex
lavish jackal
#

you guys name your layers?

fallow bramble
#

Then launch the tk_debug_window with Balatro and it will give you actual logs

rare shell
#

its more so that like

rare shell
#

the symbols i had set to a specific opacity

#

and i forgor

astral glade
gilded vortex
#

I thought the command prompt that loaded alongside Balatro was already the debug window

rare shell
#

its a whole Process

lavish jackal
gilded vortex
#

But as I said, it closes automatically when Balatro crashes

fallow bramble
#

Yea but this one won't close with Balatro if it crashes at the beginning

rare shell
#

i think my fakemon spritesheet is actually like that lmao

gilded vortex
fallow bramble
#

Google "how to run a python file"

#

(Sorry I'm too tired to give better answers)

gilded vortex
#

I mean, I can run Python from the command prompt

primal latch
#

python <python file>

gilded vortex
primal latch
#

a moment ago you literally said "How do I use it then?", I was just trying to be helpful 🤔

gilded vortex
#

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)

fallow bramble
#

Yea do that, run it

#

oh

#

does it close too on crash?

stone brook
#

does anyone know when DEMO_CTA state is used?

gilded vortex
#

Okay, I fixed an extra curly bracket and got another crash. This one doesn't close the game. Progress.

rigid jewel
#

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!

pale anvil
#

Hey anyone know how to add two effects to a joker, seal ?

fallow bramble
#

There's no "+" when you gain money no?

shy pivot
#

but is the joker still able to be deleted or transformed?

rigid jewel
#

Forgot about that ngl

shy pivot
#

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

primal latch
#

that's actually not bad, with the joker that gives you mult based on sell value

shy pivot
#

yeah, that's the first strat i thought of

#

but probably not all that useful outside that

primal latch
#

eh, the cool jokers are the ones that don't synergize except for specific cases, very satisfying when they do though

pale anvil
primal latch
#

looking at the api wiki, there seems to be no api implementation for new stakes?

rigid jewel
#

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

#

:]

lavish jackal
#

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

gilded vortex
#

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 @_@

lavish jackal
#

oh god no I have to code an entire new ability system oh jesus christ what have i done

primal latch
#

might as well just fork the api and make a pull request after xD

gilded vortex
#

Has anyone else modded a Joker that triggers cards multiple times?

gilded vortex
gilded vortex
#

Wait, can I post it here?

primal latch
#

rules say source can't be shared, but that it can be discussed in this channel
idk

gilded vortex
#

It's line 674 of state_events.lua

primal latch
#

I'm on the beta, is it eval_card?

gilded vortex
#

I guess eval.joker.repetitions isn't a number as a result of my code

primal latch
#

looking at it, repetition is a boolean

gilded vortex
#

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

primal latch
#

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

jovial notch
#

question

#

wait nvm

gilded vortex
#

Which suggests that self.ability.extra is defined elsewhere

fallow bramble
#

game.lua is your best bet

gilded vortex
#

I think, anyways, Idk Lua syntax

primal latch
#

lua is all tables, so

fallow bramble
#

That's were jokers are initially built

gilded vortex
#

Hmmm, there it seems to be defined as just 1

primal latch
#

yeah, it seems like extra+1 is just incrementing

#

hmm

gilded vortex
primal latch
#

I'm looking into it

gilded vortex
#

It works!

fallow bramble
#

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

gilded vortex
fallow bramble
#

Well it was worth writing this text lol

gilded vortex
lavish jackal
gilded vortex
#

Since the repetition itself only uses extra

lavish jackal
#

i need to look at it

#

not calculate_joker

#

calculate

fallow bramble
#

There's none it was shortened

primal latch
sleek granite
gilded vortex
#

Anyways, my artwork is sized wrong, now I need to fix that

lavish jackal
fallow bramble
lavish jackal
#

passive effects without cards with all the context of calculation logic

sleek granite
#

i cant guarantee im helpful

lavish jackal
#

thats ok

gilded vortex
primal latch
#

weird, Seltzer's repetition is specifically 1 instead of ability.extra

gilded vortex
#

The file I have saved versus how it looks in-game

fallow bramble
fallow bramble
primal latch
#

ah, that makes sense. so extra isn't necessarily for repetition, but for other attributes

fallow bramble
gilded vortex
gilded vortex
#

Maybe I need to add a file to the x1 folder?

fallow bramble
#

The joker in the x2 folder needs to be double the size of x1

latent glade
#

someone knows how to unlock the google blocks?

gilded vortex
robust carbon
#

use the lovely method otherwise

gilded vortex
#

And then you can undo the unblock

gilded vortex
latent glade
sleek granite
#

use lovely instead

latent glade
#

i did it

primal latch
#

does anyone know where the stake logic is in the source?

sleek granite
#

idk what everyone's obsession with the classic injector is when lovely is Right There

gilded vortex
fallow bramble
primal latch
#

so is there a reason to use extra instead of an arbitrary key for things outside the scope of the regular table values?

sleek granite
#

whats a regular table value

#

whats extra

primal latch
#

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

fallow bramble
#

Tbh I always use extra cuz for some reason some variables aren't written the same or other weird gimmick 💀

fallow bramble
primal latch
lavish jackal
primal latch
#

sorry if I'm asking a lot, I haven't familiarized myself with the source much yet

lavish jackal
#

like for example if I have an ability that needs to store some values like, played hands or such

primal latch
#

gotcha

fallow bramble
#

If you're not on the experimental version line 267 of card.lua has a list of usable non-extra variable

stone brook
#

extra is literally that: extra values you want saved

fallow bramble
#

Oh

gilded vortex
fallow bramble
#

Go in card.lua and ctrl+f "self.ability = {"

primal latch
fallow bramble
primal latch
#

because private variable or?

fallow bramble
#

Because you'd get an error

#

self.ability has preset elements

fallow bramble
stone brook
#

yea what sdm said

#

set_ability only takes certain keys

primal latch
#

I see, thanks muchly

fallow bramble
#

Tbh I should clean my code and stop using extra when not needed 😅

stone brook
#

meanwhile i went from using ability's keys to exclusively using extra

fallow bramble
#

I've checked and all jokers who needed ability values have extra in it 😅

lavish jackal
#

tbf

#

many jokers in balatro

#

use extra

sleek granite
#

i thought set_ability was for enhancements

lavish jackal
#

where it wouldnt make a difference to not use it

stone brook
#

does anyone know where the card area for the deck overview is?

stone brook
sleek granite
#

but mainly used for enhancements

#

since you're not usually changing the center of anything else

stone brook
#

all cards get set_ability called on it on init

#

(i didnt know set_ability gets called on enhancements thanks for that)

sleek granite
#

enhance your 2 of spades with Canio

iron onyx
#

hey uh

#

i thought there were talks of an "extra" debug menu at some point...?

#

whatever happened to that?

stone brook
iron onyx
#

thank you!

stone brook
#

i will once again

#

curse discord forum search

#

i wish eternal bad luck to whoever made that

iron onyx
#

yeah. why the hell doesn't it show debugplus when i search debug?

stone brook
#

it only shows full match words

#

so since debugplus is one word, its not debug

#

so yea.

iron onyx
#

man

#

anyway uh

cobalt wedge
#

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

sleek granite
#

the tutorial is greatly myst

stone brook
#

the easiest thing is to just find a very simple one that someone else made and study it vigorously

#

yea shoutout myst

sleek granite
#

myst when documentation

stone brook
#

i gave up on documenting my code...

cobalt wedge
#

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?

stone brook
#

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

cobalt wedge
#

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.

stone brook
#

interesting

#

how the hell did you do that

#

i am once again asking how i access the deck overview cardareas

sleek granite
#

whats a deck overview

stone brook
#

this screen

sleek granite
#

well with that information maybe someone smarter than me can help you

fallow bramble
stone brook
#

thank u

#

my goat

rare frigate
#

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

rare shell
#

debug mode is used for spawning jokers

#

deck creator mod lets you set up a deck

fallow bramble
stone brook
#

yea immolate is the way to go if you dont want to gigacheat

#

that one finds seeds with certain things in it

rare frigate
#

Copy thx guys. Is there a short read about where to place mod files im kinda slow

rare shell
#

the steamodded github

rare frigate
#

right sounds good ty

stone brook
#

im going to cry

#

the deck overview is 3 different uibox functions deep

#

nodes[1].... nodes[1]....... nodes[1]...........

jovial notch
#

anyone know websites/programs that let you draw and save images more than 3 times a day

stone brook
#

ok you know what im just not going to do this

dapper helm
fallow bramble
#

Can cards have any field? I don't see where "vampired" is defined

stone brook
#

i just wanted to do mild ux improvement...

cobalt wedge
#

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

boreal ibex
#

i believe photopea lets u save freely too

fallow bramble
sleek granite
#

lua doesnt care

#

everything is just a table

fallow bramble
#

What if everything on Earth was a table....

jovial notch
#

lua sees a dog and is like "yo that shit has PROPERTIES from a CARD"

dapper helm
fallow bramble
jovial notch
uncut meteor
#

hey guys where do i install mods ?

#

is there a specific channel?

stone brook
sleek granite
#

yes, this one

uncut meteor
#

wich article

pale anvil
rigid jewel
#

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

jovial notch
#

cuz imworking on an entire set of dnd dice-

rigid jewel
#

I just thought that an RNG evil jonkler would be really fun

sleek granite
#

why are you making holkers

jovial notch
#

?

jovial notch
#

high roll gives 2 * roll mult and low roll gives roll * (chips^2)???

#

somethibg along the lines of high = mult and low = chips

iron onyx
#

maybe since jackpot is x1.5

#

you could roll with that and just

rigid jewel
#

Good idea but this is meant to be a joker with strong risk

iron onyx
#

make high roll +10 mult per joker and low roll +50 chips per joker

rigid jewel
#

So both high roll and low roll being positive is kinda iffy

jovial notch
#

hmm

iron onyx
#

or have it be lower chip value

#

idk

jovial notch
#

how about

#

low roll is - mult and high is + mult

iron onyx
#

maybe low roll is just "this has no effect"?

jovial notch
#

like -mult(roll) or +mult(roll)

pale anvil
#

is G.discard a function for the game?

rare frigate
# rare shell the steamodded github

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

pale anvil
#

i had to turn my antivirus off

#

run it turn it back on

rare frigate
jovial notch
rare frigate
pale anvil
#

not sure did you make a mods folder already?

jovial notch
rare frigate
jovial notch
#

a trojan is something that injects its code into another program

#

while MOST are bad

#

steammodded is not

pale anvil
#

go to %appdata% then balatro and make a mod folder

#

drag mods into that an youre good

jovial notch
#

however most antivirus do not know this and so they say "GET THAT OUTA HERE"

jovial notch
pale anvil
#

yee

rare frigate
rare frigate
jovial notch
jovial notch
#

make sure i had the right program n such

rare frigate
#

Does the mod folder need a specific name?

pale anvil
#

mods

jovial notch
#

also now every time you do win + r the command to get back will be pre loaded (for adding more mods)

rare frigate
#

Just “mods” in this directory and then I just download them into that folder

pale anvil
#

yes sir make sure its a folder

steep prawn
#

i booted up the game on thunderstore and now this keeps pooping up, any ideas on how to stop this from happening?

pale anvil
#

you using thunderstore to mod?

jovial notch
#

whats thunderstore

pale anvil
#

3rd party app for mods

jovial notch
#

ah

rare frigate
steep prawn
#

i thought it would work and now that keeps coming when i open the game from steam

rare frigate
#

Thats incredibly simple

pale anvil
#

yup

#

mods are very simple i learned that in the minecraft days lol

rare frigate
#

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.

pale anvil
carmine bough
#

i cant beat the game no matter what omg

pale anvil
#

then just load from steam and itll be modded

pale anvil
carmine bough
#

25 hours in

#

im losing sanity

jovial notch
#

haha yeah that happens sometimes

pale anvil
#

lmao once you learn tho the game is crack

jovial notch
#

im missing 3 separate games limited time events to mod balatro just because its fun

sleek granite
#

beat FOMO marketing with this one simple trick

pale anvil
#

on god my boi wants me to grind tekken but i cant w balatro out lmao

lavish jackal
#

Balatro > live service games

jovial notch
#

(those being splatoon, fortnite, and the family game happening in the other room)

dapper helm
#

theres been like 3 big updates for other games i play and i haven't touched any of them in favor of balatro

sleek granite
#

reject live service, embrace jimbo

dapper helm
#

:jimbo:

#

i don't play live service tho, just a bunch of bullet heaven/survivors games

sleek granite
#

20mtd balatro mod when

dapper helm
#

u should make that

sleek granite
#

ill put it on The List

astral glade
#

doesnt seem very correct

dapper helm
#

i love the list its where all my ideas are

pale anvil
#

im so close any help?

wanton rapids
umbral pilot
#

they're the same color

wanton rapids
#

idk how i can not keep this in so

#

without doing a lovely patch which the mod isn't targeting

umbral pilot
#

I can't help you with the patch, but I've got no idea on how to fix that otherwise.

wanton rapids
#

also the r2modman pr got accepted

sleek granite
#

LETS GOOOOOO

#

also if you want to forbid your cards from being negative you can try to override the Card:set_edition() function?

grand geode
wanton rapids
#

no they can be negative

#

it's just the colour being inverted is a bit weird

grand geode
#

no i think it's fine

#

negative inverting colors is intentional

sleek granite
#

you could try rendering the color part as a separate sprite?

wanton rapids
#

nah it's fine tbh

dapper helm
sleek granite
#

i know vouchers apply a shader to only part of the image too

grand geode
#

or you could change the sprite to Deep Blue? when it's negative

sleek granite
#

yellowless behavior

lavish jackal
#

autumn i have a problem with aliasing draw cards to deck

rare shell
#

gn chat

lavish jackal
#

it seemingly overrides it fully

sleek granite
#

gn lyman

rare shell
#

i hope the night treats everyone well

grand geode
#

gn lyman

#

the night is non-existent

sleek granite
#

akai you need to call the aliased function within the new function

lavish jackal
#

ohhh