#💻・modding-dev

1 messages · Page 339 of 1

manic rune
#

no probs :p

mellow prism
#

losing my mind over this code. it's almost functional but i can't for the life of me seem to get the contexts right for this effect to trigger at any time but when the cards are brought up to the scoring area rather than on trigger, though the message itself does happen after every trigger

#

i might be missing something obvious

daring fern
#

And iterate over the played hand instead.

mellow prism
#

so only context.before?

daring fern
mellow prism
#

do you mean for other_card as well

manic rune
#

i have

#

so many questions

#

what do you mean.ability.consumeable.max_highlighted????

#

isnt max_highlighted in the config table?? 😭

daring heron
#

yeah i cant find that

#

nvm

manic rune
#

HELLO?????

#

IS THIS NECESSARY 😭

#

WHY CANT YOU JUST USE THE SAME

#

dsaldmsal

#

its easy to fix but oh my freaking god is it so weird

dapper sun
#

i tried modifying marble joker code to try and add a card but it isn't working,, ,

daring heron
#

still cant find where the seal code is

daring fern
daring heron
#

thats the problem

#

i dont know what part does that

daring fern
# daring heron i dont know what part does that
G.shared_seals[self.seal].role.draw_major = self
G.shared_seals[self.seal]:draw_shader('dissolve', nil, nil, nil, self.children.center)
if self.seal == 'Gold' then G.shared_seals[self.seal]:draw_shader('voucher', nil, self.ARGS.send_to_shader, nil, self.children.center) end
``` Just replace `self.seal` with `"Red"` for example.
shut crater
#

All of the score calculation code gets runs instantly when play is pressed. Any animations that happen are a result of events that were queued up during the calculation

mellow prism
#

not terribly familiar with the event manager so ig that'll be a useful exercise

#

been trying to keep stuff as clean as possible

#

alas

mellow prism
#

any suggestions on how to start with that?

shut crater
#
G.E_MANAGER:add_event(Event({
  func = function() {
    Do stuff
    return true
  }
}))
shut crater
brisk rose
daring fern
#

Also you can remove the last line unless its gold seal.

daring heron
#

it does move when you hover over it though, can i stop it from doing that?

#

and also this

#

what is this

daring fern
daring heron
#

idunno

#

where should i place it then?

daring fern
# daring heron where should i place it then?

Replace that with lua G.shared_seals[self.seal].role.draw_major = self G.shared_seals[self.seal]:draw_shader('dissolve', nil, nil, nil, self.children.center) if self.seal == 'Gold' then G.shared_seals[self.seal]:draw_shader('voucher', nil, self.ARGS.send_to_shader, nil, self.children.center) end and replace self.seal with 'Gold'

daring heron
#

does it need the if then?

daring fern
daring heron
#

alright

#

nice, it works

#

is there any way of making it stop moving when you hover over the deck?

high sinew
#

im trying to have a card similar to hangman where it destroys two cards and takes the difference of them for a new card added to deck. It isnt working not sure why

EX: 7 and 4 makes a 3

#

base_ranks is defined as ranks in game

brisk rose
brisk rose
#

Not exactly the same

#

Bit very similar

#

This averages doesn't take the difference

#

Wait nvm

#

That's something else?

#

I tho this might just choose one if the ranks at random

high sinew
#

ill lokk

crystal flicker
#

the joker inserts one card into the deck... expected is 51/51, but it registers that i inserted 2 cards in the deck. how do i make the number accurately reflect how many cards are in the deck?

frosty dock
#

doesn't create_playing_card do emplacing and materializing for you?

crystal flicker
placid star
#

is it possible to find the values in center_table.extra and modify them? i looked through the lovely dumps and couldnt find anything then eval'd in game and similarly no results

brisk rose
#

I think that's what you mean?

placid star
#

i want a joker that adds a 20% to shop items, im aware there is a discount var but that gets SET to a new value when buying a discount voucher

#

i just want to use add_to_deck and remove_from_deck to change those vars

brisk rose
#

I don't think that's how vouchers usually do things

placid star
#

G.GAME.disccount.blabla =

brisk rose
frosty dock
#

what's center_table here

placid star
frosty dock
#

yeah because vouchers

#

you just do card.ability.extra

placid star
#

so G.GAME.discount = G.discount... + card.ability.extra.discount ?

last sentinel
#

Is there a meaningful differnece between G.playing_cards and G.deck.cards

manic rune
#

when you draw a card then that card is no longer in G.deck.cards

#

G.playing_cards still includes it

last sentinel
#

ahhh

placid star
#

does buying_card factor in buying a booster?

daring fern
placid star
#

nah i just wondered if i need to use both contexts or just buying_card

placid star
#

whats the thingy for juice_up card?

daring fern
placid star
#

ty i could not find that on the wiki and i forgot the syntax

placid star
red flower
#

send crashh logg

placid star
#

oh yeah my baddd

#

ignore my pissbot ahh code

manic rune
#

remove that

placid star
#

oh yeah that worked ty!

red flower
#

but also you don't really need to juice up the card yourself, the message already does

eager pendant
#

Why do regular cards work, but jokers don't?

daring heron
#

anyone know why this is working when i try running balatro with the lovely folder

#

it works when i delete the folder but it just adds it back the next time

daring heron
#

yup

hushed field
#

Are any of the dump files currently opened when you launch it?

daring heron
#

nope

eager pendant
#

Why do regular cards work, but jokers don't?

daring fern
hushed field
#

I don't know the details of it, but I suspect your permissions don't allow the dump to be overwritten, or deleted by the code itself, which is why you need to do it manually

daring heron
#

also this doesnt work

red flower
#

what part doesn't work

#

and how

daring heron
#

idunno, it just crashes when i start the game

eager pendant
#

dont working

red flower
#

please give as much info as you can

daring fern
daring heron
hushed field
# daring heron

the error here is pretty clear! You've not closed a bracket. Try to follow the color of each bracket and see if there's a counterpart

daring heron
#

that's the problem

#

there is

eager pendant
daring heron
#

as far as i can see theres a counterpart to each bracket

pale venture
#

Does anyone happen to know if it's possible to change the rotation axis of a soul sprite when creating a custom one with SMODS.DrawStep?

red flower
# daring heron

can you screenshot the whole SMODS.Back, i think you're missing something beforehand

daring heron
#
----- EDITION DECK -----

SMODS.Back{
    atlas = "decks",
    name = "Limited Edition Deck",
    key = "editiondeck",
    pos = {x = 0, y = 0},
    loc_txt = {
        name = "Limited edition Deck",
        text ={
            "Start run with",
            "{C:attention}13 {}random edition cards in deck"
        },
    },
    apply = function()
        G.E_MANAGER:add_event(Event({
            func = function()

                local cards = {}
                for i, card in ipairs(G.playing_cards) do
                    cards[#cards+1] = card
                end
                
                for i = 1, 26 do
                    local playing_card_object, index = pseudorandom_element(cards, pseudoseed("extradecks_editiondeck"))
                    local chosen = G.playing_cards[index]

                    local new_enhancement = SMODS.poll_edition({guaranteed = true, key = 'extradecks_editiondeck'})
                            chosen:set_edition (poll_edition("extradecks_editiondeck", nil, true, true), true, true)
                        end
                    table.remove(cards, index)
                end

                return true
            end
        }))
    end
}

----- MOD CODE END -----

red flower
#

oh it's that end in the middle

#

thank you squiggly red lines

daring heron
#

yeah i didnt get those for some reason

daring fern
daring heron
#

oh yeah forgot

#

i'm on the school computer

#

didnt have that installed yet

vocal cedar
#

So

#

anyone possibly see why the xchips aint doing anything

#

i think my context is wrong

#

this is for an edition that adds 2x chips

#

wdym

#

editon?

#

Whole code for context

daring fern
vocal cedar
#

wanted to start real simple tbh

vocal cedar
daring fern
#

self is the edition.

vocal cedar
#

oh thank ya

#

nope

#

x_chips ddidnt do anything

daring fern
#

Also do self.config.xchips

vocal cedar
#

editions there tho

daring fern
vocal cedar
#

still

#

new to this shit lmao 💀

#

let me chec

eager pendant
daring fern
vocal cedar
#

THAT WORKED THANKS

#

also just pinging the hivemind

#

the X1 in big red letters, whats the color code for that for bluew?

#

is there even one?

#

like for XCHIPS

daring heron
#

poll doesnt work anymore 😔

----- EDITION DECK -----

SMODS.Back{
    atlas = "decks",
    name = "Limited Edition Deck",
    key = "editiondeck",
    pos = {x = 0, y = 0},
    loc_txt = {
        name = "Limited edition Deck",
        text ={
            "Start run with",
            "{C:attention}13 {}random edition cards in deck"
        },
    },
    apply = function()
        G.E_MANAGER:add_event(Event({
            func = function()

                local cards = {}
                for i, card in ipairs(G.playing_cards) do
                    cards[#cards+1] = card
                end
                
                for i = 1, 26 do
                    local playing_card_object, index = pseudorandom_element(cards, pseudoseed("extradecks_editiondeck"))
                    local chosen = G.playing_cards[index]

                    local new_edition = SMODS.poll_editions({guaranteed = true, key = 'extradecks_editiondeck'})
                            chosen:set_edition (poll_editions("extradecks_editiondeck", nil, true, true), true, true)
                        end
                    table.remove(cards, index)

                return true
            end
        }))
    end
}

----- MOD CODE END -----
red flower
#

isnt it poll_edition

daring fern
daring heron
#

i tried that but it still doesnt work

vocal cedar
red flower
eager pendant
daring heron
#

looks the same to me

daring fern
red flower
#

oh i didnt see the part before the set_edition
why do you poll edition twice

placid star
#

does anyone know the info_queue for consumable types?

dire palm
#

So, I made this joker that stores a playing card.
It works fine in an uninterrupted run but if I have a card stored, go back to the main menu and then continue the run, the game crashes when I hover over the Joker.
Do you think this can be fixed?

daring fern
daring heron
#

does anyone know how i can change the order of my decks? i don't want them all to just be at the end of the vanilla decks

dire palm
daring heron
#

i have a striped deck that's pretty much checkered deck but with clubs and diamonds and i'd like to put it after checkered deck

daring heron
#

do you know how i can make a deck that gives a random joker?

#

just 1 random joker from all the jokers

#

at the start

daring fern
digital niche
#

im trying to make the things be loaded into a "items" folder but they aint being loaded, how do i make them be loaded?

#

when i open the game they dont show up

digital niche
#

tyty!

dire palm
vocal cedar
#

Anyone know where burn_color is?

#

i think i somehow corrupted it when trying to make a shader

#

and now the base game wont even compile

red flower
digital niche
#

does this work as a list i can call somewhere in the code later?

brisk rose
#

I think you'd just make a normal table of things that count as ore, especially if they're all enhancements

#

this would try to add them as an entirely different smods object

#

i think

digital niche
#

so just Ore = {'(keys)'}?

cursive sentinel
#

is there a context/way of changing number of drawn cards?

#

i don't find where serpent's code is

daring fern
red flower
#

just before the serpent part

cursive sentinel
#

this ?

local hand_space = e
    if not hand_space then
        local limit = G.hand.config.card_limit - #G.hand.cards
        local n = 0
        while n < #G.deck.cards do
            local card = G.deck.cards[#G.deck.cards-n]
            limit = limit - 1 + (not card.debuff and card.edition and card.edition.card_limit or 0)
            if limit < 0 then break end
            n = n + 1
        end
        hand_space = n
    end```
#

ok i may be stupid, will try smth and come back

digital niche
#

im really close to figuring it out! the only thing going wrong is the card is being added anytime

#

if i play a card it adds like 20 enhanced cards, if i win a blind it adds 7 i think, if i select blind i get like 4

#

im not sure why but its something atleast

#

its creating only the cards of the list and have it showing up then going to deck

red flower
#

you're probably not checking context properly

digital niche
#

ooooh yeah i forgot to check for context at alll LOL

#

I GOT IT!

#

its really easy tbh

#

just had to change like 3 lines in the marble joker code

#

want me to send how to do it?

red flower
#

that would be cool thank you

digital niche
#

you welcome! 1 sec

chilly hull
#

still attempting to copy a random joker (as in blueprint effect copy), this time it crashes at a certain line in my program, though idk why

daring fern
chilly hull
chilly hull
#

when will this be actually documented well 😭

unborn bay
#

there is no such thing as good documentation

digital niche
red flower
#

when someone has the time to document the vanilla game lol

SMODS.blueprint_effect should be there at some point

chilly hull
#

i feel like the line is wrong (dont mind the text i havent changed it yet)

chilly hull
red flower
#

pseudorandom_element doesn't take a string as far as i remember
you need to do pseudoseed("trans_rights")

chilly hull
#

whast the difference?

#

it should take one of the compatible jokers at random

native zinc
#

pseudoseed("trans_rights") -> 0.378462983290644 or something, pseudorandom_element needs that number

red flower
#

seeds have to be numbers so the game uses pseudoseed to convert those strings. pseudorandom does it automatically but that one does not

chilly hull
#

ok it copies now!!

#

though i still need to find a way to get it to actually

#

activate

cursive sentinel
#

I got this, but it also triggers when scoring hand does score (bit ugly since it makes cards get drawn despite round being technically finished, before they're sent back to the deck pile, but still functionnal), is the probleme within the contexts i use?

if context.cardarea == G.jokers
        and context.after
        and (next(context.poker_hands['Straight']) or next(context.poker_hands['Straight Flush'])) then
            card_eval_status_text(context.blueprint or card, 'extra', nil, nil, nil, {message = "ACAB!", colour = G.C.CHIPS})
            if G.GAME.blind.name == 'The Serpent' then
                for i=1, card.ability.extra.draw do
                    draw_card(G.deck,G.hand, i*100/(card.ability.extra.draw), 'up', true)
                end
            else
                local hand_space = e or math.min(#G.deck.cards, G.hand.config.card_limit - #G.hand.cards)
                for i=1, hand_space + card.ability.extra.draw do
                    draw_card(G.deck,G.hand, i*100/(hand_space+card.ability.extra.draw), 'up', true)
                end
            end
        end```
bold sleet
#

hello, again, how does one iterate through the whole deck?

flat sorrel
#

for _, v in ipairs(G.deck.cards) do

bold sleet
#

ty

daring fern
#

G.playing_cards

flat sorrel
#

is the difference whether it includes cards which are currently not in deck because they are drawn to hand?

cursive sentinel
daring fern
flat sorrel
#

just a matter of how you interpret what they were asking for then isn't it. does make more sense though than my intuitive intepretation of what they meant

red flower
daring fern
cursive sentinel
#

the issue is, if i play a straight on the hand that makes the scoring go over the chips required

#

i draw cards before the end

#

like, it draws, then put them back in pile

red flower
#

oh i thought you were saying those were separate issues

cursive sentinel
#

it executes before the original game draw

red flower
#

that's why i do a lovely patch

cursive sentinel
#

i mean, i can keep it as is, it's just ugly for cards to be drawn and put back in pile quickly at the end

#

and might interact poorly if i intend on doing a joker whose effect would be on drawn cards

red flower
cursive sentinel
#

what does it mean?

red flower
#

what does what mean

cursive sentinel
#

i mean, what can/shall i do with it?

red flower
#

I did a similar effect, you can use it as a basis for your own patch

#

and it would solve your problem

chilly hull
#

would this work?
im just looking at blueprints' code

daring fern
chilly hull
#

i think i now have copied a random joker successfully but i dont know how to make it activate

daring fern
# chilly hull

You have to put a SMODS.blueprint_effect outside of all contexts.

chilly hull
#

but i just dk how to use it

#

i havent found another od that uses this effect too to base my code off of😭

flat sorrel
#

do you just want a blueprint clone?

native zinc
#

does smod blueprint calculate still break on retriggers

chilly hull
dapper sun
#

how do i make a card with a custom enhancement do something when scored?

flat sorrel
chilly hull
flat sorrel
red flower
daring heron
#

how do i make a deck that gives 1 completely random joker at the start of a run?

#

(and also one that immediately sets all hand levels to 3)

red flower
#

SMODS.add_card{set="Joker"}

daring heron
#

does that do a random one?

red flower
#

yes

daring fern
daring heron
#

i know but i decided thats what it will do in my mod

chilly hull
#

doesnt activate :c

red flower
#

because youre returning before it can reach that check at the end

cursive sentinel
red flower
#

you need to modify hand_space if you have your joker

#

(you probably need a check for if the last hand was a straight)

chilly hull
red flower
#

probably the copied return should go alongside the blueprint_effect

#

but i think you need to return blueprint_effect too

cursive sentinel
glad osprey
#

make sure Joker is a local

red flower
chilly hull
red flower
#

also works

chilly hull
#

lets see

cursive sentinel
#

so in my case would be hand_space = card.ability.extra.draw?

#

thus taking off the fors?

red flower
#

yes but you don't have direct access to card in the patch so you would need to do SMODS.find_card

chilly hull
#

nah it doesnt do anythn

cursive sentinel
#

outside of the smodsjoker then

red flower
chilly hull
#

dis is difficult dang

unborn bay
#

programming

red flower
#

try doing extra = SMODS.blueprint_effect...

unborn bay
#

i loooove extra table

chilly hull
#

whats the extra for?

red flower
#

i literally have a system to do a big concatenation of extra tables

unborn bay
#

same

red flower
unborn bay
#

a return table inside a return table if you will

red flower
#

so it does one effect first and then another

chilly hull
#

aw it still doesnt

vocal cedar
#

chat saturation is a bit high i think

unborn bay
#

man i wish i could make shaders

glad osprey
vocal cedar
#

there we are

#

what we think chat?

unborn bay
#

hell yeah

unborn bay
vocal cedar
#

and like

#

mashed

red flower
#

i hate shaders

vocal cedar
#

them thoehter

glad osprey
vocal cedar
#

yeah

glad osprey
#

twice

vocal cedar
#

how could i take ownership of aura and wheel of fortune to add iridescent to the mix? like anyway to do that without just completely wiping wheel and aura and starting over?

#

and second question

#

how do i change the color of the nameplate lol

#

bettervanilla

#

that is

unborn bay
#

that's defined by your mod metadata

quartz ravine
maiden phoenix
vocal cedar
#

crashes the game immediatlely lmfao

#

if i uswe watch shader

quartz ravine
#

Hi guys, anyone know of a mod which does progressive unlocks? I am looking for an example of how it’s done

glad osprey
#

skill issue?

maiden phoenix
#

Only mod I know that has unlocks

quartz ravine
# vocal cedar if i uswe watch shader

I spent like a day or two running into this problem, in order to use a shader you must define the name of your shader at the top of the code with all of the other external variable declarations in the fragment, shader, and then on top of that because the shader runs in the GPU processing engine, you must use one or more variables of the shader itself or will be memory optimized away by the rendering process

vocal cedar
#

i know some of those words

vocal cedar
quartz ravine
#

Notice how for all of the built-in shaders in the game, they all have an extern variable declaration at the top, and then in the main method it uses the shaders x y or z properties somewhere

glad osprey
vocal cedar
#

oh right okay

#

well

#

heres the issue

quartz ravine
daring fern
quartz ravine
#

Lovely patching can be really difficult to work with because some other mods will also take ownership or alter the base code so it can be extremely difficult to get your patch to actually apply

vocal cedar
#

i actually dont know if i want aura to have iridescent

2x chips is powerful... i was going to make a spectral card that turns all the cards in your hand into stone cards, and then makes one of the iridescent as a way to get em

chilly hull
#

mesed around some more

vocal cedar
#

like lovely patching is cool yes

#

perhaps i can combine poll editions and then just

#

have it have a chance to be iridescent

daring fern
quartz ravine
vocal cedar
#

like i do a "
x = poll editions
y = iridescent

90% chance to apply x edition, 10% chance to apply y

brisk rose
chilly hull
chilly hull
#

but its in the same

#

loop

red flower
quartz ravine
red flower
#

like you just do
_options[#_options+1] = "yourkey"

#

probably after the if so it doesnt affect other modded objects

chilly hull
daring fern
chilly hull
vocal cedar
#

so 90% of the time it would give poly holo or foil

#

10% iridescent

daring fern
vocal cedar
#

etc

daring fern
vocal cedar
chilly hull
vocal cedar
#

like

#

just a bit unfamiliar with it thats all

#

i would obvs want standard packs to be able to rarely come with iridescent as well

#

like what would i do here do add iridescent to my standard packs etc?

daring fern
vocal cedar
#

is e_iridescent created with SMODS.Edition?

#

oh word?

red flower
vocal cedar
placid star
#

my custom card area only had 1 button, for jokers its sell and for consums its use, how can i add avialiabitly for a second button?

red flower
vocal cedar
# daring fern What do you mean?

so i reworked standard packs to have negative playing cards right

its shown here

that local items table has the weights of the editions

how can i add my custom edition to the table here

chilly hull
#

IT WORKS

vocal cedar
#

like this crashes my game

#

doing e_iridescent

red flower
#

isn't it e_modprefix_iridescent

unborn bay
#

yeah

chilly hull
# chilly hull IT WORKS

well if you copy one ability, then next round its incompattible with every joker then it keeps the first ability

#

oh i think i fixed it

vocal cedar
#

lol

#

perhaps thats it

placid star
digital niche
#

why is it showing nil?

daring fern
digital niche
#

enhancement

daring fern
worthy stirrup
#

is there a way to change the jokers art pos mid game?

digital niche
red flower
digital niche
#

but it is working for evey other but this one

daring fern
digital niche
#

oh wait nvm it was just bugged, restarted and now it works lol

brisk rose
worthy stirrup
#

its a lot

#

but im also new to this still

#

is there also a way to get the pos?

daring fern
worthy stirrup
#

oh

#

right

brisk rose
daring fern
# worthy stirrup oh

Also you would replace center with floating_sprite if you want to change the soul_pos

worthy stirrup
#

i dont need to change soul pos

vocal cedar
#

hey fellas i renamed my mod just now and now its like. not getting detected

#

i changed everything

#

complete refactor

#

json file and everything

#

any shots in the dark why balatro isnt even recognizing it now

daring fern
vocal cedar
#

i did

brisk rose
#

Screenshot your mod's folder

quartz ravine
#

did you figure this out? If not, I can show you

daring fern
vocal cedar
#

this all we got

daring fern
vocal cedar
#

here ya go

#

like

#

all i did was change prefix and name...?

daring fern
vocal cedar
worthy stirrup
vocal cedar
daring fern
vocal cedar
#

i mean

#

this

#

but like i said

#

i didnt touch it

#

mod worked

#

i closed balatro

#

renamed everything

#

open balatro

#

nothing

quartz ravine
#

This cat will not stop trying to lay down right on my keyboard

daring fern
quartz ravine
manic rune
#

can someone describe what the vid is about, for some reason i cant watch on phone 😭

worthy stirrup
#

this is just the art so far

manic rune
#

but whatever it is, good job :3

red flower
quartz ravine
manic rune
#

ahhhh icic

quartz ravine
#

wow, good recommendation on Bunco! These joker concepts are great and the unlock is exactly what I want to do

worthy stirrup
#

i can share the shitty code if yall want it

brisk rose
# vocal cedar

Maybe the return the that puts the close bracket on a new line?

brisk rose
#

I just dk how Jason formatting handles whitespace

vocal cedar
#

this is fucking stupid the game is just like "we SEE the json file we just dont care"

#

what

manic rune
vocal cedar
#

nope

#

still vsmods

red flower
#

have you tried changing it

vocal cedar
#

ill try it

manic rune
#

how do people have descriptions in the .json file that's more than 1 line again

#

🤔

red flower
#

idk i use loc files for that

vocal cedar
#

that

#

that was it

manic rune
#

oh, you can use loc files for this?
-# im gonna check joyousspring once again

red flower
#

yeah it probably saves the id in your save file

unborn bay
#

wait loc files exist for mod descriptions??????

#

what the fuck

manic rune
#

:3

red flower
#

you need this if you want it to look good

#

or it will have the joker description background

quartz ravine
#

How may I 'undiscover' a joker? I am trying to test my unlock condition and the joker just is staying unlocked 😄

I set it to unlocked = false, discovered = false but it still persists

manic rune
#

why did it genuinely never cross my mind that you should be able to use loc file for mod description

#

😭

manic rune
#

thanks N', im always in ur debt now 🥀

quartz ravine
daring fern
vocal cedar
#

before you ask yes its a .ogg lol

#

not mp4

daring fern
vocal cedar
#

?

#

nah

#

just setting it up as a sound

red flower
#

oh wow my message was sent very late

vocal cedar
#

i was wondering

#

guys im

#

im actually tweaking

#

i am STARING AT the file path rn

unborn bay
#

how are you playing the sound

vocal cedar
#

its

daring fern
unborn bay
#

have you appended your mod prefix to the sound ye- yeah theres your problem

vocal cedar
#

kinda like this

unborn bay
#

NEVER forget your mod prefix

vocal cedar
#

where should i be putting it lol

digital niche
#

what is the context for holding in hand?

vocal cedar
#

frover_iridescent?

#

or like

red flower
daring fern
vocal cedar
#

ah

#

okay okay

digital niche
quartz ravine
# vocal cedar

I do not specify the path to the sounds I load. I think it just assumes they are in assets/sounds

red flower
digital niche
red flower
#

context.individual and context.cardarea == G.hand

digital niche
#

tyty!

red flower
#

oh and not context.end_of_round i think

quartz ravine
unborn bay
#

wh

vocal cedar
#

what is asset atlas

unborn bay
#

why is there an atlas table specified

hard needle
#

greui6y1324534fghkuyerterhtrwerj768ghe34jy45ghyuiret6gr5e4ewhjrfgergferfghrtyrt

daring fern
unborn bay
#

how you do atlas a sound

hard needle
#

oops

quartz ravine
hard needle
vocal cedar
#

hold on

daring fern
hard needle
#

no i'm not sure though

quartz ravine
#

IDK guys, maybe that is not needed but it does work

vocal cedar
#

okay

#

so

daring fern
vocal cedar
#

its because i didnt put a mod prefix

#

which is CRAZY work to me

#

but

#

now its going

daring fern
vocal cedar
#

yeah okay

quartz ravine
#

the mod prefix thing drove me crazy!

vocal cedar
#

perhaps ill just eat my graphics driver with a fork

vocal cedar
#

is this how we want to play the sound chat

#

this man is RED QUESTION MARK REACTING ME

daring fern
quartz ravine
#

you have to use the prefix to make sure that if other mods have a similarly named file, that it can play the right one. But it felt unintuitive to me for sure

vocal cedar
daring fern
vocal cedar
hard flume
#

How would one go about making a pop-up menu? Uwu I got the button code almost working, I just need to actually. Yknow. Give it functionality.

quartz ravine
#

Thanks guys, I love this

Now I have working unlocks

vocal cedar
#

because it is STILL erroring out

daring fern
hard flume
manic rune
#

🤔

hard flume
manic rune
gilded blaze
#

I'm trying to patch Buffoon packs so that the first card is forced to be a specific card during an event, but none of the print()s are working 💀

cursive sentinel
#

sorry for the disturbance again 😔

red flower
#

you need a different toml file for a lovely patch

cursive sentinel
#

does it mean i have no other solution than the lovely patch? and is there a doc for it? i don't understand how it's structured

#

and what it can use or not from the smods joker' file

red flower
#

the problem with doing it in your joker is that theres no context for "after hand played but if you didnt win" afaik. you can make one but thats another solution

cursive sentinel
#

i tried using mister bones' chip checking but it applies after... so no change

red flower
#

you can maybe use hand_drawn

cursive sentinel
#

is it a context?

red flower
#

yes

cursive sentinel
#

ok trying it

digital niche
red flower
#

need more info than that

digital niche
#

it isnt giving the dollars when held

#

its supposed to give the mult or dollars or chips when held while the scoring things are being scored

red flower
#

i can gather that

digital niche
#

but it isnt giving anything at all

red flower
#

i mean i need the code and the exact effect

digital niche
red flower
#

i dont even know if this is a joker or what

digital niche
#

enhancement!

gilded blaze
#

oh

red flower
# digital niche

hmm never did an enhancement, it might use main_scoring instead

gilded blaze
#

so, buffoon packs are taken ownership by SMODS

#

damn

digital niche
#

main_scoring is for playing the card

manic rune
#

wait

#

why is

#

and not context.end_of_round == G.hand?

red flower
#

why are you doing end_of_round == area?

#

yeah

digital niche
#

i thought i had to add that?

manic rune
#

no, its for context.cardarea

red flower
#

read my original comment again

manic rune
#

context.cardarea == G.hand

digital niche
red flower
#

yes

#

do you see == G.hand there

cursive sentinel
manic rune
#

they meant context.individual and context.cardarea == G.hand and not context.end_of_round

digital niche
#

oh thought it was the last one

quartz ravine
manic rune
#

😭

#

please

digital niche
#

tyty

red flower
cursive sentinel
#

set a flag?

vocal cedar
red flower
cursive sentinel
#

ahh so i set a bool true in context after, and on context draw i do my draw stuff

red flower
#

yes

cursive sentinel
#

ok thanks !

quartz ravine
vocal cedar
#

i KNOW

#

GOD i think i cooked with the shader

#

its so glassy

quartz ravine
#

and shiney. I would love a trading card that looks that good

vocal cedar
manic rune
#

wait

vocal cedar
#

damm

manic rune
#

you made it???

#

that looks REALLY nice

vocal cedar
#

i gotta see them glass

#

thank you lol

digital niche
wise walrus
#

new to this, but is there a variable similar to v:set_seal but for cards? I'm making a challenge where all cards get replaced with Ace of Clubs but not sure what i can use to do that

daring fern
digital niche
#

still nothing

willow plinth
#

lazy bump in case anyone has a quick tip for me here

red flower
vocal cedar
#

alr we got a small problem

#

as pretty as they are

#

shaders hitting the soul as well

daring fern
red flower
vocal cedar
#

wdym dont apply to float

daring fern
vocal cedar
#

AH

#

i see

manic rune
#

how do people do shaders

#

i get a headache whenever i look at the code

#

😭

red flower
#

no idea

daring heron
#

btw does anyone know how i can change the color of this label

red flower
#

in the json

vocal cedar
#

just copy the code lol

#

basically tho

manic rune
#

dang

#

still turned out really nice

#

i could never 🥀

willow plinth
vocal cedar
#

this is the ONLY thing that does anything

#

also fellas

#

this is my iridescent code

#

its MASSIVE

vocal cedar
#

like this shader took me HOURS

red flower
manic rune
vocal cedar
#

LOW

#

so basically

#

i did a holographic shader

vocal cedar
#

then a iridescent shader

#

and mashed em together

#

and juiced saturation

red flower
manic rune
vocal cedar
manic rune
#

bro will actually eat me alive with that shader

#

;sob

brisk rose
cursive sentinel
vocal cedar
#

cavendish looks fucking mental

hushed field
#

That looks sick, freese

cursive sentinel
#

the white behind looks suspicious on it

#

but that may be just me

vocal cedar
vocal cedar
manic rune
#

how op is "Hex" but without the destroy part 🤔

daring fern
unborn bay
#

literally just wheel 2

manic rune
#

true

hushed field
#

Except spectral pool instead of tarot pool is important

manic rune
#

maybe making it so Hex only destroys one random joker is more reasonable as a buff?

hushed field
#

I will say, I personally don't think the vanilla editions on jokers are that strong. I prefer a polychrome playing card to a polychrome joker for sure, and same kinda goes for all editions but negative

manic rune
#

same

#

and retriggers dont account for joker editions, i think

daring fern
manic rune
#

huh

red flower
#

who would put a red seal on a joker thats ridiculous

manic rune
#

yeah, like

#

how can you put seals on jokers...

#

only a madman would add that feature

red flower
#

and where does it end? first you put them on jokers and then what? everything else?

manic rune
#

yeah, like... seals on everything...

#

im considering just removing the downside completely, and make the skill cost like 80 skill points or something

willow plinth
hushed field
#

If you don't want it to be a wheel-but-better, how about destroy one random joker a d add Polychrome to the rest

vocal cedar
#

what if it stripped the editions off of all jokers then applies polychrome

#

no jokers lost

#

but

#

you might lose your foil holo or neg

manic rune
#

-# why would you mourn over losing foil and holo, lets be honest

vocal cedar
#

@daring fern im about to start shrimp reacting you

unborn bay
#

my xchips become more worthless without foil

hushed field
#

Does anyone ever use Hex outside of the ghost deck free one? The randomness is too big a risk for me to ever use it

vocal cedar
#

hey fellas how do you get the default ace on the loading screen to have an edition or put stuff on it btw

#

is there like

vocal cedar
#

an easy way

vocal cedar
#

the balatro ace?

hushed field
manic rune
#

hmm, so i have 2 options here:

  1. destroys one random joker, turns all jokers polychrome (ice suggested)
  2. strips editions from all jokers that dont have polychrome, then turn a random joker into polychrome 🤔
vocal cedar
brisk rose
willow plinth
vocal cedar
#

but its gotta be an ante one or two

manic rune
#

the second option would make you want to opt for a full polychrome joker build, which is not as good as it may sound

daring fern
# vocal cedar the balatro ace?
[[patches]]
[patches.pattern]
target = "game.lua"
pattern = "replace_card.states.visible = false"
position = "before"
payload = "replace_card:set_edition('editionkey', true, true)"
match_indent = true
overwrite = false
rapid stag
#

...what if editions scaled?
very slowly, but

manic rune
#

i added a skill that adds scaling to playing cards

willow plinth
#

i hope @daring fern is doing this with a bot, otherwise damnthatscrazy

manic rune
#

they arent

daring heron
#

how would i set the level of each poker hand to 3 at the start of a run with my custom deck?

manic rune
#

do yall think this is reasonable

#

since stone cards are genuinely so ahh 🥀

daring heron
#

like, i want the poker hands to start at lvl 3 when you start a run with this deck

manic rune
#

this is the most expensive skill in the tarot section, and i think the reason is pretty clearly seen here

karmic arch
red flower
karmic arch
subtle hawk
#

How do I change rank of a card with a sticker

manic rune
#

perhaps, whoever thought of that name must be insanely cool 🤔

red flower
#

bepis you should play trails its one of the inspirations for honkai sr

manic rune
hard flume
#

Hi chat :3

manic rune
#

i should probably search it later then

karmic arch
#

hi carrot

manic rune
#

hi 🥕

red flower
daring heron
#

but, is there not just a way to set the level manually to 3 for each poker hand?

red flower
manic rune
#

🤔 i can actually see a bit of inspiration from here, just a bit

hard flume
#

I'm trying to get Pikmin working. Why did I decide to do this for my first foray back into modding...

red flower
#

im so excited for the remake

manic rune
#

dude thinks hes dr ratio 🥀🪫
-# thats not a girl right

red flower
#

i love olivier

manic rune
#

lly

red flower
#

i will put him as my pfp

manic rune
#

actually

#

is that a gun or a book

red flower
#

gun

manic rune
#

.

#

im embarrassed, im gonna leave the server now

#

:3

hard flume
#

No dont

red flower
#

it kinda looks like a book

rapid stag
#

i thought it was a book too

karmic arch
hard flume
#

I thought it was a book three

rapid stag
#

actually, i had a thought.
what is the structure of an edition when it's instanced?

like, say i have a polychrome joker. can i access the edition and increase its xmult. is that possible

hard flume
manic rune
hard flume
#

That too

manic rune
#

and having a bad edition on created jokers might even be a downside, since you cant turn them into negative with ecto

vocal cedar
#

someone quickly run me through lovelypatching poll_editions again?

#

or does someone have an example of them using it?

vocal cedar
vocal cedar
daring heron
#

is this deck even used?

daring fern
vocal cedar
manic rune
#

a lot of mods use it

#

but other than that, no

subtle hawk
daring fern
rapid stag
karmic arch
#

foil deck? (i wrong maybe)

daring fern
red flower
daring heron
#

this is foil deck apparently

#

anyway is there a way to set the hand lvl to smth?

daring fern
hard flume
#

Where is like. The code for the deck menu in a run stored

daring heron
#

no thats the unused foil deck

daring fern
daring heron
#

fair enough

daring fern
karmic arch
#

old Braided Deck lock nice

daring heron
#

just a question do you always talk with punctuation like that?

#

(when my friends do that theyre annoyed or smth)

karmic arch
#

no? maybe

daring heron
#

so just wondering if i did smth

#

(for somethingcom btw)

daring heron
#

okay phew

manic rune
azure stone
#

Also @quartz ravine turns out you did everything right. I just didnt know that I had to save 😭😭😭

karmic arch
#

I'm too lazy to go to a translator or think about how to do it correctly since my native language is not English

rapid stag
daring heron
#

but does anyone know how i can set the hand level to smth?

manic rune
red flower
#

yet

vocal cedar
#

i would also need to change the localization for wheel and aura i guess huh

manic rune
#

actually

vocal cedar
#

eh

manic rune
#

someone should add enchants to jokers

vocal cedar
#

giving my burnt joker fire aspect

red flower
#

level_up_hand

daring heron
#

which hand does that level up?

red flower
#

it's a function, the one you give it

vocal cedar
#

SICK

#

OKAY NICE

#

how does one change the localization of a vanilla object without taking ownership though btw?

karmic arch
#

for k, v in pairs(G.GAME.hands) do
level_up_hand(self, k, true, 3)
end?

red flower
#

and it will replace them

vocal cedar
#

huh

#

really

#

that simple?

hard flume
#

Sorry, I'm looking and can't find them

red flower
hard flume
#

Yes, but like. Okay, Just give me a sec to explain exactly what i want to do. It might not be possible

manic rune
#

i think by the point my pc loads the function N' already answered your question 😭

red flower
#

i make a lot of overlay menus for my mod

hard flume
#

I wanna create a card area that stores cards of a specific suit, but can only be accessed after pressing a specific button on a card

manic rune
#

oh

#

you should definitely check joyousspring then

hard flume
#

Oki! I'll look into that then

unborn bay
#

G.FUNCS.overlay_menu takes in a uibox

daring heron
unborn bay
#

can be anything

hard flume
red flower
daring heron
#

tried this but it doesnt work

red flower
hard flume
#

Ty so much!! I appreciate it

daring heron
#

oh okay

#

do i just put that instead of level_up_hands(pair,3)?

red flower
#

yes

vocal cedar
#

wheres all the weights of the base game editions stored

#

or does anyone know them off the top of their head?

#

im trying to make iridescent rarer than neg just

daring heron
#

so this

vocal cedar
#

not knowing where they are

red flower
vocal cedar
#

what lua file?

manic rune
red flower
#

game.lua

vocal cedar
#

thankya

manic rune
#

or maybe a bit rarer than polychrome, since chips are abundant

#

so xchips is overall more powerful than xmult

red flower
manic rune
vocal cedar
#

eh i might make it just as rare as neg

#

its the strongest scoring edition

red flower
#

xchips might be stronger as an edition

vocal cedar
#

yep

#

irid is an edition

vocal cedar
#

weird

red flower
#

yeah multiplying chips in played hand is like the only xchip difference that makes it better

manic rune
#

i dont really think x2 chips is stronger than +1 joker slot personally, since it allows you to get more jokers for your build

red flower
vocal cedar
#

i meant for card enhancments tho

#

like a glass iridescent red seal

#

good god

manic rune
#

oh

#

oh yeah ic, as a playing card edition i think its fine then

vocal cedar
#

ill let irid hit jokers by wheel, prob just as frequently as poly
aura will be a rare rare hit, i want aura hitting irid go "oh shit fr"

#

but neg jokers are much stronger than irid jokers yeah

#

im adding a specral card as well

#

Graveyard: Turns your entire hand into stone cards then applies Iridescent to a random Joker, or Playing card
80% chance it hits a joker 20% chance it hits a playing card

manic rune
#

neg playing cards can be too, but there are not many mods that expand on neg playing cards anyways lol

vocal cedar
#

mine exclusively does lol

#

i started with that

manic rune
#

oh

vocal cedar
#

only prob with neg cards is

#

neg steels or golds are vicious lol

manic rune
#

the problem with neg cards is that it absolutely has no downsides

#

like

red flower
#

i have a single card that adds negative playing cards

#

but theyre kinda boring

manic rune
#

the downside of having more cards in your deck is that you might not draw your best card

and negative playing cards dont have that downside at all, since drawing that allows you to draw another one immediately

vocal cedar
#

so i nerfed negative cards in a way

Mime cannot retrigger negative gold cards or steel cards

Baron cannot target Negative Kings.

Negative steels and golds will still trigger one time right but they cant be retriggered in hand

#

so this encourages you to use negs to draw more powerfull hands

#

instead of hoarding them as steel kings for baron lol

vocal cedar
#

just because otherwise negative steel red seal kings hits naninf faster than my uncle finding a new wife after a divorce

#

(fast)

manic rune
#

you only managed to nerf them, but neg playing cards still have no downsides despite that since, like i said before - the only problem with taking more cards into your deck is that you reduce the odds of drawing your best possible hand, neg cards dont have that downside at all

vocal cedar
#

sure you would always draw your deck

#

but negative glass isnt gonna be as strong as polyglass or irid glass eventually

manic rune
#

i think i would never use negative cards to score, honestly

vocal cedar
#

the only downside to negative cards is they cant have scoring enhancements tho

#

yeah

manic rune
#

they are just there for the hand effects

vocal cedar
#

i want them to be good for hand effects but i want people to also use them for scoring

#

which is why im nerfing mime and baron on them only

#

but i dont think thats truly enough