Kaldaien / UnX

"Untitled" Project X - Technical Fixes and Enhancements for Final Fantasy X | X-2 HD Remaster
MIT License
198 stars 20 forks source link

Linux Support? #88

Open DraTrav opened 4 years ago

DraTrav commented 4 years ago

I know this hasn't been worked on in awhile and im wondering if there is a way to run it on linux using wine or proton?

NerosTie commented 4 years ago

I've tried.

The automatic installer thinks the game is not installed (using WINEPREFIX="path/to/pfx", ofc).

Installing it manually (+vcrun2015 and dotnet45 with winetricks) and putting "dxgi" as native in winecfg, the game crashes before the Square Enix logo.

Tested with Proton 5.0-9.

Proton log: steam-359870.log

UnX logs: UnX.log ReShade32.log modules.log steam_api.log crash.log dxgi.log

redyoshi49q commented 3 years ago

The failure of the automatic installer makes sense; the Wine prefix/filesystem environment for FFX/FFX-2 lives in ~/.steam/steam/steamapps/compatdata/359870/pfx , whereas the game binaries live in ~/.steam/steam/steamapps/common/FINAL FANTASY FFX&FFX-2 HD Remaster (notably, outside of the Wine prefix). It might be possible to force the automatic installer to work by symlinking or mounting the game binary directory into the right spot in the Wine prefix, but that's roughly as technical as doing a manual installation, anyway.

I, too, have hit the unfortunate snag of immediate game crashing when trying to run the FFX/FFX-2 launcher after having performed a manual install of the mod. I've subscribed to this issue in case someone manages to figure out how to get this mod to work in Linux.

junglized commented 3 years ago

I'm on Pop!_OS 21.04. I have my Steam library set up in a custom folder. I tried to symlink game directory /home/user/Documents/Games/PC/Steam/steamapps/common/FINAL FANTASY FFX&FFX-2 HD Remaster with ln -s to home/user/Documents/Games/PC/Steam/steamapps/compatdata/359870/pfx/c_drive/Program Files (x86)/Steam/steamapps/common thinking this is the same path Windows Steam uses for it's library. But no luck unfortunately, SKIM64 doesn't see the game anyways.... It's a shame really it's not possible to choose game installation path manually from SKIM64... Oh well, the game looks cool without mods too :)

username115 commented 3 years ago

I am also interested in seeing this work. I've tried some of the steps above (but with the manual install of UnX instead of the automatic installer). dotnet45 and vcrun2015 installers are not working in newer versions of wine, and a manual install (downloading the installer and running in the prefix) did not work either. Either the mods don't load at all, or the game crashes on start.

jtrees commented 2 years ago

I have been able to get this at least partially working with the following setup:

I am only interested in a single feature (Japanese audio with English subtitles) and some brief testing confirms that it's working.

I have yet to actually play more than a few seconds though. So can't vouch for how stable this is.

ShadwDrgn commented 2 years ago

@jtrees can you deescribe what you mean by dxgi native/builtin? also does this work with latest release in any configuration at all? Mostly all I care about is the jp/eng sub as well, but i'd like to be on latest release if possible just to ensure i'm on a good version with patched issues/bugfixes/etc. I'm on proton GE

ShadwDrgn commented 2 years ago

Heads up to anyone watching this issue or trying to get this working in linux. Looks like setting UseHardwareCursor to false in dxgi.ini seems to make the whole mod work fine in linux so far. I'm on proton 7 GE

jtrees commented 2 years ago

can you deescribe what you mean by dxgi native/builtin?

https://wiki.winehq.org/Wine_User%27s_Guide#DLL_Overrides

also does this work with latest release in any configuration at all?

I couldn't get it working. But it maybe someone else can.

Looks like setting UseHardwareCursor to false in dxgi.ini seems to make the whole mod work fine in linux so far.

... Looks like you were able to get it working. Awesome! I'll give this a go when I find the time for time.

kadamwhite commented 2 years ago

I can confirm that for me, after downloading and manually installing the latest release 0.9.1.9 then switching UseHardwareCursor to false, the game boots normally via Steam and I get Japanese audio with English text, as expected! I haven't tried any features other than the language swap, but on a Steam Deck I was able to play through the first section of X-2 with no issues whatsoever. UnX menu comes up properly when hitting the buttons that get mapped as Start and Select.

The only issue I've had is that it seems to prompt me to upgrade UnX every time I start the game, even though I manually installed the latest version. There is no option other than to remind me later, and trying to run the install softlocks the app. But if you defer it, you can boot as expected.

Thanks @ShadwDrgn and @jtrees ! (Edit, and how could I possibly forget a thank you to @Kaldaien for a fantastic mod)

alomsimoy commented 2 years ago

I wasn't able to use v0.9.1 with the suggested tweaks. However v0.8.7 works flawlessly. Using proton GE-Proton7-15.

witcheslive commented 2 years ago

Is anyone willing to write A-Z steps for steam deck? I was at this all day yesterday and I cannot for the life of me get it working despite trying everything listed in this thread

DraTrav commented 2 years ago

I can confirm that currently 0.9.1.9 is broken again on the steam deck, However, 0.8.7 works flawlessly with UseHardwareCursor to false in dxgi.ini, so something is holding it up in the later versions

to get the 8.7 to work on the steam deck

  1. Download the latest 8.7 build
  2. Extract files into the file location of the game ~/.steam/steam/steamapps/common/FINAL FANTASY FFX&FFX-2 HD Remaster
saberblaze commented 1 year ago

I can confirm that currently 0.9.1.9 is broken again on the steam deck, However, 0.8.7 works flawlessly with UseHardwareCursor to false in dxgi.ini, so something is holding it up in the later versions

to get the 8.7 to work on the steam deck

1. Download the latest 8.7 build

2. Extract files into the file location of the game ~/.steam/steam/steamapps/common/FINAL FANTASY FFX&FFX-2 HD Remaster

Hello, can you confirm if it's working for you for FFX-2 on the steam deck? What version of proton are you using? It only boots with proton 7.0-4 for me. If I use 0.9.1.9 the game only boots using the "PROTON_USE_WINED3D=1 %command%" launch option. This introduces some graphical glitches to the game. Using 0.8.7 I can boot without that launch option, after the yellow OSD letters are shown the game crashes. If I plug in a keyboard and do the CTRL+SHIFT+O to turn it off, the game boots normally and can play, however none of the F1-F5 shortcuts work with the controller, I have to use a keyboard. For example, L1+L2+Select to load the escape menu to exit the game. UNX also is not generating some .ini files like unx_gamepad.ini. dxgi.ini also doesn't have UseHardwareCursor with 0.8.7, I added it just in case. If I manually copy that file over and change the button icons nothing happens in game. It's as if the mod is working at all.

Have you been able to get the F1-F5 and ESC shortcuts and gamepad icons working with the steam deck?

Edit: Alright now that I've gotten more familiar with the steam deck I've managed to remap some of the steam decks button to F1-F5 and ESC keys. I would like to have gotten the custom gamepad buttons to work but I'll just have to play the game without UNX.

Bjork77 commented 1 year ago

Sorry for Necro-ing this thread; this is the only coherent information I've found so far about getting this mod to work on the steam deck.

I followed the instructions posted earlier for installing 0.8.7, and the mod works without issue; with the exception of the game crashing every 45min-1hr. It's like clockwork, which is a bit odd.

I've tried the latest version of proton along with 7.0-4, and this issue still crops up. I disabled hardwarecursor but I think it's unrelated to this problem.

Any ideas? Thanks in advance.

yarbroughb commented 1 year ago

For those still looking for a solution, I followed this video to get 0.8.7 working for me: https://www.youtube.com/watch?v=PUV7U9vhEiE

I haven't played it too much yet, but everything seems to be working how I expect. Only thing I had to do that wasn't mentioned in the video was switch my Proton version from GE-Proton7-55 to Proton 7.0-6. Perhaps older versions of Proton GE would work, but 7-55 caused it to crash every single time for me.

The video is aimed at SteamDeck users, but I actually used it for my Fedora KDE desktop using a native Steam install.

Bjork77 commented 1 year ago

Thank you so much for the response. I used the video you linked and switched to the proton 7.0-6; I left my switch on for 2 hours docked to see if it would crash, and it stayed on! Problem solved!

I then decided to try the latest version of proton, and I experienced no crashes there either.

Balethorn commented 3 months ago

For those still looking for a solution, I followed this video to get 0.8.7 working for me: https://www.youtube.com/watch?v=PUV7U9vhEiE

I haven't played it too much yet, but everything seems to be working how I expect. Only thing I had to do that wasn't mentioned in the video was switch my Proton version from GE-Proton7-55 to Proton 7.0-6. Perhaps older versions of Proton GE would work, but 7-55 caused it to crash every single time for me.

The video is aimed at SteamDeck users, but I actually used it for my Fedora KDE desktop using a native Steam install.

For all the people that is following that video, u can avoid setting up the ctrl+shift+o shortcut if u edit the osd.ini file (use something like KFIND to search it) created on first launch by the mod and changing all the true values to false, that way the osd will be always off.