#Headless Balatro

1 messages · Page 1 of 1 (latest)

blazing charm
wheat geyser
#

Did you post the wrong link?

thorn thunder
#

Or... forgot to push to it?

#

Idk something

wheat geyser
#

Could be a giant joke going over our head or something lol

thorn thunder
#

Lol... tru

sour pelican
#

..so no head?

thorn thunder
#

I know what headless means in the computer sense, though I'm not sure how that'd work for a graphical video game

sour pelican
#

explain

thorn thunder
#

Headless means well... it just runs with no input of output given or able to be directly given

#

Like if a machine is running headless you need to network into it to give it input

#

That's an over simplification but more or less correct iirc

sour pelican
#

wilson shot dead

blazing charm
#

Oh I might have forgot to commut

wheat geyser
#

silly

blazing charm
#

commited

hollow cosmos
#

what does this do

thorn thunder
#

And like me

polar rose
#

oh this is sick

digital plaza
#

This might be useful for remotro

#

@blazing charm

blazing charm
#

Okay

#

Oh yeah I also found a way to run it in a docker container with no graphics but having the graphics api still working

#

Cause I realized my code kinda relied on Font.getWidth working but I couldn't properly stub it (it's too hard to implement)

#

I can share later after work

blazing charm
#

docker run -v .:/pwd -v ./Mods:/root/.config/love/Mods -it --rm alpine /bin/ash

apk add xvfb love
Xvfb :99 -ac &
LD_PRELOAD=/pwd/liblovely_alpine.so love /pwd/Balatro.exe

This allows you to run without the mod (and full functionality). If you are using this for smth you definitly want to make a dockerfile to install the packages instead of it hapening everytime you run it

#

alpine can't use a regular build of lovely because it uses musl. You can't build a dylib for musl with the standard rust toolchain so you need a modifed one. This has been pakcaged in the alpine repos so you can just apk add rust cargo then cargo build --package lovely-unix --release

#

(they might be different commits, they were built on different machines at different times)

#

(as a note the docker container has it's save at /root/.local/share/love/Balatro which is not where lovely's mod dir is)

digital plaza
#

okay yeah this would actually be awesome for remotro

#

the issue for remotro's protocol either the game must assume a running client or the client must assume a running came to set up a connection, having a running docker server that would guarantee that balatro is running would be legitimately awesome for making clients better

polar rose
#

pretty great way to regression test lively builds

digital plaza
blazing charm
#

for lovely you don't really need to know, as you would just need to trigger your loading working and then compare dumps