#⚙・modding-general

1 messages · Page 58 of 1

grand geode
#

lovely

#

(meth summoning ritual

pale anvil
#

i think i broke it

fickle elbow
#

:0 progress

fallow bramble
#

The card that stares into your soul

tranquil roost
#

How’s you guys’ mods going?

fickle elbow
#

i don't know

sleek granite
#

mine is dead

tranquil roost
#

Oof

sleek granite
#

i didnt feed it for one day

tranquil roost
#

At least you didn’t feed your mod after midnight

fickle elbow
#

i over feed mine

tranquil roost
#

I did and now I’m being eaten alive fml /j

fallow bramble
sleek granite
#

people are voting for my mod to be op so im happy

grand geode
#

now i will die for the next five days and then add exactly one thing to one of my mods

fickle elbow
#

how does the game add seals in here?

sleek granite
#

iunno jimbo

rare shell
#

cruel

sleek granite
#

its not a lie

grand geode
#

anything related to ui is quite cruel indeed

iron onyx
#

man

#

now Xmults are being hard to replicate

sleek granite
#

ex-mults...

iron onyx
#

i genuinely don't understand lua

#

i don't think there's anything i'm doing wrong here

#

and yet the eldritch value initializes as fucking NIL

sleek granite
#

sounds like it might be a scope thing idk

wanton rapids
#

where is this?

iron onyx
#

in a fake localization method i'm making

wanton rapids
#

and where are you printing eldritch from

iron onyx
#

a function i've created to print table values legibly using recursion

sleek granite
#

so eldritch is local to þe localization meþod

neat crater
#

hey can somebody show their code of how to register jokers and single sprites? im trying to register 3 jokers, but it crashes when it tries to load the third one

iron onyx
neat crater
#

(with no crash message)

rare shell
#

what is this card area? How can I access cards here? (it's booster pack's cards)

fallow bramble
#

Iirc MystJokers have a Joker that interacts with Booster Pack

rare shell
sleek granite
#

it might be G.play

#

þat gets used for a few þings iirc

iron onyx
#

really? huh.

#

but regardless of efficacy, this print table method has worked

rare shell
#

I use sendDebugMessage(table.concat(your_table)) a lot

sleek granite
#

þats a lot of characters to write print(table.concat(your_table))

rare shell
sleek granite
#

i havent touched packs yet sorry

#

check codex?

rare shell
#

huh

#

I'm almost certain that I've tried G.pack_cards before but it always returned nil

#

will try again

sleek granite
#

dvrp has also screwed wiþ packs

rare shell
#

this letter drives me crazy 🤪

sleek granite
#

by which i mean þey screwed up packs (/pos)

#

you þink þis is bad?

rare shell
#

my brain reads that as 🅱️ and not as "th"

sleek granite
#

þen you are brainrotten and þere is no saving you

#

:)

#

have a nice day :þ

rare shell
#

I'm not ben sorry

#

🤪 🤪

round oar
rare shell
#

pell pae not goz fude

rare shell
#

autumn on her way to confuse every person thats not well versed in 18+ years of online english vernacular

#

wait wrong tamari

#

we must go even further

carmine mortar
rare shell
#

well it is english

#

olde english

carmine mortar
rare shell
#

ƿell i am a proper rules laƿƿer þank you very much

#

levels of 🤪 increased

#

its infectious

sleek granite
sleek granite
#

tamariyam

round oar
#

meɪ æz wɛl ʤʌst juːz fəʊˈnɛtɪks æt ðɪs pɔɪn

rare shell
#

WE AGREE

#

I understood only "at this point"

sleek granite
#

þat even i cant read

#

chat good news

#

þe trees im allergic to are blooming

#

🤧

round oar
#

əˈkɔːdɪŋ tu ɔːl nəʊn lɔːz əv ˌeɪviˈeɪʃᵊn ðə z nəʊ weɪ ə biː ʃəd bi ˈeɪbᵊl tə flaɪ.

rare shell
#

bloke behavior rn

sleek granite
#

so what if i merge dankranks into moreconsumables, who would stop me

drowsy rose
#

Y'all zonked up wtf

sleek granite
#

þat sounds like þe appropriate reaction to what i just said so wiþout furþer ado, i'm doing it

rare shell
#

despair

fickle elbow
#

my name is fine

sleek granite
#

lyman þere'll be a config hush

rare shell
#

50kb extra size...

#

im gonna starve

fickle elbow
#

i think it'd be funny

sleek granite
#

eat my pants also dankranks is comedic genius

fallow bramble
#

Modding chat lost its mind, it's over...

rare shell
#

its joker

sleek granite
#

we had one? maybe between all of us

rare shell
#

jimbover

fallow bramble
#

Some would say jimbover

#

LOL

fickle elbow
rare shell
#

how many layers of nodes are you on

drowsy rose
rare shell
fallow bramble
grand geode
#

balatro modding is a hivemind

rare shell
#

wrong image

rare shell
fallow bramble
#

Jimbo to Jimbo

fickle elbow
#

there we go

rare shell
#

this really makes me feel like im on node[node[node[1]]] rn

fickle elbow
#

real

rare shell
#

balatrojoker〽️ balatrojoker

#

doh I missed!

#

i had a dream where i animated fortuno bodyslamming jimbo

fallow bramble
sleek granite
rare shell
#

Jimbo communication aborted

sleek granite
rare shell
sleek granite
#

hold on i gotta put þat song on

rare shell
#

(i forgot to turn off ping, i have accrued -2 karma)

#

(i will not achieve moksha stuff )

sleek granite
#

chat is þis real

fickle elbow
#

no

sleek granite
#

ok

fickle elbow
#

its all in your head

sleek granite
#

wþf am i doing

rare shell
#

autumn every time i read the thorn i just think you're talking like its 2007 myspace

#

þeh penguin of doom!!!

sleek granite
#

i never had or saw a myspace it was before my time

rare shell
#

chat do you know how to access the cards in booster packs 🥺

#

I feel stupid

#

uhhhhh

#

vague gesture at codex

#

i do not know how feder did booster magic

sleek granite
#

code: x

fickle elbow
#

you don't wanna look there its mostly ui

rare shell
#

yeah I simply want to apply enhancement to cards when opening booster packs and that's it!

#

maybe look at the vouchers?

#

i forgot the playing card one

sleek granite
rare shell
#

erm awkward...

fickle elbow
#

Let that sink in

rare shell
#

well that just happened...

#

okay this is crazy

wanton rapids
sleek granite
#

why not check betmma vouchers i þink at least one affects booster pickpacks

rare shell
fickle elbow
sleek granite
#

i WAS on þe internet for þat song

rare shell
sleek granite
#

chat þe programming socks are coming out today

#

(þey're gay everyone act cool)

fallow bramble
#

Ok, but let's not forget about this

fickle elbow
sleek granite
#

need þat on a joker fr

#

someone should code animated jokers or someþing

rare shell
#

o7 for the dude who sang that song

sleek granite
#

is he dead or just cringe now

rare shell
#

he died in a police shoot out

sleek granite
#

oh fuck

fickle elbow
#

this is in balatro code

wanton rapids
#

damn

#

visual studio regular??

sleek granite
grand geode
#

didn't lyman figure it out

rare shell
#

yea heres my code

#

(and no i just update the soul pos on a trigger, not really animated)

fickle elbow
#

snag, i got it now

rare shell
#

autumn means like consistently animating them over a consistent frame delay

fickle elbow
#

yea, i can try

grand geode
#

☹️

rare shell
#

im a code wizard

cosmic shell
#

the animated sprite is just a class that inherits from the regular sprite class, so it should be a rather trivial drop in job.

wanton rapids
#

is that not from the website template

rare shell
#

it is

rare shell
sleek granite
#

fuck

rare shell
#

im sure love2d can handle a little bit of html code

boreal ibex
rare shell
#

as a treat

sleek granite
#

Luke Caste

rare shell
#

fun fact i am an actual wizard

sleek granite
#

who is Luke Caste

carmine mortar
rare shell
#

when i was 15 i was touched by a wight, which gave me a negative level (sent to the hospital), and due to rules as written, i was blessed with great power and managed to interger loop my way into being a level 20 wizard (severe hospital bills)

wanton rapids
#

so wait

#

does joker collision detection work based on the image

sleek granite
#

we're all wizards in þe eyes of a 15th century peasant and honestly who could want more in life

midnight ermine
#

Can i find "select first skip tag" mode??

#

Someone told me that is exist, but i couldn't found it...

rare shell
boreal ibex
rare shell
#

wopes

boreal ibex
#

wps

rare shell
#

when are we going to start the foundation for balatro story mode chat

sleek granite
#

fajlþgbapghfidapgebrauitnerak;gþhfajkghfiapdþjelabguifadbgjk

#

i just realized þe description for moreconsumables still says "bad art"

rare shell
#

true

sleek granite
#

as if all þe art wasn't improved

#

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

rare shell
#

im going to banish you from hell

sleek granite
#

no wait i derive my powers from it nooooo

karmic fulcrum
#

Hey just wanted to share a sneak peak of something I'm working on

rare shell
#

that looks gorgeous!!

karmic fulcrum
#

Thanks !

sleek granite
#

ÞATS SO PRETTYYYYYY AAAAA

rare shell
#

really well done pack work

#

finally atomicrops in balatro

karmic fulcrum
#

Thanks you all ^^

sleek granite
#

chat can i SMODS.findModByID outside of my init function

#

þx

rare shell
#

declare some variable using it and local_var it

#

oh

#

or myst can come in and be big brained

grand geode
#

i literally just said yes </3

sleek granite
#

ALRIGHT TIME TO OVERHAUL MY MOD WOOOOOOOOOOOO

gleaming talon
sleek granite
#

im not sure you mean þe same þing i do but ok

rare shell
#

im guessing theyre posting it because its outside the calc function

gleaming talon
tardy sierra
sleek granite
#

followup question
will it break crossplatform compat if i use / or \ in paþs?

wanton rapids
#

time to add css to balatro

gleaming talon
#

tho it may depend on load order and if it gets called outside of a function or when the mod loads

wanton rapids
gleaming talon
#

But I use "/"

wanton rapids
#

"when blind is selected, add a random temporary edition to an uneditioned card in hand"?

gleaming talon
#

I've finished the overhaul of the sound method in Steamodded core 🎉

wanton rapids
#

awesome

gleaming talon
#

Add a random font to 3 random cards in your deck when blind is selected

wanton rapids
#

my game is crashing in LOAD_LOC now for seemingly no reason

#

wait nvm

grand geode
#

css is aw

rare shell
#

awww

wanton rapids
#

wait how does photograph make it so the card doesn't look like that

rare shell
#

note to self when i wake up

#

discord server joker: reminder text has "go try (blank!)" that updates every blind with a list of random mods

#

except it would be more classy than just discord server joker

#

like an irc joker

#

emoticon joker even

#

minecraft splash text joker?

#

hatsune miku joker

wanton rapids
#

css is aw

rare shell
#

i just want more ppl to try out bunco is all

sleek granite
#

ill try bunco when bunco tries me

#

does anyone know how to get þe current game version

wanton rapids
#

idk

rare shell
#

real

gleaming talon
#

incredible

wanton rapids
#

will probably make it 2 cards

#

or even 1

rare shell
#

I found a function that literally creates cardarea for booster packs and still it tells me that it is nil

#

after I injected into it

tacit crest
# rare shell chat do you know how to access the cards in booster packs 🥺
if context.open_booster then
    G.E_MANAGER:add_event(Event({
        trigger = "after",
        delay = 1.3 * math.sqrt(G.SETTINGS.GAMESPEED),
        blockable = false,
        blocking = false,
        func = function()
            if G.pack_cards and G.pack_cards.cards[1] and G.pack_cards.VT.y < G.ROOM.T.h then
                for _, v in ipairs(G.pack_cards.cards) do
                    sendDebugMessage(v.config.center_key)
                end

                return true
            end
        end
    }))
end

This seems to work if this is what you're looking for

rare shell
sleek granite
#

hey guys im just learning to code hows þis lookin

grand geode
#

☹️

glad sedge
#

can anyone dm me if you find a way to apply math random to blind mults with values that change every restart? value is always the same for me. i dont know how to properly seed it or how to do it

sleek granite
#

(bþw you can't use SMODS.findModByID outside of INIT)

grand geode
#

idk i think it's a you issue

wanton rapids
#

thorn.

sleek granite
#

you can do it in functions

wanton rapids
#

honestly it might be the thorn's fault lmao

sleek granite
#

but not loose in þe file

#

no þis code works

rare shell
#

pls make autumn circus searchable

#

crying

sleek granite
#

what do you mean

rare shell
#

how to search þe on youtube

#

wtf its 10 am

sleek granite
#

gnights lydude

grand geode
#

good morning lyguy

fallow bramble
glad sedge
#

in perspective on how hard is to apply randomness which seems like a simple thing

fallow bramble
#

I recommend looking into the function create_card_for_shop in UI_definitions.lua

#

But yea usually all random stuff use pseudoseed

umbral pilot
#

I have been summoned

#

Myst hath summoned me

sleek granite
#

myst haþ summoned þee

haughty hinge
#

misread that as "myst halp summoned pee"

grand geode
#

what.

sleek granite
boreal ibex
#

why did you replace the t in btw

sullen bison
#

Why don't you?

sleek granite
#

by þe way?

cinder sage
#

by the way -> btw
by þe way -> bþw

boreal ibex
#

but no

woeful finch
boreal ibex
#

it would just be btw

woeful finch
#

if your symbol means “th” then why bþw

#

`/s

alpine cosmos
#

by the way

#

b th w

woeful finch
#

(ik)

alpine cosmos
#

oh

#

OH

#

sjdhsjdh

#

mixed up my tone indicators sorry

woeful finch
#

nw

alpine cosmos
#

what i mean to say is

#

um

#

because the t in btw stands for titration idk

rare shell
#

Does anyone know if there's enhancement pool?

umbral pilot
#

it looks normal to me

#

I just saw btw

rare shell
#

the th comes from "the"

umbral pilot
#

not sure if I understand

#

the "e" comes from the "e" that's left over?

#

mys🅱️ ha🅱️ summoned 🅱️ee

#

oh yeah I updated 🅱️e lovely icon on 🅱️unders🅱️ore, wha🅱️ do you 🅱️ink?

#

much be🅱️🅱️er 🅱️an 🅱️e AI-genera🅱️ed crap 🅱️a🅱️ was 🅱️ere before

rare shell
#

cursed

dapper helm
#

the typing quirks are multiplying

fallow bramble
rare shell
fallow bramble
#

Lyman are you even real yourself?

brittle gorge
#

idk what the error means

oblique berry
#

im trying to find the 60 suit mod but im not able to find it. is it still available?

slim swallow
#

it means that a } was expected to close a { at line 10 neaer enemy_color

brittle gorge
#

there's no "enemy color" at line 10

slim swallow
#

then where is enemy color?

rare shell
#

Ninjad

brittle gorge
#

line 40

oblique berry
#

ahhhhhhh i was searching for "60" not sixty. ty ty!!

rare shell
#

Curse me being on mobile

slim swallow
#

either way, you're missing a }

fallow bramble
#

👍

brittle gorge
#

and i already closed the bracket there

slim swallow
#

every open brace needs a closed one, so you're missing one somewhere

#

can you post the code?

brittle gorge
#

yes sure

dapper helm
brittle gorge
#

@slim swallow here it is

slim swallow
#

since it didn't see the comma, it assumed that the table was over

brittle gorge
#

oh , i still have to get used to the syntax

#

thanks

#

same error

slim swallow
#

Did you save?

dapper helm
drowsy rose
brittle gorge
dapper helm
#

forgot to save....

#

i fear the day i forget to save something

brittle gorge
dapper helm
#

huh

brittle gorge
#

what the hell does that mean , how do i fix it

stone brook
#

something is getting passed a nil value instead of a table

#

make sure all your stuff that should be tables is a table

brittle gorge
#

idk what should be

slim swallow
#

if you have 7zip, its as easy as doing this

kindred swallow
#

Chat write this down.

lavish jackal
grand geode
#

main.lua does not actually have 1333 lines, that's the injected code of Steamodded

#

so basically something about your joker injection is wrong

lavish jackal
#

you should really be making a table

slim swallow
brittle gorge
lavish jackal
#

i'll send you my init_joker function and an example of one of my jonklers

#
    local function init_joker(joker)
        local joker = SMODS.Joker:new(
            joker.ability_name,
            joker.slug,
            joker.ability,
            joker.pos,
            joker.loc,
            joker.rarity,
            joker.cost,
            joker.unlocked,
            joker.discovered,
            joker.blueprint_compat,
            joker.eternal_compat,
            joker.effect,
            joker.atlas,
            joker.soul_pos
        )
        joker:register()
    end
#
    local j_dead_shuffle = {
        slug = "dead_shuffle",
        ability = {
            extra = {
                xmult = 0.5,
                suit = "Spades",
                total = 1
            }
        },
        loc = {
            ['name'] = 'Dead Shuffle',
            ['text'] = {
                [1] = 'Gains {X:mult,C:white}X#1#{} per',
                [2] = 'scoring {C:attention}Ace of #2#{}',
                [3] = '{C:inactive}Suit changes every round{}',
                [4] = '{C:inactive}Resets every round{}',
                [5] = '{C:inactive}(Currently: {X:mult,C:white}X#3#{}{C:inactive}){}{}'
            }
        },
        pos = {
            x = 7,  --- position depends on your atlas
            y = 0
        },
        cost = 6,
        rarity = 2,
        blueprint_compat = true,
        eternal_compat = true,
        unlocked = true,
        discovered = true,
        atlas = 'HomestuckJokers' --your atlas here
    }
init_joker(j_dead_shuffle)
#

also you should really be using joker api

brittle gorge
#

thank you

lavish jackal
#

you've way overcomplicated

brittle gorge
lavish jackal
#

yeah no thats way overcomplicated

#

you dont have to do half of that

astral glade
#

that one is prone to breaking too

tranquil roost
#

Update on my mod I’m making the aces real pretty looking

brittle gorge
lavish jackal
#

wdym

brittle gorge
#

this

lavish jackal
#

yeah

#

thats just the steamodded wiki

#

that's useful stuff

#

it contains information about the joker api

runic kraken
brittle gorge
#

thank you , I'll start again from scratch then

runic kraken
lavish jackal
#

or use joker api and save yourself a headache

runic kraken
#

that uses the joker api

lavish jackal
#

why are you registering a joker in k v pairs

#

when its like

#

easier to just use :register()

runic kraken
#

in case you want to add more than one joker

lavish jackal
#

i add multiple jokers

#

and i use purely japi funcs

astral glade
#

also using pairs doesnt gurantee the order of the jokers will be the same everytime

lavish jackal
#

^

#

doing it purely with japi does guarantee that

#

the order of init is the same as the order in game

astral glade
#

and its easier to read the code again if you need to modify stuff

#

at least for me

lean dune
#

do note it's not complete yet regarding other features of steamodded

#

if any questions come up, feel free to ask here

astral glade
lavish jackal
#

its a very good api imo

astral glade
#

it uses the japi too

#

and is quite comprehensive

astral glade
lavish jackal
#

newt you seem really cool can i friend req ya

astral glade
#

sure

lean dune
#

the joker api technically is missing the end of round money stuff

astral glade
#

only seen like 2 mods with new blinds

#

not including my own

lean dune
#

Also this goes for all steamodded APIs, but the amount of parameters the constructors have is obnoxious

#

I'll refactor that at some point to just take a single table argument

lavish jackal
#

hell yeah!!

#

no more init_joker(20 kajillion things) workaround

astral glade
#

nil,nil,nil,nil,nil

lean dune
#

lmao

karmic fulcrum
#

Is it possible in lua to do :


local VARIABLE

SMODS.Jokers.j_VARIABLE_jokername

#

It seems obviously impossible, but I don't know this language really well

karmic fulcrum
#

Ok it is

local VARIABLE

SMODS.Jokers["j_"..VARIABLE.."_jokername"]
ashen bolt
#

just making sure, is the Steamodded injector compatible with the experimental build, or just the official release?

meager root
#

Hi, can you send that link again?

lavish jackal
#

2 left!! lets gooo

shadow kraken
#

okay so an aside about pseudoseed, effectively pseudoseed is a random number generator but a kind of bad one (this is a demostration of it, x axis is a number from 0-100 and y axis is a number of times it appears, this is doing round(val*1000) on the outputs)

tranquil roost
#

I can’t read helloguysimgageaplier

sullen bison
#

ohey, a sine wave pseudorandom

white scarab
#

But yeah it’s very goofy

shadow kraken
#

so what pseudorandom and functions like it do is run the output of pseudoseed through the normal LuaJIT random number generator for the purposes of using its utility functions and maybe making the quality better

#

yeah I'm gonna try that next

#

But effectively when a pseudoseed gets created, that's the RNG state for that process for the rest of the game, which lets things happen in the same order etc

white scarab
#

You haven’t even seen it hit nan yet

#

That’s when it gets really goofy

shadow kraken
#

pseudoseed can't hit nan, I don't think

#

no divisions so you can't get math.huge

#

but yeah i know about the stuck nan bug

white scarab
#

If pseudohash is already nan then that’s what goes into pseudoseed

#

iirc

#

There was also a bug in the demo where some seeds were the same

#

But that was fixed by factoring in the string’s length in pseudohash

shadow kraken
#

Here's it after getting passed through math.random, so way better

#

So that's why you need both, pseudoseed makes it so that you get repeatable results and pseudorandom and friends make it so that there aren't clear biases in the output (edit: to be clear, it doesn't have to be done that way, but that's how balatro does it)

indigo estuary
#

is there a standalone inverted strength mod

#

aside from jelly

strong falcon
#

Anyone know why this causes a crash? This is inside my mods Init function

    G.localization.descriptions["Other"]["card_extra_mult"] = { text = { "{C:mult}+#1#{} extra Mult" } }
sleek granite
#

maybe bc þeres no "name" field? idk if þat would crash outright þo

rigid jewel
#

You would need a name field

strong falcon
#

card_extra_chips in the base game localization is defined like this though

            card_extra_chips = {
                text = {
                    "{C:chips}+#1#{} extra chips"
                }
            },
cunning silo
#

worked on a little something...

#

version 1.1 of Codex is coming along pretty nicely

#

there are some really fun things planned

lavish jackal
#

yooo

astral glade
#

HELL YEAH

solemn solar
#

Hi, sorry this is a basic question. I'm trying to mod this game from scratch for a final project in university. I'm on Mac and am having trouble finding my way through the files to get to the lua code. Does anyone have any pointers?

slim swallow
solemn solar
#

darn, well thanks

dapper helm
#

does extracting the exe not work on mac?

slim swallow
solemn solar
#

exe doesnt even exist on mac. I have a vm I can probably use but its so slow

dapper helm
#

i see

#

i forgot mac was weird as fuck like that

solemn solar
#

yup lol

slim swallow
#

ah ok

solemn solar
#

ok thanks guys

slim swallow
#

@solemn solar you have access to the .app, right?

shadow kraken
#

yeah it's in the resources folder

solemn solar
#

this is what the app contents look like on mac sife

#

just a ton of scripts

slim swallow
#

yes perfect

shadow kraken
#

Balatro.app/Contents/Resources/Balatro.love

#

that's the file you want

slim swallow
#

you want to go into the Resources folder, and look for a .love file

solemn solar
#

ok thanks

slim swallow
#

.love is just a renamed .zip, so unzip that and you should be good to go

slim swallow
solemn solar
#

Yeah thanks I understand. The class I'm doing this for is Software Reverse Engineering so I have to drill down to the bottom and make the mod from scratch

#

or just adjust the code

slim swallow
#

oooooh nice

carmine mortar
#

xChips anyone?

exotic shadow
astral glade
#

real as fuck

dapper helm
#

too real...

astral glade
#

how abou

#

t

#

chat post the latest thing youve made that youre proud of

dapper helm
#

....

#

once i'm done compiling aseprite though surely

civic grail
#

i wanna add jokers to it but i gotta make it cleaner first

umbral pilot
#

I'm proud of all of you

dapper helm
#

thank you meth

cunning silo
#

remember the weird background and stuff? Well, guess what card does it!

civic grail
#

??

#

well theres only 8 on screen so one of them lol

fallow bramble
cinder sage
#

or anything

astral glade
#

anything

#

its showoff time

sleek granite
astral glade
#

THORN

sleek granite
#

power of þ

dapper helm
#

noþing would be possible wiþout þ

trail crystal
#

im trying to install the codex arcanum mod, but when i go to extract it into my mods folder it says it cant open file as archive does anyone know how to fix that?

white scarab
#

Latest released thing I made, pretty fun to play around with for a bit and allows for some seeds with normally unobtainable bugs to happen

cursive compass
#

like does everything fade in and out properly?

tranquil roost
#

What does this do?

#

Does it replace music or sound effects ingame?

cursive compass
#

it seems to be intended for sound effects but since music has some unique properties i'm not sure if it's built to work with it too

rare shell
#

5 hours of sleep yipee!!

sleek granite
#

good morning lymitosis

rare shell
#

im so tired

sleek granite
#

so true jestie

fallow bramble
#

gm Lymonsieur

jovial notch
#

question

sleek granite
#

proceed

jovial notch
#

what code do i use to change the color in a joker description :>

#

i have all the text n stuff on hand dw

rare shell
#

like {C:attention}this{}

jovial notch
#

Alr

rare shell
#

theres a bunch of different C: tags like C:attention, C:inactive, C:[suit], C:mult, C:blue, C:green

jovial notch
#

wht does c:mult do

rare shell
#

red

jovial notch
#

perfect

#

i should have expected that

#

but still

rare shell
#

and for X multipliers

#

like cavendish

#

"{X:mult,C:white}X3{} Mult"

#

for the red background with white text

jovial notch
#

bro read my mind

rare shell
jovial notch
#

like this? {X:mult, C:white}x4{}

rare shell
#

aye, but you want to make it X4 instead of x4

jovial notch
#

ofc ofc

rare shell
#

and no space

#

does anyone know how tf the probabilities should be written

#

between mult, and C:white

#

pseudorandom and etc

jovial notch
#

ok done thank you Lyman :D

rare shell
#

like code wise or description wise?

#

code wise

#

I'm assuming I need:
two different config values (?)
some weird thing in pseudorandom (???)

#
if pseudorandom('literally_any_word_goes_here_its_just_a_seed') < G.GAME.probabilities.normal / self.ability.extra.odds then
     foobar
end```
#

is the gist

jovial notch
#

oh what the heck

#

i like python because its literally just

rare shell
#

you'll want to return at least G.GAME.probabilities.normal and card.ability.extra.odds

#

and yeah

jovial notch
#
import random
number = randrange(1,100)
#

literally python

rare shell
#

well this isnt really a lua thing

#

this is more so of "we want the same result every time" thing

jovial notch
#

ohhhh

dapper helm
#

lyman do you use aseprite?

rare shell
#

a lil

sleek granite
rare shell
#

it is indeed standard

jovial notch
#

side note, how do you make smthn show its current value?

rare shell
#

like an upgrading variable?

jovial notch
#

yes

rare shell
#

so in the text you can have anything you want replaced with a local variable of your choice

rare shell
#

or how does that work

dapper helm
# rare shell

sick, i have but 1 (2) simple question(s): how do i make a gradient and can it be more than 2 main colors?

rare shell
#

sorry feeling very stupid about this

#

you do it by doing #1#, or #2#, 3, etc, depending on how many local variables you have

rare shell
white scarab
rare shell
#

so if I'd want the chance to be 1 in 2 I'd need to change self.ability.extra.odds to 2 and that's it?

jovial notch
#

maybe

#

idk i aint proficent in lua

rare shell
#

that is true

rare shell
#

beautiful, ty!

#

presuming that youre doing #1# in #2# here and probability is 1 and odds is 2

jovial notch
#

idk if this will help but we got this rn

    if config.cubicJoker then
        -- Create CubicJoker Joker
        local cujo = {
            loc = {
                name = "CubicJoker",
                text = {
                    '+ {X:mult,C:white}X2{} Mult if the sum of chips of played poker hand',
                    'is evenly divisible by 4', '{C:(ex. 16/4 = 4, valid. 6/4 = 2.5, invalid)'
                }
            },
            ability_name = "cubicjoker",
            slug = "cubic_joker",
            ability = {
                extra = {current_mult = 1, mult_mod = 2}  
            },
rare shell
#

somewhere lower in your code there should be something like

#
            return { BLAH }
        end```
#

this is where you tell the game what local variables to store

#

oh wait you dont need a local variable here

jovial notch
#

OHHHH

#

this!

function SMODS.Jokers.j_cubic_joker.loc_def(card)
            return {card.ability.extra.current_mult}
        end
rare shell
#

aye

#

so any time you want anything that uses dynamic text, you tell it to return there

#

so like for example, a joker that does "1 in 4" or something would return two variables

#

function SMODS.Jokers.j_pawn.loc_def(card)
return { G.GAME.probabilities.normal, card.ability.extra.odds}
end

jovial notch
#

wait so

rare shell
#

and then i could write the text as #1# in #2#

jovial notch
#

i tell the desc to go to that line and read that variable

#

right?

rare shell
#

in your text whatever piece of text you want to be replaced with that variable, put #1# there

#

(Sprite by Renren balatroheart )

rare shell
rare shell
jovial notch
dapper helm
#

to the moon + money tree + fiendish joker....

jovial notch
#

just #1# = the code

#

?

jovial notch
rare shell
#

so you want the text to dynamically update right?

jovial notch
#

golden joker + rocketship too

jovial notch
rare shell
#

ok so your text here

#

text = { '+ {X:mult,C:white}X2{} Mult if the sum of chips of played poker hand', 'is evenly divisible by 4', '{C:(ex. 16/4 = 4, valid. 6/4 = 2.5, invalid)' }

#

this is your description

jovial notch
#

yes

#

i added a cirrently #1# at the end

rare shell
#

what part of it do you want to have the updating variable

jovial notch
#

rn it says

text = {
    '+ {X:mult,C:white}X2{} Mult if the sum of chips of played poker hand',
    'is evenly divisible by 4, currently {X:mult,C:white}#1#{}', '{C:(ex. 16/4 = 4, valid. 6/4 = 2.5, invalid)'
 }
rare shell
#

you got it

jovial notch
#

thats it?

rare shell
#

yup

#

it wont show "Mult" afterwards so you should write it right after the {}

#

so currently {X:mult,C:white}#1#{} Mult

#

but other than that, that is how you format local variables for the most part

jovial notch
#

got it

rare shell
#

i didnt see this in time

#

click your bucket tool!!

jovial notch
#

you helped a lot im crediting you (and the people that helped in #1229979352926650550 ) because its the right thing to do :D

dapper helm
#

how do i use that!

jovial notch
#

testing the code first lol

#

i probably messed smthn up earlier before getting help loll

rare shell
#

(i am juggling like 3 things rn lmao)

#

apologies

#

i dont think you can do multiple colors besides 2

#

with the gradient tool selected you can turn on dithering at the tool of the screen

dapper helm
#

how do i choose the 2 colors? i feel like its a very dumb question but when i use the gradient tool it just uses the 1 color

rare shell
#

left/right click with color picker

#

it'll draw from your first color to your second color

#

first color being at the origin of where you clicked

dapper helm
#

omg i'm so stupid i have to hold instead of click...

#

thank you lyman

rare shell
#

dont make me do an alpha ink painting using balatro palette

rare shell
#

you can change the color mode from RGB to indexed

jovial notch
#

uptate

rare shell
#

it restricts the colors you use to whatever loaded palette you have

jovial notch
#

i changed the heck outa the joker

#

instead of + x2 mult

#

its x x2 mult

#

and wildly expensive

#

(and rare)

dapper helm
#

ahhhhh i see the option

jovial notch
#

hows this look

#

i think i wanna change the badge color but other than that looks good right! :D

sleek granite
#

you can make þe example line grey with {C:inactive}

jovial notch
#

thank you i was wonding how to do that

rare shell
#

get rid of the first X you have

#

(congrats btw)

jovial notch
#

(no joke its exponential)

rare shell
#

hey chat any pro tips for quickly getting to your joker code when it is in three different places in the mod

sleek granite
#

dont do þat

rare shell
#

I'm so tried of scrolling

sleek granite
#

i hope þis helps you

jovial notch
#

move it all to one spot

#

wait idea

rare shell
sleek granite
#

spend less on code segments

jovial notch
rare shell
#

I can't move my injections when they're used by multiple jokers at the same time

sleek granite
stone brook
#

i'd write "Multiply this card's Mult by 2" probably

jovial notch
#

i think that would work

sleek granite
#

orange background....?

rare shell
#

exactly three places

sleek granite
#

i have multiple lua files now so i þink þat kinda þing is helped, idk still in process of fixing it all up lol

jovial notch
#

time to test it

#

also fixed the mod desc

rare shell
#

my code feels like playing factorio

sleek granite
#

yes

#

þat tracks

jovial notch
#

edited text

#

(the second line in the example is grey trust me)

dapper helm
rare shell
#

im telling you

#

comments are your friends

jovial notch
rare shell
rare shell
#

like something similar to clicking on function to get to its origin

white scarab
#

That’s what an IDE is for

rare shell
#

but creating links from comments to other comments

white scarab
#

I know in VS Code I’ll often search across multiple files using a keyboard shortcut to find what I want

jovial notch
#

aw dangit

#

as op as this is, its not x mult mod, its + mult

#

easy fix

#

oh btw

fallow bramble
#

Doing a modded joker only run and got an interesting combo ty @rare shell lol

jovial notch
#

yall get credit because yall helped so much

white scarab
rare shell
dapper helm
#

looking forward to when snow's mod releases so i can use the last hand synergy deck with lyman's last hand synergy jonklers

fallow bramble
#

Ty Codex Arcanum lmao

#

I lost the run 😦

dapper helm
#

so true

jovial notch
#

question

#

how do i get a +mult to be *mult instead

fallow bramble
#

Xmult_mod instead of mult_mod

jovial notch
#

ok got it thank you

fallow bramble
#

Yea sorry there's much more but usually it's an X behind the mult

jovial notch
#

mini question for anyone out there, should i release this? i wanna make more mathmatical jokers :>

rare shell
#

the mod horde must grow

jovial notch
#

im gonna take that as a yes

fickle elbow
jovial notch
#

im also gonna rename it to be smthn to do with math

fallow bramble
jovial notch
#

ideas are welcome

rare shell
#

Bunco now has 1 full list of jokers (+ 3 more jokers (+ WIP Jimbo)!

sleek granite
#

i still dont have a single joker in my mod

rare shell
#

ok miss consumable

#

miss STAMP

jovial notch
#

i may need to nerf the modifier

#

just a slight nerf may be needed

#

(just got to ante 3 boss)

fallow bramble
fallow bramble
jovial notch
fallow bramble
#

Or whoever made it

jovial notch
rare shell
fallow bramble
#

Shoutout

jovial notch
#

that 3d effect is CRAZY

#

cant wait to see what they do

fickle elbow
rare shell
#

c-side

#

unfortunately I don't think I can support any other suit mods at this point because I have my own balancing of additional hands

fickle elbow
rare shell
#

spectrums are much more powerful here because you can't get the new suits right at the beggining

rare shell
rare shell
fickle elbow
#

my suits don't use spectums

#

unless you have stars, and moons installed

rare shell
#

your suits are still given at the start tho?

fickle elbow
rare shell
#

look at the poker hand values here

#

these'd be very strong at the beginning; they're not meant to be played at the beginning

jovial notch
#

just beat the game to test cubic from ante 1 shop 0 (as if it was a challenge i guess)

#

mild nerf will def be needed (thats x1bil mult)

fickle elbow
rare shell
#

what are you waitin on

#

I like that ^X2 is dark

jovial notch
#

(instantly nerfing it into the ground)

fickle elbow
rare shell
#

chatgpt what does verdant shift mean

fickle elbow
#

i don't know how or why that is installed

#

but i can't remove it

fallow bramble
#

This goes hard

#

So many retriggers

fickle elbow
#

btw how do you check if you are on a specific blind?

white scarab
fallow bramble
fickle elbow
#

Boss

#

need to disable my joker when on them

#

fixes a problem, and debuffs it

fallow bramble
#

if G.GAME.blind.boss

fallow bramble
jovial notch
#

I mean it makes it so high card dont work so that’s a plus

#

i think

#

no it does

cinder sage
#

high card 8 would work

jovial notch
#

very much does stull

cinder sage
#

chip# has to be a perfect cube

jovial notch
jovial notch
#

OH CUBEROOT

#

I forgot abt that

#

That’s also much more difficult

#

thank u for idea :)

#

how would i cuberoot the chips by chance

#

idk lua math stuff

white scarab
#

math.pow(x,1/3)?

#

(Does Lua have math.pow?)

cinder sage
#

i think so

white scarab
jovial notch
#

ok and how would i check that its a whole number ;-;

white scarab
#

math.round

jovial notch
#

???

white scarab
#

Oh you mean check it’s a perfect cube

cinder sage
#

if math.fmod(math.pow(x,1/3),1)<0.000001 or math.fmod(math.pow(x,1/3),1)>0.99999

#

something like that

#

idk

jovial notch
sleek granite
#

if math.pow(x,1/3) == math.floor(math.pow(x,1/3))

white scarab
#

Do floor(x)=x once you do math.pow

#

What þe evil mod dev said

sleek granite
#

you could use a local var to avoid running math.pow multiple times þo

cinder sage
#

won't that mess up on floating point errors

white scarab
#

Are you getting one billion chips in your modded runs?

sleek granite
#

you're a floating point error

jovial notch
#

so this?

if math.pow(x,1/3) == math.floor(math.pow(x,1/3)) then
  self.ability.extra.current_mult = self.ability.extra.current_mult * 2
end
white scarab
#

We shouldn’t be seeing those effects within thwt range

sleek granite
cinder sage
white scarab
white scarab
jovial notch
white scarab
#

Probably still works above 1B for a while

jovial notch
#

but now that its balanced-ish

#

should almost never hit 1 bil

sleek granite
#

obviously just write out a table of every perfect cube þe game supports

cinder sage
#
if math.abs(math.floor(x)-x)<0.000001 then```
?
jovial notch
fickle elbow
jovial notch
white scarab
sleek granite
#

its how i patch fibonacci in dankranks

white scarab
lavish jackal
#

1 more Aspect card and I am done with this hell!!!

sleek granite
lavish jackal
#

just literally add fibo

#

function

#

and like

#

just run it until its like

#

higher than base

jovial notch
#

ok idk what i did

#

but the code wont run now

sleek granite
#

i dont know how to make an efficient fibo check þo

lavish jackal
#

i can send you an efficient algo that i know of

sleek granite
#

þis is also funnier

lavish jackal
lavish jackal
white scarab
sleek granite
#

??????

white scarab
#

A four of eights should still trigger Fibonacci balatrojoker

sleek granite
#

??????????????????????????????

#

NO???

lavish jackal
#

what the HELL is a FOUR OF EIGHTS

white scarab
fickle elbow
#

4 of 8's

strong swift
#

i added like 3 suits

white scarab
#

I added two and both were trolls

#

(8s and nothings)

fickle elbow
#

the ace of nothing

#

that's what's up my sleeve.

white scarab
#

This is the only screenshot I see with it

jovial notch
#

new cubic joker dropped

jovial notch
lavish jackal
#

welsh sword

rare shell
#

caledfucker

lavish jackal
#

lyman do you like the effect

#

i think it suits the welsh broken piece of shit

rare shell
#

truth be told i am not the biggest fan of mult/chip/xmult on probability

jovial notch
#

found out why it didnt work so

white scarab
#

Well it’s common at least

rare shell
#

lollipop was fine though because the effect is cute

white scarab
#

Boutta oops all 6s this

lavish jackal
#

yeah or

#

or

#

you could

jovial notch
lavish jackal
jovial notch
#

pfff or that

#

(bloodstone would go crazy)

lavish jackal
#

Aspect cards my beloved

#

It works by like

#

it's exclusive effects

#

so like, only one aspect can be active at a time

jovial notch
#

vouchers but different?

lavish jackal
#

but you can level up aspects

jovial notch
#

ooh

lavish jackal
#

so this can go from 1 in 3 fail to 1 in 4 fail to 1 in 5 fail

jovial notch
#

thats much more into the rougelike

fickle elbow
#

like charms, or trinkets

lavish jackal
#

then you have Void

fickle elbow
#

the BEST example in explaining how they work.

jovial notch
#

increases max?

lavish jackal
#

yep

#

so if you have like

#

Void level 1

#

if you have 0 negatives

#

1 will be created until you have 1 negative

#

then 2

#

3

#

4

rare shell
#

i dont like bloodstone for the same reason but i think it works because its one of the few random mult giving jokers and the bonus is worthwhile (but even then it had ot be buffed)

fallow bramble
#

At last i've won

lavish jackal
fallow bramble
#

Coupon Voucher can go hard so fast

lavish jackal
#

I made Doom specifically with probability jokers in mind

fickle elbow
#

who likes U.I. pain :]

#

of course i mean the coding part

rare shell
#

oh i didnt see doom

#

thats cute

jovial notch
lavish jackal
fickle elbow
#

flash bang

karmic fulcrum
jovial notch
#

may i reccomend a fancy shmancy red color? :>

lavish jackal
#

the value that increases here per level is the denominator

rare shell
#

personally i havent seen a "bad effects build" type of design that i liked (as a whole package, that is), but ive seen a few of them

lavish jackal
#

so it'll go to 1 in 4 on level 2

rare shell
#

but i think youre on to something

lavish jackal
#

its specifically on 1 in 3 when you first pick it up because

#

it makes it proc on stuff like Sucker (once), Bloodstone, Reserved Parking, Faceless Joker, Caledflwch

#

and then the second time you pick it up its power really gets good

#

because now it also gives negative fools of Wheel of Fortune, Glass cards

#

and the further you go the more luck-based cards it includes

karmic fulcrum
lavish jackal
#

eventually you have 10 negative fools and pick up death

jovial notch
#

fixed cubic joker (it was looking for x, not hand chips)

lavish jackal
#

wait lyman

#

do you think it'd be better if it was

#

negative death instead of negative fool

#

negative death would be insane

shy pivot
#

nah, negative fool is far more versatile

lavish jackal
#

true

lavish jackal
shy pivot
#

negative death would just be shoehorning a playstyle as well, with negative fool there's a lot more choice and a lot more chance to screw up using it which it makes it more fun to use

lavish jackal
#

oh yeah you can negative fool into temperance

#

or wheel of fortune

#

oh god

#

there's an engine

#

there's a really awful engine

#

you get like 3 negative fools right

#

wheel of fortune

#

it nopes

#

negative fool spawns

#

again

#

again

#

again

#

what have i done

#

doom is awesome

shy pivot
#

any strategy that goes straight into wheel of fortune meming is a good one

jovial notch
#

ok so holdup

rare shell
#

holding

jovial notch
#

theoretcally this should only trigger on perfect cube roots right?

if math.pow(G.GAME.chips,1/3) == math.floor(math.pow(G.GAME.chips,1/3)) then
  self.ability.extra.current_mult = self.ability.extra.current_mult * 2
end
#

(as in if chips total = perfect cube, xmult becomes doubled)

fickle elbow
#

is there a function I can replace create_option_table with to just make the Ui for the consumable?