#[REQUEST] Save Editor, preferably online and open source/github pages compatible

1 messages · Page 1 of 1 (latest)

frosty fox
#

I know Steamo mentioned me but @clear barn is working on this exact thing

#

I have modified saves before but that was manual

mental sierra
#

From what I know, saves are simply a chunk of LUA code interpreted on the flight

#

But I never experimented with it

frosty fox
#

It’s return {pretty much a JSON of all the save info}

delicate lodge
#

I could probably whip something up but it might take a few days

#

its not json sadly

#

its a lua table

frosty fox
#

That’s what I meant lol

#

By “pretty much JSON”

delicate lodge
#

looks similar to json but does stupid stuff like [ value ] = true

#

yeah

thick badge
#

what then why is it a .jkr and return nothing of meaning as hex?

mental sierra
#

It's still luajit compiled ?

frosty fox
#

Make it harder for people to edit but easy to use internally

delicate lodge
thick badge
frosty fox
#

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

thick badge
#

exactly

frosty fox
#

So PSA don’t open savefiles from random people

#

Or any .jkr file

mental sierra
#

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

thick badge
#

just do what InscrYption does and store it as a .save as YAML(?)

frosty fox
#

You could run the code sandboxed or just… use a JSON?

mental sierra
#

We had json in mind but that was the idea

frosty fox
#

And those sorts of files

thick badge
#

this is how save files should be (inscryption)

mental sierra
#

A mod will probably happen later, but the game dev told us it was to much work to put 1 week before release.

frosty fox
#

I hope that’s one of the first mods people make with the loader

#

It should become part of the loader

thick badge
#

should then become built in, ACE in unacceptable for a game

frosty fox
#

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

thick badge
#

rough estimate

thick badge
frosty fox
#

There’s not one for save loading?

#

Or just report one for Balatro - idk how the CVE system works

thick badge
delicate lodge
#

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

delicate lodge
#

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

clear barn
#

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

torn crow
#

I havd a wip save file editor

#

I plan to reelease it when its somewhat useable

torn crow
clear barn
torn crow
#

oh nice

#

I have some funny hacks I could stick in a save file for anyone who wants to mess around

clear barn
torn crow
#

what do you mean by that?

frosty fox
#

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

clear barn
#

ahh

torn crow
#

oh abritary code execution

frosty fox
#

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

torn crow
#

sorry I thought you meant ace as a word

#

Yeah I knew about it before

clear barn
#

my bad

torn crow
#

yeah I just do some json conversion and back

#

I have this card

#

(it gives 420 chips, 69 mult, and 69420 xmult)

frosty fox
#

Nice

#

You know what’s a fun one?

#

Setting misprint to give a really dumb range of mult

#

Like 1 to 1e300

torn crow
#

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

clear barn
torn crow
#

regex go brrr

torn crow
#

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

vocal fulcrum
#

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?

frosty fox
#

It’s nested though

#

And some values don’t end up really mattering when the save is loaded

clear barn
#

that's next for me

clear barn
torn crow
torn crow
torn crow
#

I want to make it a bit more usable before sticking it on GitHub

#

But I will when it's done for aure

torn crow
clear barn
#

working on editing green etc

torn crow
#

I don't even have a green

clear barn
#

I have a list of every joker's internal counters

torn crow
#

oh nice

#

That one is just a global save property

clear barn
#

I see catponder like edition rates

torn crow
#

yeah

#

GAME.probabilities.normal

clear barn
#

oh isn't that what all 6s edits

frosty fox
#

Can’t wait to add that to my seed searcher 🫠

#

As well as all of the relevant voucher and deck effects

torn crow
#

I didn't say good state I said useable

torn crow
torn crow
#

Click the link above, upload a save file, edit stuff, hit download and save the file where it was from

empty pivot
#

i broke the game

#

i broke the game

#

epic mod

#

i love that mod :)

#

you can have alot of fun

#

i just bough alot of random jokers

#

damn

frosty fox
#

Not even naneinf

empty pivot
#

yes

#

the game not that broken

torn crow
#

Once I make some improvements, I plan on also making a deticated post for it

torn crow
#

I need to double check the all jokers thing is what I think it is

clear barn
#

oh sick

clear barn
#

are you doing all of em

torn crow
#

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

clear barn
torn crow
#

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

torn crow
#

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

paper umbra
#

polychrome tarots work btw

#

there's just no way to get them in base game

clear barn
#

?

#

also observatory + poly planets

#

lmao

paper umbra
#

even if possible thy wouldn't be worth because they're not negative

torn crow
#

Well you can put them in the joker slots

torn crow
# clear barn not yet

Fair enough. I think I'll mostly just have take them from an area and store them, with minor modifications for easy stuff

clear barn
#

😭

#

and it's midterm season balatrojoker

torn crow
#

Silly save file shenangins

#

Bruh why is this possible

clear barn