#[Request] Playstation display
149 messages · Page 1 of 1 (latest)
is this for a console edition?
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
i will look into it
thanks !
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
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
Yeah i think ds4 emulates xbox controller actions
I can try walk you through swapping the texture?
As a temp fix
yea why not
Alr have 7zip?
y
locate the exe
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
then leave that folder go into 2x and add
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?
I didnt see any icons there lol
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
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
ok that works
yeah maybe you used the the higher res texture in the 1x folder
the earlier img i sent is the smaller one
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
ah then idk if that would connect, youll have to experiment xD
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
got it, atleast if works for now 😅 enjoy
thanks men
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
what do you mean decompiled
how did you change the graphics
did you extract the Balatro.exe and then run it again
i went to the exe with 7zip and changed a picture by another
we did it the lazy way lol
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)
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
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
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.. 
Some people reported the game corrupting sometimes randomly when adding stuff with 7zip
error screen
what does it say
you most likley got the mods folder wrong
you put the manifest.txt inside the mods folder?
i pasted your folder
and its unzipped and called mods?
its meant to be inside Balatro.exe
ah
if you cant just put it in then give up and use the graphics switch method
ok great!
im gonna be honest i dont have a controller so i didnt test it
its good to hear it works
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
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
alright, that'll do the trick fine for now
thanks a lot for trying
really nice of you
no problem
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.
I can have another look at it
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
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
I would asume a part of that is microsoft prefering easy support on xbox controllers
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)
I don't get why this is STILL not standard in games
to just manually pick your controller icons
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.
Anyone else figure out how to make this a lua file mod? My trick isn't quite working anymore :/
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!
Tbh I’ve stopped looking into Balatro modding
No worries! I know it takes time and all. I’ll see if I can’t figure it out 🙂
Did you find a way to still show playstation icons? It doesn’t work for me anymore either with my PS4 controller :/
Sadly no…tbh I’ve never really coded before and I’ve only got a steam deck so doing some things in Linux is very complicated. I can’t even inject my own exe with steamodded lol if I happen to figure something out though I’ll ping you back!
someone did get vibrations for controller working though so that’s a plus! #1214561899014918165 message
You did it in the game settings itself and not steam input general settings? As game settings override them. It still show mine fine here, kinda weird.
No matter what I try it doesn’t work :/ if I disable steam input it works, but shows xbox controls. If I enable steam input, it just won’t work at all
if only i knew about it sooner...