#💻・modding-dev

1 messages · Page 501 of 1

rotund sable
rocky plaza
#

any idea how to fix this error text?

slim ferry
rotund sable
#

i honestly have no idea

wintry solar
#

Have you hooked loc_colour somewhere?

slim ferry
#

nope

ebon shell
#

still gives the same error, here's the crash screen if it helps

slim ferry
#

but it worked this time for some reason

ebon shell
#

"that" as in the joker I'm trying to spawn? cause it works fine when I spawn it myself, it's only crashing when I spawn it through this joker

slim ferry
#

okay apparently for some reason the rarity text colour is just white?

rotund sable
#

forced_key

#

are you using a mod prefix?

#

in that key

#

j_<mod_prefix>_<name>

#

exact same error on invalid key

slim ferry
#

am i supposed to define a primary_color for the rarity or something?

#

because currently the text color just doesnt work at all

wintry solar
#

Rarity colours aren’t put into text formatting

slim ferry
#

did smods wiki lie to me

#

and why doesnt it go into text formatting when it does get added to G.ARGS.LOC_COLOURS

wintry solar
#

It doesn’t get added to that table

slim ferry
#

as in?

wind steppe
#

why does this only work in the debugplus console? play_sound("para_yourtakingtoolong", 1, 1)

#

i've also tried returning the sound and that doesn't work either

slim ferry
#

it does get returned when i type eval G.ARGS.LOC_COLOURS

#

but its just white

wintry solar
#

Oh wait it does

ebon shell
# wintry solar Show your code

it's supposed to behave like egg until after 21 rounds (changed to 3 here for testing) where it destroys itself and creates a chick joker (which I've already set up and tested, and it works just fine)

wintry solar
slim ferry
wintry solar
#

badge_colour

slim ferry
#

oh 😭

brittle tide
#

is there a way to let sticker descriptions appear to the side of the description like with tarots? and if so does anyone know what the key for eternal stickers are?

slim ferry
#

whats with the inconsistent use of color and colour in smods

rotund sable
wintry solar
#

We don’t use color ever

#

It’s always colour

jolly shadow
#

this game can spell color wrong so i can use semicolons

sonic cedar
#

afternoon moddingchat
was working with tester again
does anyone know why this returns a crash upon transformation?

-# it looked like something to do with burglar, so i have the code for the effect of the fake one here as well just in case

unkempt thicket
#

How do i draw step a tag?

wintry solar
solemn shuttle
#

-# i believe i recall having to ask about it here actually LOL

ebon shell
red flower
solemn shuttle
ebon shell
#

i even set it to destroy itself after it creates the new joker

red flower
#

can i see the code

rotund sable
ebon shell
red flower
#

you are missing a context check

chrome widget
#

Unfortunately same problem, the soul card floating sprite are the same total pixel dimensions as the underlying card, which means the rotation always matches if they're positioned at the same origin. I'm trying to use the UI sprites for suits which are 18x18

glad osprey
#

how would yall reccomend I tell the player to install galdur if they don't have it

#

im thinking a simple popup on the main menu

chrome widget
#

Use the dependencies field in your mod metadata

glad osprey
#

I dont want it to be a dependency tho

#

just a "hey I would REALLY reccomend this"

chrome widget
#

That's a dependency tbh

red flower
#

i want to do a popup so people go to my mod's config

knotty orchid
#

Is there any way to retrigger cards that score on blinds?

chrome widget
#

If the experience would be so much lesser without Galdur, why not just make it required?

glad osprey
#

its not really lesser

spring lantern
#

im tryna make balatro repainted compatible with smods and so far im strugglin for some reason

red flower
spring lantern
#

literally all i have

ebon shell
glad osprey
#

it just makes selecting a deck last of a scroll sim

red flower
knotty orchid
# red flower wdym

I want to create a blind that retriggers glass cards and debuffs the rest

red flower
glad osprey
ebon shell
slim ferry
#

could i do if G.play to make a joker only trigger during a hand? or does G.play still exist when no hand is being played

knotty orchid
knotty orchid
knotty orchid
#

That answers everything

red flower
slim ferry
spring lantern
glad osprey
#

oh wait

red flower
wild berry
#

is it possible to change the scored chips before actually adding it to the total score

glad osprey
spring lantern
#

trying to

#

thats what the mod is meant to do

#

never replaced vanilla assets before

#

'^^

glad osprey
#

its the files name Jokers.png

red flower
spring lantern
glad osprey
#

looks like its not able to find the file

red flower
#

are you not using malverk?

glad osprey
spring lantern
#

wait a fucking second why is my appdata folder in downloads

#

what the fuck

glad osprey
#

LMAO??????

#

yea thats probably an issue

spring lantern
#

my dad helped me install a new hard drive the other day he mustve fucked something up REAL bad

spring lantern
errant arrow
#

im looking in the Cryptid code, trying to understand how to make ^# work, but im not understanding what to do

rotund sable
#

talisman implements that iirc

errant arrow
#

-# oh

sonic cedar
#

Can someone tell me why the mult is gaining properly, but the message isn't returning and the card doesn't stop juicing? fixed

ebon shell
#

how do i set a card for the return message to appear under? i know it's card = but idk what to put in next. i tried 'j_modprefix_jokername' but didn't work

slim ferry
#

why does this crash in a booster pack?

#

oh wait i

slim ferry
#

nvm

#

i might be stupid

red flower
spring lantern
#

where the FUCK is my texture pack 😭

ebon shell
red flower
spring lantern
#

god i feel like an idiot

red flower
#

you probably wrote the dependecy wrong

spring lantern
red flower
#

if its not the correct format it just doesnt load

spring lantern
#

wonderful

red flower
#

youre missing a comma

spring lantern
#

fuck my ass

#

i forgor

#

:skulk

#

i have malverk 1.1.3 what the hell

#

did i format it wrong

red flower
#

try lowercase malverk

spring lantern
#

good news i think it worked, bad news is i keep getting the most mysterious ass crashlogs

#

fym "alt_text_rep_repainted_jokers" 😭

normal crest
#

alt_text is probably a prefix malverk adds, rep your mod prefix, repainted_jokers your key

spring lantern
#

so basically im fuckin back to square one

#

im gonna kms

sonic cedar
normal crest
spring lantern
#

...i named it resources

modern kindle
fathom void
#

im gonna "borrow" some code so i can try to get diviner to work

sonic cedar
#

new, more relevant question: how does juice_card_until work? because apparently doing this does NOT make it shimmy until the counter is reset. instead it makes it do absolutely nothing. no shimmy, does not get jiggy. do not let her on the dance floor she will be embarrassed thoroughly

#

also hi dilly

modern kindle
#

wave emoji

fathom void
sonic cedar
#

🌊

modern kindle
#

ive gotten no further in my cpu and gpu adventures

modern kindle
#

i got kinda close but then didnt

sonic cedar
#

have you considered buying another drive

modern kindle
#

where it was trying to pull cpu value but would freeze for a second every time you hovered over the card

#

which is not good

sonic cedar
modern kindle
#

i could devour you before you counted to 11

sonic cedar
#

12

modern kindle
#

see

fathom void
#

i think the issue is that i can't spell "pseudorandom"

sonic cedar
#

e before u....

spring lantern
#

many such cases

fathom void
#

english is hard 🪦

modern kindle
#

e before u but ill always put U before mE

#

😎

sonic cedar
modern kindle
#

sonic cedar
#

modern kindle
#

you dont have any sour cream and cheddar chips rn thats why youre being a hater

sonic cedar
#

no but i have this apple crumble pie

#

so im fine

modern kindle
#

more like an apple stinky pie

sonic cedar
#

minor spelling mistake

#

evaporate

modern kindle
#

yea, im activiating my hidden malware in your code, gg

fathom void
#

hmmm is there a way to make fixed probabilities on jokers because 2 of the probability based joker ideas i have would be pretty overpowered with increased chances

modern kindle
#

tomas MID will now never release

unkempt thicket
modern kindle
#

i think with new prob

#

yea

sonic cedar
#

full thing

red flower
fathom void
#

diviner still says nil of nil 🪦

sonic cedar
normal crest
sonic cedar
red flower
fathom void
#

yeah i think i spelled it right this time so its probably another thing i forgot

spring lantern
#

malverk doesnt support changing deck sprites does it

sonic cedar
#

bc if it's what i think

fathom void
#

i stole this part but i probably dont need to use it tbh considering diviner might not be overflowing most of the time

rotund sable
sonic cedar
#

GAME in capital

fathom void
#

oh okay

#

there were a few other "Game"s in there too so i fixed those as well

#

it works 🔥

#

i just need to fix the description now lol

sonic cedar
#

it's not like the sound doesn't exist either?

normal crest
#

remove the hpfx_ from the key

#

In the sound definition

sonic cedar
#

wait should they not have prefixes?

normal crest
#

it's added by smods

sonic cedar
#

is that a newer thing? i had to have them like this before to get them working

normal crest
#

not a new thing, always been this way

slim ferry
#

why does this infinitely create jokers

#

am i stupid

normal crest
#

the event runs until the function returns true

slim ferry
#

oh

#

i may be stupid

iron mica
#

Is making mods easy like roblox studio

slim ferry
#

its the same language

#

so probably

#

id say easier since balatro is inherently much simpler of a game

normal crest
#

except Roblox uses a modified version of it

iron mica
#

I dont know all the parents

#

Roblox has workspace for all the stuff idk what balatro has

sonic cedar
normal crest
#

Using the sound does need the prefix

sonic cedar
#

i was thinking in reverse

#

no wonder i was so confused lmao

fathom void
sonic cedar
fathom void
#

time to make evil bucaneer

normal crest
red flower
#

smods removes the prefix on most object keys if you add it

sonic cedar
normal crest
wind steppe
#

how do i get highest card to score (leftmost in case of ties) and only that card

fathom void
#

play high card /j

harsh bobcat
#

Ok my card applies an enhancement but it does it to the same card If I do it again even with another card. How do I check if it has any enhancement and pick a new card?

red flower
red flower
wind steppe
#

wait how do i check the highest rank of cards in a table

#

theyre not all numbers

sonic cedar
red flower
#

never worked with custom ranks tho

normal crest
wind steppe
wind steppe
normal crest
sonic cedar
#

ill try removing the prefix i guess

fathom void
#

hmmm how do i modify swashbuckler's vanillaremade code to include its own sell cost too

red flower
#

remove the if joker ~= card then

fathom void
#

im assuming that checks to make sure the joker isn't itself

red flower
#

yes

fathom void
#

mfw i forget to change a variable

sonic cedar
red flower
#

whats if you remove card=card

normal crest
slim ferry
#

what is G.GAME.consumable_buffer? i always thought it was just the consumable slots

sonic cedar
#

message didnt call regardless

sonic cedar
#

i mean sure

fathom void
#

how do i get this thing to show up

red flower
sonic cedar
sonic cedar
normal crest
#

can you send the entire calculate function

fathom void
#

ok topaz works
mostly
-# (i forgot to replace a mult with a chips again)

red flower
# slim ferry what is G.GAME.consumable_buffer? i always thought it was just the consumable sl...

when a card creates a consumable in scoring it usually does so in an event
so lets say another joker says "+1 mult per consumable", if the consumable is added in an event the joker wont see it because its done after scoring, but if you dont do it in an event the animation looks bad
so the buffer is there to temporarily say that there's one more consumable

(same with the joker and dollar buffer)

fathom void
#

ok now it gives chips

wind steppe
wintry solar
#

card:get_id()

red flower
#

SMODS.Ranks[card.base.value]

wintry solar
#

but also N is right the id might be fucked

harsh bobcat
#

Why isn't this actually destroying the card/reducing the rank

sonic cedar
#

is that self

harsh bobcat
#

mm

wild berry
#

what's a playing card's rank proprety called

sonic cedar
harsh bobcat
#

idk

sonic cedar
#

use card

harsh bobcat
#

o

#

k

sonic cedar
wild berry
#

i mean like

normal crest
wild berry
#

how to check if its like

#

a king

#

ace

#

three

#

whatever

sonic cedar
#

oh we literally just mentioned it earlier

wild berry
#

oh

#

lmao

sonic cedar
#

card:get_id()

red flower
#

card:get_id() or card.base.value depending on what you need

sonic cedar
red flower
wild berry
#

i just need to get its value

#

not color

#

ty anyway

fathom void
#

my next target

normal crest
sonic cedar
#

my favorite color....13....

long sun
#

(bump)

fathom void
harsh bobcat
#

is there like a get_rank thing to get the rank

long sun
#

rank or id?

harsh bobcat
#

card.get_rank() maybe

#

if it is ace 3 9

#

yk

long sun
#

right

sonic cedar
#

youre not gonna believe what we just said

normal crest
#

this has to be a joke

chrome widget
#

Card:get_id() works essentially equivalently

long sun
#

you can do that with :get_id()- ya ^^;

fathom void
#

hello winter

chrome widget
#

Hello!!!!!!

long sun
#

14 = Ace

sonic cedar
#

hi winterrrr

harsh bobcat
#

does it give me numbers?

chrome widget
#

ye

harsh bobcat
#

if it does good

chrome widget
#

2-14 for base ranks

harsh bobcat
#

yay

chrome widget
#

11 is Jack, 12 is Queen, 13 is King, 14 is Ace

harsh bobcat
#

ikik

chrome widget
#

also gshgjdhjgh people saying hi to me when I join a convo is very,,,,,,,, respectfully

long sun
#

(bump)

fathom void
slim ferry
#

what the fuck is G.RESET_JIGGLES 😭

red flower
#

or duplicates

slim ferry
#

ohhhh nvm thats

long sun
#

right ^^;

slim ferry
#

jiggle

#

from like loyalty card

red flower
#

so it doesnt get stuck forever

sonic cedar
#

"Does anyone else need to know how to check card ranks?"

red flower
#

how do you get the number on the card

sonic cedar
chrome widget
sonic cedar
#

winter are you knowledgable in message returns

normal crest
#

how do i check a card's rank

red flower
fathom void
chrome widget
sonic cedar
chrome widget
red flower
solemn shuttle
#

aaaand i realized i put this in the wrong chat at first

#

whoops

#

meant to ask the above here 😭

fathom void
#

remix pack be like

#

im gonna make gaslamp joker next though i do need to make a new placeholder sprite too

solemn shuttle
fathom void
#

no way impossible quiz skips

sonic cedar
solemn shuttle
red flower
# solemn shuttle

umm i dont have the code with me rn to check but you might need to hook some function for this

red flower
sonic cedar
red flower
#

just making sure

sonic cedar
#

id cry

#

but yeah talisman can come back on once im sure the mod works withOUT it

#

....dilly cursed me i want pie now...

solemn shuttle
red flower
#

yeah, whatever uses select_card

chrome widget
sonic cedar
#

So no reason atp

placid star
#

does anyone know where the kinda tv bending effect is made?

solemn shuttle
#

-# or how to construct the function rather

vague crest
#

how would i check if a card with a specific enhancement is discarded?

sonic cedar
normal crest
sonic cedar
chrome widget
sonic cedar
solemn shuttle
vague crest
#

oh

chrome widget
#

There are actually two separate end of round contexts but yeah'

vague crest
#

sick as hell ok

solemn shuttle
vague crest
#

also not like an individual card thing i should clarify

#

just like, if discarded hand contains a wild card

solemn shuttle
#

mb

chrome widget
#

Okay yeah my assumption is wrong, it should resolve messages here

#

What's the intended behavior of the card sending the message? Does it do anything weird with its cardarea?

sonic cedar
#

Literally just says Yum on mult gain

#

cause it’s

#

Yum Heart

#

she’s “using her active”

chrome widget
#

have no idea what that means

sonic cedar
#

Isaac

chrome widget
#

Never played

#

But okay it's just supposed to gain mult.....

sonic cedar
#

And thats it

#

and it does

slim ferry
#

why does this do absolutely nothing? does the hand played counter get incremented before card scoring or something?

#

this is a seal btw

sonic cedar
#

can other_card be card

slim ferry
#

all the vanillaremade seal do that

#

so i assume so

sonic cedar
#

oh I see carry on

chrome widget
#

isaacMult and then counterIncrement

sonic cedar
solemn shuttle
slim ferry
#

i changed it to be <= 1 and it still did nothing

#

so there has to be something else

#

could the delay just be too short maybe?

placid star
#

put a print inbetween ifs then test to see what it doesnt like

normal crest
sonic cedar
chrome widget
#

Honestly im not really sure why you're using that first function tbh

sonic cedar
#

me neither, i might change it back to just Mary if I don’t end up using it anywhere else

chrome widget
#

otherwise it'd just be equivalent to have the table you send to SMODS.calculate_effect() be the return table in the calculate function

slim ferry
sonic cedar
#

it works though so I’m not worried about it atm

normal crest
# sonic cedar Yes

Do you have any hooks/patches related to this joker or functions like SMODS.calculate_effect or SMODS.calculate_individual_effect

chrome widget
#

and could that be blocking the messages?

sonic cedar
#

it’s in state events

#

so

red flower
chrome widget
#

Show Da Code

wintry solar
#

toma have you hooked smods functions

slim ferry
sonic cedar
red flower
chrome widget
normal crest
#

N misspelled the misspelling

#

truly

red flower
#

lmao

sonic cedar
chrome widget
#

So it never gets to the mispelling to crash anyway

normal crest
sour garden
#

trying to make a joker that's like constellation but for unique consumables, but this method triggers on every consumable instead of only unique consumables. anyone know why?

red flower
sonic cedar
slim ferry
red flower
#

yeah if it doesn't crash is because something is wrong earlier in the check

slim ferry
#

should i be using context.main_scoring instead?

wintry solar
#

it's the context.other_card == card

#

context.main_scoring would be what you want, yeah

slim ferry
#

okay i see

#

i thought it should be context.other_card == card because vanillaremade does it for the purple and blue seals

wild berry
#

for whatever reason the main gimmick of this joker doesnt work (storing)

slim ferry
#

also, why do all the vanillaremade spectrals have the shader drawing stuff at the end? i once made a spectral and forgot to add that but it still got the shader

red flower
#

spectrals have a default drawstep that does that

#

vremade_spectrals do not

#

i should add a comment on that if i havent

pure salmon
#

is there an easy way to create a random consumable

red flower
#

SMODS.add_card{ set = "Consumable" } iirc

#

idk if it has the misspelling

#

<@&1133519078540185692>

modern kindle
#

Damn

#

Beat me

red flower
#

hi dilly

#

ty mods

modern kindle
#

hi

exotic hedge
#

yo his profile was crazy 😭🙏

modern kindle
#

can you make it your profile for 37 hours

chrome widget
#

your pfp is kinda incredible

#

fan of gonku

modern kindle
#

hi winter

chrome widget
#

hi dilly!!!

exotic hedge
modern kindle
chrome widget
#

The system info?

modern kindle
#

ive been getting close on the gpu front but the freaking display just doesnt match what im seeing and i cant figure out why

chrome widget
#

Mmm, yeah

modern kindle
#

cpu wise im probably gonna just simulate it

chrome widget
#

I'm trying to figure out an answer for the sprite rotation problem you saw

modern kindle
#

we both struggling fr

red flower
#

i have no problems everything in life is great

modern kindle
#

N why dont you do this thing for me then

chrome widget
#

N' please help me with weird shader drawing offset bullshit

#

Also wait I was curious. there's a rule in the server that says "no swearing" but it clarifies mostly in regards to like..... slurs and insults at others

#

Am I allowed to just say general swears?

modern kindle
#

ill be fr i be cursing and havent been reprimanded

chrome widget
#

like it's nice if im allowed to say the fuck word yeah

modern kindle
#

my logic has been if its not meant to be an insult

#

like if its directed to someone then bad

chrome widget
#

Nodding sagely

slim ferry
#

how could i add new colours to LOC_COLOURS?

dreamy thunder
#

i still had no issue

modern kindle
#

maybe the modding chats are a lawless land

dreamy thunder
#

who knows

chrome widget
# slim ferry how could i add new colours to LOC_COLOURS?

This is what Idid:

function loc_colour(_c, _default)
    ref_loc_colour(_c, _default)
    G.ARGS.LOC_COLOURS.fanworks = G.C.FANWORKS
    G.ARGS.LOC_COLOURS.crystal = G.C.CRYSTAL
    return G.ARGS.LOC_COLOURS[_c] or _default or G.C.UI.TEXT_DARK
end```
slim ferry
#

what are G.C.FANWORKS and G.C.CRYSTAL in there?

chrome widget
#

Custom colors in my mod

#

I just declared them in main

slim ferry
#

how do you do that

chrome widget
#

Just like that

slim ferry
#

oh

#

thats suprisingly simple

chrome widget
#

By the time your mod loads, the G.C table is already initialized by the vanilla code

slim ferry
chrome widget
#

Yeah

#

Oh no well I put that in a different file because of the way I organize things

#

you can put it wherever as long as the file gets loaded correctly from main

sonic cedar
slim ferry
#

also, are the letters put into HEX() case sensitive?

chrome widget
#

i don't think so

#

I just capitalize them generally because most image editing software I've seen does

chrome widget
#

Then yeah I'll be real, idk

sonic cedar
chrome widget
#

Start debugging

sonic cedar
#

that's all the SMODS func

sonic cedar
chrome widget
#

<@&1133519078540185692> get em, boys

placid star
#

i cant find the @ omg

sonic cedar
#

not my goat vitto they wouldnt

keen gorge
#

🔫

placid star
#

wait guys i wanted mr east money

chrome widget
#

we're feeding the mods a lot today

chrome widget
#

I typically don't use it for UI purposes but I do use it elsewhere

#

gonna go bowling again tonight, lemme see if I can finish some stuff,,,,,

placid star
#

hiiiiii winter do u know where the bendy tv screen effect thingy is made?

slim ferry
#

why do i get nil in my description????? i am going insane

placid star
slim ferry
#

it does

wintry solar
#

colours are easier if you just do

loc_colour()
G.ARGS.LOC_COLOURS['key'] = HEX('code')
...```
#

you don't need to hook the function

slim ferry
#

oh

#

lmao

wintry solar
#

just call loc_colour() at the top of your main file

#

then you can just add them anywhere

placid star
slim ferry
chrome widget
#

I think I vaguely know what you're talking about but can you give an example?

placid star
slim ferry
#

yes

#

but it says nil

#

instead of 1

placid star
#

eval the card.ability.extra.max_highhlighted with debug

placid star
#

and custom card areas end up looking completely flat

chrome widget
#

that's the CRT shader

slim ferry
placid star
#

ohhh

placid star
slim ferry
#

whats the card index

wintry swallow
#

Is there any way with an event manager event to not have it slow down when the deck is being viewed?

slim ferry
#

ohh like

#

the position

#

in its cardarea?

placid star
#

yes

slim ferry
#

so in cardarea i would do G.consumeables

#

but isnt that still going to return nil?

#

why would the loc_vars and the eval command return a different value of the same variable

wintry solar
#

if you're using debugplus just do eval dp.hovered.ability.extra.max_highlighted whilst hoering over the card

slim ferry
#

well it still gives nil

#

idk what im supposed to get out of that

#

because obviously that will give the same as the loc_vars

red flower
#

did you restart the run before testing

stoic fulcrum
#

is there a way to fix this crash?
funnily enough this is caused by vanilla certificate if it draws a club or diamond card on checkered deck, and you try checking your full deck

slim ferry
wind steppe
stoic fulcrum
wind steppe
#

uninstalling it wont fix the issue (it does nothing) but like why

stoic fulcrum
#

idk what nothingmod is i'll be real

red flower
stoic fulcrum
#

it probably came with my install

wind steppe
#

how would i get the chips and mult of a given poker hand?

red flower
#

G.GAME.hands[key].chips and .mult iirc

slim ferry
#

okay turns out the consumable also just doesnt work at all

#

it just crashes

placid star
vague crest
#

if i wanted to allow the player to discard with money if they dont have any discards remaining, where would i find the place to hook or patch or whatever the process would be?

slim ferry
red flower
placid star
wind steppe
#

seems easier

slim ferry
red flower
slim ferry
#

oh huh

vague crest
#

since itd cause things like an automatic money loss with burglar

wind steppe
#

guess the effects not the exact same

slim ferry
#

but well the consumable is still crashing

#

despite it literally being the same as the vanillaremade code for the seal spectrals

slim ferry
wild berry
#

how do i check a blind's required score

modern kindle
#

G.GAME.blind.chips

red flower
wild berry
#

tysm

slim ferry
#

why dont the vanillaremade seal spectrals add the vanillaremade seals..

red flower
#

because that was getting people confused

#

keep in mind some people go look for how to add a vanilla seal and think they need to do all the vremade stuff

wind steppe
#

why is the vanillaremade telescope doubled up like that

red flower
#

because im dumb

maiden phoenix
#

Double the SMODS 💪

wind steppe
#
SMODS.Joker{
    key = "brokenphone",
    atlas = 'Jokers',
    pos = {x = 4, y = 2},
    loc_vars = function(self,info_queue,card)
        local _hand, _tally = nil, to_big(0) -- ty vanillaremade for giving me all this code
        for _, handname in ipairs(G.handlist) do
            if SMODS.is_poker_hand_visible(handname) and to_big(G.GAME.hands[handname].played) >= to_big(_tally) then
                _hand = handname
                _tally = to_big(G.GAME.hands[handname].played)
            end
        end
        return {vars = {_hand, to_big(G.GAME.hands[_hand].chips) / to_big(2), to_big(G.GAME.hands[_hand].mult) / to_big(2)}}
    end,
    rarity = 1,
    cost = 3,
    blueprint_compat = true,
    eternal_compat = true,
    perishable_compat = true,
    calculate = function(self, card, context)
        if context.joker_main then
            local _hand, _tally = nil, to_big(0) -- ty vanillaremade for giving me all this code
            for _, handname in ipairs(G.handlist) do
                if SMODS.is_poker_hand_visible(handname) and to_big(G.GAME.hands[handname].played) >= to_big(_tally) then
                    _hand = handname
                    _tally = to_big(G.GAME.hands[handname].played)
                end
            end
            return {
                chips = to_big(G.GAME.hands[_hand].chips) / to_big(2),
                mult = to_big(G.GAME.hands[_hand].mult) / to_big(2)
            }
        end
    end
}

It says "attempt to compare number with table" but doesn't give me a specific line. Where did I forget a to_big?

wintry swallow
#

Is it the nil _tally?

normal crest
#

(if it's not a line from your mod or another mod)

#

Is there a scenario in which retrigger_joker_check would be called with an other_card that is not a joker

placid star
chrome widget
#

As far as I'm aware it applies to custom cardareas? If you have a custom cardarea set up correctly in the global table it will def draw before the CRT shader does

placid star
#

hm i hooked into Game:start_run and it doesnt like to work

chrome widget
#

Fairly certain it's because start run can override the G and G.GAME tables

#

I would call start_run_ref first probably?

glass crown
#

okay, so, idea i have that im wanting to execute and i have no clue how id go about it:
i want a joker i have to make the screen slightly darker and cause rain to fall from the top of the screen (maybe diagonally?) down past the bottom
how would i go about this?
if the answer is shaders i will cry /j

chrome widget
#

shaders

glass crown
#

😭
damnit i have no clue how to make shaders and dont really have interest in learning, fuck

chrome widget
#

ugh trying to figure out how to mess with the view deck screen is gonna be so irritating

#

I notice that there's this num_suits_shown value that counts up in here tht's not.... used anywhere?

#

What's that about?

sonic cedar
#

new debug tech

sonic cedar
normal crest
#

Only with smods

sonic cedar
#

nvm pensiveclown_cc

normal crest
zealous glen
#

Well it depends on what exactly you’re trying to do

sonic cedar
zealous glen
placid star
chrome widget
#

There's no easy way to hook it to make some of these changes unfortunately and i've recently become a Patch Hater

glass crown
sonic cedar
#

but WHY
did it gain
TWICE

zealous glen
#

Maybe L Corp could be useful with their cutscenes

chrome widget
# zealous glen Why?

Because the only way I can stop the function from sorting the deck by suits in advance is to eliminate the sort line here, which means circumventing/reimplementing the entire code, which is dumb and boring and needs to be maintained if this original code is changed

chrome widget
#

Similar reason. Need to be maintained if the original code is changed and the target breaks

sonic cedar
chrome widget
#

Hooks are less likely to break

zealous glen
#

I don’t know if that’s true

#

Thunk could just change the signature

#

Or remove the function

#

Or rename it

chrome widget
#

Thunk updates the game very rarely, SMODS tends to keep function signatures the same at all costs to prevent breaks for existing mods

zealous glen
#

Yeah but the same is true for patches

chrome widget
#

Like yeah I'll have to update everything when the Vanilla game receives its big gameplay update but so will SMODS

sonic cedar
#

the game froze on the fourth round (the round it's supposed to trigger on)

normal crest
zealous glen
#

I remember @manic rune having an issue with the Retrigger Joker context

chrome widget
#

Perhaps I can just hook get nominal......

zealous glen
sonic cedar
#

am i fucked

chrome widget
#

Looking at it im probably going to need to reimplement the entire function anyway

#

yay

normal crest
zealous glen
#

I can’t send the evil Kermit GIF

wintry solar
#

yes

normal crest
#

:c

wintry solar
#

well

#

it's not other_card though right?

#

it's context.trigger_obj?

normal crest
#

in context.retrigger_joker_check, context.other_card is not a joker, but the blind

#

if the blind uses the new probability contexts within its calculate

chrome widget
#

fr though the number of changes I need to do makes it seem like it's genuinely easier to do just branch it to new code with a hook, since I'd have to do a dozen patches or smth for this

wintry solar
#

oh that's a bug then, probability checks shouldn't be retriggerable

zealous glen
#

And then do something similar when ordering

chrome widget
#

The number of things I need to change in the displayed output is pretty high unfortunately

zealous glen
#

I thought it was 4 UI elements and the order of cards

#

Maybe 8 since the UI elements can alternate in some circumstances

chrome widget
#

The main thing is modded additional suits, since with the added pagination, it means that I can't just dumbly reorder the rows in each page

#

Because in a circumstance where you have modded suits, if it only reorders per page, you have more information about which suits might be which from the get go

zealous glen
#

Maybe I misunderstood how your effect worked

wintry solar
#

I would probably just hook it and divert it to a custom function when it's necessary

zealous glen
#

I thought it was Smeared for face-down cards

chrome widget
#

im gonna have to yea

chrome widget
zealous glen
#

Like

#

It hides the information of the suit

#

Instead of making them the same

chrome widget
#

It does

zealous glen
#

But you can’t tell which suit it is

#

Like face-down

#

So it’s smearing the face-down-ness

#

That makes sense to me as combining Smeared and face-down

#

Anyways, Smeared doesn’t apply to custom suits

#

So it didn’t seem like your effect should

chrome widget
#

In no way do I benefit describing this effect as "Smeared + Face-Down"

normal crest
chrome widget
#

It obscures the suit. The rank is still visible, and once I finish reimplementing this, the actual suit relation between cards will remain the same probably. All information about the card is visible except the visible information of the suit

wintry solar
#

no, probably not

zealous glen
#

I was just asking if it was, and it does seem like I understood it correctly

#

Which still doesn’t explain why custom suits are relevant

chrome widget
#

Because this effect will also mask custom suits

zealous glen
chrome widget
#

By suit

quick kraken
#

Does pseudorandom return an integer?

zealous glen
chrome widget
#

I don't know what you're asking. It creates a masked visual appearance and then applies it to the suit

zealous glen
#

So I imagined there were two masks

chrome widget
#

that example had four colors

zealous glen
#

I only saw 2 🤔

#

How does it assign colors to custom suits?

chrome widget
#

I haven't added any checks to ensure that visually similar colors can't be used in combination

chrome widget
#

Colors cannot repeat

zealous glen
#

What if the user has the 60 Suits mod?

#

Or the 600 Suits mod?

wintry solar
#

then they should uninstall it and play the game normally 🙃

chrome widget
#

Well there are 152 possible combinations so the first option is covered

zealous glen
#

So colors can repeat

chrome widget
#

No

#

If there are more suits than possible colors this code would crash

zealous glen
#

Then there are only 38 possibilities

chrome widget
#

Oh wait shit you're right it's currently with total replacement

zealous glen
#

Because the other combinations don’t matter

chrome widget
#

there should be 152 possible combinations and I'll fix that

#

So colors should be able to repeat with a different visual suit

quick kraken
#

Does pseudorandom return an integer or any double between the given bounds?

chrome widget
#

just ideally it won't repeat colors if it doesn't absolutely need to

zealous glen
wintry solar
quick kraken
#

Ok

wintry solar
#

otherwise it is from 0->1

zealous glen
#

Although upon further inspection I only saw a single, transparent pink card

chrome widget
zealous glen
#

For a total of 3 colors

quick kraken
#

Inclusive of the bounds I'm assuming

zealous glen
#

So you can still tell suits apart?

chrome widget
#

yes

#

So I need to reorder the suits for display in the deck view so that the player can't positionally identify them by their load order

zealous glen
# chrome widget yes

I think you could change the atlas for the suit textures and reorder the SMODS list of suits

#

And change the atlas for the suit icons

#

Doesn’t that accomplish the result you want?

#

Without touching the deck UI

quick kraken
#

Wait so the vanilla suit order is load order?

chrome widget
#

temporarily reordering the SMODS suits might work

zealous glen
#

Because you don’t need to touch the UI at all, from what you told me

chrome widget
#

so it loads Diamonds -> Clubs - > Hearts - > Spades, and then displays Spades -> Hearts - > Clubs -> Diamonds descending

quick kraken
#

Huh

zealous glen
quick kraken
#

So modded suits with negative priority get loaded before vanilla and as such displayed after?

zealous glen
#

As I suggested

quick kraken
#

And mods with positive priority get loaded after and as such display before?

chrome widget
#

I mean yeah I could but I was just gonna change the default numbering personally

#

Which is more visually indicative that the real suits are being hidden, rather than that you just have new suits entirely

zealous glen
#

I think it’s easier and makes more sense to change the icons

chrome widget
#

It's easier and I don't think it makes more sense for my use case

zealous glen
#

Because it’s weird if it’s counting Spades when there aren’t Spades

chrome widget
#

Mhm, which is why it says your Spades are ?

#

because you do have spades, you just can't see them

zealous glen
#

I do have them but I can’t see them

hidden sable
#

how would you replace a music track with another depending on if you have a joker

zealous glen
#

But I can see this other suit

#

Shovels

#

So showing a count of Shovels makes more sense

#

It’s more useful to the player

hidden sable
#

like if i want to replace the main theme with another .ogg if you have say lusty joker

zealous glen
#

Because the player can manually count how many Shovels they have

#

They don’t need to be reminded there might be Spades in their deck

chrome widget
#

You're missing the design intention here and I'm not gonna argue it further either way

zealous glen
#

Because the count isn’t hidden

#

The suit is

sonic cedar
#

everything works now, timing wise! now the only issue is the curse of the double trigger

yes i wrote "line break" in the console to separate rounds

chrome widget
#

Better UX is not more important than intentional design. I can make the UX of the intentional design better, but I will not sabotage a design I haven't even tested on the assumption that the UX is bad

zealous glen
#

It’s not an assumption, and the alternative is as far as I can tell, easier to implement

chrome widget
#

As I said, I won't continue debating this

sonic cedar
modern kindle
formal parrot
#

Epic

zealous glen
sonic cedar
modern kindle
#

hello

zealous glen
#

How are you

modern kindle
zealous glen
modern kindle
zealous glen
#

Also not the spaces in file names 😭

formal parrot
sonic cedar
zealous glen
modern kindle
formal parrot
#

more

zealous glen
#

also do lore

modern kindle
sonic cedar
#

im out of elephants

zealous glen
sonic cedar
formal parrot
modern kindle
#

thought u said hikaru

#

♟️

sonic cedar
#

take more instead

modern kindle
#

youre really slacking

formal parrot
sonic cedar
modern kindle
sonic cedar
#

in a fight right

formal parrot
#

In bed right

modern kindle
hidden sable
#

how do i replace music with a joker

#

like when a joker is present

chrome widget
#

i solo a lot of people but typically I prefer co-op
<----- polyamorous

hidden sable
#

replace the music

formal parrot
sonic cedar
hidden sable
modern kindle
formal parrot
hidden sable
formal parrot
#

Also there’s an example

chrome widget
formal parrot
#

In the examples

modern kindle
hidden sable
formal parrot
formal parrot
#

You can also ask mysthaps

sonic cedar
#

🤓

hidden sable
sonic cedar
#

also I forgot to say hi Heaven hi Heaven

quick kraken
#

Ok we have a problem

sonic cedar
#

hi HeaveN’

formal parrot
red flower
#

hi toma

hidden sable
quick kraken
#

I have a tag that spawns jokers directly into your joker slots

sonic cedar
quick kraken
#

It checks if you have room first

chrome widget
modern kindle
red flower
formal parrot
hidden sable
modern kindle
hidden sable
#

no thats it

modern kindle
quick kraken
hidden sable
#

mods tie him uyp

red flower
formal parrot
#

MUHAHAHAHAHAHA

sonic cedar
red flower
quick kraken
#

So I put the check in the tag's yep func?

red flower
#

yes

quick kraken
#

And make it return false if the check fails?

red flower
#

no

placid star
#

is there a way to see all the suits are loaded into the game

quick kraken
#

I don't want the tag to despawn without giving a joker if the size check fails

placid star
#

TOMMAAAA HIII

red flower
quick kraken
#

Or I'm gonna have to do another global variable

sonic cedar
#

only one man would join on that wave with me….

hiiiiii somecom

quick kraken
#

I already made one to grab last blind's reward money, what's one more?

hidden sable
#

i dont undertand these

#

why return different numbers?

red flower
#

it's the priority

hidden sable
#

oh

#

thanks N' word

red flower
#

do not call me that

hidden sable
#

😭

#

literally 1984

sonic cedar
modern kindle
#

thats a crazy thing to say

red flower
sonic cedar
# red flower is this in any context? or a specific one?

I don’t think so? for example, Mary’s is an end of round thing and Chud’s is probability hits

Or hell, even with fake Perkeo copying 2 instead of 1…

maybe the link is a context? I’d have to get back to my computer

sonic cedar
modern kindle
#

toma stop

#

toma why are you being mean to me

#

toma

#

please

#

im begging you

hallow slate
#

is the matermind

sonic cedar
hidden sable
#

how do i check if a player is in a blind agai

near heart
#

context.setting_blind is for when you select a blind idk if thats what youre asking though

modern kindle
red flower
modern kindle
chrome widget
#

The one they call Mukuro Ikusaba.....

near heart
#

how can i use a for loop to run code a random amount of times (between two values)

red flower
#

yes

modern kindle
#

that made me laugh

near heart
#

this is my first time using lua so i have no clue how to use its for loops

red flower
#

ur welcome

sonic cedar
red flower
near heart
#

cool i was really close

#

thanks

sonic cedar
# red flower that looks fine

here's the effects then
also note, the messages themselves return once
it's the gains (or perkeo for some reason) that double proc

#

idk maybe one of my hooks??

#

...is it because there's two separate calculate_joker hooks or am i coping

red flower
#

no, it's because in one of them you call the reference twice

sonic cedar
red flower
#

there should be one of these only

sonic cedar
red flower
#

that's an easy fix tho

sonic cedar
#

no wait it's still easy

#

job done

#

IM FREEEEEEEEEEE

#

wait

#

hold celebration, jolyne
test first

#

also remove the print checks the joker works

wooden nexus
sonic cedar
#

(am i stupid what's the difference)

wooden nexus
#

(can't sell the right one)

#

that's bad

sonic cedar
#

(oh yeah that's bad)

wooden nexus
#

it's a new card type and idk how to add it to be sellable

chrome widget
#

If it doesn't automatically be given it like consumables, you'll have to hook use_and_sell_buttons() to add a condition for it (or you could patch to add it to the condition that does it for jokers)

sonic cedar
#

ui... ooga booga...

wooden nexus
#

I'll have to find where that is, and one last question... How do i give it debug compat

chrome widget
#

Similarly you'll also need to change card_focus_ui() for controller support

wooden nexus
#

oh and i need to give it its own counter

hidden sable
#

whats that smods function to check if the player has a joker

red flower
#

i still haven't figured out controller support

wintry solar
#

SMODS.find_card('key')

sonic cedar
hidden sable
#

thanks

wooden nexus
#

Right now it shares the same spot as jokers but I'm gonna have on the other side with the new card type's number

#

or just underneath, idk yet

sonic cedar
violet oasis
#

Is it possible to override a Joker's name that was setup in a localization file? I wanted to try changing the name of a Joker when it's Negative to something else

red flower
#

your own joker or from vanilla/another mod?

violet oasis
#

my own

red flower
#

return a key in loc_vars to another localization entry

#

when it's negative

sonic cedar
violet oasis
red flower
sonic cedar
#

like in the if?

primal robin
#

HOLY SH it's working

red flower
red flower
primal robin
sonic cedar
#

4-1 is 3 last i checked

wooden nexus
#

where in the code is this?

hidden sable
#

why does this seem to always return true

primal robin
red flower
wooden nexus
primal robin
#

Use global search

sonic cedar
red flower
#

i didnt know c_ was supposed to mean counter 😭

sonic cedar
#

TRUE lmao

#

im sorry

primal robin
#

Okay, ui thing works, what now...

red flower