Coder Social home page Coder Social logo

mf-installcab's Introduction

December 2020 Notice

This may be broken with prefixes created with Proton 5.13, due to permission issues with how they symlink dll files.

May 2020 Notice

For many games this script is not needed anymore, and may soon not be needed at all.

This is largely thanks to work Guy1524 has done in officially implementing Media Foundation support into Wine. I would reccommend trying games with latest Proton-GE first, and only using this as a backup.

mf-installcab

Installcab based Media Foundation workaround for Wine

Just set WINEPREFIX and run install-mf-64.sh like this

WINEPREFIX="/dev/brain/wine prefixes can be anywhere/folder" ./install-mf-64.sh

Then copy the included mfplat.dll to the same directory as the .exe (e.g. re2.exe)

Steam stores Proton Wine prefixes as <STEAM FOLDER>/steamapps/compatdata/<GAME ID>/pfx

Optionally you can use Proton's Wine instead of your system's Wine. See script for how.

installcab.py is the same as upstream with very small differences (https://github.com/tonix64/python-installcab/blob/master/installcab.py)

Dependencies

  • python
  • cabextract
  • wine (optional if proton used)

mf-installcab's People

Contributors

beltegeuse avatar datbird avatar galcian79 avatar laichiaheng avatar nenderus avatar patola avatar soredake avatar vladimir-a avatar z0z0z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mf-installcab's Issues

Python error when running install-mf-64

I am having a similar error to #3 but installing cabextract has not helped. I am running Debian Sid if that helps.
Here is the output of running WINEPREFIX="/home/user/.steam-firejail/.steam/debian-installation/steamapps/compatdata/397540/pfx" ./install-mf-64.sh

mediafoundation
- amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4.manifest (win64)
- wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf.manifest (wow64)
- mf.dll -> /home/henry/.steam-firejail/.steam/debian-installation/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
- mfps.dll -> /home/henry/.steam-firejail/.steam/debian-installation/steamapps/compatdata/397540/pfx/drive_c/windows/system32
- mf.dll -> /home/henry/.steam-firejail/.steam/debian-installation/steamapps/compatdata/397540/pfx/drive_c/windows/system32
Traceback (most recent call last):
  File "installcab.py", line 304, in <module>
    process_files(output_files)
  File "installcab.py", line 245, in process_files
    install_regfile(tmpdir, file_path+".reg", arch)
  File "installcab.py", line 225, in install_regfile
    subprocess.call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Any ideas?

Update the Documentation

The documentation could use a little clarification regarding installation of this installer script. Specifically, you should mention that users need to launch the game first as that's what actually creates the "/home/user-name/.steam/steam/steamapps/compatdata/883710/pfx" directory. I spent a good 15 minutes almost ripping my hair out before I figured this out lol. I made the mistake of downloading RE2 from Steam and then trying to install this script before actually launching the game. Just a heads up, keep up the good work!

Connection timed out

So im trying to get borderlands 3 working but it gives me this:

Connecting to ak.or.download.microsoft.com (ak.or.download.microsoft.com)|13.106.129.111|:80... failed: Connection timed out.
Retrying.

IOError: [Errno 13] Permission denied: '[...]/397540/pfx/drive_c/windows/syswow64/mf.dll'

Trying to install for BL3 I get this Permission denied error, I assume trying to copy mf.dll into syswow64

- mf.dll -> /mnt/f/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
Traceback (most recent call last):
  File "installcab.py", line 319, in <module>
    process_files(output_files)
  File "installcab.py", line 257, in process_files
    install_dll(file_path)
  File "installcab.py", line 231, in install_dll
    shutil.copy(dll_path, dest_dir)
  File "/usr/lib/python2.7/shutil.py", line 139, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/mnt/f/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64/mf.dll'

The file exists after this error, I don't know if it should exist or not. There are no permissions issues with the file: it's -rw-rw-r-- (664)

Fix Broken on Resident Evil 2.

I have no idea if this has anything to do with Resident Evil 2 removing Denuvo, like idk if they changed anything else, but it seems now that this is broken for RE2. I got about 10 hours in-game with everything working perfectly, then I quit playing for a couple weeks and came back after they updated the game and removed Denuvo. Now, it crashes instantly, this is reproducible by going to the sewer where you put the VHS cassette in the VHS player and it plays the video. It crashes every time, at the same spot (where they call him a freak). And in the steam logs, you get this: 10440.892:0031:006c:trace:seh:call_teb_handler handler at 0x7bce09a0 returned 1 10440.892:0031:006c:warn:seh:call_stack_handlers exception data not found in L"MFPlat.DLL" Unhandled exception: page fault on read access to 0x738a814d1c8 in 64-bit code (0x000007ff6ba51649).

mf-install is ok, but I can't do the mf-installcab

Hey guys, I need some help. The first part runs ok, but when I try the second part ("WINEPREFIX="/home/ryanj/.local/share/Steam/steamapps/compatdata/397540/pfx" ./install-mf-64.sh") it returns this:

mediafoundation
Traceback (most recent call last):
File "installcab.py", line 318, in
output_files = extract_from_installer(cabfile, tmpdir, component)
File "installcab.py", line 207, in extract_from_installer
subprocess.check_output(cmd)
File "/usr/lib/python2.7/subprocess.py", line 216, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

can anyone help me please, I don't understand linux stuff very well

PS: my machine is an Ubuntu 18.04.5 LTS

Windows File error

If you get an error such as the following:
mediafoundation
windows6.1-KB976932-X64.exe: no valid cabinets found
Traceback (most recent call last):
File "installcab.py", line 318, in
output_files = extract_from_installer(cabfile, tmpdir, component)
File "installcab.py", line 207, in extract_from_installer
subprocess.check_output(cmd)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['cabextract', '-F', 'mediafoundation', '-d', '/tmp/tmpbbNKZF', 'windows6.1-KB976932-X64.exe']' returned non-zero exit status 1

Simply delete the Windows file and restart the script. I don't understand code but in essence, the file is corrupted.

Error installing to secondary hard drive

I run these commands:

cd /home/jam/mf-installcab
PROTON="/mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/common/Proton 5.13" 
WINEPREFIX="/mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx" ./install-mf-64.sh

And get these error message - it looks like its because RE2 is installed to an external hard drive.

jam@jam-ncase:~/mf-installcab$ WINEPREFIX="/mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx" ./install-mf-64.sh
mediafoundation
- amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4.manifest (win64)
- wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf.manifest (wow64)
- mf.dll -> /mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
- mf.dll -> /mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
- mfps.dll -> /mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
Traceback (most recent call last):
  File "installcab.py", line 319, in <module>
    process_files(output_files)
  File "installcab.py", line 257, in process_files
    install_dll(file_path)
  File "installcab.py", line 231, in install_dll
    shutil.copy(dll_path, dest_dir)
  File "/usr/lib/python2.7/shutil.py", line 139, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/mnt/559f7880-d781-443c-9259-daf9831d710a/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32/mfps.dll'

I've tried running the same command with sudo I get a lot of xyz is not owned by you.

Is there a work-around?

I cant reinstall this after having cancelled a previous download

so I tried to install this with the command

]$ sudo WINEPREFIX="/media/DocumentosEXT4/SteamLibrary/steamapps/compatdata/462780/pfx/" ./install-mf-64.sh

and it worked, but I cancedded the download.

Now I rebooted the pc, tried again, and now I cant. It says:

pc mf-installcab-master]$ sudo WINEPREFIX="/media/DocumentosEXT4/SteamLibrary/steamapps/compatdata/462780/pfx/" ./install-mf-64.sh mediafoundation windows6.1-KB976932-X64.exe: no valid cabinets found Traceback (most recent call last): File "installcab.py", line 304, in <module> output_files = extract_from_installer(cabfile, tmpdir, component) File "installcab.py", line 193, in extract_from_installer subprocess.check_output(cmd) File "/usr/lib/python2.7/subprocess.py", line 223, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['cabextract', '-F', '*mediafoundation*', '-d', '/tmp/tmppJwCcA', 'windows6.1-KB976932-X64.exe']' returned non-zero exit status 1

RE2 crashes on loading or loads infinitely

I have no idea how you managed to get this to run. Following the steps outlined in the readme, I compiled it and placed the library mfplat.dll into the game's directory (where re2.exe is located). Game starts, but crashes after the first truck cutscene. I was able to load a game from after this cutscene (gas station), but game loads infinitely after escaping.

I am running Gentoo linux btw. Cabeextract is installed, and python 3.6.10 is in use.

When running install-mf-64.sh, I get many errors, apparently the shell script is trying to access folders that do not exit.

`$ PROTON="$HOME/.local/share/Steam/steamapps/common/Proton 5.0" WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/883710/pfx" ./install-mf-64.sh -proton
--2020-03-28 22:30:46-- https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X64.exe
Resolving download.microsoft.com... 2a02:26f0:12d:3a6::e59, 2a02:26f0:12d:3b2::e59, 2.18.68.170
Connecting to download.microsoft.com|2a02:26f0:12d:3a6::e59|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 947070088 (903M) [application/octet-stream]
Saving to: ‘windows6.1-KB976932-X64.exe’

windows6.1-KB976932-X64.exe 100%[==========================================================>] 903,20M 9,63MB/s in 94s

2020-03-28 22:32:20 (9,59 MB/s) - ‘windows6.1-KB976932-X64.exe’ saved [947070088/947070088]

mediafoundation

  • amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4.manifest (win64)
  • wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf.manifest (wow64)
  • mf.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • mfps.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • mf.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    mf
  • amd64_microsoft-windows-mf_31bf3856ad364e35_6.1.7601.17514_none_ab34ec409a77d93c.manifest (win64)
  • wow64_microsoft-windows-mf_31bf3856ad364e35_6.1.7601.17514_none_b5899692ced89b37.manifest (wow64)
    mfreadwrite
  • amd64_microsoft-windows-mfreadwrite_31bf3856ad364e35_6.1.7601.17514_none_177bed732ea3f85f.manifest (win64)
  • wow64_microsoft-windows-mfreadwrite_31bf3856ad364e35_6.1.7601.17514_none_21d097c56304ba5a.manifest (wow64)
  • mfreadwrite.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • mfreadwrite.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wmadmod
  • amd64_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_e474f0ac34979bc4.manifest (win64)
  • x86_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_885655287c3a2a8e.manifest (win32)
  • wmadmod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • wmadmod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wmvdecod
  • amd64_microsoft-windows-wmvdecod_31bf3856ad364e35_6.1.7601.17514_none_20b089c0f6efacae.manifest (win64)
  • x86_microsoft-windows-wmvdecod_31bf3856ad364e35_6.1.7601.17514_none_c491ee3d3e923b78.manifest (win32)
  • wmvdecod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • wmvdecod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    wmadmod
  • amd64_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_e474f0ac34979bc4.manifest (win64)
  • x86_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_885655287c3a2a8e.manifest (win32)
  • wmadmod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/system32
  • wmadmod.dll -> /home/yuki/.local/share/Steam/steamapps/compatdata/883710/pfx/drive_c/windows/syswow64
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114
    0012:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0!
    wineserver: using server-side synchronization.
    0019:err:module:load_so_dll failed to load .so lib "/home/yuki/.local/share/Steam/steamapps/common/Proton 5.0/dist/bin/../lib64/wine/winebus.sys.so": libudev.so.0: cannot open shared object file: No such file or directory
    0019:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebus": c0000142
    000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1114

Now you need to get mfplat.dll in your application directory`

wineprefix

Sorry but where should point the prefix? To the local files of the game in question or the specific compatdata/883710 because if it's the latter then it doesn't exist.

Python error

Hey there! It's not working in my sistem. It downloaded the .exe file but this is the output:

mediafoundation
Traceback (most recent call last):
  File "installcab.py", line 304, in <module>
    output_files = extract_from_installer(cabfile, tmpdir, component)
  File "installcab.py", line 193, in extract_from_installer
    subprocess.check_output(cmd)
  File "/usr/lib64/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

The wineprefix is setted right, the game has been started at least once so the directory is created, but I don't know why is failing.
I'm on a Fedora Workstation 30.

mf.dll is a symlink

lrwxrwxrwx 1 hugh hugh      76 Dec  5 23:58 mf.dll -> /home/hugh/.steam/compatibilitytools.d/Proton-5.21-GE-1/dist/lib/wine/mf.dll

The upshot is that it cannot be modified and I get a Permission denied error:

$ WINEPREFIX=/mnt/f/steamapps/compatdata/397540/pfx ./install-mf-64.sh 
mediafoundation
- wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf.manifest (wow64)
- amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4.manifest (win64)
- mf.dll -> /mnt/f/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
Traceback (most recent call last):
  File "installcab.py", line 319, in <module>
    process_files(output_files)
  File "installcab.py", line 257, in process_files
    install_dll(file_path)
  File "installcab.py", line 231, in install_dll
    shutil.copy(dll_path, dest_dir)
  File "/usr/lib/python2.7/shutil.py", line 139, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/mnt/f/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64/mf.dll'

Borderlands 3 mf-installcab errors

Hi there,

Thanks for your efforts. Your solution seems to work for most people. I have the classic "watch the monitor" lock in borderlands 3, where I need to see a movie that doesnt show (I cant see lilith either).
Your scripts come highly recommended and I followed your reddit post. mf-install works for, which is brilliant. mf-installcab fails in particular way. The print out of the terminal is:

(base) username@thor:~/Downloads/mf-installcab-master$ WINEPREFIX="/home/username/.local/share/Steam/steamapps/compatdata/397540/pfx" ./install-mf-64.sh 
mediafoundation
- wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf.manifest (wow64)
- amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4.manifest (win64)
- mf.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
- mf.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
- mfps.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
mf
- wow64_microsoft-windows-mf_31bf3856ad364e35_6.1.7601.17514_none_b5899692ced89b37.manifest (wow64)
- amd64_microsoft-windows-mf_31bf3856ad364e35_6.1.7601.17514_none_ab34ec409a77d93c.manifest (win64)
mfreadwrite
- wow64_microsoft-windows-mfreadwrite_31bf3856ad364e35_6.1.7601.17514_none_21d097c56304ba5a.manifest (wow64)
- amd64_microsoft-windows-mfreadwrite_31bf3856ad364e35_6.1.7601.17514_none_177bed732ea3f85f.manifest (win64)
- mfreadwrite.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
- mfreadwrite.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
wmadmod
- x86_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_885655287c3a2a8e.manifest (win32)
- amd64_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_e474f0ac34979bc4.manifest (win64)
- wmadmod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
- wmadmod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
wmvdecod
- x86_microsoft-windows-wmvdecod_31bf3856ad364e35_6.1.7601.17514_none_c491ee3d3e923b78.manifest (win32)
- amd64_microsoft-windows-wmvdecod_31bf3856ad364e35_6.1.7601.17514_none_20b089c0f6efacae.manifest (win64)
- wmvdecod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
- wmvdecod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
wmadmod
- x86_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_885655287c3a2a8e.manifest (win32)
- amd64_microsoft-windows-wmadmod_31bf3856ad364e35_6.1.7601.17514_none_e474f0ac34979bc4.manifest (win64)
- wmadmod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/system32
- wmadmod.dll -> /home/username/.local/share/Steam/steamapps/compatdata/397540/pfx/drive_c/windows/syswow64
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
-e 
Now you need to get mfplat.dll in your application directory

I run Borderlands 3 on Ubuntu 20.10, with Steam, on Proton 5.13 (other versions of proton didnt work me). I had to install vulkan-tools, wine and winetricks to get as far as I have. Naturally I have placed the mfplat.dll in the directory as displayed in your youtube clip. I noticed that some other users had to replace the mfplat.dll; In my directory of the game there was nothing to replace it with, so I just copied it.

EDIT: I use nVidia driver 460.32.03

What to do?

The script doesn't run as user or root

Hi. I trying to run ./install-mf-64.sh on Fedora, but it doesn't work. If I try as user mode, I don't have permission and if I try to run as root, the command has not found.

Python Error: Missing module

Traceback (most recent call last):
File "installcab.py", line 8, in
import xml.etree.ElementTree
ImportError: No module named xml.etree.ElementTree

This is the error that I receive when using the script. I'm not sure how to resolve it. I'm on openSUSE Tumbleweed.

Command '['cabextract', '-F', '*mediafoundation*', '-d', '/tmp/tmpkklyyghe', 'windows6.1 ... .exe']' returned non-zero exit status 1.

After setting PROTON and WINEPREFIX variables i run script ./install-mf-64.sh -proton but got the error:

arch-houston-ash% ./install-mf-64.sh -proton                                                                                              
mediafoundation
/tmp/tmpkklyyghe/wow64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_04d9defd57c1f6bf/mf.dll: No such file or directory
/tmp/tmpkklyyghe/amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4/mfps.dll: No such file or directory
/tmp/tmpkklyyghe/amd64_microsoft-windows-mediafoundation_31bf3856ad364e35_6.1.7601.17514_none_fa8534ab236134c4/mf.dll: No such file or directory
Traceback (most recent call last):
  File "/home/houston/Downloads/mf-installcab-master/installcab.py", line 320, in <module>
    output_files = extract_from_installer(cabfile, tmpdir, component)
  File "/home/houston/Downloads/mf-installcab-master/installcab.py", line 207, in extract_from_installer
    subprocess.check_output(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cabextract', '-F', '*mediafoundation*', '-d', '/tmp/tmpkklyyghe', 'windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe']' returned non-zero exit status 1.

I've tried to run just the command that returned status 1 and got the error description:

arch-houston-ash% cabextract -F *mediafoundation* -d /tmp/tmps4v9hw1v windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe
zsh: no matches found: *mediafoundation*

Having Issues Getting this to Work with "Not for Broadcast"

I've tried this both with regular Proton, and with GloriousEggroll's version 5.8-GE-1-MF.

The continuous issue is that the videos will not play (I have no issue with audio or FPS). I looked here on ProtonDB, and only 1 person was able to get it to run perfectly, using Proton. 2 others got it working, but poorly, using Lutris.

A couple things to note that may or may not help:

  • OS is Ubuntu 20.04 LTS
  • 16 GB RAM, 4-core Intel i7-4770 CPU @ 3.40GHz, Radeon RX 570 Series (Besides the OS, I otherwise meet base system requirements)
    ** One thing- AMD doesn't have a specific driver for Ubuntu 20, the one I am using is open source. This shouldn't (?) be an issue since everything else works fine, but I am mentioning it anyways

If anyone has any advice, let me know. I've tried:

  • Proton via Steam
  • Proton GE via Steam
  • Lutris
  • WINE all on its own (Black screen issues- I probably installed vulkan wrong with this one)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.