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-gold
optimistic-goldOP2y ago
Can someone show me how to run multiple files with a bat file on Arch linux? guys please help?
national-gold
national-gold2y ago
you don't, what you want are bash scripts or .sh files
deep-jade
deep-jade2y ago
make a .bat file in your game folder with your version of the following contents:
@echo off
start Trainer.exe
start Game.exe
@echo off
start Trainer.exe
start Game.exe
set the .bat file as the alternative exe
national-gold
national-gold2y 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
deep-jade2y 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
No description
deep-jade
deep-jade2y 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-gold
optimistic-goldOP2y 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
deep-jade2y ago
without any context, I can't provide any input
optimistic-gold
optimistic-goldOP2y 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
deep-jade2y 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-gold
optimistic-goldOP2y 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
deep-jade2y 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-gold
optimistic-goldOP2y ago
what info you'd like to know?
deep-jade
deep-jade2y ago
this for starters contents of your .bat in its entirety
optimistic-gold
optimistic-goldOP2y ago
Here is my bat file and all files located in one folder :
@echo off
start Assassins Creed IV Black Flag v1.07 Plus 30 Trainer.exe
start AC4BFSP.exe
@echo off
start Assassins Creed IV Black Flag v1.07 Plus 30 Trainer.exe
start AC4BFSP.exe
deep-jade
deep-jade2y 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-gold
optimistic-goldOP2y ago
How could I miss that..it worked flawlessly..Thank u so much :Pandayay: marked as solved..Thanks to @termdisc
deep-jade
deep-jade2y ago
Glad you got it working
conscious-sapphire
conscious-sapphire2y ago
You just set it as the alternate exe in heroic settings
national-gold
national-gold2y ago
Read further, I know now lol
rare-sapphire
rare-sapphire2y 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
conscious-sapphire2y ago
You change the alternate exe to be the bat file It can be anywhere
rare-sapphire
rare-sapphire2y 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
conscious-sapphire2y ago
No problem!
rare-sapphire
rare-sapphire2y 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
conscious-sapphire2y ago
Yeah you can modify it easily
rare-sapphire
rare-sapphire2y ago
Please how
@echo off
start Assassins Creed IV Black Flag v1.07 Plus 30 Trainer.exe
start AC4BFSP.exe
@echo off
start Assassins Creed IV Black Flag v1.07 Plus 30 Trainer.exe
start AC4BFSP.exe
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
deep-jade2y ago
spell out the path to the .exe then z:\ is root if you need it
rare-sapphire
rare-sapphire2y ago
What if the .exe is in the same directory as the game folder but in a separate folder
deep-jade
deep-jade2y ago
add folder paths where appropriate if it's in the same folder, change nothing
rare-sapphire
rare-sapphire2y ago
@echo off
start /Cheatfolder/ AssassinsCreedIVBlackFlagPluTrainer.exe
start AC4BFSP.exe
@echo off
start /Cheatfolder/ AssassinsCreedIVBlackFlagPluTrainer.exe
start AC4BFSP.exe
Like this
deep-jade
deep-jade2y ago
nope format it like a Windows file path you're formatting it like a linux path
rare-sapphire
rare-sapphire2y ago
What will be the Linux path?
CommandMC
CommandMC2y ago
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
rare-sapphire2y ago
Let that thank you very much. @echo off Start Z:\home\deck\Games\Cheatfolder\trainer.exe
conscious-sapphire
conscious-sapphire2y ago
Tias
rare-sapphire
rare-sapphire2y ago
It didn't work
CommandMC
CommandMC2y ago
Note that Heroic doesn't have access to ~/Games (just ~/Games/Heroic)
rare-sapphire
rare-sapphire2y ago
But does the script look ok
conscious-sapphire
conscious-sapphire2y ago
Oh what heroic package do you use? Flatpak?
rare-sapphire
rare-sapphire2y ago
Yes 2.11
conscious-sapphire
conscious-sapphire2y ago
Not what version, what type, e.g. flatpak, native, appimage
rare-sapphire
rare-sapphire2y ago
Native, I downloaded it the Application
conscious-sapphire
conscious-sapphire2y 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
CommandMC
CommandMC2y ago
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
rare-sapphire2y 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
conscious-sapphire2y ago
Flatpak is not native Is it flatpak?
CommandMC
CommandMC2y ago
A game log could answer a lot of questions here
conscious-sapphire
conscious-sapphire2y ago
Yep If you can just send a game log for assassins creed @Deleted User
rare-sapphire
rare-sapphire2y ago
Sure,please give me a few minutes
conscious-sapphire
conscious-sapphire2y ago
okay
rare-sapphire
rare-sapphire2y ago
rare-sapphire
rare-sapphire2y ago
Logs attached
conscious-sapphire
conscious-sapphire2y 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
rare-sapphire2y ago
Flatseal? It works if the batch file is executed in the same directory
CommandMC
CommandMC2y ago
Well, I was basing that off the /home/deck path they sent Don't add the trainer as a separate game Set the .bat file as the alternative exe for Rocket League your game
rare-sapphire
rare-sapphire2y 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.
CommandMC
CommandMC2y ago
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
rare-sapphire2y ago
Then the game.exe
CommandMC
CommandMC2y ago
Right, all is well then, have fun playing!

Did you find this page helpful?