#💻・modding-dev

1 messages · Page 232 of 1

frosty dock
#

the cheap way to do something like that however is stickers

lyric wadi
#

possibly

#

yeah okay there's something wrong here

#

just a hunch

red flower
#

??

manic rune
#

??

frosty dock
#

??

maiden river
#

??

sullen fern
#

??

frosty dock
#

seems you have a lot of nodes in a column

hushed field
#

The nice thing about stickers is that they can stack, so you can make multiple types of new card upgrades out of them

lyric wadi
#

??

hard flume
#

Oh okay. I'll look at how some other mods do that. If I can't figure it out, I'll just use Stickers. Thanks though!

frigid flame
#

??

manic rune
sullen fern
weak brook
#

ok i got a much simpler question to ask now

lyric wadi
tall wharf
weak brook
#

where can i get the number value on a joker that determines its order in the collection

lyric wadi
#

so it's a column container

#

with 5 rows container

weak brook
#

for example, jimbo would be 1, perkeo 150, wheres that stored

zealous glen
#

This you?

lyric wadi
#

then each row container has a column container with 5 text

#

so 5x5 grid

hard flume
#

I know I'll use stickers for Runes, but I don't necessarily think I want Effects to be stickers. If I have to, I'll make them stickers. But I'm willing to do the hardwork to get them to function how I want them to

vale berry
weak brook
#

thank you thank you

lyric wadi
zealous glen
lyric wadi
#

so 3 letter word, 4 letter word, etc

vale berry
#

ohh

frosty dock
#

yeah the inner columns mean the individual text nodes are stacked vertically

#

the width of the text nodes would also end up being scuffed

zealous glen
#

You can force a minimum width right

frosty dock
#

I'd at least set a minimum width

lyric wadi
#

better but text still dont show up

frosty dock
#

maybe even fixed width

lyric wadi
#

or do i have to set text colour

#

yeah actually

frosty dock
#

probably

lyric wadi
#

fixed with would be great for a grid

frosty dock
#

not sure what the default is there

lyric wadi
#

also still pretty long for a bingo board

zealous glen
#

Maybe the outer column can squeeze

#

Idk what would be the setting for that

#

Maximum height?

gaunt elm
#

Hello people! Anyone knows how I can make a modded joker create another modded joker in the code? It doesn't seem to work if I use their key

tall wharf
#

aure how do you actually make planet cards

#

like the use function yea but like

red flower
manic rune
#

advertise_card

#

:3

red flower
#

😦

gaunt elm
frosty dock
tall apex
#

hey does anyone have like a guide layout for the skeleton of making a challenge? im a visual person and some of this word stuff is getting lost on me c:

manic rune
lyric wadi
#

why is the text invisbible :dismay:

frosty dock
#

have you tried adding a colour to the text nodes?

lyric wadi
#

yes

#

is it scale??

frosty dock
#

huh maybe

paper zealot
manic rune
#

pretty sure not

#

since lua is very lenient and numbers kinda count as strings too. i think

frosty dock
#

I don't think it likes passing numbers where strings are expected

#

strings are indexable while numbers aren't

manic rune
#

oh yeah

sullen fern
#

yes

tall apex
sullen fern
#

"puyo" is my mod prefix

manic rune
#

keywords with "-" in them act weird, i guess

lyric wadi
#

tried changing it to this and still no text show up :(

paper zealot
lyric wadi
#

ah

manic rune
#

yup, adding anything that isnt letters seems to break the code, hm

lyric wadi
#

that

#

that'd do it

sullen fern
#

here's a suit from my mod as an example of what i'm trying to do

#

the key is RedPuyos

manic rune
#

weird

lyric wadi
#

nope

#

still nothing

#

changed to dark

#

bso::

paper zealot
lyric wadi
#

but i thought 1 was too big

#

but i'll try

sullen fern
#

any reason as to why it STILL doesn't work

#

i have it set up correctly so why does it not work

sullen fern
lyric wadi
#

set them to 2

sullen fern
#

this shit is absurd

manic rune
#

do symbols in a string like "-" even matter, like what

paper zealot
manic rune
#

oh what the fuck

lyric wadi
#

oh

#

i was basing it from the wiki page

frosty dock
lyric wadi
#

where it used like 6-8 for a pretty big looking square

sullen fern
#

i JUST realised that now

frosty dock
#

wow how readable

lyric wadi
#

cant wait for white puyos

tall wharf
#

ok seriouslty

#

planet cards are somehow a pain to make

#

wtf do you even do here

tall apex
#

am i stupid? what am i missing?

manic rune
#

HUH???

zealous glen
#

What about the invisible puyos

manic rune
#

am i misunderstanding how strings work 😭

#

theres no "e*3" in "e3", what??

tall apex
#

ive only made jokers i wish i could help :(

#

i am ammassing knowledge, for i am the student, not the master c:

tall apex
manic rune
#

e3 = e*3 confirmed

#

💔

frosty dock
tall apex
frosty dock
#

the misc.challenge_names is how you get there in the table

manic rune
tall wharf
manic rune
#

i think im misunderstanding the fundamental concept of how strings are constructed

#

💔

tall apex
#

tyty

frosty dock
zealous glen
paper zealot
sturdy compass
# tall wharf

You’re not returning a “colours” field in loc_txt lol

tall apex
#

i thought- wait i dont i need the key for the challenge?

manic rune
#

i dont fucking know 😭

#

oh my fucking god, and when i thought i couldnt hate string manipulation more

tall wharf
#

do i just fucking copy from the game or what

zealous glen
manic rune
#

THIS HAPPENS

frosty dock
tall apex
#

ohhh gotcha

zealous glen
#

Look at the documentation of the function you’re using

#

See if it’s regex

sturdy compass
frosty dock
#

lua does not have regex

manic rune
#

...oh, i think i know whats happening now

hardy viper
#

string.find uses a pattern by default

manic rune
#

it fucking ignores the "*3" part it seems

#

so its just checking the "ea"

frosty dock
#

string.find does use lua patterns

hardy viper
#

fourth param to string.find is "raw" which will disable Lua pattern matching functionality

frosty dock
#

which isn't regex

manic rune
#

oh, is it this one?

paper zealot
hardy viper
hardy viper
paper zealot
#

    ( ) . % + - * ? [ ^ $
The character `%´ works as an escape for those magic characters. So, '%.' matches a dot; '%%' matches the character `%´ itself. You can use the escape `%´ not only for the magic characters, but also for all other non-alphanumeric characters. When in doubt, play safe and put an escape.
lyric wadi
#

ive set everything to fixed with and height of 20

#

still no text

frosty dock
#

did you add scale?

manic rune
#

welp that explains a lot

#

🔫

#

thanks guys

lyric wadi
#

oh

#

content of a g.uit.t cannot be changed interactively

#

fuck

#

do i have to do dynatext 😭

frosty dock
#

how interactively do you need it to change

lyric wadi
#

pretty

paper zealot
#

Oh, are you setting the values to bingoBoard after creating the UI?

lyric wadi
#

like

manic rune
#

there we go

lyric wadi
#

in fact you could call it very

#

cuz it's a bingo board

#

it need to changes when a cell is daubed

#

and also it needs to generate a random board

frosty dock
#

but does it need to update during the time the description is shown?

#

it regenerates as soon as you hover again

lyric wadi
#

but like the table is initialised with strings in them

#

so why is it not showing up

manic rune
#

i think i can share the link

lyric wadi
#

it has dummy strings '??' in it

hardy viper
#

i hate ref_tables

frosty dock
#

can I see the code again

lyric wadi
hardy viper
#

every time a language is made without direct access to pointers an angel loses its wings

frosty dock
#

try adding scale to the text nodes

#

idk how text nodes with no scale behave

manic rune
#

...hm, another issue i didnt think of

#

i think its pretty hard to fix this though

lyric wadi
#

holy fuck

#

it was scale

#

so

manic rune
#

could probably run another loop, checking how many keywords fit the match

then prioritize the keyword with the longest length

lyric wadi
#

lesson learned : c.uit.t scale defaults to 0

#

for some fucking reason???????/

frosty dock
#

yeah that's not a reasonable default haha

red flower
glad osprey
#

is there any documentation for SMODS.Center:extend?

hardy viper
#

why are you making text lmao? so that people can read it? nerd

manic rune
maiden river
#

dunno if I'm having a skill issue or smth is up with smods but
I destroyed a card with Sixth Sense and now my deck is... strange

frosty dock
#

I recommend staring at smods src/game_object.lua until you get it /s

maiden river
#

sarcastic?

frosty dock
#

there isn't much magic to extending SMODS.Center specifically

#

it's already a finished class (in the sense that it has everything a class needs to have to be viable to call), so extending it just means adding default properties and functions

manic rune
lyric wadi
#

les go????

glad osprey
#

im gonna turn balatro into a rougelite

frosty dock
#

??

lyric wadi
manic rune
#

this still feels like black magic

lyric wadi
#

for some reason still not grid aligned

manic rune
#

:3

#

-# im completely side-tracked from working on my mod now bruh

frosty dock
#

oh wait, wouldn't the text nodes need fixed width too?

tall wharf
lyric wadi
#

oh

manic rune
#

that looks incredibly painful to debug

#

💀

tall wharf
manic rune
#

and you can add shit and allat into it, then it copies the modified string to your clipboard...

lyric wadi
#

there we go

#

it is noe grid aligned

#

hell ye

#

just need to reduce the spaces between rows

maiden river
lyric wadi
#

invisible 6

manic rune
#

thats def an improperly destroyed card

lyric wadi
#

destroy it after 2 blinds to copy a random playing card

wintry solar
onyx sonnet
#

Is there a way to force a certain card to be drawn?

maiden river
steep bronze
#

Question: To make new cards for the deck, is it better to do it with a white or transparent background?

paper zealot
# lyric wadi

The h and w parameters aren't doing anything here as they're not used by UIT.C and UIT.R UIElements - only minw, maxw, minh and maxh. I'd recommend just removing them, the container will size itself to fit the contents

turbid maple
wintry solar
manic rune
maiden river
onyx sonnet
#

also drawing it from deck to hand

wintry solar
#

I remember fixing some sixth sense stuff but I can’t remember when it was

turbid maple
#

oH you mean draw as in draw from the deck my bad

frosty dock
#

I'm pretty sure sixth sense issues were fixed between 0301a and 0305c

turbid maple
#

I was wondering why you're trying to get a card to render

onyx sonnet
#

lol

frosty dock
#

I don't think the fix would be flawed in a way where it causes ghost cards though...?

turbid maple
#

I don't remember the names but misc_functions.lua should contain some code that show you how cards are drawn

onyx sonnet
#

thanks! ill go check em out rn

turbid maple
#

I know there's one like draw_from_discard_to_deck

#

essentially it's just moving cards around cardareas

manic rune
#

a dumb idea, but what if how it works is that you draw cards from G.deck.cards in order?

#

so you can just put any card to the first index of G.deck.cards

#

and maybe it will draw that card first, idk :3

frosty dock
#

that is true

manic rune
#

...wait it is?

maiden river
frosty dock
#

the deck is actually shuffled and drawn in order

lyric jasper
#

why does this crash in the stickers part?
SMODS.add_card({set = 'Joker', area = G.jokers, key = 'j_idk_fallocardiaco2', stickers = 'eternal'})

frosty dock
#

no trickery to see here

manic rune
#

🔥

frosty dock
#

it needs to be a table

lyric jasper
#

oh okay

frosty dock
#

stickers = { 'eternal' }

lyric jasper
#

ty

manic rune
#

😭 it was just a dumb guess, didnt expect it to be how it actually works

frosty dock
#

also you can omit the set and area. set is only needed when generating a random card, and area is inferred from the key when spawning a fixed key

scarlet spire
#

hmm, how can I apply additional effects to the soul sprite like hologram does? not the shader itself, but just making it move around more, and having no shadow

tall wharf
#

worst ever code

sturdy compass
#

Oh my goodness

manic rune
#

can someone help me with making this look better, thanks :3

manic rune
#

those numbers are the same!!!

#

ghhh

edgy mountain
#

how would i go about changing a sprite of an enhancement based on a config attribute?

onyx sonnet
#

@frosty dock when does the deck get "shuffled"?

edgy mountain
#

wanted to have it change sprite depending on the "active" atribute

manic rune
#

you could uh, check whether active is true or not inside calculate, then set the pos of the joker's sprite

edgy mountain
#

inside of calculate?

manic rune
#

card.children.center:set_sprite_pos({x = 0, y = 0})

#

probably this

edgy mountain
tall apex
#

mc 'scuse me?

manic rune
#

:3

tall apex
#

me omw to try a new deck (i am hyperfixated on the misprint deck)

distant grove
#

On a scale of 1-10 how hard is it gonna be to make Roland?

modern kindle
# manic rune

It's always funny to leave a message of insult
Right now when a card activates I have it telling the player to off themselves

#

Naturally that won't make it to release but

manic rune
#

mhm, i understand lol

#

i want to nerf glass cards in one way or another

#

the x2 mult is just busted as hell 💔

modern kindle
#

I have a card that has a 20% chance to turn your hand into glass:)

manic rune
#

if i were to ever make support jokers for glass cards

#

they will definitely include something to make them more prone to become destroyed

#

for X2 Mult you should expect those cards to be destroyed very frequently

#

1/4 is still too lenient 💔

modern kindle
#

Shit you say that but most times my shit break 1st use 💔

onyx sonnet
#

that 1/4 usually feels like 1/10

manic rune
onyx sonnet
#

especially with how out of hand it can get once you start duplicating glass cards

modern kindle
#

I seem to have the inverse of most people where my wof hits often, but my glass breaks often as well

manic rune
#

exactly

#

its hard to balance "retrigger playing cards" jokers primarily because of glass cards existence 😭

red flower
#

do u balance your mod???

modern kindle
#

You could just make it read the glass center and not retrigger those

manic rune
#

do you want something like this to happen :3

red flower
#

i love seele

onyx sonnet
#

we need to buff unenhanced cards

#

🧠

manic rune
#

she has higher base speed compared to others

#

which means she can consistently retrigger herself without needing others' help

#

with enough eidolons she can push her speed up to 200, which means 1 retrigger every hand

red flower
#

letsgo

tall apex
manic rune
#

im doing every character justice :3

#

they will all have their own use in some way

#

even arlan (he will be useful in hand-draining teams)

modern kindle
#

Frankly we should allow multiple enhancements on one card
I want a lucky stone card

manic rune
#

thats quantum enhancement.

modern kindle
#

Oh true

#

I forgor

#

Do we have quantum editions

onyx sonnet
manic rune
modern kindle
#

Haters in this world

scarlet spire
#

i've gotten it to almost work on varying levels of jank, but none of them actually function

manic rune
strong jacinth
#

Does anyone know what causes this?

edgy mountain
#

it does work

#

but as soon as the card goes to the deck the sprite goes back to the original x:0 y:0

manic rune
#

what do you mean by "go to the deck"? is this a playing card

#

-# also, fix your indentation

#

and you can actually use not card.ability.extra.played instead of card.ability.extra.played == false :3

modern kindle
#

To make people mad I'm gonna start making the most diabolical indentation possible

manic rune
#

please.

frosty dock
#

from memory, at end of round and when playing cards are added into G.deck

#

what's funny is that the deck pile behaving this way is completely obvious if you know about the misprint exploit

onyx sonnet
#

ohh

#

i think i heard about it

#

misprint can show the next card in your draw pile

#

as one of the random texts

frosty dock
#

yep

latent portal
#

question

#

to check a card's edition, do you do card.ability.edition or card.edition?

unkempt thicket
#

How can i check the rairty of each joker in shop?

onyx sonnet
frosty dock
#

seems about right

onyx sonnet
#

👍

frosty dock
#

but anytime during the round is fair game too, depends on what you want to do

onyx sonnet
#

"At the start of a round, always draw a card of your most numerous rank and another of your least numerous rank."

manic rune
#

most numerous rank?

onyx sonnet
#

most numerous, as in quantity

edgy mountain
onyx sonnet
#

for example in this deck, it would pull the first seven it finds and first eight it finds to the top of the deck

frosty dock
#

what if I have 1 hand size

onyx sonnet
#

it wouldnt draw anything

#

or

tall wharf
#

this shit is so ass

hushed field
#

I have some cards that draw specific cards from the deck, you don't even have to shuffle to make that work, if you have certain cards that care about that.

onyx sonnet
#

actually it would probably draw your most numerous only

#

since this changes the deck order instead of adding it on later

strong jacinth
#

Quick question, how do i size a popup

onyx sonnet
#

Its main purpose is to facilitate deck fixing, so you always draw the cards you're trying to get rid of and the cards you want more of

tall wharf
manic rune
#

@frosty dock sorry, but is there a way to add Mult without needing to use return?

tall wharf
#

NVM

onyx sonnet
#

if theres multiple ranks that fit the criteria, it picks the first one of those that it finds

tall wharf
manic rune
#

o

#

nice

onyx sonnet
verbal wyvern
onyx sonnet
#

the scrabble mod is probably my fav ever

frosty dock
#

if you want an effect outside of calculate, you should use SMODS.calculate_effect

#

e.g. SMODS.calculate_effect({ mult = 4 }, card)

manic rune
tall wharf
frosty dock
#

if you want to add mult in a calculate function without returning, you should add it to a table to return later

tall wharf
#

😭

manic rune
#

oh, i see

#

thanks :D

manic rune
verbal wyvern
frosty dock
manic rune
#

this will do it, right?

frosty dock
#

you can stack consecutive effects using the extra property of an effect

manic rune
#

wha

#

whats that

latent portal
#
use = function(self, card, area)
        if G.jokers.cards == nil then
            G.E_MANAGER:add_event(Event({trigger = "before", delay = "1", blocking = true, blockable = false, func = function() return true end }))
            return SMODS.calculate_effect({message = "Nope!", sound = "cancel"}, card)
        end
        local available_jokers = {}
        for _, v in pairs(G.jokers.cards) do
            if not v.edition == "e_negative" then available_jokers[#available_jokers + 1] = v
            end
        end
        local chosen_card = pseudorandom_element(available_jokers, pseudoseed("HENSHIN !! ! !!!"))
        if chosen_card == nil then
            return
        end
        G.E_MANAGER:add_event(Event({trigger = 'before', delay = 0.4, func = function()
            card:juice_up()   
            play_sound("generic1")
                chosen_card.edition = "e_negative"
                return true
            end
        }))
    end,```
strong jacinth
#

Yo aure

#

How do i resize a popup

frosty dock
#

I don't recommend calc effect inside calculate because it will be out of order with other effects

latent portal
tall apex
#

hey does anyone know how to make a challenge joker negative?

frosty dock
latent portal
#

or "e_negative"

frosty dock
#

how much of that is inside if G.jokers == nil then

latent portal
#

i dont remember which

tall apex
latent portal
#

i missed an end

#

oh wait no i didnt

#

nvm

#

only 2 lines are inside if G.jokers.cards == nil then

frosty dock
#

this is how it looks on mobile btw

manic rune
#

somehow N' can read code like that

#

💔

red flower
#

it takes me a bit tho

latent portal
#

im gonna go do something rq

#

if u guys have any ideas drop them here and ill try them

tall apex
#

oh it was that i had it formatted wrong c:

manic rune
red flower
#

does edition == "e_negative" even work?

onyx sonnet
manic rune
onyx sonnet
#

ignore the kitty cat

tall wharf
manic rune
#

i forgot it resets the mult if its in context.before lmfao

frosty dock
tall apex
#

this JOKER wont turn negative and is making millions doing it, find out how by clicking the link below

frosty dock
#

why do I regularly see people do that

manic rune
#

egg.com

frosty dock
#

Negation takes precedence

tall apex
#

for am i stupid enlighten me plox c:

frosty dock
#

So not v.edition is evaluated first and results in a boolean

red flower
#

i love order of operations

frosty dock
#

'e_negative'

tall apex
#

OHHHHHHHH

#

okie

frosty dock
#

the way you have it, you're refencing a variable named e_negative

tall wharf
frosty dock
#

which doesn't exist, so it's like it wasn't even there

frosty dock
#

e_e_negative

#

great stuff

tall apex
#

ohh

frosty dock
#

of course it's vanilla thunk logic

tall apex
#

e_ illegal

frosty dock
#

the e_ is auto-added in this case

tall wharf
#

aure

frosty dock
#

I should patch in a check there that doesn't prepend if it's already there

tall wharf
#

does this scoring hand include prefix

indigo mesa
#

how do i make a joker not appear in the shop?

frosty dock
tall wharf
#

like

#

i wanna check for scoring hand

#

wait i am stupid it has prefix

tall apex
#

this JOKER wont WILL turn negative and is making millions doing it, find out how by clicking the link below

#

(it worked)

frosty dock
#

I don't get what you think should have a prefix

#

scoring_hand is a table of scored cards

tall wharf
#

oh i meant scoring name

#

fuck

frosty dock
#

it includes the mod prefix for modded hands

tall wharf
#

alr

#

makes sense

manic rune
#

how do i uhhh

#

check the enhancement of a playing card

#

:3

red flower
#

SMODS.has_enhancement(val, 'm_key')

manic rune
#

oh nice, thanks

tall wharf
latent portal
#

hey im back whats the fix again

tall apex
#

my first challenge c:

tall wharf
umbral zodiac
tall wharf
umbral zodiac
#

it does look very cool

tall wharf
tall apex
#

does anyone have the id for the vouchers overstock and overstock plus?

tall wharf
umbral zodiac
#

“no_profane” so sad

cinder raft
tall wharf
frosty dock
#

the single 31-letter word

umbral zodiac
#

let me swear in my scrabblatroh okay nevermind

tall apex
tall wharf
tall apex
red flower
#

bkt

manic rune
#

it works :3

tall wharf
tall apex
manic rune
tall wharf
#

yeah i did use a little python to preprocess data

tall apex
#

snoil.,,

turbid maple
#

snel..

tall wharf
umbral zodiac
#

life saved

tall wharf
#

i just don't allow slurs

tall apex
tall apex
manic rune
#

beautiful

tall apex
tall wharf
#

unsatisfactory

#

where is ORDER

tall apex
manic rune
#

:3

tall wharf
tall wharf
#

-# the tier before the final launch

#

-# i think?

tall apex
tall wharf
#

-# irony is that i got that one friend who's into factory games addicted to Balatro

manic rune
#

miku

tall apex
willow void
#

will setting a jokers rarity to legendary automatically add it to the soul pool or do i have to do that manually?

tall wharf
#

ahem

#

where was i

tall wharf
#

is that another miku

willow void
#

ok, thanks!

tall apex
#

like 2% sure

#

(im very new to coding)

manic rune
#

it does.

tall wharf
#

miku but uh

tall apex
manic rune
#

i know that because i got a soul from a tarot pack

#

then got kafka from it

#

:3

willow void
#

ok sick

tall apex
tall wharf
#

still quite proud of the sprites i had made

manic rune
#

would you want this

tall wharf
#

especially Eridanus

manic rune
#

it uh, makes glass cards have some effects in hand as you can see

tall wharf
#

ah

#

KAFKA

manic rune
#

X1.2 Chips and +5 Mult (insignificant)

tall wharf
#

m

manic rune
#

but destroys them afterwards

#

:3

tall wharf
tall apex
#

challenge is challenging

manic rune
#

3:

manic rune
#

you know what

#

im surprised i got it working quickly

tall wharf
#

m

manic rune
#

calculate_effect wasnt that bad after all :3

tall apex
manic rune
#

-# all of the shit also scales with stats, so no need to fix that luckily

latent portal
#

i have a question

tall apex
latent portal
#

that i still need answered

tall apex
manic rune
#

go on

latent portal
#

is there any way to stop the player from clicking on stuff/using the ui?

manic rune
lyric wadi
#

am i stupid again

#

in context.individual is the palying card card or other_card

manic rune
#

other_card

#

card always refers to the joker

lyric wadi
#

hrng

#

then why am i geetting an indexing into nil error :dismay:

manic rune
#

show code

lyric wadi
turbid maple
#

context.other_card

lyric wadi
#

agh

#

so i am stpuidf

manic rune
#

ghhhh

#

missing one character from each banner to have a finished one 😭

lyric wadi
#

ands if i wanna get suits would it be context.other_card.base.suit

manic rune
#

mhm

strong jacinth
#

How do i resize a UIBox?

red flower
#

resize the elements inside

#

use maxw or maxh

strong jacinth
#

There isnt anything there?

#

And how do i open the db+ terminal and flip a card?

red flower
strong jacinth
red flower
#

you can put it alongside back_colour and contents

#

the default is minw = 7

strong jacinth
#

7 what?

#

Pixels?

red flower
#

7

strong jacinth
#

Like cm? Inches? Pixels?

red flower
#

idk 7

strong jacinth
#

Still the same full screen UIBox

#

(And where did the card area go..)?

red flower
#

"I don't think you can resize create_UIBox_generic_options other than setting a minw" proceeds to set other things

onyx sonnet
#

so you can account for things like wild cards

strong jacinth
#

Minw is minimmum width? Or?

red flower
#

minimum width

onyx sonnet
#

context.other_card:is_suit("Clubs")
will work even on wild cards or smeared joker spades

strong jacinth
#

I wanna set the maximmum width? Or?

unkempt thicket
#

How do i check if its the first blind in an ante?

red flower
turbid maple
#

now that you mention it does anyone know what the numbers mean in UI scaling

#

like whats the unit

strong jacinth
red flower
#

not for that function, no

strong jacinth
#

Still the same full screen

red flower
#

then the size of the inside nodes is wrong

tall wharf
#

n do you actually like working with UI

red flower
#

no

strong jacinth
#

This is the only node

#

So i guess i need to set size?

red flower
#

oh wow sorry 100 is a lot

plain apex
#

not the full code but why wont this destroy the debuffed cards in the played hand (it only works on held ones for some reason)

SMODS.Joker {
    key = 'Vault',
    loc_txt = {
        name = 'Card Vaulting',
        text = {
            "When a {C:attention}Debuffed{} Card is played {C:mult}destroy{} it",
            "Gains +{C:chips}#3#{} Chips and +{C:mult}#4#{} Mult for every card destroyed this way",
            "{C:inactive}Currently{} +{C:chips}#1#{} {C:inactive}Chips{} +{C:mult}#2#{}{C:inactive} Mult",
            "Idea: BoiRowan"
        }
    },
    rarity = 1,
    atlas = "Jokers",
    pos = {x = 3, y = 17},
    cost = 5,
    unlocked = true,
    discovered = false,
    eternal_compat = true,
    blueprint_compat = true,
    perishable_compat = false,
    config = {
        extra = {mult = 0, multmod = 1, chipmod = 15, stored_chips = 0}  -- Default initialization of stored_chips
    },
    
    loc_vars = function(self, info_queue, card)
        return {
            vars = {
                card.ability.extra.stored_chips,
                card.ability.extra.mult,
                card.ability.extra.chipmod,
                card.ability.extra.multmod
            }
        }
    end,

    calculate = function(self, card, context)
        -- Ensure stored_chips is initialized to 0 if it is nil
        card.ability.extra.stored_chips = card.ability.extra.stored_chips or 0
        
        -- Check if the card is debuffed and not at the end of the round
        if context.individual and context.other_card.debuff and not context.end_of_round and 
           (context.cardarea == G.play or context.cardarea == G.hand) then
            context.other_card:start_dissolve()  -- Destroy the debuffed card
            card.ability.extra.stored_chips = card.ability.extra.stored_chips + card.ability.extra.chipmod
            card.ability.extra.mult = card.ability.extra.mult + card.ability.extra.multmod
tall wharf
#

wait isn't 100 like

#

Very wide

#

i mean tall

#

80 is like

#

at least a screen wide

strong jacinth
#

The this was, i thought it was pixels

unkempt thicket
#

How do i check if its the first blind in an ante?

tall wharf
strong jacinth
#

Now where is my card area

plain apex
tall wharf
#

i think you'll just have to mark destroy in main

#

i don't know

#

i have this problem too

#

maybe I'll have to wait until steamodded adds some debuff scoring shenanigans

strong jacinth
#

Yo aiko

#

How do you spawn cards in your card area?

tall wharf
#

-# please stop asking about the card area

#

you can just go look at my code

red flower
#

SMODS.add_card{area = yourcardarea}

tall wharf
#

™™™™™™

turbid maple
#

I also thought sizes were in pixels until it made everything comically large

red flower
red flower
turbid maple
#

15 jimbometers

tall wharf
#

i have function called AKYRS. card_area_preview or something that is just a heavily modified N's code

#

alongside adding events to the thing

unkempt thicket
#

How do i check if its the first blind in an ante?

plain apex
# plain apex so im going to have to rework this suggestion then?

nvm i found a way to do it

SMODS.Joker {
    key = 'Vault',
    loc_txt = {
        name = 'Card Vaulting',
        text = {
            "When a {C:attention}Debuffed{} Card is played {C:mult}destroy{} it",
            "Gains +{C:chips}#3#{} Chips and +{C:mult}#4#{} Mult for every card destroyed this way",
            "{C:inactive}Currently{} +{C:chips}#1#{} {C:inactive}Chips{} +{C:mult}#2#{}{C:inactive} Mult",
            "Idea: BoiRowan"
        }
    },
    rarity = 1,
    atlas = "Jokers",
    pos = {x = 3, y = 17},
    cost = 5,
    unlocked = true,
    discovered = false,
    eternal_compat = true,
    blueprint_compat = true,
    perishable_compat = false,
    config = {
        extra = {mult = 0, multmod = 1, chipmod = 15, stored_chips = 0}  -- Default initialization of stored_chips
    },
    
    loc_vars = function(self, info_queue, card)
        return {
            vars = {
                card.ability.extra.stored_chips,
                card.ability.extra.mult,
                card.ability.extra.chipmod,
                card.ability.extra.multmod
            }
        }
    end,

    calculate = function(self, card, context)
        -- Ensure stored_chips is initialized to 0 if it is nil
        card.ability.extra.stored_chips = card.ability.extra.stored_chips or 0
        
        -- Check if the card is debuffed within the full hand and not at the end of the round
        if context.joker_main then
            -- Iterate through the full hand and destroy debuffed cards
            for _, hand_card in ipairs(context.full_hand) do
                if hand_card.debuff and not context.end_of_round then
                    hand_card:start_dissolve()  -- Destroy the debuffed card
                    card.ability.extra.stored_chips = card.ability.extra.stored_chips + card.ability.extra.chipmod
                    card.ability.extra.mult = card.ability.extra.mult + card.ability.extra.multmod
#

anyway i forget how do i do the like text for both mult and chips during its scoring thing

                    -- Grant the chips
                    SMODS.eval_this(card, {
                        message = "Upgrade!",
                        colour = G.C.CHIPS
                    })
                end
            end
        end

        -- Return chips and mult
        if context.joker_main then
            return {
                message = localize {
                    type = 'variable',
                    key = 'a_chips',
                    vars = { card.ability.extra.stored_chips }
                },
                chip_mod = card.ability.extra.stored_chips,
                mult_mod = card.ability.extra.mult,
                card = self
            }
        end
    end
}
unkempt thicket
wintry arch
#

how does the game handle if a joker has negative sell value?

wintry arch
#

ehh, cant really right now

tardy wind
#

Im guessing it substracts the value instead of adding it

#

since a positive + a negative results in substraction

wintry arch
#

yes, that's the most likely thing

#

mainly wondering if
#1: you wouldn't be allowed to sell it if it would put you in debt
#2: the number renders right

tardy wind
#

you would be allowed to sell it

#

since the game doesnt expect negative sell value

#

the number would also render right

wintry arch
#

i see, i see

tardy wind
red flower
wintry arch
#

i wanna make a joker that's like gift card x misprint: the buy low sell high priestess. each joker changes sell value at end of round, usually like +3 on average, sometimes going up and sometimes going down, with a chance for it to wildly swing and a chance for it to reset to 0

sullen fern
#

i know there’s a way to make specific suits not appear in the base deck

#

but how do i do it

#

i wanna make specific suits only availible in standard packs

scarlet spire
#

been trying to figure it out since like, a week ago

tall wharf
#

i can only make so many in a day before getting tired

sullen fern
#

in_pool = allow_suits

#

this. this could be the key to making pack exclusive suits

unkempt thicket
#

How do you get the current blind?

tardy wind
#

G.Game.blind

tall wharf
#

G.GAME.blind

sullen fern
#

i want them to still appear in standard packs but not in the base deck

iron orchid
#

welp it's not crashing anymore, so thats progress. now how the heck do I add things to the tab

#

plan is to have it display:

'Bosses Completed'

Suits:
[window][etc][etc][etc]

Hand:
[needle][etc etc]

Money:
[0x][etc]

#

and have the rune pop in there after the boss blind is completed

#

any help getting off the ground would be greatly appreciated

#

for now just getting it to even say hello world would be a huge achievement

sullen fern
#

still trying to find a way to make specific suits exclusive to standard packs

#

i know in_pool exists

iron iron
#

bumpalump

tall wharf
#

i really think i need to buff these

sturdy compass
tall wharf
sturdy compass
#

Kill...

tall wharf
sturdy compass
#

I will have words trollterror

tall wharf
#

this is still the hardest one to draw by far

lyric wadi
#

yeah that's the whole gimmick

red flower
# sullen fern *

don't quote me on this but I think you need to check args.source == "sta" in in_pool

lyric wadi
#

of course there're words

sullen fern
scarlet spire
#

I'm making new boss blinds, and for some reason it keeps forcing them to use the "small blind" and "big blind" sprites (pulling from default sheet?) instead of using the atlas i've specifically designed and set it to

lyric wadi
#

got the logic working, might need to pretty it up later

red flower
lyric wadi
#

but quick question not about code to chat

#

with this current exact wording, what do you think the scaling is

sullen fern
edgy reef
lyric wadi
#

the intended reading is ||X2, applied many times as there are completed lines, aka X(2^lines)||

zealous glen
red flower
lyric wadi
#

but i realised it can also be read as ||+ X2 mult per line, aka X(2*lines)||

zealous glen
red flower
#

or does it

frosty dock
#

else at least someone will be confused by it

lyric wadi
#

the excuse is that i cant get the joker to repeat itself

tall apex
#

is there an easy way to get a joker to trigger when it has a joker to the left of it? i looked at blueprint but that got confusing fast

turbid maple
zealous glen
lyric wadi
#

what if it's worded more like

X1 Mult
Each completed line doubles the above value

red flower
tall apex
lyric wadi
#

that'd show the mult amount

#

and i caqn still keep the lines count

red flower
tall apex
lyric wadi
#

redprint

tall apex
#

doesn't need to copy the ability though

hard flume
#

Hihi! I'm going to get Effects working and then take a break from developing my mod to actually play it. The whole point of it is that I wanted to make it so I could play it.

lyric wadi
#

true

tall apex
red flower
#

that should work

#

the problem is that you need to put it in a context

tall apex
#

ohhhhhh

red flower
#

also use card instead of self

zealous glen
#

if it's like Blueprint then it would run in every context

#

except probably blueprint

red flower
#

well it doesn't seem to be like blueprint

scarlet spire
#

odd

tall apex
#

not literally at the same time but like after

lyric wadi
#

does this read better

red flower
lyric wadi
#

again though need to figute out how to tighten thr gaps between rows

#

and also preferably how to put the suit shapes into the cell and also change cells colour

hard flume
lyric wadi
#

latter probably impossible

hard flume
#

Nah, I've seen mods do it before

tall apex
#

and that should only do it for the left with the other code?

hard flume
red flower
lyric wadi
#

it's a uit.t how do you change their colour

tall apex
#

for because jonkler

lyric wadi
#

at the very least i'd love to have red and black suits distinction

#

and also possibly daubed cells colour too

#

maybe green

tall apex
#

in the if statement?

red flower
#

yes

tall apex
#

oh okie c:

#

.,,,

#

} expected somewher,e.,

red flower
#

syntax error

tall apex
#

formatting stuff correctly is hard--

hard flume
#

God I just realized. I have to make a recorder cover of the Balatro theme----

red flower
#

your missing an end here

tall apex
tall apex
#

right?

#

wait

red flower
#

that's for the for

tall apex
#

that caused an error

#

without the end it runs tho

frosty dock
red flower
lyric wadi
tall apex
#

i just want it to make a noise when there is a joker to the left of it

frosty dock
#

it never got defined

red flower
tall apex
tall apex
lyric wadi
#

ideally i would like to colour the text with their respective suits colour

#

or is it completely static

red flower
frosty dock
lyric wadi
#

yeha

#

im new to this whole ui thing

tall apex
#

yaaaaaaaaaaaaay it worke

green plank
#

is it possible to disable the downscaling of food jokers as a joker ability (i.e: popcorn, ice cream, turtle bean)

frosty dock
lyric wadi
#

yeah but that's static isnt it

#

i have to set it in the node itself

#

or can it be referenced and changed

frosty dock
#

when does it need to change

lyric wadi
#

once when the card is generated to colour the cells based on suits

#

and probably when that cell gets daubed to distinguished it from remining cells

frosty dock
#

if the color should change while the description continues to be displayed, more work is needed

#

but most descriptions don't update like that for changed values either

#

so this should be good enough, it is regenerated each time you hover

lyric wadi
#

ah

#

i guess i wasnt clear

frosty dock
#

you'd just need to store the suits in another table in your card's ability and reference that in the colour

lyric wadi
#

okay

#

i can think of a bodgy solution but idk if im correct

frosty dock
#

i'm not sure i get what you want

#

if i hover over the card and just sit there displaying the description box

#

is the color supposed to change during that?

wintry arch
#

color of suits can be changed depending on the enable high contrast colors option

lyric wadi
#

okay so i guess i didnt explain the joker

#

it's a Bingo card

frosty dock
#

no i get that

lyric wadi
#

on the add_to_routine, it generates 25 playing cards to populate the cells

frosty dock
#

but while the description is being displayed, nothing else should happen that changes anything at all

lyric wadi
#

and so i want it to be like, for example, if the cell is 7D, it uses the diamonds colour

wintry arch
#

ohh! i get it. the suit it uses for the color needs to change depending on the suit of the corresponding playing card

unkempt thicket
#

How do i get a random rank?

lyric wadi
#

and then when it gets duabed, it turns green or something to separate it from the undaubed cells

tall apex
#

behold

#

my fully working joker

lyric wadi
#

holy shit

#

shork

wintry arch
#

why is your rough gem blue ,

zealous glen
wintry arch
#

the waltered white ,

tall apex
#

(its cocian from breakink bat)

hard flume
# tall apex

:)
You stole my idea. I was going to have that as a card for my Woman Suit. /j /j /j

tall apex
#

all it does is :3

hard flume
#

That's fair lmao

tall apex
#

maybe ill give it super secret functionality tho

hard flume
#

Tbf this Joker isn't original either so I don't really care.

tall apex
#

egg

hard flume
#

I'll probably have my own Blahaj as well, just with a different name and art as to not overlap with yours

onyx sonnet
hard flume
lyric wadi
#

egg

onyx sonnet
#

also what playing card mods are you using?

tall apex
tall apex
#

make moar blaj!!!

lyric wadi
#

Boymoding

Queens can be used as Kings or Jacks

lyric wadi
#

also watame mentioned

#

lets go sasuga hitsujiisan

tall apex
#

its my own 5 minute doodle as well so idk if you could copy the art besides either screenshotting from that vid or finding my computer and downloading the files as this mod isn't even out yet

#

ion wanna deal with github XD

hard flume
#

You can tell my mod is made by an autistic person because it has Trans Woman and Yume Nikki

onyx sonnet
lyric wadi
tall apex
#

maybe just a bit

#

you can tell my mod is made by an autistic person because of this probably

hard flume
#

Here's the Yume Nikki Booster, called the Nexus Pack. I've yet to actually make the consumables

hard flume
zealous glen
latent portal
zealous glen
latent portal
#

i'd have to ask around

#

see if anyone has more experience in ui code

tall apex
hard flume
hard flume
hushed field
#

what are you trying to do exactly, Cherry? I have conditions under which consumeables aren't used, as well as some hooks on cards that can't be discarded or jokers that cannot be sold

zealous glen
red flower
#

effect monsters?

latent portal
#

hey N'

hard flume
#

Nono, I've yet to fully decide what they do, but they're based off of the Yume Nikki Effects.

latent portal
#

:3

lyric wadi
#

LETS FUCKING GOOOOOOOOOOOOO

red flower
#

hii

lyric wadi
#

IT WORKS

tall apex
latent portal
#

because i have a question

red flower
#

some of it

latent portal
#

do you know how to prevent the player from using ui somehow?

onyx sonnet
lyric wadi
#

recurive table indexing my beloved

tall apex
latent portal
#

the problem im having is with my jimbo pack. instead of waiting for the whole thing to be done, the player can just. take a card early

#

which crashes the game

red flower
#

you can patch the button to disable it

#

or replace it with your own button

lyric wadi
#

and it turns green too

#

so happy

red flower
onyx sonnet
#

hell yeah

hushed field
#

patching the button isn't too difficult either

latent portal
#

could i prevent the player from selecting a card the same way?

red flower
#

maybe you can hook card:highlight?

zealous glen
unkempt thicket
#

why is this nil? local rank = SMODS.Ranks[math.random(1,#SMODS.Ranks)]

zealous glen
#

where is it

unkempt thicket
#

deck code

frosty dock
#

SMODS.Ranks is not an ordered table

ivory coral
frosty dock
#

use pseudorandom_element(SMODS.Ranks, pseudoseed('whatever'))

latent portal
frosty dock
#

that error suggests you did the hook wrong

latent portal
#
JimboTime = false

local cardhighlight = Card.highlight
function Card:highlight(is_higlighted)
    if JimboTime == true then
        return
    end
    cardhighlight(is_higlighted)
end```
#

i assume so

#

is this wrong?

frosty dock
#

cardhighlight(self, is_higlighted)

latent portal
#

fuck

ivory coral
frosty dock
#

Card:highlight(is_higlighted) is syntactic sugar for Card.highlight(self, is_higlighted)

latent portal
#

ahhh

#

i see

latent portal
#

holy shit that works

#

first time ever that my shitty coding works so quick

#

now to disable the skip button...

hard flume
#

Question, i wanna have a type of secret Boss blind that can only be summoned under certain circumstances. Is that possible at all?

turbid maple
#

yesh

latent portal
#

...wheres the code for the skip button again

red flower
latent portal
#

which file is that in

red flower
#

button_callbacks

latent portal
#

alr

#

thank u!!

#

ur great

ivory coral
#

how would i go about adding a custom entry to the key parameter in localize?
i want to add a special scoring effect with its own sound effect using message and i presume that's how one would do it, probably with a lovely patch but i dont quite know how those work

frosty dock
#

as for the sound, you should register it using SMODS.Sound and then you can just do

return {
  message = localize('your_message_key'),
  sound = 'modprefix_soundkey',
}
ivory coral
frosty dock
#

variable as in the text gets passed vars?

ivory coral
#

yes, as i said its a new scoring effect

frosty dock
#

oh i see

#

you should hook SMODS.calculate_individual_effect then

ivory coral
#

ive seen examples like key = 'a_mult' before so i thought id try to add something to that

frosty dock
#

these are from misc.v_dictionary in localization files

latent portal
#

peak achieved.

red flower
#

so cool

latent portal
#

so cool

#

and the best part is

#

now that i have all of this set up

zealous glen
latent portal
#

making new jimbo packs is easy

#

it's as simple as changing extra and choose

#

also

ivory coral
latent portal
#

something neat i found out while making the jimbo pack

tall apex
#

you just made a pack? I just started one myself, and have a question if you have the time c:

latent portal
#

vouchers work perfectly fine in packs!

#

they're used and redeemed automatically!

zealous glen
#

I think it's more like SMODS made Vouchers work perfectly fine in packs; not sure