#[Request] Playstation display

149 messages · Page 1 of 1 (latest)

craggy quest
#

Hi guys, is there already a Playstation buttons display that could be applied to the game, instead of the XBOX buttons display ?

Thanks !!

ebon ridge
#

is this for a console edition?

craggy quest
#

no, just for people that are playing with a playstation controller on pc

#

or a switch pro controller, idk

#

but just be able to somehow switch between controller displays

ebon ridge
#

i will look into it

craggy quest
#

thanks !

idle plank
#

You dont see it? the game already has textures for ps controller ui. Maybe the game does not recognise you controller as a ps one? How do you connect the controller? A quick fix would be to just copy the ps ui into the xbox textures in the game

craggy quest
#

I have a ps4 controller and a switch pro controller. I just plug both of them with bluetooth. When one has to be charged, i play with the other. I run DS4W to play games

idle plank
#

Yeah i think ds4 emulates xbox controller actions

#

I can try walk you through swapping the texture?

#

As a temp fix

craggy quest
#

yea why not

idle plank
#

Alr have 7zip?

craggy quest
#

y

idle plank
#

locate the exe

craggy quest
idle plank
#

1 sec

#

sorry im back

#

can you open the exe as archive with 7zip

#

inside: resources>textures>1x

#

and show me the gamepad_ui.png

#

To check if it looks the same as what I have

craggy quest
idle plank
#

right

#

so just in that folder

#

throw in

craggy quest
#

oh i see

#

clever

idle plank
#

then leave that folder go into 2x and add

craggy quest
#

i'll name the other one backup

#

uh

#

doesnt seem to be right sadly

idle plank
#

you could change some specific line in the code to always use ps but i dont have access to the game so that would be more difficult lol. For future use, try connecting the controller to steam itself as a ps one, i think steam can tell the game the correct gamepad type even if its emulated as a different one, again i cant help with this as i dont have the game

#

what happens?

craggy quest
#

i can't screen it but

#

it displays both square and triangle

idle plank
#

I didnt see any icons there lol

craggy quest
#

yea

#

when i push print screen it's fading away because it thinks i'm playing with the keyboard

#

i'm trying to trick it

#

got it

idle plank
#

yeah i think you switch the 2 textures i sent and put them in the wrond folders

#

go into the graphics setting

#

and change the pixel art smoothing option

craggy quest
#

ok that works

idle plank
#

yeah maybe you used the the higher res texture in the 1x folder

craggy quest
#

oh i see what i did

#

i paste the same on both

idle plank
#

the earlier img i sent is the smaller one

craggy quest
#

anyway, thanks a lot

#

it feels more enjoyable like that

idle plank
#

again this should be a temp fix, i think it mmight not work if you update the game (youd have to reapply the 'patch'), so id look into connecting controller with steam, assuming you are using a cable

craggy quest
#

i'm not

#

only bluetooth

idle plank
#

ah then idk if that would connect, youll have to experiment xD

craggy quest
#

and the steam input thing is a bit bad with some games so i don't use it and only use ds4

#

i'll do the trick everytime then

idle plank
#

got it, atleast if works for now 😅 enjoy

craggy quest
#

thanks men

ebon ridge
#

ok ive made the mod

#

have you got it running decompiled?

#

anyway here are the installation instructions

  • create a mods folder in the Balatro directory
  • inside mods folder create a file called manifest.txt and give it the contents
SpeltIncorrectylButtonControl
  • inside mod folder create a folder called SpeltIncorrectylButtonControl
  • inside SpeltIncorrectylButtonControlFolder create a file called mod.lua with contents
local mod = {}

function G.UIDEF.settings_tab_patched(tab)
    local ui = G.UIDEF.settings_tab_old(tab)

    if tab == "Graphics" and G.CONTROLLER.GAMEPAD_CONSOLE ~= "" then
        table.insert(ui.nodes, create_option_cycle({w = 4,scale = 0.8, label = "Controller Graphics",options = {"Xbox", "Playstation", "Nintendo"}, opt_callback = 'change_gamepad', current_option = G.CONTROLLER.GAMEPAD_CONSOLE == "Xbox" and 1 or (G.CONTROLLER.GAMEPAD_CONSOLE == "Playstation" and 2 or 3)}))
    end

    return ui
end

function G.FUNCS.change_gamepad(args)
    G.CONTROLLER.GAMEPAD_CONSOLE = args.to_key == 1 and "Xbox" or (args.to_key == 2 and "Playstation" or "Nintendo")
end

function mod.patch()
    -- monkey patch in the new function
    G.UIDEF.settings_tab_old = G.UIDEF.settings_tab
    G.UIDEF.settings_tab = G.UIDEF.settings_tab_patched
end

return mod
  • patch in the mod loader by pasting in this code snippet into the love.load method in main.lua
-- patch
local mod_paths = love.filesystem.read("mods/manifest.txt")
for mod_path in mod_paths:gmatch("[^\n]+") do
    local mod = require("mods/" .. mod_path .. "/mod")
    mod.patch()
end

it should look like this:

#

i can just provide zipped mods folder otherwise

#

you still need to patch the main.lua though if you use the zipped file

craggy quest
#

what do you mean decompiled

ebon ridge
#

how did you change the graphics

#

did you extract the Balatro.exe and then run it again

craggy quest
#

i went to the exe with 7zip and changed a picture by another

idle plank
#

we did it the lazy way lol

ebon ridge
#

how did you run it again

#

you can just edit it like that?

#

huh

craggy quest
#

seems like we can

#

it's running without any issues

ebon ridge
#

anyway do that thing except instead drag in the unzipped mods folder

#

and edit the main.lua

#

you should see in Options > Settings > Graphics a new option for changing the controller graphics (if your controller is connected)

craggy quest
#

patch in the mod loader by pasting in this code snippet into the love.load method in main.lua

#

you lost me there

#

where is the love.load method

ebon ridge
#

open the file called main.lua

#

scroll down till you see this text

#

insert the code snippet under G:start_up()

-- patch
local mod_paths = love.filesystem.read("mods/manifest.txt")
for mod_path in mod_paths:gmatch("[^\n]+") do
    local mod = require("mods/" .. mod_path .. "/mod")
    mod.patch()
end
#

if you cant edit files in the archive copy main.lua, edit it then replace it

#

it should look like this when done

craggy quest
#

oh main is in the game exe

#

ok

#

game crash

#

now

#

i don't think i did something wrong

#

i prefer the old fashion lazy way.. balatrojoker

idle plank
#

Some people reported the game corrupting sometimes randomly when adding stuff with 7zip

ebon ridge
#

what is crashh report

#

did it have an error screen or did it silently crash

craggy quest
#

error screen

ebon ridge
#

what does it say

craggy quest
ebon ridge
#

you most likley got the mods folder wrong

#

you put the manifest.txt inside the mods folder?

craggy quest
#

i pasted your folder

ebon ridge
#

and its unzipped and called mods?

craggy quest
ebon ridge
#

its meant to be inside Balatro.exe

craggy quest
#

ah

ebon ridge
#

if you cant just put it in then give up and use the graphics switch method

craggy quest
#

it's in

#

and it's working well

#

thanks mate

ebon ridge
#

can you see the settings?

#

and change the controller graphics in it?

craggy quest
#

yep

#

and i can

ebon ridge
#

ok great!

#

im gonna be honest i dont have a controller so i didnt test it

#

its good to hear it works

craggy quest
#

it's almost working finally

#

every time you leave the window (alt tab f.ex) it's getting resetted to slot 1

#

wich is xbox

ebon ridge
#

oof

#

just use the graphics switch

#

switch the textures

#

the mod is setting the value but i suspect the game overwrites it with what it thinks the gamepad is when you close the menu

craggy quest
#

alright, that'll do the trick fine for now

#

thanks a lot for trying

#

really nice of you

ebon ridge
#

no problem

limpid ocean
#

So it's been confirmed to be in the work? I mostly plan to play it on my Steam Deck with a Dualsense controller so texture change isn't an option.

ebon ridge
#

I can have another look at it

idle plank
#

as an update to before: the game shows correct icons when you connect a ps controller through steam steam on a cable, but connecting through bt strips it of the ps controller type, hence the wrong icons. I dont think there is a fix for that unfortunately

limpid ocean
#

If wired works yeah, classic PlayStation poor support for pc gaming. What a shame considering how good i think the dualsense is... first gen I prefer ps over xbox for controller.

DSX now has a dlc to emulate dualsense over wireless but only via dlc so I didnt tested it.

Otherwise, getting a 10' wire on amazon is my best bet. That is what I do for a while. Got bunch of amazon basic wires for less than $10 haha

idle plank
#

I would asume a part of that is microsoft prefering easy support on xbox controllers

limpid ocean
#

Nothing is blocking PlayStation not enabling all via Bluetooth. They just don't seems much to care sadly. Glad at least many games are at least allowing sualsense natively (with steam input disabled)

fiery ibex
#

to just manually pick your controller icons

quartz shore
#

Also don’t know if it’s been pointed out but just found out you can “trick” the game into keeping the PlayStation icons. All you do is start the game with disabled steam input. Then enable the steam input and the game will keep the icons while allowing you whatever configuration profile you have. I did find the icons might occasionally very quickly flash back to the Xbox/Steam ones but always goes back to PlayStation.

quartz shore
#

Anyone else figure out how to make this a lua file mod? My trick isn't quite working anymore :/

quartz shore
# ebon ridge I can have another look at it

Hi! Wasn’t sure if you’d found an easier method to get that icon switching menu option permanent via a mod file? Turning off steam input doesn’t fix it anymore :/ any help appreciated!

ebon ridge
#

Tbh I’ve stopped looking into Balatro modding

quartz shore
foggy dew
quartz shore
limpid ocean
foggy dew
versed linden