#⚙・modding-general

1 messages · Page 74 of 1

cursive compass
#

like this is just salad to me

stone brook
#

i think?

#

man ui sucks

cursive compass
#

all the single letter variables are killing me

stone brook
#

i think T is for, like, card physical properties

#

like T.r is how rotated it is or something?

#

i should know more about this i literally read half of the dragging function yesterday

#

T.x and T.y is the card's position on the screen, T.w and T.h is width & height

#

i think its relative to the cardarea

stone brook
#

yea...

#

thats why i gave up on dragging and used a button instead...

cursive compass
#

maybe i should just

#

disable joker dragging during blinds

#

i wonder if that'd be easier

stone brook
#

amber acorn becomes the hardest blind in the game

#

xdd

#

oh wait

#

yea you can probably just change that

#

probably just throw a ternary operator on that

rare shell
#

That's my new favorite gif

stone brook
#

wait i forgot you cant set something to false with ternary

cursive compass
#

wait maybe its

#

states.drag.can

stone brook
#

am i allowed to put loc_vars/loc_defs inside of loc_vars/loc_defs

cursive compass
#

fuck i thought i would have to do some nutty shit

sullen bison
stone brook
#

yummy jimbo

cursive compass
#

and they go back to normal when the blind ends too

#

it really was that easy wow

#

i do wanna add some kind of label that they cant be dragged tho

#

i tried to make it so selling the joker unlocks everything but this makes it so selling ANY joker does it

gilded vortex
cursive compass
#

i just want the jokers to be unlocked if the card is sold mid blind

gilded vortex
#

There's already a context for selling cards, used by Campfire. I struggled with it at the start but you can recover the sold card within the context

#

I did hook to it to also recover the type, but the hook might be unnecessary

cursive compass
#

sorry i meant if it's lost in any way

#

cause otherwise jokers would be locked for the rest of the blind but you wouldnt get the benefit

gilded vortex
#

Ah, I see

cursive compass
#

wait i see the problem

#

selling any joker automatically sets states.drag.can for all jokers to true

#

so when a joker is sold i need to see if you're in a blind and you have CONTROL and set it back to false i guess?

brittle lichen
#

okay ive been going over the modding code for a joker im going to try it i might horribly fail

cursive compass
#

ok so what i need to figure out is

  • how to check if you have a specific joker
  • how to check if you continue a run that you stopped mid blind
    i thhink thats it?
stone brook
#

checking for a joker is as simple as find_joker(name)

#

though there are a couple cases (my mod) that do alter find_jokers output

cursive compass
#

so if find_joker("CONTROL") would be true if i have that joker

stone brook
#

i think its next(find_joker("CONTROL"))

#

at least thats how the game does it

#

i think if you dont have next, itll always be true-y

cursive compass
#

ok sick so selling cards period re-locks them now

#

but i need to only do that during a blind

stone brook
#

im pretty sure theres a G.STATE for if youre in a blind, so you can check for that

#

(not at my pc rn so i cant check)

sleek bloom
#

I feel I should ask if this mod exists before I make it myself:
Is there a mod for jokers that change every round like Castle or Idol that shows an icon for the selected suit/value so I don't have to check them constantly?

cursive compass
#

now i need to figure out continues and getting the joker during a blind

#

the latter should be easy but idk how continues work

stone brook
foggy crag
#

curses?

#

It's like a classic story trope where mc gains a curse that gives them power but with a catch

#

something like that

rare shell
#

I had the theme down by then but character archetype cards might be something

#

thunkong it's not too far off from what I settled on

gilded vortex
stone brook
#

yea

foggy crag
gilded vortex
#

The Sword of Damocles?

foggy crag
#

ah yes, the classic "we ball" item

gilded vortex
rapid epoch
#

i simultaneously love the community collaboration aspect of the balatro modding scene and feel we need a 'get-a-load-of-this-guy cam' for when people repeatedly make a suggestion a modder has said no to repeatedly (unrelated to this conversation)

foggy crag
rare shell
#

Holy shit I have not heard the phrase "get a load of this guy cam" in so long

rapid epoch
rare shell
foggy crag
#

sounds intriguing

cunning silo
#

I’m so absurdly tired

rare shell
cunning silo
#

But I made a ton of progress on 2/3 mods today

#

Which is good

rare shell
#

I hauled like 100kg of shit up and down stairs today

rapid epoch
#

tired? do what the alchemists did!

mix a bunch of random things together most of which are probably poison and consume it as a tonic

foggy crag
#

wtf, you are working on multiple mods???

rare shell
#

👍

cunning silo
#

Yup

rare shell
#

Solidarity in being tired

cunning silo
#

We have 5 mods now

foggy crag
cunning silo
#

I wouldn’t consider one a real mod though

rapid epoch
cunning silo
#

It’s more of a small patch

#

So 4 mods:
Codex Arcanum
Fusion Jokers
Composite Hands
A currently secret one

rare shell
#

I mean most of the time I just try to politely tell people not to just drop in chat and ask for mods randomly

foggy crag
rapid epoch
#

nah it was more of a 'tweak this mod when i told you explicitly why i won't implement your suggestion' situation

cunning silo
foggy crag
#

jk jk

rapid epoch
#

i love cardarea expansion mods!!

#

i love expanding the ui of the game!!!!

cunning silo
#

I hate it

rare shell
#

I'm expanding!!!!

cunning silo
#

It’s hard

rapid epoch
cunning silo
#

And annoying

rare shell
cunning silo
#

But when it works it’s fun

#

And oh god I’m going to have a ton of fun with the secret mod XD

foggy crag
cursive compass
#

i've run into a bit of an issue

foggy crag
#

that's my take on it

rare shell
#

Itay I need to set up a thunderstore page

cunning silo
rare shell
#

I only found out its main branch

cursive compass
#

i'm trying to check for when a card gets added mid blind but i have no way to add it manually outside of the collection menu, which i think uses a different g.state?

cunning silo
#

That, and how (I hope that) my mods inspire others to try and tackle similar ideas

rare shell
#

I got pinged in another server using my old ass version of jankjonklers

foggy crag
cunning silo
rare shell
#

Mod hosting site

cunning silo
#

Huh

rare shell
#

Think like curseforge

cunning silo
#

Ohhhhh

#

Interesting

#

I can look into it tomorrow

rapid epoch
rare shell
#

Aye, it's a hassle free mod manager

#

(R2modman is at least(

cunning silo
#

I’m currently on my way back home; and then I’m going straight to bed

rapid epoch
#

(this is actually disinformation as the oral consumption of elemental mercury is actually among its least harmful methods as the chief concern is the vapors)

(do not eat mercury anyway)

white scarab
#

Shouldn’t be too hard to set up something with TS

rare shell
#

Mercury is tasty

#

🤤

rapid epoch
#

moodlet gained: delicious mercury

rare shell
#

Wait

#

What's happening to my skin

rapid epoch
rare shell
rapid epoch
#

I thought that was colloidal silver

cursive compass
#

does anyone know what g.states.menu counts for?

rare shell
#

(It is silver)

rapid epoch
#

(i'm blue da be dee da ba die)
(i consumed colloidal silver now i shall cry)

#

aw man now i'm sad but blaseball jokers would go outrageously hard

#

cause blaseball and balatro are both members of the 'vaguely eldritch, chaos-goblin form of familiar game of skill and chance' club

cursive compass
#

ok apparently this is all the states

#

i'm gonna ASSUME menu is anything in the pause menu

#

nevermind apparently not

gilded vortex
#

idk

#

I saw that --DO NOT CHANGE and laughed at it yesterday

#

I wonder if it's for the Joker or the Splash Screen

dapper helm
#

i love all caps warnings in code comments

cursive compass
#

am i seriously gonna have to use a bunch of judgements if i want to test how the joker behaves when i get it mid blind

#

is there seriously no other way

stone brook
#

balamod console my beloved...

cursive compass
#

i cant even get it to lock cards when it's merely detected that you have the joker when any other joker is added

stone brook
#

being allowed to run any lua code from in game is so good

#

emi you can try altering one of the unused love2d input methods

#

or hooking a used one

#

thats what i did before balamod console

cursive compass
#

idk how to do that

gilded vortex
#

I did that

gilded vortex
cursive compass
#

maybe i should use emplace

gilded vortex
# cursive compass am i seriously gonna have to use a bunch of judgements if i want to test how the...

This is my hook for:

-- Hooking ???

local create_card_ref = create_card
function create_card(_type, area, legendary, _rarity, skip_materialize, soulable, forced_key, key_append)
    local has_cow = false

    if area == G.shop_jokers and _type == 'Joker' and forced_key == nil and key_append == 'sho' then
        for i = 1, #G.jokers.cards do
            if G.jokers.cards[i].ability.name == "Cow" then
                has_cow = true
                break
            end
        end
        if has_cow and pseudorandom(pseudoseed('cow_'..key_append)) < 1/12 then
            return create_card_ref(_type, area, legendary, _rarity, skip_materialize, soulable, 'j_cow', key_append)
        end
    end

    return create_card_ref(_type, area, legendary, _rarity, skip_materialize, soulable, forced_key, key_append)
end

--
#

I see I can use find_joker here

#

Although in my code I just stop when I find a Cow

stone brook
glad sedge
#

please please little help to add TWO vouchers to the begininng of ante? this is the thing i ever needed the most lol

stone brook
#

technically if you install balamod with lovely you can get console too

gilded vortex
#

Do you know the name of the mod that changes Straights into Gays?

stone brook
umbral pilot
#

oooh that inject syntax is cool

stone brook
#

i dont think we need the gsub anymore

gilded vortex
stone brook
#

but yea balamod is epic

#

yea its balamod

#

oh i should work on porting old balamod mods to the new format..

#

guh

#

so much stuff

cursive compass
#

no clue what im doing wrong here this crashes me at startup saying some shit about cards being a nil value

stone brook
#

emplaceref needs self as its first parameter

#

i think

cursive compass
#

ohh

#

ok

stone brook
#

whenever you hook a Thing**:**function() it needs self in the ref function

#

specifically if its a :

#

if its a . it doesnt

umbral pilot
#

that syntax was initially annoying since C++ / Rust are the opposite

#

lmao

stone brook
#

:programming:

cursive compass
#

i think i see the problem

#

gaining a joker unlocks them automatically

thorn hamlet
#

Is there a ressource on good practice for designing textures for jokers, packs, consummables, etc ?

stone brook
#

maybe someone can link them

#

wait mobile doesnt even have a search feature for forums

#

damn.

cursive compass
#

ok this literally doesnt do anything cool

#

there must be another function being called after a joker is added that unlocks them

thorn hamlet
stone brook
#

good luck soldier 🫡

strange frigate
#

would this be the correct way of adding mult if a pair is played?

    if context.cardarea == G.jokers and context.before and context.poker_hands and next(context.poker_hands["Pair"]) then
        mult = self.ability.extra.mult,
        return{
            message = localize {
              type = 'variable',
              key = 'a_mult',
              vars = (a variable)}
        }
    end
cursive compass
#

IT WAS SETRANKS

#

finally dude

rare shell
#

nice!!

cursive compass
#

i think i need to include play_tarot as well but

#

wouldn't it also trigger when you play a tarot outside of blinds?

cursive compass
#

i feel like there has to be a better way to check if you're in a blind outside of G.STATES.SELECTING_HAND

strange frigate
stone brook
#

googling it probably works

gilded vortex
#

Do mods need a license?

stone brook
#

tbh i dunno

#

any licensers

gilded vortex
#

I think I'm gonna release my first mod 🤔

cursive compass
#

...i ended up using a method that's kinda stupid but it works

strange frigate
cursive compass
#

i just made it so if you hover over a card while you're in selecting_hand and you have the joker, everything gets locked

stone brook
strange frigate
#

if hand played is pair, gives +30 mult

#

might change some stuff later ofc but i just need a baseline

river sandal
#

hey guys i need help im little confuesed i dont know how to mod this game i download the injector but if i drag and drop it on the balatro exe nothing happens and also i cant find the 7 zip of mikas mod

lean dune
#

the injector isn't really the recommended way of installation anyway

river sandal
#

ta

stone brook
river sandal
#

thank you

stone brook
#

to make it score, you need to return a number in mult_mod

#

like this: lua return { mult_mod = self.ability.extra.mult, message=localize{type='variable',key='a_mult', vars={self.ability.extra.mult} }

#

if you want it to score the mult when other jokers are scored, use not context.before and not context.after instead of context.before

#

also that mult variable is leaking into the global scope i think, so you should either put local in front of it, or delete the line altogether, since it does nothing (unless youre using mult somewhere else)

haughty hinge
#

imagine someone made like a couple minigames in the balatro title screen for no reason

stone brook
#

super balatrio bros on title screen

#

its time !!!

glad sedge
#

what you guys thinkg of this tuned down scaling

haughty hinge
#

balatro with beta scaling is hilarious

#

you'd reach like ante 300

#

(beta scaling was ungodly slow)

glad sedge
#

im balancing the game to lower numbers!

stone brook
#

it looks low, but if youre reducing other stuff, maybe its fine?

glad sedge
#

yes im reducing the hell out of it

#

very little money

haughty hinge
#

i want kill screen to be ante 100/200

glad sedge
#

reworks on existing jokers, etc

glad sedge
stone brook
#

interesting

cursive compass
haughty hinge
#

i cannot tell what it's increased by

glad sedge
glad sedge
river sandal
#

hey next problem now steam says data is blocked

cunning silo
#

What else do you have planned?

cursive compass
#

the other souls

#

thats it rn

cunning silo
#

Oh

cursive compass
#

i'll probably add more though

#

i feel like literally everything else will probably be easier than control

lean dune
#

that's just straight up worse

cursive compass
#

oh i thought it was 1/2

#

i'll make it 1/2 then

sleek granite
#

its actually 1/1

fallow bramble
#

It's 1/0 .... don't ask

sleek granite
#

also gm chat

sour vortex
#

Has anyone found out how to get mods working on Mac versions of the game V

lean dune
#

also gn chat

fallow bramble
#

Gm Autmn hows it going?

sleek granite
#

i am once again proven incapable of intelligent thought

haughty hinge
#

m

rare shell
#

hiii autumn

sleek granite
#

hi im sorry

woven sonnet
#

I wonder how much it'd cost to commission someone else to assemble a mod...
(not like I'd be able to afford it though lmao)

#

Maybe I'll have to save up...

cursive compass
#

how do you use # in a description just as a letter

#

actually nvm i'll just use "no." instead

astral glade
#

what the oddities

sleek granite
#

oh no

gilded vortex
astral glade
#

no jimbobread man

gilded vortex
gilded vortex
jovial notch
cursive compass
#

is there a way to get the number of suits available in the current run

jovial notch
#

hydra, planet, buffs mult cards, in a tarot pack?

astral glade
#

that is not a tarot pack

jovial notch
#

oh it’s a bonus pack

#

what’s a bonus pack

astral glade
#

filled with goodies

jovial notch
#

Is it just a lil bit of everything?

astral glade
#

sorta

jovial notch
#

Side note, why the hell is there a like 2 card tall gingerbread man?

stone brook
#

jimbobread man

astral glade
#

odditities

gilded vortex
jovial notch
jovial notch
astral glade
#

so sad.... jimbobread man will not be appearing in bonus packs....

silver isle
#

Plain Joker Yorick because why not 😅

gilded vortex
rare shell
#

un-legendaries your card

silver isle
#

😆

#

I've got all the base jokers set up in Pixel Studio, so I can mess with them, so here's another:

#

Light Mode Scary Face

#

Now I just gotta figure out how to code

cursive compass
silver isle
#

Undertale :O

cursive compass
#

theres obviously a lot left to tweak

silver isle
#

This looks great!

#

I mean, mechanic-wise :p

cursive compass
#

also i might rebalance perserverance

#

my idea is

  • prevents death indefinitely if scored chips are at least 50% of required
  • becomes eternal upon preventing death once
  • each death prevented halves its mult (starts at x1)
rare shell
#

i love the color spectrum

cursive compass
#

also made bravery's formatting better

#

i dont know if the term "xmult" is even used anywhere in actual balatro but i'm going with it

jovial notch
jovial notch
stone brook
#

shout out dogeek

simple venture
#

any1 have a template for jokers

rigid jewel
simple venture
#

ty

gilded vortex
silver isle
#

Update for JUSTJIMBO 😁

abstract epoch
#

anyone know the aspect ratio on tarots by any chance?

stone brook
#

theyre all 71x95 with 1px transparent border

cursive compass
#

no idea what i'm doing wrong here

abstract epoch
sullen hemlock
#

I cannot get the steammodded app to work.. i just drag the .exe to it and nothing happens

#

does anyone know what to do?

cursive compass
gilded vortex
cursive compass
#

that was astonishingly easy

astral glade
#

one of these is not like the others....

cursive compass
#

does anyone know how i can change the "saved by mr. bones" text

#

it's in en_us.lua

glad sedge
cursive compass
#

but like

#

how do i set it to something else with my mod

haughty hinge
stone brook
cursive compass
#

better french does it by patching the entire language file but i feel like there must be a way to change just one line

stone brook
#

unless you want to specifically change mr bones

#

you just go G.localization.whatever.ph_mr_bones = "new line"

cursive compass
#

i wanted to change the original line because i looked at it and it seemed like changing the function would be way harder tbh 😭

#

this is where it shows up in common_events

stone brook
#

yeah you can just change G.localization.misc.dictionary.ph_mr_bones

cursive compass
rigid jewel
#

That mechanic is surprisingly not coded for specifically Mr. Bones

#

And is hardcoded

gilded vortex
#

Does anyone know where and how To Do List sets its Poker Hand in the shop?

#

Its a bit annoying to find since it's written sometimes "To Do" sometimes "todo" sometimes etc.

#

And list is a common word

cursive compass
#

i'm curious if i can get this joker to display 2 messages in a row

iron onyx
# gilded vortex Does anyone know where and how To Do List sets its Poker Hand in the shop?
  local _poker_hands = {}
  for k, v in pairs(G.GAME.hands) do
    if v.visible then _poker_hands[#_poker_hands+1] = k end
  end
  local old_hand = self.ability.to_do_poker_hand
  self.ability.to_do_poker_hand = nil

  while not self.ability.to_do_poker_hand do
    self.ability.to_do_poker_hand = pseudorandom_element(_poker_hands, pseudoseed((self.area and self.area.config.type == 'title') and 'false_to_do' or 'to_do'))
    if self.ability.to_do_poker_hand == old_hand then self.ability.to_do_poker_hand = nil end
  end
end```
gilded vortex
#

In set_ability hmmm

#

Looking at it, I think To Do List can't start with High Card, unless something somewhere else changes it first

haughty hinge
# cursive compass

why did i spend the past 15 minutes making an equation to see how far this joker's sell value can go

cursive compass
#

8 antes times 3 blinds times like 4 hands right

gilded vortex
#

Also that while loop tho 💀

cursive compass
#

96

haughty hinge
#

including both hand and -1 ante vouchers

#

hr+6h+2r

#

h = starting hands
r = rounds

#

thank you math calculators

#

im too lazy for these polynomials

#

of course i have no way to fact check this so im just gonna have to pray it is correct

astral glade
#

debug plus my beloved

haughty hinge
#

why do i want the fortune pack to have a fortune cookie on it

astral glade
#

truly the modding image of all time

autumn saffron
#

Genuinely unsure if this is modding or general chat statement but:
.
It could be cool if " non-duplicative" effects could be duplicated/ have an effect.

haughty hinge
#

i mean it can be modded

autumn saffron
#

Examples:
2x "straights can be made with gaps of one" = "straights can be made with gaps of 2" (or 3 or 4 depending on how many duplicants)

iron onyx
#

yeah, that could definitely be coded in

autumn saffron
#

.or making the dice (double luck) busted by having two instances of it ( 3x or 4x? Luck) stuff like that

grand geode
#

oa6 already stacks tho

#

just no blueprint compat

autumn saffron
#

Oh, it does? Nice

iron onyx
#

that's how one of the challenges works

haughty hinge
#

imagine all instances of gaining or losing money doubles

gilded vortex
#

Does anyone know when Jokers can be removed from the deck?

autumn saffron
#

Man, wait honestly thoose were the two i had in mind..weird there were definitely more non-stackable..can you think of any?

gilded vortex
#

Actually I think I have a better question

iron onyx
autumn saffron
#

Still be cool thoe, but thats a shame

iron onyx
#

same for four fingers, given that the entire theming is around four fingers

haughty hinge
#

2 hands of 4 fingers

#

: )

autumn saffron
#

It would be very weird but i suppose it would break theme and be 3 fingers, then 2 then 1

#

"1 card straight flush" just need 4x 4 fingers

cursive compass
#

oh i just realized something

#

jokers with xmult less than 1 will just not trigger

haughty hinge
#

wait really

cursive compass
#

yeah

#

mine isn't at least

#

the variable is x0.5

autumn saffron
#

Blurred joker would be weird.
I guess 2x blurred joker = all jokers count as same suit.

But a bit unsure how you scale it from there.

haughty hinge
#

maybe that's why ramen cant go below 1X again

gilded vortex
# autumn saffron Sell?

They can be sold or destroyed, but also apparently they can be removed in other contexts (like the collection I guess)

#

Wait, I just realized there's an extra if in the original function

iron onyx
autumn saffron
#

multiple Credit Cards would allow further dept: 20 →40 →60 etc

haughty hinge
#

they already do

autumn saffron
#

F me, this game is better than i thought, and its alleredy good

haughty hinge
#

lmao

grand geode
#

modheads how are we doing at this point of day

astral glade
#

sillymaxxing

haughty hinge
#

mathmaxxing

#

(kill me)

astral glade
#

doing more compatibility updates with my mod

autumn saffron
#

.uh what about: multiple showmans increases the likelihood of finding alleredy owned jokers?

haughty hinge
#

maybe

dapper helm
grand geode
#

normal day in modding chat i see

dapper helm
#

too much coffee to chill and too little coffee to get anything productive done

cursive compass
#

you just need to use xmult_mod

autumn saffron
#

Not sure about "every card is a face card" joker.
I can imagine multiple instances of it would mean they trigger face card triggers multiple times? But that would be busted 🤔

iron onyx
#

yeah, i figured it would be

haughty hinge
#

what if base chip|mult was halved every ante

autumn saffron
iron onyx
#

the game would be literally impossible to win

haughty hinge
#

never impossible

grand geode
cursive compass
haughty hinge
cursive compass
#

i might do 75% instead because half mult is basically a death sentence 💀

autumn saffron
#

Nah, it would all "just" have to come from the jokers, nothing depending on bass mult of the hand

haughty hinge
#

nice

autumn saffron
#

Anyway to finish of my rambling of ideas on how to duplicate "non-duplicative effects":

2x Astronomer: "planets and celestial packs are free" = they give money when "buying" them

Would say OP, but with 2 jokers required+ reroll cost...nah 🤔

cursive compass
#

Yall i got a god run on my hands!

glad sedge
#

so no longer a flush huh

cursive compass
#

i actually really like this card ngl its interesting to be technically "saved" from death but you have to lock the fuck in if you want to survive

haughty hinge
glad sedge
#

flush was upgraded more tho lol

haughty hinge
#

sadly it doesn't matter

autumn saffron
cursive compass
iron onyx
#

so this is how people will figure out how to hold R

#

should auto-lose on boss blinds IMO

#

at least auto-lose on final boss blind

gilded vortex
#

New Joker (inspired by @lavish jackal)

iron onyx
#

so you can't just win a run by whiffing over and over

cursive compass
#

i mean

#

halving your mult every time you die is pretty significant

#

unless you have a genuinely insane build

iron onyx
#

yeah, but my point is

#

halving your mult doesn't matter

#

if you don't lose

cursive compass
#

it does because you only get saved if you have 50% of the requirement

iron onyx
#

ohhhhhhh i see

#

so it's a reusable mr. bones kinda thing

#

gotcha gotcha

cursive compass
#

yea

gilded vortex
#

Also Hamster now vibrates like DNA or Trading Card

haughty hinge
#

lose $12-$18 gain $20

#

i see no problem

rare shell
#

buddy holly joker

haughty hinge
#

oh yea + the sell value

gilded vortex
#

I can see this being strong but it's hard to tell how much right now

#

It seems more like a win more Joker

random silo
#

well if you have both reroll vouchers or a d6 tag...

gilded vortex
haughty hinge
random silo
#

with both reroll counchers it costs 6

#

with a d6 tag it costs 3

haughty hinge
#

oh right mb

random silo
#

1+2+3 and 0+1+2

haughty hinge
#

i was just accounting for the t2 reroll voucher not both

#

so $3-$18

random silo
#

potentially cracked joker

haughty hinge
#

this + d6 = pretty good

random silo
#

just be on anaglyph deck and get a d6 tag lol

lofty olive
#

How would I make a joker sprite change based on conditions? Like Ancient Joker changing the sprite when the suit changes for example

gilded vortex
#

No idea

#

The best I can imagine is having the different sprites saved, then changing which sprite applies conditionally

hardy brook
dapper helm
#

next time on dragon ballatro J

hardy brook
#

Now to draw pixel art... something I suck at

cursive compass
#

i'm trying to have a joker trigger whenever the chips you earn from a hand is over half of the requirement but this is always coming out false for me

#

context is after in case that could be causing it

iron onyx
#

aight, i'm gonna... take a break from mod coding for a bit. x card and enhanceAPI seem stable right now, but ping me if they're not

#

i'll fix things if i need to, but i need a break.

hardy brook
#

Is enhanceAPI its own thing too or will it become part of Steamodded

#

like the playingcardAPI

silver isle
#

Loss Joker

#

Loss Joker

dapper helm
#

opposite mr bones

#

kills you if you score more than 20% or something

cursive compass
#

that could actually be really interesting but it'd depend on the build you have

#

like if you have a bunch of levels then it would probably be a decent challenge

#

does anyone know the args for localize()?

#

i can't find it anywhere

silver isle
cursive compass
#

if anyone knows what file it's defined in that's fine too

#

oh nvm its in misc_functions

sullen hemlock
#

do achievements get automatically disabled when modding?

cursive compass
sullen hemlock
#

just discovered all tarot cards and it did not pop up

cursive compass
cursive compass
#

maybe i need to do final scoring step or something idfk

pearl belfry
#

iirc mr bones is "at least 25%"

grand geode
fickle elbow
#

me making compatibility.

sleek granite
#

is there any possible timing to hook into "just before chips are scored into total chips" or do i need to do dumb shit for that

cursive compass
#

i'm trying to hook into the plasma deck balancing rn

lavish jackal
#

i love how not even 2 months in and we're already at the point of mod compat

sleek granite
#

(am afk atm)

lavish jackal
cursive compass
#

yea i got it already im just trying to figure out the variables

#

it said i cant do arithmetic on hand_chips because its a table variable

stone brook
#

just do ol' reliable and print hand_chips to see what it is

sleek granite
#

theres an achievement for scoring 1mil in one hand, so i bet there's probably a check_for_unlock call ...

cursive compass
#

i think that uses career stats

#

if we knew where career stats are updated then maybe

sleek granite
#

clearly i need to put the balatro source on my phone so i can read it while afk...

jovial vault
#

does anyone know if myst is going to be making a thread on how to make consumables planets etc?

sleek granite
#

hell i think i'd be more qualified to talk on that (the answer is no)

jovial vault
#

you should make one then XD

#

(kidding ofc)

sleek granite
#

you should read TheAutumnCircus's source code
NOW
(pretend i have a LTG emote)

astral glade
#

new thread on how to make alchemical cards

fickle elbow
jovial vault
#

is there a blacklist for modded jokers?

#

or a blacklist for any joker

fickle elbow
#

you can use tags to have them not show up in shop or show up when a certain thing(s) happens. if thats what you mean

jovial vault
#

no i mean like a easy way to just select a couple jokers without going into the jokers themselves

#

(I want to disable all jokers that delete other jokers)

sleek granite
cursive compass
#

for some reason

jovial vault
#

eh

#

ill just play black stack :p

sleek granite
cursive compass
#

i see

#

does print() use the lovely console

sleek granite
#

oh yeah

#

you'll need the debug console command if you aren't using lovely for whatever reason

#

which is ?????????????????????????????????????????????????????

#

(idk i use lovely :) )

cursive compass
jovial vault
#

how do you use debug console?

#

(enable it)

cursive compass
#

why is getting thefucking value of the hand so complicated

sleek granite
#

mood

jovial vault
#

lmao

#

my best hand is 0

#

thanks to autumn's mod

haughty hinge
cursive compass
#

its a table when i want it to be a number and a number when i want it to be a table

glad sedge
#

alright who is interested in this new brainstorm?

sleek granite
cursive compass
#

i dont even know where hand_chips is being defined

glad sedge
jovial vault
#

i got 1000+ jokers and sealed them all so my blinds were req 0 and it broke the e300

#

so even though i scored over e300

#

it just counted as 0

#

and i won

#

pretty random interaction ngl

sleek granite
#

oh damn

jovial vault
#

was fun to see after 40m of scoring

haughty hinge
#

just thought of a joker that doubles your money with no limits after doing 3 quests

glad sedge
#

this brainstorm looks for the left card of it.. allowing for more crazy builds and get better scoring of them X mult cards! (since if they are to the left they are not so strong)

sleek granite
#

interesting

jovial vault
#

maybe a brainstorm that copys the ability of the card on the far right would be cool

cursive compass
# cursive compass

oh holy shit it literally IS a table when i want it to be a number and vice versa

jovial vault
#

idk just BRAINSTORMING

glad sedge
jovial vault
#

-user has left the channel-

cursive compass
#

is there a way for me to check if a variable is a table or something

jovial vault
#

stormbrain and its just upsidedown like buckswashler

haughty hinge
#

left brain right brain joker would be cool

glad sedge
#

or hear me out two jokers that act together. instead of blueprint and brainstorm some jokers that look to the left and other to the right. and whatever is in between gets doubles or whatever. like you can have 2 or 3 jokers inside of their logic

sleek granite
haughty hinge
#

forgot what it was

sleek granite
#

though it's kinda weird that the game never actually uses chip_total for arithmetic

jovial vault
#

joker that keeps shop jokers for later shops?

sleek granite
#

instead it re-calcs hand_chips*mult and adds that to the score

jovial vault
#

kinda like freezing in super auto pets

haughty hinge
#

a joker allowing that kind of power is too much

#

maybe voucher/deck

cursive compass
#

i'm so ready for this to somehow crash again and not give me anything useful

fickle elbow
#

how much money does small and medium blind give?

glad sedge
#

3 and 4

fickle elbow
#

k thanks

cursive compass
#

WHERE THE FUCK IS THE ARITHMETIC

sleek granite
#

oh, you'll probably want to tostring(k) and tostring(v) as well, mb

#

no idea bout the crash tho

strong swift
sleek granite
#

ok i gotta go fr now tho programming hate capitalism

glad sedge
#

what you guys think of this reworks?

hit the road ( wont ever reset)
campfire( wont ever reset)
ride the bus ( new rework now you PLAY face cards and each played gives 1 mult and wont ever reset)
obelisk ( playing your MOST PLAYED HANDS give you 0.1 and never resets. and if you have two poker hands at same level, both count as most played)
flower pot ( if any card on your deck, then have the x mult lol )

haughty hinge
#

ahhh pixel jumpscare

sleek granite
#

i wonder how much ppl will hate me if i make Thac require a "core mod" which requires lovely

#

given how many people seem to be allergic to the best way to use steamodded....

haughty hinge
#

hardest one to scale compared to the rest

glad sedge
haughty hinge
#

i've seen 0.5 uncommon obelisk

#

it has never escaped my mind

glad sedge
#

yeah but not playing your hand is boring. now it works for you

sleek granite
#

i think obelisk should still encourage Variety Hand Play, imo just making it not reset is fine

#

or making playing your Favorite Hand only decrement it slightly rather than fully resetting?

glad sedge
haughty hinge
#

hear me out
mr bones saves you no matter what but it gets banned from shop

glad sedge
haughty hinge
#

I think you can try to make it permanently disabled

cursive compass
#

i might need to hook into check for unlock instead

sleek granite
jovial vault
#

make it eternal and perm disabled with like no way to enchance it

haughty hinge
jovial vault
#

naw

haughty hinge
#

i wouldn't wanna take a death protecter with -1 jokers slots

jovial vault
#

the whole point is youve used that joker slot perm

#

my dad would XD

glad sedge
#

a little doubt...spectral_rate = 2 in Ghost Deck deck means... what? was its rate 0 for spectral not to appear in shop, and now its 2? what if i use 1 ? i keep getting legendary cards on shop, i wish i knew how to stop legendary joker card soul for appearing but allowing all others.

#

or reduce its probability its crazyy

haughty hinge
#

should specific blinds have their chance of appearing nerfed with specific jokers

sleek granite
glad sedge
#

behold the no downside spectrals

sleek granite
#

if you have legendary cards appearing in your shop, then thats a different issue

#

we already have a no downside spectral

haughty hinge
sleek granite
pearl belfry
#

I think "halves money" would be more than enough

haughty hinge
#

hermit should go back to having a $25 limit

dapper helm
glad sedge
#

destroying all your other jokers is a no downside???

dapper helm
#

speak on that

haughty hinge
sleek granite
#

there are no downsides

#

nobody has ever lost the game after taking an Offering

haughty hinge
dapper helm
#

i have never won the game after taking an Offering....

glad sedge
#

lol this spectrals are for causal play guys chillll

#

i hate downsides on stuff

dapper helm
#

fair

dapper helm
#

i thought the point was balance but if its just to make it easier then yeah $25 limit on hermit frfr

sleek granite
dapper helm
#

not fun imo

glad sedge
#

i have a new calculation for reroll that starts at 1 and goes up to 10 and stays there. to overcome balatro pool dilution (is it dilution)?

cursive compass
#

why does this crash

sleek granite
dapper helm
#

mikas mod has (or at least had) something that was pretty much no limit hermit and i just hit like $10k in ante 9 then quit cause it was boring

glad sedge
#

yeah point in overpowering things is for endless. people who focus on casual 8 antes want other stuff

pearl belfry
#

100 limit then egg

sleek granite
#

Fortune, 3 in 4 to double with no limit, 1 in 4 to lose it all

#

(it never hits the 1 in 4)

dapper helm
#

i had oops all sixes

cursive compass
#

the one thing i can think of is that check_for_unlock doesnt have the thing before it that all the other functions have but its like that in the original file too

dapper helm
#

its not even 1 in 4 to lose its if you don't win so it can't hit both

granite silo
glad sedge
#

i added mult descriptions for blinds so you know where you are standing

cursive compass
#

also i had to do that for all the other ones

sleek granite
#

you dont for ones without a colon

glad sedge
strong swift
cursive compass
#

oh

umbral pilot
#

it's not that big of a deal otherwise imho

sleek granite
#

Card:draw() is just shorthand for Card.draw(self)

cursive compass
#

nevermind it doesnt crash without self i guess i dont know what i changed

dapper helm
granite silo
umbral pilot
#

I AM EEEEEEEEEEEEE

cursive compass
#

OH

#

I THINK I GOT IT

umbral pilot
#

but I also need to to workie

sleek granite
#

(the bigger problem is that only like four people have lovely installed i swear)

cursive compass
#

ITS PRINTING THE HAND VALUE

umbral pilot
#

5!

#

6 if you count me

sleek granite
#

you dont count

umbral pilot
#

aw

dapper helm
#

we're getting there

cursive compass
#

ok wait its hand value before jokers

haughty hinge
# umbral pilot 5!

i just did tons of math and then i see this and had a phsyical reaction

cursive compass
#

OH WAIT im only printing hand chips duh

#

ok i think i got this now

sleek granite
#

metherul is there a decent guide on howto lovely anywhere

umbral pilot
#

how to use it?

sleek granite
#

ye

umbral pilot
#

or how to install it

sleek granite
#

how to make patches

dapper helm
#

this screen is pretty funny i think

sleek granite
#

devote all mortal possessions to offering

umbral pilot
#

it's been on my todo list but I haven't wanted to write docs soo

#

no documentation atm

sleek granite
#

sick

umbral pilot
#

but you should refer to the steamodded lovely patch as an example

cursive compass
#

how do i do something as a specific joker from a basegame function that ive hooked into

dapper helm
umbral pilot
#

and you can always @ me with questions, I'm not that much of a dick

sleek granite
#

the steamodded lovely patch that does one thing?

dapper helm
#

and miku i guess

strong swift
#

has anyone won a run after taking offering

cursive compass
dapper helm
#

never

umbral pilot
sleek granite
#

nobody's ever lost a run after taking offering

dapper helm
#

no one plays high card

strong swift
sleek granite
#

trust

haughty hinge
sleek granite
#

i think theres also like risk of jesters that does lovely stuff and the debugplus mod iirc

glad sedge
haughty hinge
strong swift
glad sedge
#

what specifically?

sleek granite
#

i see

haughty hinge
dapper helm
umbral pilot
#

yeah, generally all you'll likely need is the pattern and copy patches, both of which are pretty simple and used by ankh and steamodded.

#

patter patch to bootstrap your code, copy patch to get it into the game

glad sedge
#

sure, would you like to play test my fairly balanced vanilla like but without blind bosses explicitly scale based balatro? lol

umbral pilot
haughty hinge
#

not now lol

#

i have a lot of not so important things to do

lavish jackal
#

hi all

dapper helm
#

hi akai

lavish jackal
#

Balatrostuck cooking shall resume shortly

glad sedge
haughty hinge
#

k

sleek granite
#

akai cooking

#

one day i may even taste what akai is cooking....

umbral pilot
#

meth

dapper helm
#

one day...

lavish jackal
#

(its piss)

cursive compass
#

do i need to get rid of this self too

lavish jackal
#

(im cooking piss)

umbral pilot
#

mood

strong swift
lavish jackal
cursive compass
#

yeah

lavish jackal
#

insane

#

we are getting an undertale mod and a homestuck mod

#

tumblr eating good with this one

cursive compass
#

this just says self is a nil value i have no idea how to make a function execute stuff as a joker

sleek granite
#

one day i will enlist all you beautiful artists into a conglomerate with which i can actually make mods at full speed

#

(dont listen to me im probably insane)

umbral pilot
#

imagine making art :-(

#

I just coed

lavish jackal
umbral pilot
dapper helm
#

imagine coding smh

lavish jackal
#

self doesnt exist in this context

#

check what args contains in source code

strong swift
lavish jackal
#

because the passed value into check for unlock is args

glad sedge
#

i live in an apartment and have pretty powerful bass speakers for an apartment...
when balatro combo glows up the fire , the bass from the fire makes hella loud vibrations

so i edited the low frequencies of the audio files so its more quiet for night play lol

lavish jackal
#

or hear me out

cursive compass
#

i just want to do something as that joker when these conditions are met

lavish jackal
#

use headphones

glad sedge
#

lmaooooooooooooooooooo

cursive compass
#

do i need to make another function within that function or something

lavish jackal
#

unsure

#

never used check for unlock

glad sedge
sleek granite
lapis mountain
#

@cursive compass Use args

sleek granite
#

check_for_unlock is mainly useful for hooking into weird timings

lavish jackal
#

i already said that

#

toeler

sleek granite
#

see how Chaos' Stamp works in my mod

cursive compass
#

maybe i should just look at tac

lavish jackal
#

Yeah it doesn't really have an ability does it

#

Also you can do a really stupid workaround

#

Make a new G.GAME variable

#

set it in check for unlock

#

Use it for comparison in calculate_joker func

#

The var will be set in check_for_unlock

#

but accessible from calculate joker

cursive compass
#

you just for the jokers

#

fuck

lavish jackal
#

emihead read above

sleek granite
#

i kinda like it being Joker Gold Card

glad sedge
#

hate this guy. give me ideas to make it more useful or likable

lavish jackal
#

no hes perfect

sleek granite
#

hes already goated?

lavish jackal
#

i love him

iron onyx
sleek granite
#

UI......

lavish jackal
#

but yeah emihead

#

when initializing the game object

sleek granite
#

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

lavish jackal
#

make a G.GAME.is_chip_hand

#

then set G.GAME.is_chip_hand in check for unlock

strong swift
lavish jackal
#

then compare to it in calculate joker

#

@cursive compass

glad sedge
# strong swift blackboard is flawless

but what if you keep drawing cards that contaminate your hand and cannot get rid of it and need also all your hands which will probably give you cards from other suits too

lavish jackal
#

ark procession i swear to god do not talk about blackboard im trying to communicate gamer knowledge

cursive compass
sleek granite
glad sedge
lavish jackal
sleek granite
#

no such thing as a sure thing

lavish jackal
#

like say G.GAME.YourModName.is_chip_score

#

That way if someone makes is_chip_score too, it won't collide

glad sedge
lavish jackal
#

remember kids, setting namespaces and not overriding default game behavior is based

strong swift
#

its ok

lavish jackal
#

Flower Pot my beloved

cursive compass
glad sedge
lavish jackal
#

Great for Straights, Full House, Two Pair

lavish jackal
#

With visceral fury

glad sedge
#

lol but choose one! please

lavish jackal
#

No <3

glad sedge
#

i want to understand whats the parameter of hated loved cards, the least loved then? lol

cursive compass
#

idk what im doing wrong

lavish jackal
#

There are no parameters numbnuts all the cards are good for different uses

#

I'm gonna have a radically different approach going for a Two Pair run vs a High Card run vs a Flush run

tardy sierra
glad sedge
lavish jackal
#

Again

#

great for Straights

#

great for Full House

#

great for Two Pair

#

your odds are very good

#

to proc flower pot

glad sedge
lavish jackal
#

If you think cards have an objective usefulness value you're poisonbrained by conventional roguelikes

#

Everything can be useful

#

If you play it right

glad sedge
lavish jackal
#

I never played a card roguelike in my life

glad sedge
#

i noticed LOLLL joking

lavish jackal
#

I am enjoying this thoroughly

#

Balatro my beloved

glad sedge
#

balatro is love, we agree

lavish jackal
#

I love Popcorn on runs where I get decent X Mult early, it encourages me to skip straight to the boss blind

glad sedge
#

at least in that (L)

wanton rapids
#

blackboard is great

glad sedge
#

it isnt!

lavish jackal
#

It is

glad sedge
#

not. you missed that part.

wanton rapids
#

maybe you just haven't found the right build for it

lavish jackal
#

Stuntman + Blackboard + Smeared Joker

#

Reduce your hand size

#

Play red suits

#

Blackboard proc always

astral glade
#

i love blackboard

glad sedge
#

fine!!! majority loves blackboard so it stays in my mod as is. happy?

#

i will instead, learn how to play it right. and at the end be a better balatro player overall maybe.

wanton rapids
#

the only joker I outright dislike is obelisk

lavish jackal
#

We also love the boss blinds though, like Serpet so cool

#

I love Obelisk

#

its so silly

wanton rapids
#

fair enough

lavish jackal
#

Its like

glad sedge
lavish jackal
#

Sometimes I will play an Obelisk run just to feel something

astral glade
#

ive never really tried to play with obelisk

lavish jackal
#

And when I play an Obelisk run I feel alive

astral glade
#

but it seems like it could scale well but never go into late game

lavish jackal
#

My synapses fire at highest rates

glad sedge
# lavish jackal its so silly

i cant agree with that but i can respect your opinion. blinds are poisonnnn and making all cards debuffed... just why game???

lavish jackal
#

I love blinds

#

They make the game more challenging

#

Because they are designed to counter builds

#

The game would be ass without something to keep you on your toes and forcing you to adapt

astral glade
#

without blinds the game wouldnt be nearly as challenging

lavish jackal
#

again this aint slay the spire

#

this is balatro

#

we gamble in this house

#

you can only lose 100% of your money

#

but gain 1e108% of your money

astral glade
#

credit card

cursive compass
lavish jackal
#

The odds never lie

astral glade
#

credit card.....

lavish jackal
#

I louve credit card

dapper helm
astral glade
#

credit card is silly

lavish jackal
#

Credit Card + Vagabond my beloved

dapper helm
#

credit card is good when it counts

glad sedge
# lavish jackal but gain 1e108% of your money

lmaooo. true. i can fight you over sts and balatro but its not worth the comparison. since as you said, they are different games. sts is unbeliveable balanced. but balatro is luck oriented since its a traditional card game and kind of sort of poker based.

lavish jackal
#

credit card is good when im up against The Ox

#

turn my -20 into 0? dont mind if i do

cursive compass
#

are there any other mods that set G.GAME variables that i can use as reference

wanton rapids
#

credit card is nuts

lavish jackal
#

Then youre chill

dapper helm
#

i always take it when i'm about to lose from having no econ or want an early voucher

wanton rapids
#

credit card + wraith is crazy

lavish jackal
#

Right?

cursive compass
dapper helm
#

i never get the chance to pull off the funny combos...

lavish jackal
#

you have to hook into initialization for the game singleton

#

And set up your own lil corner in G.GAME

sleek granite
#

this aint edh speak in code akai

astral glade
#

real

rare shell
#

i was talking about edh just now

lavish jackal
#

edh?

rare shell
#

autumn installed spyware in my computer

lavish jackal
glad sedge
#

no, i looked at your cards the other day and found them quite creative and cool 🙂

sleek granite
#

lyman you just now noticed

rare shell
#

i noticed when i saw jonklers on my collections page

sleek granite
#

we live in a surveillance state

rare shell
astral glade
#

chat what would you pick from this pack

wanton rapids
#

what does the happy squirrel do

sleek granite
#

happy squirrel makes you win instantly

dapper helm
lavish jackal
#

check above

rare shell
#

lyman pack./..

wanton rapids
#

hm. i'd probably pick $5

sleek granite
astral glade
#

seems like a few of them

lavish jackal
#

Fluorite Octet my beloved

rare shell
#

every card shown is me

#

especially the fool

sleek granite
#

literally every modded card in that pack is lyman

glad sedge
astral glade
#

wtf lyman pack too

cursive compass
lavish jackal
dapper helm
#

all packs are lyman packs

lavish jackal
#

like. brainstorm is fine copying leftmost

wanton rapids
#

what are said edits?

lavish jackal
#

thats the point of brainstorm

cursive compass
sleek granite
cursive compass
#

oh

rare shell
#

fortune

#

fortuno

lavish jackal
rare shell
#

it makes sense

wanton rapids
#

oh try doing G.GAME.balatrotale = {}

#

before that

lavish jackal
#

yo were getting

#

balatrostuck

dapper helm
astral glade
lavish jackal
#

and balatrotale?

sleek granite
#

balatrostruck my beloathed....

lavish jackal
#

balatrostuck, balatrotale, balatrobound when

fickle elbow
#

how would i make an E fit well?

cursive compass
#

does this look right

sleek granite
#

the balatro of isaac: rejoker