Running a trainer with a game on Linux using Proton and Heroic
So Im trying to figure out how to run a trainer with a windows game using Proton and Heroic on Arch Linux..any help is much appreciated..Thanks in Advance
60 Replies
optimistic-goldOP•2y ago
Can someone show me how to run multiple files with a bat file on Arch linux?
guys please help?
national-gold•2y ago
you don't, what you want are bash scripts or .sh files
deep-jade•2y ago
make a .bat file in your game folder with your version of the following contents:
set the .bat file as the alternative exe
national-gold•2y ago
you can run .bat files on linux?
oh of course you can as long as it's through wine
i feel dumb lol
deep-jade•2y ago
here's guacamelee 2 complaining that there's an existing instance of the game after running the game's exe and a copy of the exe

deep-jade•2y ago
yeah, so long as they're not too complex
calling two exes is nothing though
that's the extent of all I'd use bats for
optimistic-goldOP•2y ago
Thanks Guys..will try that and let u know
So I did exactly that and the game run without the trainer :wha:
deep-jade•2y ago
without any context, I can't provide any input
optimistic-goldOP•2y ago
Ok..so the game is Assassins Creed Black Flag I just wanted a game that has a working trainer..the trainer is fling trainer and it run by itself And I made the bat file in the format u suggested and the game run without the trainer
I don't know what Im doing wrong since the game run successfully
deep-jade•2y ago
still needs more context. file locations, file names, etc.
does the trainer require additional dependencies?
test it by using "Run EXE in prefix"
optimistic-goldOP•2y ago
I did run exe in prefix and now the trainer run but the game dosen't
is there a better solution for Linux other than running a standalone trainer..I get it that some people have succeeded in running such trainers but we need more reliable way in modding single-player games without all this hustle
deep-jade•2y ago
SteamTinkerLaunch is useful for this for games on Steam as it is better with concurrent exes than hacking around with batches
but for the third time, I cannot help without more context
optimistic-goldOP•2y ago
what info you'd like to know?
deep-jade•2y ago
this for starters
contents of your .bat in its entirety
optimistic-goldOP•2y ago
Here is my bat file and all files located in one folder :
deep-jade•2y ago
rename the trainer exe to get rid of that period in the middle, or simply rename it trainer.exe
testing it now, you may be better off just renaming the file. using quotes didn't work for me earlier with files with spaces
optimistic-goldOP•2y ago
How could I miss that..it worked flawlessly..Thank u so much :Pandayay:
marked as solved..Thanks to @termdisc
deep-jade•2y ago
Glad you got it working
conscious-sapphire•2y ago
You just set it as the alternate exe in heroic settings
national-gold•2y ago
Read further, I know now lol
rare-sapphire•2y ago
This is great, this is exactly what I was looking for.
So in Heroic I should change the game path to the new .bat file?
Also some games .exe are located in sub-folders. where do I put the bat file?
conscious-sapphire•2y ago
You change the alternate exe to be the bat file
It can be anywhere
rare-sapphire•2y ago
Great..I am about to test with in an hour.
I will provide updates on how it works.
Thanks you.
It works like a charm, I can't believe it...I have been searching for a solution for almost a year and sold my LCD SteamDeck because I was unable to use Trainer on Linux... Thank all of you for the help..
conscious-sapphire•2y ago
No problem!
rare-sapphire•2y ago
@QuadRadical (Ping on reply) Hi sorry to bothered you you, it possible to create a script to open two different programs in different folders?
conscious-sapphire•2y ago
Yeah you can modify it easily
rare-sapphire•2y ago
Please how
This works if they are in the same folder but if the second file is in a different folder it doesn't work.
deep-jade•2y ago
spell out the path to the .exe then
z:\
is root if you need itrare-sapphire•2y ago
What if the .exe is in the same directory as the game folder but in a separate folder
deep-jade•2y ago
add folder paths where appropriate
if it's in the same folder, change nothing
rare-sapphire•2y ago
Like this
deep-jade•2y ago
nope
format it like a Windows file path
you're formatting it like a linux path
rare-sapphire•2y ago
What will be the Linux path?
Well, that depends on where you're storing the trainer executable
For example, if it's in
/home/YourUsername/Games/Cheatfolder/AssassinsCreedIVBlackFlagPluTrainer.exe
, you'd have to use Z:\home\YourUsername\Games\Cheatfolder\AssassinsCreedIVBlackFlagPluTrainer.exe
rare-sapphire•2y ago
Let that thank you very much.
@echo off
Start Z:\home\deck\Games\Cheatfolder\trainer.exe
conscious-sapphire•2y ago
Tias
rare-sapphire•2y ago
It didn't work
Note that Heroic doesn't have access to
~/Games
(just ~/Games/Heroic
)rare-sapphire•2y ago
But does the script look ok
conscious-sapphire•2y ago
Oh what heroic package do you use?
Flatpak?
rare-sapphire•2y ago
Yes 2.11
conscious-sapphire•2y ago
Not what version, what type, e.g. flatpak, native, appimage
rare-sapphire•2y ago
Native, I downloaded it the Application
conscious-sapphire•2y ago
Okay, are you sure you have the path right
Like are you certain that your games folder is in the home dir
And not documents or something
I'd be very surprised if you're not using the Flatpak
(this is on a Steam Deck, so you can't normally install applications outside of Flatpak)
rare-sapphire•2y ago
I use notepad ++ to create the batch file and the header of notepad it shows the path directory.
Native is downloaded from your site and the flatpak version is on the device
conscious-sapphire•2y ago
Flatpak is not native
Is it flatpak?
A game log could answer a lot of questions here
conscious-sapphire•2y ago
Yep
If you can just send a game log for assassins creed @Deleted User
rare-sapphire•2y ago
Sure,please give me a few minutes
conscious-sapphire•2y ago
okay
rare-sapphire•2y ago
rare-sapphire•2y ago
Logs attached
conscious-sapphire•2y ago
Okay it is a flatpak
Log says not steam deck
Nobara
@Deleted User you'll need to use flatseal to allow heroic access to ~/Games maybe
rare-sapphire•2y ago
Flatseal?
It works if the batch file is executed in the same directory
Well, I was basing that off the Rocket League your game
/home/deck
path they sent
Don't add the trainer as a separate game
Set the .bat file as the alternative exe for rare-sapphire•2y ago
Sorry but I'm a bit confused
ok guys, i fixed the script
@echo off
cd "Z:\home\deck\Documents\CheatEvolution"
start CheatEvolution.exe
Start game.exe
Thanks for the help.
Ah sorry, the last 10 times we did this, it was a trainer for Rocket League and my brain kinda defaulted on this
This isn't the complete script though, right? (if it is, you don't need the script at all, just run the executable)
rare-sapphire•2y ago
Then the game.exe
Right, all is well then, have fun playing!