#Divvy's Real-Time Score Preview

1 messages · Page 2 of 1

drowsy gyro
#

From my view, that's impossible because neither DVPreview nor DVSimulate ever use my deprecated deep_copy function. Are you sure you've upgraded both files to v2.2?

cosmic smelt
#

I had downloaded them when I took that screenshot, but when it crashed I redownloaded from the github and it hasn't happened since, so it's possible I just didn't install it after downloading the first time

buoyant orbit
#

Got a crash when selecting a hand with a +0 Fortune Teller joker

#

I was using the plasma deck, in case that matters

drowsy gyro
#

I fixed this, but not sure if it's in the latest release. Can you check your mod version? Have a look in the mod's description in the mod menu

#

@buoyant orbit

buoyant orbit
#

It says V2.2. I downloaded it a few hours ago, so I thought that was the latest

#

Okay, I downloaded the lua file directly (as opposed to the release zip) and that seems to have fixed it

drowsy gyro
#

Damn

#

Have to update the release

buoyant orbit
#

Well, at least a fix does exist, so that's good. Thanks for the quick response!

drowsy gyro
#

Release updated, everyone get the NEW_DOWNLOAD.zip

scenic bolt
#

XD

radiant nest
#

you ready for things to break soon when new balatro patch drops

scenic bolt
#

Real 😔

#

though idk how this works

drowsy gyro
#

Actually, v2.x is kinda safe from updates

radiant nest
#

it probably will work fine, but maybe break on the joker patches

drowsy gyro
#

The only problem is that joker reworks will have to be rewritten

#

but that's not too bad

scenic bolt
#

yeah

#

it could be worst

uneven pagoda
#

Windows 10 is struggling opening steamodded injector, any tips?

#

trying to run the python file, do i just give the path of the balatro exe as an arg

halcyon cedar
#

you should just be able to download steamodded_injector.exe from the releases page and drag balatro.exe onto it

uneven pagoda
#

Not to mention the file frequently gets deleted for malware

radiant nest
#

maybe try using lovely

stuck kayak
#

has anyone tested the new balatro patch with this mod yet

radiant nest
#

It runs, but I assume it will be wrong for any of the changed jokers

cosmic smelt
drowsy gyro
#

The only joker simulations affected by the new balance update are:
• Midas Mask
• Vampire
• Hanging Chad
• Flower Pot
• Yorick

I have fixes in-place, publishing a pre-release later today. Everything else should be good to go, as is 👍

dire nebula
#

oh that's awesome, I assumed that the patch just wouldn't be supported until it was stable

cosmic smelt
#

yeah so far what I've seen has been fine, like sin jokers, swashbuckle, etc.

scenic bolt
#

what about odd todd

drowsy gyro
# scenic bolt what about odd todd

All other jokers are handled automatically, because the balance changes just affect the configuration variables not the mechanics, if that makes sense

scenic bolt
#

I guess it makes sense, maybe

drowsy gyro
#

All you need to know is 'it just works' lol

scenic bolt
#

XD fair enough

dire nebula
#

or I guess just from the current state actually?

#

not sure why yorick would need to be handled differently unless it's just to handle the hook discarding and increasing the mult

#

actually that's probably exactly it 😄

drowsy gyro
#

Now with the added benefit of another bug fix!

cosmic smelt
#

hooray!

stuck kayak
#

patch notes says flower pot works with debuffed cards

#

did they change seeing double too?

drowsy gyro
#

Nah, seeing double is the same as it was

quiet niche
#

Does the new release sim ALL the patch changes?

drowsy gyro
dire nebula
halcyon cedar
#

it looks correct to me
it's version 2.3

drowsy gyro
#

Yeah, hopefully will remember to update for full release

quiet niche
#

definitely should have remembered to save the details but I'm like 99% sure I had an incorrect sim last night on a random hand

#

was several runs ago so don't even remember which jokers I was using but yeah I guess be on the lookout?

#

it was off by multiples so might've been an xmult

dreamy trout
#

Were there lucky cards potentially?

quiet niche
#

possibly

dreamy trout
#

I actually don’t know how this mod does misprint either since I never take it

quiet niche
#

I assumed the mod knows the seed values so it cheats and forecasts the rng?

dreamy trout
#

Oh lol

halcyon cedar
cosmic smelt
quiet niche
#

awesome thanks

quiet niche
#

on boss The Arm, sim gave ~2k score but it was actually 12.8k

#

played 1 hand, was lvl 13 high card

dreamy trout
#

what did misprint hit

quiet niche
#

don't remember

dreamy trout
#

Hanging chad completely messes up the scoring for some reason

#

But, it's only off by a small %

dreamy urchin
#

had that issue on the arm too, seems like it's calculating a lvl 1 hand?

quiet niche
quiet niche
#

the arm is definitely not simming correctly, it may somehow be miscalculating the level though it isn't obvious how from the code

cosmic smelt
#

not sure if this is vanilla, haven't tested yet, but it let me play this stoned Jack in a straight

blazing lotus
#

dont think vanilla allows that cuz shortcut doesn't exist

radiant nest
#

it shouldn't, but technically it might

#

I wonder if some mod is mesisng with the check and forgeting the stone check

blazing lotus
#

stones have aa hidden rank in them in case they get unenhanced but they aren't used in calculation for a hand type cuz they don't have a rank

#

so def some mod or something

drowsy gyro
#

This mod can't affect anything with the vanilla scoring

drowsy gyro
#

Oh, yeah, fixed The Arm

drowsy gyro
heavy vale
#

So how accurate is it for certain builds, for example like steel joker and having specifically 4 steel cards in deck ?

I’m very interested in how people make these calculators as balatro has like trillions of different scenarios you can find yourself into

#

What about boss blinds like the flint as well

drowsy gyro
#

It should be able to calculate everything that the vanilla game calculates

#

but obviously I've made some typos or forgot to add some minor things

#

You can just get the mod and see for yourself - majority of cases are already covered

#

Currently the arm is miscalculated because of a small typo, I'll update today/tmrw

heavy vale
#

Awesome, I’ll check it out
You won’t believe the amount of runs I lost cuz I couldn’t tell if my hand was gonna make score or not

glad ruin
#

@drowsy gyro have you found a way to fix the deck preview? it shows the incorrect card total when you hover over the deck (ex. 5 kings in deck, the K shows 4 instead)

drowsy gyro
#

and the latest version of this mod, too?

glad ruin
#

checking 🙂

#

downloaded both at the same time last week, checking if there is anything new

#

github doesnt say what version steamodded is at? or at least i cant find it

drowsy gyro
#

That looks like it should be fine

#

Try downloading the latest version of my mod

glad ruin
#

will do thanks for the quick response!!

drowsy gyro
#

You caught me at the right time 🙂

quiet niche
#

Is the arm fix pushed yet? Or tell us where the typo is 😛

cosmic smelt
glad ruin
cosmic smelt
#

I think I just uninstalled on steam and then reinstalled the same way I did the original

#

your save data SHOULD be preserved, but I'm not responsible if something goes wrong

#

mine was preserved, is what I'll say

glad ruin
#

no worries, appreciate the help!

drowsy gyro
#

I think that should fix but haven't tested lol

#

That's why not yet pushed

cosmic smelt
#

Bell selected the glass Ace, and it's not factoring the order into the range caluclation. Idk if it's because of bell but this is what it shows

#

or is this the selection order bug

drowsy gyro
#

Probably an issue with Lucky cards, will be looking into it

quiet niche
#

Do you prefer issues on the repo or here?

#

https://github.com/DivvyCr/Balatro-Preview/issues/23

Weird, your code comments say they do sim but I just experienced losing steel cards that ended up losing me the run (dropping me from 32k to 20k). The sim predicted 32k and did not display a min/max range.

GitHub

If discarding cards after playing your hand would change your score, the simulation does not reflect it. Ideally, it should show the range of scores accounting for changes in hand or, for exact pre...

drowsy gyro
#

I see. I'm currently away from home, so will take a couple days for all these issues, sorry

radiant nest
#

oops I got a crash

#

loaded a save with a blind needing nan to beat

#

chances are the game itself would've crahses someway anyaways

eager hemlock
#

Hi i have submitted a PR for fixing the Amber Acorn not hiding the score when the hide score option is selected.

How do you test the mod without playing from scratch ?

radiant nest
#

There is a debug mode that can help a lot with getting the game into the right state to test stuff

terse mountain
#

Hey, I don't know if it's been mentioned but in the beta hanging chad now retriggers the card twice, but it's showing the score for if it only retriggered once

#

At least I think that's the issue, I haven't done the maths to confirm, but the only runs I've noticed the score being wrong are runs where I require hanging chad

empty ember
#

bug: the mark calculates face down face cards correctly if they are kings and you have baron

eager hemlock
#

i don think experimental are being supported rn

halcyon cedar
#

yes it is

cosmic smelt
#

not sure if this was reported already but the Plant interaction with Matador isn't registering on Gold preview, you can see it does display for the gold seal but not for the +8 on matador (which is weird because it was displaying accurately earlier in the fight)

empty ember
#

crash bug: when selecting cards against hook such that there is 1 card remaining in hand (hand of 6, select 5 1 left) nil value error in game screenshot 1 card before error

empty ember
#

bug, score preview does not account for obelisk resetting if the hand you played was your highest played hand

drowsy gyro
#

Hey everyone, thanks for the reports! I'm currently really quite busy, as you might have gathered by my absence, so I can't really give any ETAs

The bugs don't seem too bad (many of them are familiar even), so once I find a free day, everything should be fixed 🤞

This could be tomorrow or in a week's time, sorry 😭

drowsy gyro
eager hemlock
#

My pr is ready to be merged now

steep wing
#

man...

#

I switched methods, you can see it in my 3deck video where I have it horizontal and on top so it doesn't block anything (and it looks really nice as well imo)

brazen night
#

I know when I’ve been running with Ankh and LiveSplit, I’ve just turned Ankh’s timer off so it only appears in LiveSplit and the win screen

neat escarp
brazen night
#

He’s agreeing with your criticism…

steep wing
brazen night
#

At some point I want to add a mode that gives the timer splits and stuff, and that will be on the right hand side so hopefully it works better with the score preview UI

#

I’ve been focusing a lot recently on the seed analysis and searching tools but will pivot more towards Ankh after 1.0.1’s release

neat escarp
#

@steep wing if you turn on the range, it fits well

brazen night
#

I have to update for the next version of Lovely when that releases; I’ll add a toggle to move the timer to the top right below the consumable slots. Seems like a good spot?

sour peak
#

in theory 0.5.0 is stable and ready to go

#

just giving it a couple more days to be sure though

#

if that's what you're referring to

brazen night
sour peak
#

sounds good. are you using the regex patch?

brazen night
#

I might try it out. What I have works though
The main thing will be testing out the new dumps system for detecting a modded game

#

It would require at least Lovely 0.5.0 to use Official Mode so that needs to actually be released first lol

brazen night
sour peak
#

it's an inevitability really :-/

#

regex isn't that hard, just use an online tool like regexr

#

the syntax is just obtuse

mint peak
#

This mod crashes my game every now and then, very randomly, but its replicated in the same specific hand that it crashed on.

#

When I click the 10 of spades it will crash.

#

It also seems to only happen if I have stuntman.

#

It also crashes when I select the Queen of spades. Maybe it has to do with the boss then?

#
--- MOD_NAME: Divvy's Simulation
--- MOD_ID: dvsimulate
--- MOD_AUTHOR: [Divvy C.]
--- MOD_DESCRIPTION: A utility mod to simulate selected hand. v2.2.1
--- PRIORITY: -80``` thats the version I am running.
#

Oh. I found the place to get the updated code.

stuck kayak
#

i think this issue was the game trying to calculate 2 cards getting discarded when you only had 1 card left in hand

mint peak
#

Yeah, I kinda figured as much when I realized that it only happened with stuntman and that boss.

drowsy gyro
#

I was hoping to update the release when the new Balatro version is released out of experimental. This hasn't happend yet has it?

radiant nest
#

No it hasn't yet

mint peak
drowsy gyro
#

Just use that, let me link

mint peak
#

Oh, I have just been dealing with it lol.

drowsy gyro
#

That fixes the crash too

sleek locust
#

this mod can use with beta?

cosmic smelt
radiant nest
#

The new build is stable now

drowsy gyro
#

Changed pre-release to latest release.

#

Lmk if any jokers are not calculating correctly. It doesn't look like he's changed anything else not updated in this release

empty ember
#

midas mask + bonus cards not calcing correctly

brazen night
#

I have good news for those people who noted that Divvy's Score Preview and Ankh had incompatible UI

#

also it is me or shouldn't this display +$6 for the gold card?

desert scarab
#

divvy.... divvy..... it's been a week or two... wake up....

brazen night
#

pretty fun run
probably won't use this mod much more since I like not knowing my exact score, but wanted to see how it was working with Ankh

drowsy gyro
drowsy gyro
brazen night
#

Is the bug they’re referring to

drowsy gyro
brazen night
#

You could probably check if the predicted score would win the round and then do gold card calcs

drowsy gyro
#

Fair enough, the next month is full exams for me, so zero time

drowsy gyro
empty ember
desert scarab
drowsy gyro
#

Oh, I see

#

I actually made a start on a couple mods, but yeah.. didn't pan out in time 😕

sleek locust
#

i saw bug. flush calculate missing.

radiant nest
#

Oh is it not working with misprint?

#

Or smear sorry

sleek locust
#

you mean second joker? it's not misprint. it's smeared.

radiant nest
#

Yeah sorry I remembered the name wrong

empty ember
#

bugged vs arm, score preview was massively off,

drowsy gyro
drowsy gyro
empty ember
drowsy gyro
#

I see, just to confirm: you are on the latest version?

empty ember
#

2.2.1

drowsy gyro
empty ember
#

oh also, for midas mask, it doesnt calculate bonus cards getting golded correctly, probably because the chips for the card is changed directly, so you need to check directly if the card is a bonus card in that case (not sure if you figured that out yet/had report on it)

fickle knot
#

i had some weird calculations today where it was showing negative numbers or just various small numbers nowhere near my score

#

this was obviously going to score a lot higher than 16,410

stuck kayak
#

perhaps it was calculating erosion as negative mult because you have more than 52 cards

#

although even then your score would be magnitudes higher

neat umbra
#

I've noticed that happen specifically on The Arm, although reading the above messages it appears it may be fixed in a newer version

frozen valley
#

I have the same issue. By my calculation, the bug seems to be, in The Arm, base chip from hand is calculated as level 0, then cap to 0 minimum

eager hemlock
empty ember
# eager hemlock i dont understand the bug, can you elaborate more on this ?

if your cards are bonus cards (the ones that give 30 extra chips), and you have midas mask, the calculator will consider the cards to have the 30 extra chips, instead of them being removed. this is because the calculator is getting the chips value of the card, which is directly changed by the bonus card. this is unlike mult, glass or lucky cards which add a different value and are correctly removed by the calculator

eager hemlock
#

thanks i will take a look at it

eager hemlock
eager hemlock
lucid fulcrum
#

Wasn't able to get a clip of the game crashing, but with a max hand of 5, selecting a fourth card would crash

drowsy gyro
#

Hey everyone, just a PSA: I've got exams until 3rd June with all time going to revision, heading for top grades. I might have time on the 21st May to have a look into these issues, hopefully get the PR merged.
So sorry for radio silence and no progress, it's an unfortunate timing with graduation exams. Much love ❤️

cosmic smelt
#

You're already doing god's work making the mod to begin with, we appreciate you and will be patient 💕

empty ember
lucid fulcrum
cosmic timber
#

Does score preview work for 1.0.0 alpha?

radiant nest
#

It does for me

long atlas
#

wait yeah this doesn't actually depend on steamodded functionality

halcyon cedar
#

something that occurred to me; would it be possible to make a "best hand" button using this mod's simulator calculations?

like, you press the button, the game iterates over every possible hand you could play, simulates all of them, and then selects the highest-scoring one for you

#

possibly also with "best minimum" and "best maximum" buttons when playing on min/max score preview

long atlas
#

it's basically factorial complexity

halcyon cedar
#

I think the only cases where that would cause major issues would be if you picked up the hand size skip tag with a couple of double tags

#

aside from that tag, the highest possible hand size is typically 18

#

which yes, does require processing an extremely large amount of hands; but getting there requires 2 vouchers and 3 specific jokers, which is rare and generally makes for a bad build that people wouldn't use anyways

#

and while it is computationally expensive, it's an algorithm that would run exactly once, and only when the user requests it. lag would be annoying, but not prohibitively so

drowsy gyro
#

It's possible, and it can be done (somewhat) efficiently

#

I gave it a lot of thought before exams, and I have a few optimisation ideas, but would need time to find the best approaches

#

I could also just implement it as a button to run on users request, which would make run time less relevant as you mentioned as well

#

However, I'm not sure this is something I'll commit to

#

No promises 😜

quiet niche
#

Question, why can't you use the actual game calculator as a proxy and just use its result as the preview?

#

Then you'd be guaranteed no bugs in calculations too.

drowsy gyro
#

@quiet niche it actually introduces more bugs because the game mixes a lot of logic, especially related to animations and card creation (eg. DNA)

long atlas
#

mods can introduce all sorts of ways to gain hand size

halcyon cedar
#

that's fair
a decent stopgap could be disallowing use of the button for high hand sizes

#

possibly with a config toggle to allow it

drowsy gyro
#

I mean, as it stands, this mod already requires extra code to support other mods, so I'd just have to implement optimisations for each mod (if necessary)

#

now, would I do that? that's a whole other question

drowsy gyro
#

It's a pre-release currently, because I'm not sure if I made small errors, so please test this out. It should be good, but you know how it goes with my releases lol

#

Just looking to get back into the swing of things rn 😄

radiant nest
#

Congrats on finishing your exams.

cosmic timber
#

real question is how did the exams go

drowsy gyro
#

Should be top marks 🤞

cosmic timber
#

very nice

vale pecan
#

Can't get it to work with cryptids, not sure if its been addressed or not, just letting you know

brazen night
#

“CURRENTLY INCOMPATIBLE WITH OTHER MODS”

winter flower
#

is it fixed as of now?

real kindle
#

Seems to show incorrect scores when versing that one guy that lowers level of poker hand

cosmic smelt
#

wanted to report the calculator doesn't factor in when Obelisk breaks and displays the projected score for if you continued avoiding your most played hand 🫡

drowsy gyro
cosmic smelt
#

Divvy C. mod update ping, my beloved

drowsy gyro
#

oh wait, I forgot to add the files

#

1min

cosmic smelt
#

lol i was looking around and im like "this is source code"

drowsy gyro
#

fixed

#

been a while

cosmic smelt
#

and my appreciation for your efforts remains unrivaled

cosmic timber
#

We need divvy with bignum support

#

Omeganum too but idk if that's hard or not

drowsy gyro
#

Hmm, I might look into it

cosmic timber
#

Talisman already done it so the place to look is there

brazen night
cosmic timber
#

Welp math x divvy collab when

brazen night
#

to_big: exists

cosmic timber
#

What's that

brazen night
#

the function to use BigNum and OmegaNum

cosmic smelt
#

Oh yeah, reporting that the score preview still tells whether The Hook will discard club/spades or not when using Blackboard

#

despite being the same score wise, the preview predicts that when the right 6 is played, the remaining 9 of diamonds will be discarded

drowsy gyro
cosmic smelt
#

That's right

drowsy gyro
#

I looked into it, and currently can't see a satisfactory way to make The Hook account for all discard scenarios

brazen night
drowsy gyro
#

It's not about time, it's about having to use sub-simulations for each combination, which are annoying to fit into the relatively clean code rn

cosmic smelt
#

I think in general the preference would just be to obscure non-deterministic previews

brazen night
twilit sapphire
#

the entire github account is gone... hacked?

cosmic smelt
#

yeah yo what

brazen night
#

@drowsy gyro

drowsy gyro
#

Damn

#

It all seems fine from my side tbh

twilit sapphire
#

rn it leads to a 404 page for me

#

searching for the mod github from google gives the same page

drowsy gyro
#

Yeah, I see it too

#

Apparently account was flagged

#

need to appeal it..

twilit sapphire
#

oh dang :(

cosmic smelt
#

lame, wonder why

twilit sapphire
#

DMCA?

drowsy gyro
#

I think I know why, hopefully it gets cleared quick

drowsy gyro
#

I think it's all good now

cosmic timber
#

can we ask what was the reason? im interested now

drowsy gyro
#

Just a mistake

twilit sapphire
#

hooray!

#

now that it's back, can i ask what the difference is between the readme example and what i should do to add joker support in the new system?

brazen night
#

Imagine Cryptid support…
(Although not sure how that would work with new operations)

drowsy gyro
#

It's leaning fully into the 'fun' aspect of Balatro - never fully knowing how it's gonna play out

#

(but usually knowing that it's enough, lmao)

drowsy gyro
#

Imma push the update in the coming week, which would allow mod support to be within this mod, rather than across the other mods, if that makes sense

drowsy gyro
#

Unrelated, but I really want to find or build a good testing suite for this mod - just don't know enough about Lua and LÖVE yet

brazen night
#

the best way might end up being savestate loading

#

loading a bunch of save.jkrs, playing a specific hand automatically and seeing if the score matches the prediction

drowsy gyro
#

@brazen night have you looked into how the mod's working rn?

#

I think my approach is great, except for requiring duplicated code essentially..

drowsy gyro
#

along with simplified and better organised scoring mechanics (that exactly mirror the game)

brazen night
#

it looks pretty good at a glance

drowsy gyro
#

I wish I could ditch Steamodded, but it's required for other mod support (to check which mods are active)

#

Relying solely on Lovely would be ideal to my tastes

brazen night
long atlas
#

joker calculation generally is a mess tbh, which I would like to see addressed in steamodded

#

unfortunately all we have for that is a stale outdated branch

brazen night
#

for mod support you could probably do something like what JokerDisplay does
save the calculate score function in the joker itself

brazen night
#

and then if that function exists then call it

long atlas
brazen night
#

I think retrigger API adding callbacks is already a big step up

drowsy gyro
long atlas
#

at least not without being broken by every future game update

drowsy gyro
#

I'm not sure about what specifically you're looking for, but I'm generally very happy with what I wrote for this mod

brazen night
#

we're talking about in general basically

#

I think you did a good job

drowsy gyro
#

Again, the only issue is duplicating each joker's code

brazen night
drowsy gyro
#

Yeah, exactly

brazen night
#

I have a boss that copies other boss abilities in Cryptid.
Every vanilla boss is hardcoded.

drowsy gyro
#

The game's not really written to a high quality standard, in my opinion

long atlas
#

then again I don't see rationalizing all centers as realistic for steamodded because at that point I have the entire game to maintain

brazen night
drowsy gyro
#

Of course not, but it's a bit annoying from modding pov

#

See Factorio for instance

brazen night
drowsy gyro
#

I don't blame game creators for the code quality, because it takes way more than code to make a game as great as Balatro

brazen night
#

Although having to ctrl+f source code and write hooks or lovely patches or anything complicated isn't fun

#

but it works

#

for the most part, I haven't had issues programming complex effects in Cryptid
(although much of it isn't pretty)

#

like in general the code for Double Scale, which has to track if any value in any joker's ability table changes, isn't pretty

cosmic smelt
#

Reporting that Acrobat doesn't seem to calculate on the final hand, even though it is active

placid wharf
#

Oh hey! I'd also report something minor but would be a very easy thing (I think and I hope) to add to help with the Archipelago (randomizer) mod: the preview thinks debuffed jokers still do their thing. I assume it's as easy as handling debuffed cards, but I have no knowledge of the internals of the game/modding frameworks (yet). Hope it's not too big an ask!

drowsy gyro
drowsy gyro
placid wharf
placid wharf
#

Hey! Quick update on that thing I flagged in the mod; turns out that's also a vanilla behavior. One of the final blinds disables a joker at random (Crimson Heart?) and Score Preview straight up fails to take that into account. So, turns out it's not a mod incompatibility necessarily.

sly drum
#

Heya Divvy, is this a good way to add support for my Plasma sleeve?

if DV and DV.SIM then
    local old_DV_SIM_simulate_deck_effects = DV.SIM.simulate_deck_effects
    function DV.SIM.simulate_deck_effects()
        old_DV_SIM_simulate_deck_effects()
        if G.GAME.selected_sleeve == "sleeve_casl_plasma" then  -- Plasma sleeve key
            local function plasma(data)
                local sum = data.chips + data.mult
                local half_sum = math.floor(sum/2)
                data.chips = mod_chips(half_sum)
                data.mult = mod_mult(half_sum)
            end
            plasma(DV.SIM.running.min)
            plasma(DV.SIM.running.exact)
            plasma(DV.SIM.running.max)
        end
    end
end
#

(a sleeve is basically the effects of a deck, but can be combined with another deck)

drowsy gyro
# sly drum Heya Divvy, is this a good way to add support for my Plasma sleeve? ```lua if DV...

Hey, sorry for a late reply (on holiday).

Is it meant to replicate Plasma deck, or are you going to change the effect?* Otherwise, it looks fine. I'm not sure that the sleeve deck key is appropriate - you might need to use it's in-game name (just test whether the preview is accurate).

* In any case, it's good practice to change the local function name, especially because you're advising a function. Although, I don't think there should be any trouble 🤷‍♂️

sly drum
drowsy gyro
#

Nah, not yet. I'm test running a big restructuring which might include API-like stuff, but no timeline. It won't interfere with your implemention above tho

sly drum
#

Ah, alright. Good luck with that :)
If it includes anything I might be able to use, just let me know, shouldn't be too hard to implement.

cosmic smelt
#

The expected money displayed on The Tooth is basing it off scored cards, rather than played cards. This should read "-4" but instead reads "-2"

fickle knot
willow heron
#

@drowsy gyro You're the best. You made this game playable!

fickle knot
#

this thread has been silent but just want to say thank you based @drowsy gyro , i have been playing with your mod every day for months. it's goated

clear perch
#

Whenever I have this mod displaying score preview it somehow sets all hands to 0x0 for value, am I doing something wrong?

drowsy gyro
clear perch
#

Im not using any content mods

drowsy gyro
#

Lmk what you're using

clear perch
#

Unfortunately im not at my computer rn, but the only things I could see affecting it would be Saturn or Cardomancy, all the rest are ui or animation tweaks. And your other history mod.

drowsy gyro
#

I see..

#

I really need to do some testing with all other QoL mods, but idk when I'll find the time

serene ingot
#

Basically, found a way to run the evaluate_play and revert the game

Haven't tested it too much, but I'll update the PR, if I find issues.

drowsy gyro
#

I had a suspicion there was a way to copy tables better - my original approach to simulation simply did deep table copies

#

the deep copies still failed because of nested tables (I believe?), like you point out

#

I'll see how your approach works in practice, hopefully it does solve modding (and long-term maintenance)

serene ingot
#

I was able to get it working with bunco and paperback, but I haven't tested it much. Gonna spend the weekend just having fun.
If you have any questions, I'll try to throw together a commented version for you.

drowsy gyro
#

Im thinking I'll merge your PR into a new branch and go from there

#

The whole idea is familiar to me, so I just need to go through the details

serene ingot
#

It helped me a lot when I saw someone using __index as "default values", which is what I think it was meant to be

#

I've been calling the tables "pseduo tables" or "Mirror Universe", but if there's a term that makes more sense to me, I can do a refactor

drowsy gyro
#

I would probably call them sim tables in this context tbh

#

I was planning on refactoring anyway, after the merge, so we can discuss my changes then

serene ingot
#

Sounds good to me. I think I found a bug with dollar sims, so I'll have a fix ready once the dust settles

fickle knot
#

epic

#

i am literally not using other (content) mods just so that i can use this mod

#

this mod is that important

serene ingot
#

There's a draft version that works with most mods, and with the "exact" version it will work with almost all.
If you want, I can pass you the beta version, and you can test for me!

drowsy gyro
serene ingot
drowsy gyro
# serene ingot Got the experimental version mostly complete (it should be close to the final ve...

Hey everyone, if you're interested in using the Preview mod with other content mods then you should give this experimental version a go.
@serene ingot seems to have accomplished a true simulation of the game, which I gave up on a while ago lol.
There are some known bugs with min/max calculations and some (hopefully minor) performance issues; as always, let us know if you find any bugs!
Lastly, remember that you can re-download the vanilla-only version of this mod from GitHub.

#

Oh, and I will be looking to create an official release based on this experimental version in the near future!

cosmic smelt
#

This is taking us to the space age

#

Got this crash when I attempted to use a hanged man on a couple of 3s, it crashed right after the card "pop" sound effect happened

#

And I removed the mod and it worked, so I can confirm it's the score preview doing it

#

on the experimental patch, I haven't encountered any actual modded jokers in the run I tested it in yet

tight rain
#

Toggle this during a run crashes the game (I guess you are not supposed to be doing that)

drowsy gyro
drowsy gyro
tight rain
#

It crash

cosmic smelt
#

Do they use the same DVSettings folder?

drowsy gyro
#

I think Kek got a fix

serene ingot
#

I am about to drop a fixed zip
But that's for a separate reason

#

Main changes are slight optimizations and fixing issues that occur when simulation is triggered in the middle of an event stack.
I believe this will fix your issue @cosmic smelt, but if you could pass me your save.jkr, I would love to make sure.

cosmic smelt
#

Where is that file typically, just the common/Steamapps balatro folder or under Appdata?

#

oh also, I'm sure this is just cuz it's still in testing but it is still actively logging to console the calc time

#

No crash tho! It hanged my 3s just fine

#

*\AppData\Roaming\Balatro\1 is what it looks like

#

there's both a 1 and a 2 folder, the 2 folder was updated more recently than last year so I'm assuming that's the correct one

#

This save is after I won the round and went to the shop

#

@serene ingot

serene ingot
#

Sorry about slow response. I realized I didn't fix the reason it crashes, I just hid it, 😄
I'm gonna see if I can break down why it's breaking.

The Balatro\# are your profiles. So you probably have a 2nd one that's not been touched in a while.

cosmic smelt
#

All good

#

Yeah that's probably my vanilla profile

#

I've been on an Unlocked profile while playing with content mods

serene ingot
#

What mods do you have on?

cosmic smelt
#

These currently

#

Only the Extra Credits mod is content at the moment

serene ingot
#

That explains why it crashes immediately when I load it, XD

cosmic smelt
#

lol

#

lmk if you can't find the playtesting patch for Extra Credits btw

serene ingot
#

I probably found it. Got the github link and downloading the branch right now

cosmic smelt
#

nice

serene ingot
#

Yeah... I don't know a good way to prevent that currently, but I'll try it later, 😄

cosmic smelt
#

lol, yeah not the highest priority

serene ingot
#

AHA! Found the error.
Basically, the card getting played is moving to the "play" field, and then I'm trying to calculate how many coins/mult it's worth, which is nil

cosmic smelt
#

ah

tight rain
#

Amazing work!

#

Unfortunately it's so laggy under my circumstances

serene ingot
#

Yeah, it's a very brute force approach. I'm going to look into ways to speed it up once I work out all the bugs.

tight rain
#

Thank you for your patience

serene ingot
#

@tight rain Got a slightly modified one that will output the simulation times (It also has some bugfixes). I'd like to know what your simulation speed is running at, so I can know how deep of an optimization I'll need to do.
Also, if you're running any mods, I'd like to grab them for "testing purposes" (totally not because I am still learning about all the cool mods out there, and just want to play with them)

drowsy gyro
tight rain
#

that would definitely help

tight rain
#

it's not compatible with cryptid and fibonacci

#

as they both adds new handtypes

tight rain
#

simulation time is about 200ms

drowsy gyro
#

I don't thing is possible to truly simulate Cryptid and preview score, because of how abusive it is to the game's basic mechanics lol

brazen night
#

Maybe in the modest gameset…

#

I think compatibility with it would be nice, if possible, although performance would definitely take a big hit

#

It should probably use its own thread like Talisman does, or maybe auto-disable if it takes too long, for those cases

drowsy gyro
#

I think Cryptid specifically requires some kind of disable mechanism for auto preview yeah, not sure when I'll get around to making it tho

serene ingot
#

Got a new version with a lot of optimizations and fixes. There's still a couple weird issues in some blinds and cards, but the majority are fixed. Also, Divvy added in a setting to stop auto simulations, and you'll be able to hit the "Preview Score" button to run the simulation:

glacial belfry
#

i like this mod, i hope that final release won't be laggy 😇 (or maybe it depends of the amount of mods, idk)

glacial belfry
empty raptor
#

ah i see

#

im new to baaltro modding community, any you recomend?

glacial belfry
#

Of course, there's plenty of it

#

like Pokermon, SDM_0's stuff, Ceres

#

Celeste Card Collection, Jank Jonklers, Maximus, Pampa Joker Pack, Reverie, Unstable are also mods that I can recommend

empty raptor
#

thank you

glacial belfry
#

you're welcome

elder viper
#

trying both the newer, experimental version as well as the 3.2 version on github either makes all my hands just. be 0x0 by default, or it crashes the game, and this is on a new run with no content mods, so i'm not really sure what's going on

#

nevermind, disabling talisman worked LMAO

frosty spruce
#

I'm running into some crashes with this mod, using both the version on github and the v3 experimental version posted above. Removing the mod makes the crashes go away, so it definitely seems to be this mod causing it. Here are the mods I'm using (with Score Preview removed)

frosty spruce
frosty spruce
#

Scratch the above, the Diet Cola crash seems to be caused by Tag Preview, which is unfortunate. I will keep testing to see if I run into crashes elsewhere.

fringe thorn
#

I have a boss blind that is supposed to check for is_face for all the cards, but with this mod installed something that isn't playing cards is most likely passed to the cards field of debuff_hand of the blind functions, resulting in game crash:

#

The releases page says to not report incompatibilities of Jokers not working, but this one is a crash and not even Joker related, so figured it'd be worth reporting

deep halo
restive belfry
#

Anyone know why I'm getting a lovely injector crash that seems linked to this mod?

restive belfry
restive belfry
# tight rain Try this one

good call! the experimental one with DV settings, simulate, and preview gets the game to load! I have other mod crash issues but this one aint it now thanks

spark parrot
# serene ingot Got a new version with a lot of optimizations and fixes. There's still a couple ...

Does anyone know how to change it to the button as described? ^^ Found it, lol

I'm hoping it will fix some freezes and crashes I've been having on the experimental when selecting cards in my hand under certain circumstances.
I.e. 2s when owning Wee Joker or Lucky cards when owning Lucky cat

Okay, something about Deluxe Tarots isnt playing nice with this mod.
When not running the experimental, selecting any card in my hand would cause it to crash. With the experimental, its mostly playable except for circumstances similar to my examples above.

deep halo
#

Could there be an option to obfuscate the score on the hook to make it less cheaty?

#

I know there's been an issue about previewing min/max scores on hook but I'm honestly fine with completely hiding it

obtuse sandal
#

hello every time i intstall this mod and t ry to run it i get a crash. even if trying to run it alone. any ideas why?

deep halo
#

you have to use releases instead of direct download/git clone

deep halo
obtuse sandal
#

i did that and get the 3 files. but it always just crashes immediately

#

please help this mod is so helpful. it was working earlier today and then i fiddled with things now i cant get it to cooperate at all

obtuse sandal
#

@deep halo do you know what the error is here?

obtuse sandal
#

can anyone pls help???

obtuse sandal
#

sorted. downgraded v. of smod

humble heath
#

@obtuse sandalhey bro. i met the same problem like u. then i try the EXPERIMENTAL-V2.5 and finally work! but the v3 cant work .its weird
#1221215713910325330 message

obtuse sandal
humble heath
obtuse sandal
#

Nice! No worries

steady goblet
#

Started getting this crash recently, disabled all other mods but no luck.

#

turns out issue is from the smod update released recently.

restive belfry
#

Anyone know why the V3 experimental of Preview and the latest Steamodded leads to this crash upon selecting cards? Actually even the stable 3.2 on github version of preview causes the same crash...

restive belfry
#

Just a heads up that the experimental v2.5 here doesn't cause this crash!

jaunty trellis
#

@drowsy gyro wdyt of adding ur mod to balatro mod manager?

drowsy gyro
#

I should, but no idea when I'll get to it

#

Could be this weekend could be in a month xd

deep halo
#

anyone can do it, actually, doesn't have to be the mod's developer

halcyon fulcrum
#

Hey just thought i should mention this here, the mod is no longer compatible with the latest release of SMODS

#

used this on version 0315b, upgraded today to 0323b and causes the game to crash with this error

#

I checked each mod one by one, its when i enabled this mod that i got this crash

#

@drowsy gyro

radiant nest
#

I saw a similar error earlier today with a different setup

winged lodge
# halcyon fulcrum Hey just thought i should mention this here, the mod is no longer compatible wit...

I also had that error

someone posted what appears to be a fix - I tried it last week and haven't noticed any issues since
https://github.com/DivvyCr/Balatro-Preview/issues/47#issuecomment-2780635152

GitHub

Title says all there is to really say, the mod seems to crash whenever I try to select any cards. The crash log below is from this mod being enabled exclusively, though it does still happen when I ...

halcyon fulcrum
#

the fix for those who wander into here later witth the same issue

drowsy gyro
#

Hey everyone, long time 👋 I'm back and I just updated the mod to v4.0, which doesn't have that many features, but there was a big restructure. Now instead of essentially downloading three mods in one, there's only one mod folder! Some of you might already see that this sholud be compatible with BMM now, sooo... we'll see if/when that happens.

It's been a while since the last release, so please report any bugs here. I'll try to be on top of them.

Please read the updated installation instructions
https://github.com/DivvyCr/Balatro-Preview/releases/tag/v4.0

GitHub

Installation Details

Install Lovely
Do you have Steamodded? Then you probably already have Lovely!
Download DVPreview_v4-0.zip under the Assets heading below
Download DVPreview_MP_v4-0.zip for Mul...

halcyon fulcrum
drowsy gyro
#

I think so, yeah

halcyon fulcrum
#

Awesome!

winged lodge
#

anyone else getting crashes with dvhistory now? it happened post-upgrade when I opened the menu on a run I had started the other day

I'll probably do some testing later by disabling everything else when I can get back to my PC again, but I figured I'd check in

carmine turret
#

is it possible to reduce the timer before it shows ur score or? like 1 second or maybe even no countdown

drowsy gyro
#

Yes, you can set it to 0,3,5,10,20,30 sec

#

Go to settings and look in the 'Other' tab

#

@carmine turret

carmine turret
#

ah ty, i was looking in mods for config

#

some mods have config there, my bad

drowsy gyro
#

Yeah, I can see how that's confusing. I'm just not using Steamodded for my mod so I can't put settings there

carmine turret
#

i dont see other tab

#

oh nvm

winged lodge
carmine turret
drowsy gyro
# carmine turret

You installed the MP version. That one disables customisations because it's meant for use in Multiplayer

carmine turret
#

ah i c

drowsy gyro
#

Go to the link again and download DVPreview_v4-0 (not DVPreview_MP_v4-0)

carmine turret
#

ayt np, il have both cuz i play mp time t time

drowsy gyro
#

Don't download both lol

#

That will break them

carmine turret
#

i thought i could just disable the sp version when im not playing mp

drowsy gyro
#

Unfortunately the whole point is to have them separate, so you'll have to switch them every time

#

(ie. move one mod out of the Mods folder to use the other)

carmine turret
#

i c

drowsy gyro
#

If you could just disable the MP version, then we can't check for 'cheating' 😕

#

Bit annoying ye

carmine turret
#

so i cant use non mp in mp

#

like it wont load or how it works

drowsy gyro
#

Your opponent will see that you're using non-MP and can complain

#

But I think there might be better checks in place too

#

Oh, and for the time being, the mod isn't officially approved lol

carmine turret
#

ah i c, so ig non mp just has no timer

drowsy gyro
carmine turret
#

i c

drowsy gyro
radiant nest
drowsy gyro
radiant nest
#

imma be honest I touched my config once sicne I set it up and that was to rework it to have mutliple tabs. You can use the same code for generating the config tab

#

and it's a muture api so it hasn't changed in any way

terse lily
#

reported a problem earlier today; talisman no workie with this mod right now

halcyon fulcrum
#

also score colors are off when you have manual toggle on

#

no longer golden when your score exceeds blind requirement

cosmic smelt
#

v4.0 is goated you rule Divvy ❤️

cosmic smelt
#

I got this error when I pressed the Preiew Score button, idk if it's a mod conflict tho cuz I have a handful of others installed

#

it says trying to compare to nil, and I hadn't played a hand that round yet, but idk what it's meant to do instead

#

regular "always shown" preview is fine

drowsy gyro
#

Hey everyone, long time (again) 👋 I've just updated the mod to v4.1 and I might've cooked... because we should have Talisman compatibility?!, as well as latest SMODS compatibility and hopefully fewer crashes as a result of this.

Reminder that there's a new structure, so as I said for v4.0: "Now instead of essentially downloading three mods in one, there's only one mod folder! Some of you might already see that this should be compatible with BMM now, sooo... we'll see if/when that happens."

As always, report any crashes and bugs here, but no guarantees that I'll get to fixing them in any sort of timely manner.
Disclaimer: I've literally done zero play-testing, so there might be a lot of crashes. The fixes I did just feel like they should allow Talisman and SMODS compatibility.

Please read the updated installation instructions
https://github.com/DivvyCr/Balatro-Preview/releases/tag/v4.1

GitHub

Installation Details

Install Lovely
Do you have Steamodded? Then you probably already have Lovely!
Download DVPreview_v4-1.zip under the Assets heading below
Unzip DVPreview_v4-1.zip
Move the unzi...

cosmic smelt
#

Infinite thanks once more 🙏🙏💕

drowsy gyro
cosmic smelt
#

literally apologizing for raining in the desert

cosmic smelt
#

Question, where do I go for the settings/config for the mod? I have installed the latest release (both regular and BMM version) and the basic Settings menu is empty, as well as the mod menu screen under it

drowsy gyro
cosmic smelt
#

this is what I see, might be mod conflict

#

OHM

drowsy gyro
#

Scroll left/right on the bottom there

cosmic smelt
#

me dumby

#

I was confusing that little arrow set with the one here

drowsy gyro
#

Nah it's not that obvious looking at it now

#

Yeah makes sense

cosmic smelt
#

Thanks for opening my eyes to the possibilities of navigating UI correctly 🤩

drowsy gyro
#

I should make the left/right thing a different colour maybe

cosmic smelt
#

I think it's just not clear that thing is switching between menus for each different mod

drowsy gyro
#

Yeah agreed

cosmic smelt
#

like if it had the name of the mod that would be clearer I think

radiant nest
#

if you need multiple pages you can copy the DebugPlus config code

drowsy gyro
# radiant nest if you need multiple pages you can copy the DebugPlus config code

My main goal with my settings was to make them fit in with the game's settings seamlessly.

Hence no nested windows and varying window sizes, so I think a different left/right scroll colour makes the most sense with that approach. (And maybe an extra label or some spacing)

I'll need to have a look at what colour the game uses for alternative actions...

deep halo
#

fit in with the game's settings seamlessly.
When everyone tries to do that you end up with settings window wider than the entire screen

#

there isn't really an easy solution for this though

#

I made my settings tab just an icon so it's more compact

drowsy gyro
# deep halo > fit in with the game's settings seamlessly. When everyone tries to do that yo...

Yeah, that's why I tried to make my settings implementation a separate mod/library that's easy to integrate into other mods.

I just then proceeded to move on from Balatro modding for the most part, so I never went ahead with integrating/promoting it xd

I think the smods approach is great tbh, but I just don't need nor want that dependency. If I had to rely on smods then I'd happily use their menu.

I assume DebugPlus is in the same boat as me so ideally we use the same settings tab. I'm not suggesting to use mine since I'm mostly inactive, but I think we'll all agree that the idea makes sense.

radiant nest
#

Mine dynamically goes to eeither the settings menu or smods

#

talisman does the same too

#

smod's api is basically the same as the vanilla one

#

if you only have one tab you can just set config_tab to a function

drowsy gyro
radiant nest
#

I see

#

Generally I don't think many people play without smods. I've never gotten a bug report from someone with DebugPlus without vanilla, although maybe score preivew is used a but more without it

drowsy gyro
#

True, but also I'm thinking if you do non-smods settings then you might as well keep your settings there always for UX consistency lol

#

(but then again, since most people use smods then in your case consistent UX is the smods settings)

radiant nest
#

yeah that and also if eveyr mod kept it's tab in there it would get quite large in cases where it doesn't need to be