#💻・modding-dev

1 messages · Page 12 of 1

zealous glen
#

I think it's either align_card or Card:draw() that hide the card front while it's in the deck, but I'm not sure

ruby geyser
#

Off PC now but purple one is invisible joker but it makes a joker negative instead of copy one, Pride Jimbo is +0 mult, gain +1 mult when you play a hand, resets back to 0 if you play a straight or straight flush

zealous glen
#

it was cool

ruby geyser
zealous glen
zealous glen
#

er, "frontward"

zealous glen
#

Balatro source code:

frosty dock
#

chat

#

this mod badge shouldn't be here, right?

stable coral
frosty dock
#

I'm the one who made these badges...

#

I'm just asking if y'all think they should be removed from undiscovered object

#

to me, it looks out of place

zealous glen
#

Did you manually move the cards or did you reuse the existing function for it?

silent sinew
#

nah i think its good to tell when one mod starts and another ends even if its undiscovered

night pagoda
#

imo it's out of place

#

there's mystery behind which mod is that from

mystic ocean
#

does anyone know what the current replacement for findModByID is? if any?

mystic ocean
#

yea

#

for latest commit

frosty dock
#

none, SMODS.Mods is indexed by ID

silent sinew
frosty dock
#

the previously numerically indexed SMODS.MODS is now SMODS.mod_list

mystic ocean
#

Ohhhh!

unkempt thicket
zealous glen
unkempt thicket
#

yes very casual

frosty dock
#

just pushed the fix for consumable type collection pages

#

surprised it wasn't more scuffed

night pagoda
#

what is the function that makes you go to the shop after you win a round?

zealous glen
#

Try seeing what happens when the round ends

#

There was a function for that, I think if you look for game_over you should find it

night pagoda
#

hmm

gilded narwhal
#

Yo I'm just looking at the source code for fusion jokers and I'm gonna try to make one for practice but what is G.GAME.probabilities.normal

zealous glen
mystic ocean
#

ok issue found
the custom sound api shipped with steammodded is broken because there isn't a findModByID method anymore. if you replace it by looking in mod_list, ordering is all fucked up

#

because you can't call register_sound_global in an init method (you don't know if it's been put in the list yet)

zealous glen
#

@frosty dock

mystic ocean
#

maybe there's some way to wait until the mod has been put in the list before executing code in it idk

frosty dock
#

alright good to know, I have to update that anyway

mystic ocean
#

sounds good

#

maybe registering a mod's sounds could put it in a list for the api to iterate through and do it's stuff to after all the mods are done being set up?

short surge
#

Basically hijacks the play function

narrow pollen
#

...how the hell does {V:x} localization work...?

#

ah, that's what it is!

frosty dock
narrow pollen
#

yeah, i realize now that i need to give it a colour variable

narrow pollen
#

so i'm trying to pass this table as loc_vars

#

which, with this formatting, should return "Hearts" in the game's Hearts colour

#

right?

frosty dock
#

yeah

narrow pollen
#

it does not do that.

it crashes.

unkempt thicket
#

shouldn't this work (I referring to artist, everything else works fine)

frosty dock
#

i smell old API format

zealous glen
gilded narwhal
#

Hey guys how does one give yourself jokers

unkempt thicket
#

debug

narrow pollen
#

that took... WAY too long to figure out, holy--

odd dock
#

the animation is very funny, it looks a bit stiff and speeding up as it goes would help a lot if possible

zealous glen
#

Eventually the cards break before they can flip completely

#

Or even move

#

If there's a lot of them

mystic ocean
#

are there any up to date mods I could use as examples?

odd dock
zealous glen
odd dock
#

the entire deck blowing up is very funny but the way you're doing it now looks way better

#

either way is fine ngl

mystic ocean
lusty orchid
#

I'm new to modding, so sorry if this is really simple but how do I check the current hand's score for a joker? I tried to look in source code but I don't think any vanilla jokers do it.

lusty orchid
# zealous glen What do you want to check?

The total score for the hand that was played, I'm essentially trying to check if the little fire effect is active, but I'm doing that by checking if the hand's score is greater than blind requirement

zealous glen
#

I'd first look at the final check to see if you won a blind or not, because there you can find the relevant globals

#

Search for game_over because that's the context for Mr. Bones

lusty orchid
#

I checked in the fire code and whatever variable it uses didn't work, I'll check the blind win check though, I hadn't thought of that

#

oh wait, that uses total chips, not hand score

#

is there a way to get just the current chips and current mult? maybe I can just multiply those

zealous glen
#

So at the time you look into it it should be current chips

#

But you should check that

lusty orchid
#

it uses G.GAME.chips, which is the same as Mr. Bones. I'm not sure what it actually represents but I tested it and it didn't seem to trigger the effect at the right time

#

I think the joker may check it before the current hand's score is added to it

zealous glen
lusty orchid
zealous glen
#

As the UI clearly shows

#

Balatrostuck has a Joker that does something similar, but the mod is unreleased

royal ether
#

you can get current hand chips by just doing mult*hand_chips

#

you just have to make sure you check it at the correct time

#

mult and hand_chips are global i think

zealous glen
#

Wouldn't you also need Xmult

#

or x_mult

royal ether
#

no

zealous glen
#

(both exist)

royal ether
#

because mult*hand_chips is the value shown on the left

lusty orchid
#

oh I didn't know those were global

#

I'll test it rq

royal ether
#

so as long as you check at the correct time, you should be good

lusty orchid
royal ether
#

oh context.after might actually work

#

i think it only visually resets

zealous glen
#

Understanding when code runs and when events run is difficult

lusty orchid
#

It works! Thanks guys

royal ether
#

its just a trial and error thing

#

balamod makes a log file every time you start the game, and i have thousands of them

zealous glen
royal ether
#

idk specifics, but if trial and error isnt working, you might just be understanding something wrong. i usually just dig deeper into source code if trial and error isnt working to see what specifically is happening

zealous glen
zealous glen
#

Digging deeper into the source code becomes more difficult when there are more degrees of separation between where you are and what you're looking for

#

Like the code for accelerating animations is completely separate from the code running animations, except implicitly by setting global variables at key moments

royal ether
#

i mean, when you want to do things that are fundamentally new, you gotta get in there. just gotta be patient, i guess

#

taking breaks is nice too

royal ether
#

speaking of breaks im going on vacation tomorrow for a month so i wont be around until june :3

zealous glen
# royal ether taking breaks is nice too

I did take a break from addressing that older issue (accelerating animations). It was only a few days ago when someone suggested I look for a specific game state that I found the relevant code

royal ether
#

i wish i finished tier 1 sap so i could like, demo release it but i burnt out a couple days ago 😔

royal ether
#

yea, theyre all on my github

#

fortune & miscellaneous cards

slow ocean
#

ill queue up the balamod acolytes in your absense

golden lake
#

Lyman

#

did you see the stupid scaling of Tanglebuddies

#
High Card:      +1  -> +2      -> +4
Pair:           +2  -> +10     -> +154
Two Pair:       +4  -> +20     -> +308
3oak:           +4  -> +145    -> +46234
Straight:       +5  -> +10     -> +20
Flush:          +5  -> +10     -> +20
Full House:     +6  -> +165    -> +46388
4oak:           +10 -> +5914   -> +43950000
Straight Flush: +5  -> +10     -> +20
5oak:           +34 -> +409114 -> +9.392e10
slow ocean
#

the factorial one

golden lake
#

yes

#

this is like

#

if this hand gets retriggered 0, 1, 2 times

#

this is how much it scores

#

in +Mult

slow ocean
#

true horrorterror levels of mischief

golden lake
#

Also hear me out

#

a Joker that retriggers a hand X times where X is the hand's planet level divided by two

#

Wait

#

that should be the Cascade effect

slow ocean
#

oh thats

golden lake
#

holy shit +naneinf mult is gonna be real

slow ocean
#

real

golden lake
#

I love how technically with 2 hacks

#

a 5oak of 2s can

#

break into +Mult e

silent sinew
#

fuck i just remembered i need to do blueprint compat stuff for balatrotale

#

i completely forgot thats like kind of an important aspect of adding jokers 😭

slow ocean
#

its not too hard

narrow pollen
zealous glen
silent sinew
#

is it possible to make a spcific vanilla joker use a different atlas without taking ownership of it

golden lake
#

im nerfing Cascade to every 5 levels

#

it also makes more sense with Homestuck theming

#

given that Cascade is end of Act 5

rough furnace
#

Cascade when I have telescope and a bunch of blue seals

golden lake
#

the design of balatrostuck is very normal

narrow pollen
#

sometimes literally lol

blissful coyote
#

cascade buddies to the moon

narrow pollen
#

that's why i'm so proud of what i did with square joker

#

yes, it gives ridiculous amounts of chips if you play a couple dozen hands that are exactly 4 cards

golden lake
#

i find it hilarious that the joker that can break the game very hard very fast is a common

#

because as far as its ability goes, it is a common

#
High Card:      +1  -> +2      -> +4
Pair:           +2  -> +10     -> +154
Two Pair:       +4  -> +20     -> +308
3oak:           +4  -> +145    -> +46234
Straight:       +5  -> +10     -> +20
Flush:          +5  -> +10     -> +20
Full House:     +6  -> +165    -> +46388
4oak:           +10 -> +5914   -> +43950000
Straight Flush: +5  -> +10     -> +20
5oak:           +34 -> +409114 -> +9.392e10
#

the chart

mellow sable
golden lake
#

mathisfun do you like my tangle buddies

narrow pollen
#

i mean... i changed it to rare

mellow sable
#

Yes

golden lake
#

do you think the reasoning of it being common because its really bad unless you retrigger a bunch and have secret hands is reasonable

narrow pollen
mellow sable
#

Quadratic scaling is fun

narrow pollen
#

already i'm thinking cascade and splash is fuckin busted, but retriggers on their own don't take you to the moon.

narrow pollen
#

and yes, it's rare and costs $9

golden lake
#

i am nerfing Cascade to every 5 levels btw like I said because I underestimated the power

#

5 levels is fair

mellow sable
#

There’s a huge concepting doc for the mod Im working on and one of the utility jokers is a joker that turns every scaling joker into quadratic scaling

#

So we’re buds

golden lake
#

tangle buds?

narrow pollen
#

yeah, 5 levels feels right, @golden lake

#

OH MY GOD I FIXED LOCALIZING

#

guess i don't need any of that fake localization code anymore, good-fucking-bye

golden lake
#

btw the reason Tangle Buddies are characterized as this really mundane effect that takes on power only at impossibly high retriggers is because in Homestuck the Squiddles (which the Tangle Buddies joker is referencing) are like, a kids TV show/plushies line that is actually a manifestation of eldritch beasts from the Furthest Ring, a place which is like, technically at the edge of known universe

formal viper
#

3am math better work

shell timber
#

it's just x^2 i'm pretty sure

#

it starts at 1

formal viper
#

the starting chips or the amount of chips gained

#

i just assumed starts at 0 chips amount of chips gained starts at 4

shell timber
#

starts at 0 chips, gain starts at 1

formal viper
#

ah

#

makes more sense

queen scroll
mellow crag
#

Jouce Up

narrow pollen
#

i made square joker increase by an amount that itself increases

queen scroll
#

well the rocket ability scales linearly meaning you money scales quadratically

narrow pollen
#

i suppose that's quadratic income scaling

#

but yeah, i gave square joker quadratic CHIP scaling

wild gyro
narrow pollen
#

yeah, the parallel has been drawn

#

however, i seem to have be having trouble really caring 😛

shell timber
#

i also don't care

wild gyro
#

nah i dont care either

mellow sable
#

I'm surprised these kind of decks haven't been made yet (afaik)

wild gyro
#

why is there 2 sets of hearts

mellow sable
#

Steamodded 1.0.0 adds a fifth suit for some reason

wild gyro
#

tf

#

have you reported that

mellow sable
#

it's a dev versin

wild gyro
#

that seems off

mellow sable
#

like it's intentionally there

wild gyro
#

but why

mellow sable
#

ask aure

#

idk

odd dock
#

testing probably

#

hard to test suit api with no suit

mellow sable
#

I mean consumables also ceased to exist in 1.0.0

#

they were all dragged into this spectral's wormhole

unkempt thicket
#

I need some proton ideas, for its effect (I ended up keeping the design Lyman made (had to recode everything and didn't want the art to go to waste)) the first card could be interpreted with 3 different themes (probability, gambling, or changing score directly) so the second should also follow one of these themes as well.

mellow sable
#

1 in 2 chance to halve blind requirements

unkempt thicket
#

Btw the first cards effect is "Current chips fluxes between 90% to 135%"

mellow sable
#

that might be too similar then

#

unless you want the theme to be pretty close

royal ether
#

i just thought of a hellish idea for you to implement, photon does something different depending on if youre hovering over it or not

tawny perch
royal ridge
unkempt thicket
royal ether
unkempt thicket
unkempt thicket
edgy reef
#

God the bugs in Steamodded 1.0 are so funny

near ivy
#

could do the opposite for neutron too

#

could also maybe edit the values on the player's jokers for another one

odd dock
#

the spectral for them could be "change ante by -2 - +2"

#

"Cheshire" or something

unkempt thicket
#

so i'll probably change a few numbers and use it

odd dock
#

i think the idea was that mult is more valuable than chips but yeah the numbers could prob be buffed anyway

unkempt thicket
#

I'll just flip the numbers so 5-10% for +mult, and 2-10% -chips

slow ocean
#

increase the rank of 2 selected cards by +3 to -2 ranks

odd dock
unkempt thicket
odd dock
#

nono you use it and the effect lingers with no way of telling till you sell one

unkempt thicket
#

oh, so it also takes space in your inventory, and you can sell one of your jokers you like permanently

#

i like it

scenic zenith
#

what does debuff_card have to do with config Sobb

#

i cannot find this supposed use of config

narrow pollen
scenic zenith
#

i do have that but there's no config call

#

also main.lua doesn't have 1917 lines

#

i figured out if i just don't call debuff_cards it's fine

#

now i just act like i do my part of debuff_card cause if i call the original it dies

edgy reef
#

Steamodded uses debuff_card append for blind API iirc

#

Probably something to do with that.

royal ridge
#

anyone know how draw_card works, or if it's even what i'm looking for? trying to make a joker trigger drawing cards (ignoring hand size) upon consumable use, but i'm not exactly sure how the function works

silent sinew
#

im kinda curious if there are any devs that aren't planning to update to steamodded 1.0

#

i feel like the syntax changes might scare some people off

dawn valve
#

I need to rewrite the code anyway tbh

silent sinew
#

i'm still in the process of rewriting balatrotale, right now i'm just changing a bunch of stuff at once and i feel like i'm going to accidentally delete something important because it's so repetitive 😭

scenic zenith
#

yo hi toneblock

royal ridge
#

heya

scenic zenith
#

i have made of the thing

#

funny

#

oh nice mistake

#

lmao

#

i can english

#

yes

royal ridge
#

dust bunny deck

scenic zenith
#

pretty much yea

royal ridge
#

:peaceline:

#

cool concept

scenic zenith
#

we're thinking of celeste-related things

#

cause celeste cool

#

still not sure if its busted

royal ridge
scenic zenith
#

Banger

#

We're basically gonna do the same

#

Join our team tbh

royal ridge
#

could merge my spaghetti code into your mod tbh

scenic zenith
#

Lel

#

I'll send you an invite if you wanna

#

We aren't very far yet

royal ridge
#

sure

#

are you using steamodded?

scenic zenith
#

ye

royal ridge
#

nice

shell timber
#

avocado:

  • 6.022x10^23 mult once
narrow pollen
#

btw, gonna preliminarily nerf my 🔳 joker from starting at +4 chips (upgrades from +1) to starting at +1 (upgrades at +0)

narrow pollen
#

...where is "type mult" defined? anyone know?

random sleet
#

anyone know how to reference a joker's config in the alpha?
self.ability doesn't get the values mirrored to it and self.config.center has nothing of the sort in it anymore apparently

mellow crag
#

Autumn!!!!!!!!!!!!

#

Oh my god you’re back!

random sleet
#

ok i just have to use an extra table i guess

frosty dock
#

self.config.center.config should hold the base values

#

iirc you need extra if you want to have it consistenly copied to the Card

random sleet
#

i see

narrow pollen
#

how would i get a joker to visually trigger an effect twice?

maiden phoenix
#

If you mean Joker message there's card_eval

proud pier
#

are there custom card editions?\

night pagoda
#

Is there any function I can inject into that is called at the end of the hand scoring?

shell timber
proud pier
#

how did you know

night pagoda
shell timber
zealous glen
frosty dock
#

mod badges for dependencies?

zealous glen
night pagoda
#

Uhhh which function calls that context you found?

#

It's not for a joker

zealous glen
wooden nexus
#

Guess who's back to archiving

zealous glen
#

Akai called it an invisible global joker, but I couldn’t validate that myself

zealous glen
# night pagoda Thank you!

I’d send the whole context but I just got away from the PC. If you look for main_joker you should be able to find it after scoring

night pagoda
#

I can't find anything by searching for main_joker

zealous glen
#

I never remember

night pagoda
#

found it, ty

zealous glen
night pagoda
#

Unless I misunderstood something calculate_joker still gets called before the score gets applied

zealous glen
night pagoda
#

Wait I need evaluation function then I guess

zealous glen
night pagoda
#

it doesn't get called anywhere else in that function other than in the screenshot

zealous glen
night pagoda
#

ahhh gotcha

#

I thought you were referring to joker_main for some reason, mb

ruby geyser
#

What do you guys think an appropriate upside to a joker that causes all random chances to not occur (super reverse Oops! All Sixes)

zealous glen
night pagoda
#

I see joker_main being changed in evaluate_play, I think that's it

zealous glen
#

There’s a call at the very end, yes

queen scroll
ruby geyser
#

Curious if anyone else has had a similar idea to this - A card that changes its effect based on what slot in your inventory it is. If anyone else has done this, how do you hand the text?

queen scroll
ruby geyser
queen scroll
#

yeah but i override the generate_uibox_ability_table function to make it display what i want

zealous glen
ruby geyser
#

Much like localthunk, I hate switch statements

zealous glen
zealous glen
ruby geyser
zealous glen
#

What you want is mostly text inside a column, though you need an extra column for the X controls

queen scroll
#

you’re telling me i didn’t have to manually do that myself?

#

don’t you 👍 me you little

frosty dock
#

👍

zealous glen
#

👍

queen scroll
#

screw you

#

you know what

#

i’ve had enough

#

👎

zealous glen
#

👎 ♻️ 👍

ruby geyser
zealous glen
#

Actually I’d also need a mirror

zealous glen
#

Currently you return one output, you need to return two

#

The second has to be the actual object that will be rendered rather than just text

ruby geyser
#

OH

#

I get you now

#

so something like return nil, [Effect]

zealous glen
#

AFAIK

#

So return an empty table

ruby geyser
zealous glen
#

Here’s an example

zealous glen
#

I don’t think you need the row if you only have one line

ruby geyser
#

One day I'll get an error because I fucked up my actual code and not just because I mistyped something...

ruby geyser
#

I feel like I'm missing something obvious here - I want the effects to start stacking if you have 6 or more jokers (so if pos == 6 then you get the effect of pos == 1 and =2, if ==7 then you get 1,2, and 3), is there a way to do that smartly or is it just gonna be unga bunga caveman if statements

frosty dock
#

So everything up to pos-4?

ruby geyser
#

Yeah

#

Returns terminate it looking through ifs right

frosty dock
#

if the effects are at all alike, a loop should do for that

#

you'll need to fake the message instead of returning it

#

card_eval_status_text or whatever the function for that is called

royal ridge
#

is there a context/g.state for when a round/blind is currently happening?

#

feeling a bit stupid rn

crisp coral
#

G.GAME.blind checks if a blind is active

#

iirc

night pagoda
#

G.GAME.blind and not G.GAME.blind.disabled

royal ridge
#

ty

gilded narwhal
#

Yo I'm kinda new to this but why is it giving XERROR

maiden phoenix
#

What's in your loc_def

gilded narwhal
#

OH I KNOW WHY

#

Mb

hoary sand
#

my army grows

gilded narwhal
patent bough
rough furnace
#

Half gift

unkempt thicket
#

how do I increase the mult or chips of a hand type? (without leveling it up)

rough furnace
#

I think you can just set them, but iirc, leveling up will reset them to what they should be

mellow sable
near ivy
# hoary sand my army grows

the ones for the mult/chips-for-hand-type jokers with 5 cards look kinda cramped, you may wanna break those up into groups of 3+2

mellow sable
scenic zenith
#

Anyway to quickly get the voucher i made to test it

odd dock
#

debugplus

scenic zenith
#

what button is it

#

i tried looking through but i see no way to reroll vouchers

odd dock
#

same as spawning jokers but you have to be in the shop

scenic zenith
#

oh

#

nice

odd dock
#

they don't get insta redeemed just put in the shop

scenic zenith
#

that's nice

#

i think they work but i should prob add an animation lmao

mint beacon
#

since I dont really see a answer to this, I might as well ask directly here, but if I update the game, and re-install steammodded everything should still work fine, correct? or does the update break mods?

scenic zenith
#

im using it on 1.0.1 so at least steamodded itself works

#

i can definitely see some mods breaking though since you have to interact with code directly sometimes

#

shouldn't be too likely tho i think

#

(not sure what localthunk changed in background)

mint beacon
#

well there was a engine change iirc

odd dock
night pagoda
#

awesome, juan moment

edgy reef
#

"WE LOVE DEBUGGING" all mod developers say in unison

maiden phoenix
night pagoda
#

how can I add variables to the blind's localization?

rigid moss
#

Hey guys, do you know how to print debug messages on screen? I've seen in other mods people using sendDebugMessage(msg), but nothing shows when I'm trying to use it...

night pagoda
#

you're supposed to use console to debug things

wheat cypress
narrow pollen
#

...man

#

how is it that i always find the things that are the least possible to do?

wheat cypress
zealous glen
wheat cypress
# narrow pollen how is it that i always find the things that are the least possible to do?

maybe you need to add a base multiplier to the banana? maybe it's falling apart because the multipliers is becoming less than one or some weird thing is happening. not sure if its gonna help but making a "safety net" might help. not sure tho. i'm new to modding this game and have a lot to learn

EDIT: Thought you were ice cream+banana guy. this probably wont help. srry

zealous glen
narrow pollen
#

nah, i'm the "wants a single joker's chip/mult bonus to apply in two steps" guy

zealous glen
narrow pollen
#

nono

scenic zenith
#

anyoen made card sleeves as a consumable idea yet (doesn't look like it im making it peaceline)

narrow pollen
#

i want these two to apply their respective bonuses in two steps if you play two pair / full house

#

i have it working visually, but it seems the game doesn't like both steps actually doing anything

zealous glen
zealous glen
scenic zenith
#

basically the idea is that it's a thing you can put on jokers and they give it an effect

#

ideas i had was: weaker enhancement versions, more money if you sell the joker, negative but it becomes a rental

#

stuff like that

narrow pollen
#

am i missing a variable in the message table? it works fine when i have it return that message, but the card_eval doesn't actually increase the value

zealous glen
narrow pollen
#

yeah, i'm trying to figure out the "increase value" part and

scenic zenith
#

yea i think the return is what makes it actually increase the number

narrow pollen
#

starting to realize that it's maybe impossible

zealous glen
#

Just look at what the game does with the return

scenic zenith
#

you can always manually increase it if you want

zealous glen
#

It adds to the value somewhere else

scenic zenith
#

Without checking I'd guess it just uses something like ease_chips()

zealous glen
scenic zenith
#

similar idea i suppose

#

i think my idea is unique enough that i'll go through with it

#

just felt like a relatively common idea so i thought i'd ask

#

lol

#

anyway here's a deck i made peaceline surely perfectly balanced i have not playtested it enough yet to know

scenic zenith
#

yea we're making a celeste-adjacent pack

random sleet
#

i have made a wonderful discovery

slow ocean
#

wot

random sleet
#

instead of having two arrays, one with the data and one with the desired load order of cards, i can have one array with both

#
'joker', joker = {
...
},```
slow ocean
#

o i c

gilded narwhal
#

Question, is there a list of context.xxxx that I should refer to or can you just put in anything

frosty dock
#

you can put in anything, but if the base game doesn't call calculate_joker with that context, you're out of luck unless you make the game call it the way you need

#

otherwise refer to the game's source

gilded narwhal
#

I'll just stick to the things I know work

calm nova
#

yo yo anyone used to coding with polychrome? im getting stumped

edgy reef
#

coding with wha

calm nova
#

like comfortable using the code for polychrome my bad

#

im trying to have first card of hand played for flushes turn into poly

slow ocean
#

i never messed specifically with polychrome but i would imagine it's the same as changing a card into steel/gold but you just specify the card's edition instead

scenic zenith
#

smth like this

card:set_edition({
                        polychrome = true
                    }, true, true)```
#

(taken from the absoluteDeck.lua example code)

gilded narwhal
#

Yo how do you do the thing that's like "X left" at the end of a round like seltzer or invisible joker

zealous glen
calm nova
random sleet
random sleet
gilded narwhal
#

Because I know how to do it in the tooltip

#

(I think)

random sleet
random sleet
random sleet
scenic zenith
# gilded narwhal (I think)

i honestly have no idea how seltzer does it it confuses me but i know you can always just go like


            card_eval_status_text(self, 'extra', nil, nil, nil, {message = "Big thing of the happening!!!", colour= G.C.CHIPS})
#

really do wonder how seltzer works it doesn't really seem to have the thing anywhere

zealous glen
zealous glen
zealous glen
scenic zenith
#

yea but it doesn't have the left

#

it's jsut this

#

lol

#

or is the left thing not real

#

maybe it just says the number actually and i am misremembering

#

mystery solved it doesn't say left

#

so yea just return the message in calculate_joker

gilded narwhal
#

Hmmm in the calculate could I technically be like message = localize('#2# left!')

#

Honestly I don't even rlly know how this works lmao

scenic zenith
#

i think all the ## things require you to have it as a variable but yea i also am not sure how those work yet peaceline

#

yea i think the way it works is #1# means the 1st variable you like set

#

so in seltzer it's self.ability.extra

gilded narwhal
#

Just in the calculate function?

scenic zenith
#

you prob just wanna return the message instead

gilded narwhal
#

Yeah I'll just do that

patent bough
royal ether
#

also welcome back autumn :3

golden lake
#

hi autumn!!

random sleet
#

hi smods 1.0 is killing me

golden lake
#

how so?

random sleet
#

dont hold your breath on oddityapi or thac or anything for smods 1.0 from me

gilded narwhal
#

Is it good

wild gyro
#

so smods 1.0 is going to just completely kill every existing mod?

slow ocean
#

yarp

random sleet
#

at minimum it's a full rewrite

#

again

wild gyro
#

whats the point then

slow ocean
#

wdym

wild gyro
#

this just seems like a negative

mellow sable
#

It’s better long-term

#

For making mods

slow ocean
#

its for having a better foundation

#

aye

mellow sable
#

The API is much easier to use

#

I converted my mod to 1.0.0 and it feels so much nicer

slow ocean
#

smods 1.0 still going to have to use the injector method as the default? pleading_rock

mellow sable
#

Lovely

random sleet
#

smods 1.0 doesnt even support injector

edgy reef
#

Plus the standardization of lovely means I don't have to be scared using it to un-scuff my code

#

:]

slow ocean
#

love to see it

random sleet
#

im like 90% sure

slow ocean
#

celebrate injector is dead celebrate

random sleet
#

fr tho

scenic zenith
#

Lovely does just genuinely sound like a better solution

#

So this seems like a good change

random sleet
#

lovely is lovely

slow ocean
#

i know aure said hes enforcing joker prefixes

#

or w/e the term is

random sleet
#

depends

#

are you registering each joker individually

#

or doing a loopy thing like how thac worked

slow ocean
#

theyre all individual

random sleet
#

because you have to rewrite every constructor to be SMODS.Joker { name = ..., key = ... }

slow ocean
#

are we going back to sandwich code a-la source code's calculate_joker function

#

oh

#

that doesnt sound that bad

mellow sable
#

All the function overrides and lovely things worked

random sleet
#

you also just put calculate, use, can_use, loc_def, etc directly in the constructor

#

instead of changing them after the fact

slow ocean
#

im a little intimidated because i feel like im gonna be very stupid after the update fixing my mod but

edgy reef
#

I converted Ortalab in its entirety within 6 hours iirc

silent sinew
edgy reef
#

It's not that hard as long as you know what the syntax is.

silent sinew
#

its kinda tedious because you have to define keys for every joker now but it's whatever

slow ocean
#

only reason i was able to refactor my mod the first time was because of mika

random sleet
#

the mage table is passed directly to the SMODS.Joker constructor

slow ocean
random sleet
#

ok thats a lie

#

i fiddle with generating a loc_txt first

edgy reef
#

I'm happy that Steamodded 1.0 didn't destroy any of the refactoring code.

silent sinew
random sleet
#

but mostly just passed directly

edgy reef
#

Else I would've been done for

slow ocean
#

wdym loc_txt stuff

random sleet
#

theres a new localization system

silent sinew
#

idk how to explain it

#

but some of your text might break if it's set during initialization

slow ocean
#

dont think that applies to me then

silent sinew
#

and you have to process it after the joker has been registered

edgy reef
#

You do this to initialize text (technically it doesn't have to be in the process_loc_text function but this is only used for one joker so why not).

silent sinew
#

all it really messed up for me was the sans dialogue

slow ocean
#

only joker i think might have some big Angry issues is maybe midnight crew joker since that has some weird hackery involving updating the soul_pos

#

:programming:

silent sinew
#

i mean my weird joker that has a custom front and scrolling background didn't need to be touched so maybe you'll get lucky

random sleet
#

sprite rendering is the same

slow ocean
#

i dont mean to be That guy but do we have a rough time frame of when to expect 1.0

silent sinew
#

my impression is within a month but i'm not involved with development

random sleet
#

the Card object itself is still the same it's just the way you register stuff with smods and the new hooks are confusing and i dont know what any of this shit is

silent sinew
#

autumn do you want me to send the code for balatrotale it's only basic joker registry stuff but if that's what you're struggling with then it could help

gilded narwhal
#

Yo question so I'm getting a crash that says context is nil but it only gives that at the end if statement

slow ocean
#

whats the crash log

random sleet
#

idk im just gonna play minecraft until other people make mods for me to steal the code of pretend i learned from

slow ocean
#

so true jestie

silent sinew
#

there is cryptid

gilded narwhal
zealous glen
#

I was planning to release the beta of my second mod this weekend, but with the Steamodded alpha I decided to wait. Maybe I’ll release anyways one of these days because I want to get feedback from people about it

silent sinew
#

it's structured completely different from how i prefer to but it's probably the best 1.0 reference you can get rn

silent sinew
slow ocean
#

oh are you trying to make a fusion joker

gilded narwhal
slow ocean
#

and if that doesnt work uhhh

#

well, actually

silent sinew
#

anyway if oddityapi 1.0 isnt happening for now i guess i should shelf the oddity portion of balatrotale for now

slow ocean
#

when does the crash happen

silent sinew
#

unrelated but holy shit my windows explorer is so fucking broken i might need to restart

gilded narwhal
silent sinew
#

we love you windows

slow ocean
#

oh your thumbnails arent loadin

silent sinew
#

it's just fucked in general lmao

slow ocean
#

maybe try not running the whole body of the code (the G_E_Manager code, return code seems fine to me)?

#

see if thats your issue

gilded narwhal
#

So I'm like 80% sure it's a syntax thing

zealous glen
gilded narwhal
slow ocean
#

this block of code

#

or honestly all 3 if statements here

#

just temporarily delete them or cut them into a new doc or something

#

see if you can initialize the joker with nothing but a dummy calculate function

#

if you can its probably a problem with one of those if statements

#

ait

gilded narwhal
#

So if I get the same error after deleting those if statements

slow ocean
#

is card.ability.extra.rounds_left == 0 correct

#

ok continue

#

oh wait

#

is rounds_left here refering to the extra on the joker itself

#

because that should be self.ability.extra.rounds_left i think

gilded narwhal
#

It wasn't a problem with that block of code actually

slow ocean
#

hmm

gilded narwhal
#

It was this one

slow ocean
#

oh wew

#

yeah that will do it

#

yeah you cant really have a joker (as in the joker itself) return both chips and mult without it being a hacky way

gilded narwhal
#

:(

slow ocean
#

not to say its not possible, mind you

gilded narwhal
#

Oh I know that

#

Because I know jokers that do that

slow ocean
#

as far as i know theres none in base game

random sleet
#

hehehehe

gilded narwhal
#

Scholar

slow ocean
#

scholar procs on the card itself

#

not the joker

gilded narwhal
#

Oh dang

slow ocean
golden lake
#

@slow ocean do i take

slow ocean
#

courtyard droll hands you the boof

random sleet
crisp coral
#

that would go so hard with pebbler

rough furnace
slow ocean
#

but yeah for whatever reason, you can have triggers off of a CARD return mult and chips at the same time but not the JOKER itself, if that makes sense

edgy reef
#

The way the game handles cards vs. joker scoring is different for whatever reason.

slow ocean
#

i ran into the same issue myself and a work around i think was just having either the chips or mult be given outside of the return, using card_eval_text to recreate the +chips/mult message, then return the remaining one as normal.

golden lake
#

this is so based

slow ocean
#

finally

#

prospit droll

rough furnace
gilded narwhal
#

Wait could I technically just like

#

Hold on

edgy reef
#

Any mod that didn't initialize stuff (like lovely-heavy API, for instance) will still work unless it's patching get_straight

#

Then it won't

crisp coral
edgy reef
#

:[

golden lake
#

@slow ocean oh fuck

slow ocean
#

me about to cascade twice

zealous glen
random sleet
golden lake
golden lake
#

20 sock and buskins in a single joker

#

but like. on a hand

zealous glen
#

Like the Hiker text but for everything

rough furnace
#

but yeah any mod making like any content won't work

random sleet
golden lake
#

SFWEEASTGWEA

#

it happened..

zealous glen
golden lake
#

oh my god sopor pie looks disgusting with holographic

#

perfect

narrow pollen
hallow forge
#

is it possible to make a joker that can't show up in shops or buffoon packs?

narrow pollen
#

i wanna see it with polychrome now--

edgy reef
long gust
gilded narwhal
#

I think I got it partly working

#

Lemme record

#

And it's my fusion specifically

#

Anyone have any ideas 😭

rough furnace
#

I haven't worked on any of these, but maybe make sure the Id is correct

lunar halo
#

does the fusion carry over the values of ice cream/popcorn?

gilded narwhal
#

Uhh wdym

#

Because I basically just copied what all the other fusions did

rough furnace
#

Like make sure you defined a joker with the same id

gilded narwhal
#

I see what it is

#

I put a - instead of a _

#

That'll do it

silent sinew
#

is there a way that i can have a joker display multiple descriptions on top of each other?

#

like this

gilded narwhal
#

God damnit

edgy reef
#

Crash from not excluding context.repetition

gilded narwhal
#

Oh so I just add "and not context.repetition"

edgy reef
#

yea

gilded narwhal
#

That was easy

gilded cradle
#

where can i find the code of the vanilla jokers

#

?

random sleet
#

in balatro.exe

gilded narwhal
#

ya you just extract it

slow ocean
#

open it like you would any .zip file

gilded narwhal
#

Also question what is the "and not context.before and not context.after" used for

gilded cradle
#

thanks

slow ocean
#

context.after is the trigger that happens after your hand is scored and the jokers start to trigger (stuff like your regular jimbo joker, runner, constellation)

#

tbh i dont really understand context.before

gilded narwhal
#

Also good news, playing a card doesn't crash the game

#

But bad news, the joker doesn't do anything it just sits there

slow ocean
#

whats the joker supposed to do

silent sinew
slow ocean
#

i wish i knew 😭

silent sinew
#

i just tried and i had to mess with nodes or whatever the fuck and immediately started crying

gilded narwhal
#

Okay so in this clip I deleted the and nots

slow ocean
#

ah i gotcha

slow ocean
#

that might be a reason if you're using card.blah.blah.blah

gilded narwhal
#

Would I just replace the card with self in the function

#

And like any mention of card with self

#

Also I figured out why it wasn't triggering

maiden phoenix
#

Replace all "self" with "card" if it's the joker that's supposed to be destoryed

slow ocean
#

ok im going for a walk

random sleet
gilded narwhal
#

Okay so weirdness is happening

gilded narwhal
#

So I want my joker to do both +chips and +mult

#

And it is

#

But

#

It's doing it at the same time lmao

#

How do I NOT do that

calm nova
#

I got a dumb question how does one update on GitHub?

silent sinew
#

at the very least i guess i have less work to do before i can just release the mod already

gilded narwhal
#

Also how the hell do I turn off this awful text selector on visual studio where it like selects the element one at a time and pressing keys replaces the existing characters

edgy reef
golden lake
#

isnt 1.0 still in alpha?

silent sinew
#

yeah but im developing with it because it's coming out soon

maiden phoenix
#

Half of the art done

golden lake
#

@slow ocean what the fuck i have 3 cascades

slow ocean
#

average mspfa session

gilded narwhal
maiden phoenix
#

Why not show a number for each round going down like Seltzer?

#

Love the art tho

gilded narwhal
maiden phoenix
#

Neat

golden lake
silent sinew
#

is this too good for a common

broken vine
#

lil. feels like a uncommon. not sure what to compare it to for refrence

#

campfire? that's rare, though. and x multipler.

ionic isle
#

strictly better than makeshift joker (although tbh i consider that one very bad)

gilded narwhal
#

Yo context.end_of_hand is a thing right

golden lake
gilded narwhal
#

Oh fun

golden lake
#

cascade moment

gilded narwhal
#

Least powerful modded joker

golden lake
#

@slow ocean

gilded narwhal
#

Is there anything obviously wrong here?

#

Because xmult is not activating

silent sinew
#

the sans to flowey talker transition is complete

#

i still need to figure out his effect tho

gilded narwhal
#

nvm I figured it out

#

Forgot to change a name

slow ocean
#

???

gilded narwhal
#

And it destroys the cards it destroys???

slow ocean
#

what did you do????

gilded narwhal
#

Idk!!!

#

Do you wanna see the code I wrote

slow ocean
#

yes pls

#

i am very amused

gilded narwhal
#

Okay so rundown of all the things it does

#

Having oops all sixes retriggers it

#

And the retriggers goes up with the number of dice

#

And it also destroys the cards it scores

narrow pollen
#

man, there is no easy way for a joker to retrigger its own effect

worthy depot
#

I mean it seems like survival figured it out lmao

narrow pollen
# golden lake how so

i wasn't expecting these two to be the most difficult ones to visually implement the way i wanted to

narrow pollen
#

well, if you want it to say "+80 chips" or "+12 mult"

#

then yes

golden lake
#

no its easy for the other way as well

#

you just have to run evaluation code in the actual like

#

context.individual

#

and make a table of played ranks that updates

#

how many times X was played

#

this is literally just Balatrostuck's Pairing Grid

narrow pollen
#

oh, really? neat!

golden lake
#

yeah

#

lmao

narrow pollen
#

and i think i recommended you do that sort of thing for the fluorite octet mega payout

#

you know, have the x64 mult show two separate x8 mults instead

golden lake
#

yeah that's doable as well if a bit more annoying

loud citrus
#

I'm looking for feedback on anything about this, I'm curious about sharing my strange things :)

crisp coral
#

interesting

short surge
#

do you guys know of any mod that gives joker/cards special colouring/effects?

#

I remembered seeing someone doing a blinky blinky effect

ionic isle
loud citrus
#

What's scry if you don't mind me asking?

narrow pollen
#

oh THERE we go

#

that's how i do it.

ionic isle
#

no other effects

loud citrus
#

Huh, that sounds only beneficial for a non stamp spectral

#

Thanks for telling me :)

ionic isle
#

yw

random sleet
#

the other spectrals already have downsides more than likely

#

no need to compound them

near ivy
#

you aren't forced to use them

short surge
#

I have a silly question guys

#

if i have a variable that i want to store for a particular game, how should i do it properly?

#

I tried putting it somewhere in G, G.SETTING etc, but they either don't save upon closing the game, or they will break the game

crisp coral
#

putting it in G.GAME saves

short surge
#

I would create this variable upon a joker entering the game, but i want it to stay even if i relauch the game

crisp coral
#

for the specific run or permanently?

short surge
short surge
crisp coral
#

yea

short surge
#

do i have to say "it needs to be saved" anywhere in the code or i can just make it be in there?

loud citrus
#

Though I would agree it's a bit much

azure wraith
#

if they just sold for $0 it would be all right

#

it can still dud and if you sold something useful to open up a slot you don't get it back either

loud citrus
#

My thinking is that spectral cards can be very powerful, especially when used at any time of choice, especially early game when you can take a ton of risks, so it encourages you to use them early game, and you can be picky mid to late game.

#

From my play testing its quite fun, and a unique obstacle for spectrals cards that I don't want, though when I release my mod I would love to hear your feedback :D

#

Not saying your feedback isn't valid, just you might have more when playing with it. Sorry about that

odd dock
#

if steamodded is installed there would be a "mods" button on the main menu

golden lake
#

wrong chat

modern herald
lyric sparrow
zealous glen
zealous glen
# silent sinew is this too good for a common

I think it depends on the support for selling Jokers. With sufficient economy you can go through a lot of them. I have a Joker in my mod that’s similar but it gives two random Jokers +2 Mult

zealous glen
# gilded narwhal

Use self instead of card. Inside the event I think it looks at the global context for the variable card

#

I have the impression functions defined inside functions have a “limited memory” (more accurately scope) for outside functions, or possibly due to the timing they get executed in events

zealous glen
zealous glen
regal shoal
#

Hey ! Does anyone knows where I can find the current hand_size ?

#

Before first_hand_drawn so I can't just #cards

random sleet
#

G.hand.config.card_limit?

regal shoal
scenic zenith
#

Any chance we can get some way of not loading steammodded if some param like --vanilla is used when starting the game

#

i think it'd be neat

maiden phoenix
#

Pizzer

zealous glen
random sleet
#

setting up dynamic pool flags for suits and ranks....

maiden phoenix
frosty dock
#

oh no

short surge
frosty dock
#

neato

random sleet
#

oh wow that's slick

random sleet
frosty dock
#

lmfao

random sleet
#

pretend i dont have like 7 errors there

frosty dock
#

me when double walkie talkie

random sleet
#

canio instead of caino

mellow crag
random sleet
#

dynamic pool flags based on deck state

#

which uh.... currently updates every frame. i should probably change that.

queen scroll
random sleet
#

funny you mention that

#

it's my test case

#

tonight was rather productive...

maiden phoenix
#

What does brick do?

random sleet
maiden phoenix
#

Lmao

random sleet
#

did you see 🕛 ?

maiden phoenix
#

Yea, is it a silly one too?

random sleet
maiden phoenix
#

Yoo it's animated too

random sleet
#

this is 🔂

queen scroll
#

hey guys, has anyone tried setting up steamodded from a version of the game running from the source code using love2d with lovely, and if so how?

random sleet
#

so when it's at 🕧 its name is :clock_1230:

#

(except im a dunce and didnt realize there's no underscore aaa)

maiden phoenix
#

Didn't know one joker could change name too, is it just a simple as writing card.name = "something_else" ?

random sleet
#

no it is not at all simple and it drove me fucking insane

scenic zenith
queen scroll
#

don't you just hook into generate_uibox_ability_table and replace full_ui_table.name?

random sleet
#

yes

#

except it's not a string it's a dynatext

maiden phoenix
#

Oh...

#

Yikes

random sleet
#

and you can't change a dynatext's string

#

for some reason

queen scroll
#

the beginning/the end

random sleet
#

so i had to look into how the localize function creates the dynatext in the first place and then copy that out

#

this didnt take over 2 hours for one stupid name change thing i dont know what youre talking about

queen scroll
#

i just copied misprint's dynatext, made it bigger, white and added a shadow

random sleet
#

also note that the clock returns both chips and mult
this is a secret technique that i like to call "doing it myself"

maiden phoenix
random sleet
#

TRUE

queen scroll
#

lmao

random sleet
#

me when ive been coding all night and all i have to show for it is 13 jokers

maiden phoenix
#

Shoutout to some of my jokers having +4 extra keys

queen scroll
maiden phoenix
#

Been too busy updating my mod to see all the recent mod updates

random sleet
#

also did you know that if the name of a joker is too long it gets shrunken?

maiden phoenix
#

That's cool

queen scroll
#

neat

random sleet
#

i dont even play this game

queen scroll
maiden phoenix
shell timber
zealous glen
random sleet
#

yeah but that's without needing to art

#

should have more

zealous glen
queen scroll
#

just make common jokers, they're so much easier to implement

zealous glen
queen scroll
#

wait lemme come up with a joker idea rn

random sleet
#

what if instead of making a website i just make this collage increasingly dumb

queen scroll
#

uhh +20 mult if you have an equal number of hands and discards remaining

zealous glen
queen scroll
#

i'm just too good

zealous glen
#

Main reason I haven’t released it for a beta is because I’m not sure I should wait for Steamodded 1.0 or not

random sleet
#

(for legal reasons this is a joke)

maiden phoenix
random sleet
#

🔁 is the most powerful three-word joker effect

maiden phoenix
#

I feel like sometimes its hard to not go overboard

zealous glen
queen scroll
#

aren't all jokers meant to be simple? that's kind of the charm behind them

zealous glen
queen scroll
#

true

random sleet
#

🧙 is charming

zealous glen
#

Yu-Gi-Oh! looking modded Jokers:

random sleet
zealous glen
random sleet
#

🧑‍🍳 is actually so good
unlike riffraff almost all the food work unconditionally

#

so it'll never give you Joker That Cares About Straights

zealous glen
#

I think my mod might make Riff-Raff overpowered

random sleet
#

mine too, 🧻 op

maiden phoenix
#

🧻 my beloved

#

I'll never say it enough

nimble sequoia
#

hi everyone, how do i replace the sprite for card backs? i tried to do so similarly to how i give sprites to jokers, but i think i did something wrong

scenic zenith
#

you mean for making your own decks?

nimble sequoia
#

yes

scenic zenith
#

yea it's basically identical

nimble sequoia
#

with b_ for prefix instead of j_?

scenic zenith
#

for decks do it like this

#

for jokers its at the end i think lol

#

anyway i wrote the b_ myself

#

i don't think you need to

gilded cradle
#

hey i'm pretty new to modding in general i'm trying to make a joker that makes stone cards count as wildcard aces but I'm really struggling the effect would be similar to Pareidolia or smeared joker but its not a popular effect among modded jokers so i dont have much to study to figure this out

nimble sequoia
zealous glen