gibbed / Gibbed.Borderlands2

Tools & code for use with Borderlands 2.
zlib License
629 stars 143 forks source link

Linux? (Question) #156

Open therealOri opened 3 years ago

therealOri commented 3 years ago

I use linux and was wondering if there will be a version that works for linux gamers/users?

I tried to use wine but that just breaks things and doesn't work at all and leaves me to making a windows10 VM JUST to use gibbed.

If developing a version for linux as a project isn't going to happen..Do you or anyone else know of an alternative? (that either works with wine or just works with linux. (I use manjaro/arch).

(off topic) PS: I'd play BL3 but that game just feels worse than BL2 and BL1. I like feeling like a badass vaulthunter looking for loot on planets, etc. Not some side character in a bigger story that honestly feels meh. So that's why I am asking this question and why I'm back to BL2.

GenocideStomper commented 3 years ago

Hi, I just got it working with wine. The clue is that you need to install dotnet40 into your wine prefix via winetricks.

Here's what I did to get it to run:

  1. WINEARCH=win32 WINEPREFIX=/home/YOURUSER/Downloads/bl2-gibbed/winePrefixBL2Gibbed wine /home/YOURUSER/Downloads/bl2-gibbed/Gibbed.Borderlands2.SaveEdit.exe (command perhaps not needed, I just use it to create the prefix)
  2. WINEARCH=win32 WINEPREFIX=/home/YOURUSER/Downloads/bl2-gibbed/winePrefixBL2Gibbed winetricks dotnet40
  3. WINEARCH=win32 WINEPREFIX=/home/YOURUSER/Downloads/bl2-gibbed/winePrefixBL2Gibbed wine /home/YOURUSER/Downloads/bl2-gibbed/Gibbed.Borderlands2.SaveEdit.exe

Hope this helps you. Of course you need to change the paths to your liking. I like to put the wine prefix next to the application. I would also recommend creating a symbolic link or mount to your '/steamapps/compatdata/49520/pfx/drive_c/users/steamuser/My Documents/my games/borderlands 2/willowgame/' in the Documents, so that you can access it easily.

danielw1990 commented 1 year ago

I did a quick test too and concluded that WPF seems to be the problem. At least at first glance and I did not look any deeper.

Steps to reproduce: run it with mono

mono Gibbed.Borderlands2.SaveEdit.exe 
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
File name: 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
File name: 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
MountainMan1312 commented 9 months ago

Not sure if this is any help for non-steam users, but GE Proton seems to be able to run Gibbed.Borderlands2.SaveEdit.exe just fine right out of the zip archive. For steam users, just add that .exe as a non-steam game and set compatibility to GE-proton.