Hello, I would like to know if anyone knows how to run a .bat file (windows script file) within a lutris prefix when clicking the “play” button.
What I’m attempting to do is install tModLoader manually with the Windows 1.4.4.9 version of Terraria from GOG. I’m trying to use the Windows version of the game instead of the native Linux version for two reasons.
1:
I don’t trust any native Linux app that specifies ONLY Ubuntu, and I’m in Arch anyway.
2: I want to make a little modpack prefix package that I can easily transfer between machines for my own purposes.
In short, please do not tell me to use the native Linux versions of Terraria and Tmodloader, I specifically want the Windows versions running through a compatibility layer.
Simply selecting the “start-tModLoader.bat” file as the executable for the game results in this log:
Started initial process 3518 from gamemoderun /home/arachne/.var/app/net.lutris.Lutris/data/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine cmd /C start-tModLoader.bat
Start monitoring process.
gamemodeauto:
gamemodeauto:
gamemodeauto:
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
gamemodeauto:
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.
gamemodeauto:
gamemodeauto:
gamemodeauto:
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256
I’m unsure if this log means that I can’t select a .bat file for the executable, or if there’s something wrong with this particular .bat file.
Searching the internet for issues, I encountered this tModLoader github issue that was so close to my issue (even with the same game version), but it was difficult to glean a solution that I wanted between OP’s rants (which I agree with mostly and admire their dedication, but they could really learn some tact and to separate technical discussion with technology politics to make their posts more readable - says me who is currently writing a paragraph about it LOL) and the developers of tModLoader firmly endorsing the native Linux route.
My idea was that I wanted to simply run tModLoader within the same prefix as Terraria and make it work like on Windows that way, like I do with Mod Organizer 2 for Skyrim, Fallout New Vegas, and Fallout 4, but what stands in my way seems to be my ability to run a .bat file within this lutris prefix, and also the insistence that Terraria is totally compatible with Linux.
Note: Yes, I know it’s hard to obtain Terraria mod files without Steam, I’m planning on just subscribing to workshop “addons” and swiping the files on my other computer.