#[REQUEST] Save Editor, preferably online and open source/github pages compatible
1 messages · Page 1 of 1 (latest)
From what I know, saves are simply a chunk of LUA code interpreted on the flight
But I never experimented with it
It’s return {pretty much a JSON of all the save info}
I could probably whip something up but it might take a few days
its not json sadly
its a lua table
what then why is it a .jkr and return nothing of meaning as hex?
It's still luajit compiled ?
Make it harder for people to edit but easy to use internally
its encoded to save space
thats bad practice
Yeah, I reported that privately to localthunk when I realized you could do REALLY BAD THINGS with it
But it hasn’t been fixed afaik
exactly
Yeah, saves can explode your PC
We had a plan to make a mod to fix that and change the way saves work
But it was just an idea
Like REALLY REALLY BAD THINGS
didn’t want to share this publicly but you basically figured it out already
just do what InscrYption does and store it as a .save as YAML(?)
exactly!
You could run the code sandboxed or just… use a JSON?
We had json in mind but that was the idea
THIS
It can run on profile load too with profile.jkr
And those sorts of files
A mod will probably happen later, but the game dev told us it was to much work to put 1 week before release.
I hope that’s one of the first mods people make with the loader
It should become part of the loader
100%
should then become built in, ACE in unacceptable for a game
One of the other points localthunk made in DMs was that if he does patch ACE people will find ways around that patch
I understand that it’s not the biggest thing to invest your time in as a solo dev when you’re worried it won’t work anyway but once a tried-and-tested community ACE patch is made it should 100% be integrated into the base game
you should open an official cve*
There’s not one for save loading?
Or just report one for Balatro - idk how the CVE system works
I json-ified all the unlocks from their lua definitions. feel free to use it for a save editor, or I might get around to it at some point as well
i make no guarantee i didnt fuck it up somewhere
this doesnt include seals because i didnt see items for them in the save file
ive been fucking around with trying to read a save file in JS for awhile now and have gotten basically no where. someone let me know if you figure it out
Yeah I did
I have been for months
I wrote a lua table to json transform, and then did the reverse
CompressionStream with deflate raw is how I unpack the compression
oh nice
I have some funny hacks I could stick in a save file for anyone who wants to mess around
let's not further spread an ace
what do you mean by that?
I don’t think that’s what Wilson meant lol
Pretty sure he’s talking about things like setting the enhancement spawn rate to 100%
Which doesn’t use ACE
ahh
oh abritary code execution
which I’m also not telling you how to do because it’s REALLY DANGEROUS
but ppl pretty much figured it out in this thread already
my bad
yeah I just do some json conversion and back
I have this card
(it gives 420 chips, 69 mult, and 69420 xmult)
Nice
You know what’s a fun one?
Setting misprint to give a really dumb range of mult
Like 1 to 1e300
I guess if I did publish my save editor, I could make JSON save sharing so people can share saves that don't have ACE in them
here I'll send this here
yep :3
regex go brrr
ok I got some actual values working (I can save them too)
any other simple values you guys can think of to change?
oh intresting you can set the number of cards you can select in the deck
but if you select 6 it grays out the play button
If i understand it correctly and it's just a table of values, wouldn't it be easiest to just display that with all it's values?
It’s nested though
And some values don’t end up really mattering when the save is loaded
joker values like green joker
that's next for me
maximum shop jokers, like overstock handles
Yeah I want to do a bit more for jokers, but that shouldn't be that bad.
Yeah I could take a look at that
I want to make it a bit more usable before sticking it on GitHub
But I will when it's done for aure
I don't even have a green
I have a list of every joker's internal counters
I see
like edition rates
oh isn't that what all 6s edits
Can’t wait to add that to my seed searcher 🫠
As well as all of the relevant voucher and deck effects
I didn't say good state I said useable
Ok heres a "useable" build
https://balatro.shorty.systems/
GitHub
how can you use it?
Click the link above, upload a save file, edit stuff, hit download and save the file where it was from
epic
i broke the game
i broke the game
epic mod
i love that mod :)
you can have alot of fun
epic
i just bough alot of random jokers
damn
Not even naneinf
Once I make some improvements, I plan on also making a deticated post for it
oh sick
Just simple things for the non save ones
(you can still edit the raw json with them)
well the meta I think would need a bunch of new code so I didn't touch it
I want to do other stuff first and don't want to spend hours writing code for something the game has a button for
also I found another funny always availble main save value
GAME.bankrupt_at lets you set whatever the game stops letting you buy stuff at
like credit card
you seen probabilities.normal right 😂
yeah
1000 to always kill cavendish
I was thiking of making something to safely share save files
and what is the best way to share data on a website
probably make a webserver for it right?
the saves probably get too big to encode into a url
Oh man card areas are going to be fun
void are you making it where you can generate cards on the fly or nah?
ok consuables can give mult and chips and xmult
that totally makes sense
not yet
Planets too
?
also observatory + poly planets
lmao
even if possible thy wouldn't be worth because they're not negative
Well you can put them in the joker slots
Fair enough. I think I'll mostly just have take them from an area and store them, with minor modifications for easy stuff
I want to make it loadable from only prototypes but the mental weight of that entire task is a lot
😭
and it's midterm season 
primitive save system lol
he basically dumps state in entirety
