CyberShadow / hax11

Hackbrary to Hook and Augment X11 protocol calls
MIT License
116 stars 9 forks source link

Can't install hax11 #7

Closed ShinyZero0 closed 2 years ago

ShinyZero0 commented 2 years ago

I'm new to linux, but i heard hax11 fixes some mouse problems with War Thunder. Firstly, i used git clone. Then it said i need some x,org libs to make, so i installed everything hax11 asked for (i found analogues for Fedora). Now there's no home/.config/hax11 directory and when i try to launch a game it says ERROR: ld.so: object '/home/shinyzero/hax11/$LIB/hax11.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. Also i tried to reboot but it didn't help

CyberShadow commented 2 years ago

Now there's no home/.config/hax11 directory

It will be created the first time a program is started with hax11 loaded.

and when i try to launch a game

What commands exactly are you running? (To install hax11 and to start the game)

ShinyZero0 commented 2 years ago

cd hax11 export LD_PRELOAD='pwd'/\$LIB/hax11.so steam steam://rungameid/236390

replaced ` to ' in 'pwd' to make it look as it should

CyberShadow commented 2 years ago

export LD_PRELOAD='pwd'/\$LIB/hax11.so

There is no way this would work. The single quotes need to be backticks for one.

steam steam://rungameid/236390

You have to make sure Steam is not running if you want to do it that way.

You can check if hax11 is loaded in a process with htop, find the process and press e, then check if there's a LD_PRELOAD line.

ShinyZero0 commented 2 years ago

export LD_PRELOAD='pwd'/\$LIB/hax11.so

There is no way this would work. The single quotes need to be backticks for one.

i know, i replaced them cause they are hiding

CyberShadow commented 2 years ago

Got it. You can use three backticks to start a code block, you can put single backticks there.

I suggest exiting Steam, running the export command, then running steam from the same terminal, that should work.

War Thunder has a native Linux port?

ShinyZero0 commented 2 years ago

Yes

ShinyZero0 commented 2 years ago

export LD_PRELOAD='pwd'/\$LIB/hax11.so

There is no way this would work. The single quotes need to be backticks for one. I know, i replaced them cause they are hiding

ShinyZero0 commented 2 years ago

System said htop is wrong and top is the right command. I found the game (aces) process but when i press E it looks like the sort type is changing

CyberShadow commented 2 years ago

System said htop is wrong and top is the right command

No, it's htop (it's auto-correcting using the knowledge of only the commands that you already have). Install htop, it's a great tool you'll probably want to have anyway.

ShinyZero0 commented 2 years ago

What should i find there? Or how to copy text from htop? LD_PRELOAD=/home/shinyzero/hax11/$LIB/hax11.so

CyberShadow commented 2 years ago

Or how to copy text from htop?

In most terminal emulators you can hold Shift to copy text from mouse-enabled terminal programs.

LD_PRELOAD=/home/shinyzero/hax11/$LIB/hax11.so

Looks good, you should have a ~/.config/hax11 directory where you can add configuration.

ShinyZero0 commented 2 years ago

yes, there is

CyberShadow commented 2 years ago

Great, problem solved?

ShinyZero0 commented 2 years ago

Profiles will be enabled automatically or i should add something to launch parameters in Steam?

CyberShadow commented 2 years ago

Automatically, just make sure Enable=1 is among the settings.

ShinyZero0 commented 2 years ago

Got it, thank you very much