Giter Site home page Giter Site logo

cemu-linux's Introduction

Cemu in Linux

Steps to using Cemu with Wine works for any game!

Important links:

Features:

  • /shortcut/: steps to create a shortcut for Cemu in Linux.
  • README.md: steps to install Cemu, wine, drivers and some features.

Summary

  • Wine
    • Installing
    • Settings
      • Configuration
      • More features
  • Drivers
    • AMD or Intel Graphics
    • Nvidia
  • Cemu
    • Installing
    • Graphic Packs
    • Performace
  • Additions
    • Joystick
    • Play!
  • Cemu Bonus
    • Add Cemu shortcut
    • How to download updates and DLC
    • Improvement for Cemu

Wine

Installing

#- add apt key
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update

#- add wine official repository
$ sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
$ sudo apt-get update

#- install
$ sudo apt-get install --install-recommends winehq-stable

#- check version
$ wine --version

Settings

Open the settings:

#- open wine settings
$ winecfg

#- Application
# Select: Windows version: Windows 10
# Select: Apply and OK

Installing more features:

#- winetricks
$ sudo apt install winetricks

#- installing Microsoft Visual C++ 2015 or 2017 (choose only one)
$ bash winetricks vcrun2015
$ bash winetricks vcrun2017 # (recommended)

Drivers

AMD or Intel Graphics Technology:

$ sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
$ sudo apt update && sudo apt dist-upgrade
$ sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386

Nvidia:

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update && sudo apt install nvidia-driver-396

Cemu

Installing

#- open official link to down the last release
$ xdg-open http://cemu.info/#download

#- unzip the cemu
$ mkdir ~/cemu
$ unzip cemu_x.xx.x.zip -d ~/cemu
$ mv ~/cemu/cemu_x.xx.x/* ~/cemu/ # reorder files
$ rm ~/cemu/cemu_x.xx.x # remove blank folder

#- open cemu folder
$ cd ~/cemu

Graphic Packs

#- open official link to download the last release
$ xdg-open https://github.com/slashiee/cemu_graphic_packs/releases

#- Download graphic packs
# Extract files to: ~/cemu/graphicPacks/
$ unzip graphicPacksxxx.zip -d ~/cemu/graphicPacks/

Play with Performace

#- execute cemu
$ vblank_mode=0 mesa_glthread=true R600_DEBUG=nohyperz wine ~/cemu/Cemu.exe

#- Configuration by the menu
# Select: Options > GPU buffer cache accuracy > Low (fast)
# Select: CPU > Mode > Single-core recompiler (fast)

Additions

Joystick

#- installations
$ sudo apt-get install joystick
$ sudo apt-get install jstest-gtk

#- calibrate your joystick
$ jstest-gtk

Play with Performace

#- open cemu
$ cd ~/cemu

#- run
$ vblank_mode=0 mesa_glthread=true R600_DEBUG=nohyperz wine Cemu.exe

#- add a game
# Select file: (Menu) File > Install Update/DLC
# Launch to game folder ~ directories starting with 0005000C and 0005000E
# Open the file: [..]/0005000xxxxxxxxx/meta/meta.xml
# Show up: Updated with success!

#- running a game
# Select file: (Menu) File > Load
# Launch to game folder ~ directories starting with 0005000C and 0005000E
# Open the file: 0005000xxxxxxxxx/code/*.rpx # each game have your filename.rpx

Bonus

Cemu Shortcut

See /shortcut to add a Cemu shortcut.

Cemu Improvements

If you looking for improvements, new joysticks and so on.
Read about Cemuhook, some projects.


Also look ~

cemu-linux's People

Contributors

leomaurodesenv avatar ricksbrown 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

cemu-linux's Issues

Issue with installation of wine, winecfg, launching CEMU and Launching BOTW

Hi!
As promised I will detail the issues I uncovered following this guide. Most of which I managed to work around with some googling, but I will detail them nonetheless since it could be useful to other people.

Anyhow, the first bug occurred at the "sudo apt-get update" part:

Get:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6 257 B]
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease              
Err:1 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease          
Ign:7 http://packages.linuxmint.com tessa InRelease                      
Hit:8 http://packages.linuxmint.com tessa Release  
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I googled and found a line on stackoverflow that worked:
wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update

2ND issue occurred when launching winecfg:

wine: created the configuration directory '/home/USER/.wine'
0009:err:file:init_redirects cannot open L"C:\\windows" (c000000f)
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002

Wine asked me to install Mono and gecko and I did so when prompted. That made winecfg work

Third issue occurred when launching Cemu:

vblank_mode=0 mesa_glthread=true wine ~/cemu/Cemu.exe
002b:fixme:wbemprox:client_security_SetBlanket 0x7f513c127240, 0x4a10a0, 10, 0, (null), 3, 3, (nil), 0x00000000
002b:fixme:wbemprox:client_security_Release 0x7f513c127240
002b:fixme:wbemprox:enum_class_object_Next timeout not supported
002d:fixme:ver:GetCurrentPackageId (0x8eafdc0 (nil)): stub
002d:fixme:msg:ChangeWindowMessageFilter c055 00000001
002d:fixme:msg:ChangeWindowMessageFilter 111 00000001
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
002b:fixme:seh:RtlCaptureStackBackTrace (0, 40, 0x23edb0, (nil)) stub!
002b:err:seh:setup_exception stack overflow 640 bytes in thread 002b eip 0000000140743a08 esp 0000000000141398 stack 0x140000-0x141000-0x240000

It launched Cemu but these warnings are nonetheless worrying.
I tested if wine was properly installed by running "wine notepad", and that worked.

The next issue is the one which bothers me the most, because I haven't been able to fix it, and it doesn't let me play BOTW.

After having launched Cemu with the aforementioned error log, and after having installed BOTW E and C packages, I tried launching the .RPX file for BOTW. Cemu was then filled with a black screen alluding to the game launching (also updating the title to "Loading...") .That was not the case. After a few, perhaps 10, seconds, Cemu crashed with the following error.

wine: Unhandled page fault on read access to 0xffffffffffffffff at address 0x7bc58c7c (thread 0037), starting debugger...
Segmentation fault (core dumped)
Can't attach process 002a: error 5

I went to the internet and someone hinted to the fact that it might be trying to run a 64 bit program in 32 bit . I exported Wine to 64BIT (found another guide that did this) and then tried again. Now nothing would happen after launching BOTW. Not even a crash.

Hopefully you can help me with the last bit, because I think the other things are installed in such a way that it should work. It's just that cemu & Wine don't seem to mix very well.

System: Linux mint mate, 16GB ram, R9 390, I5 2500k

jstest-gtk is outdated and should not be used

Wine use SDL2 to handle joysticks, which also use new joysticks subsystem on linux. jstest-gtk is configuring an old one and will be useless at best and harmful at worst.

Sadly, there are no good calibration tools for new subsystem besides using evdev-joystick with evdev, which require some skills. Anyways, jstest-gtk is not useful.

Followed Guide, End Result After Launchung a Game

002d:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000092FD80
002c:fixme:wbemprox:client_security_SetBlanket 000000006775DD00, 0000000000683600, 10, 0, (null), 3, 3, 0000000000000000, 0x00000000
002c:fixme:wbemprox:client_security_Release 000000006775DD00
002c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0030:fixme:msg:ChangeWindowMessageFilter c055 00000001
0030:fixme:msg:ChangeWindowMessageFilter 111 00000001
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
dri_create_context: requested glthread but driver is missing backgroundCallable V2 extension
0030:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "llvmpipe (LLVM 6.0, 128 bits)").
0037:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithDataSegs
0037:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithHandleData

Please, help

0160:err:ole:CoUninitialize Mismatched CoUninitialize after starting game, but if I change graphics API to Vulkan, it returns error: Cannot create a Win32 Vulkan surface -9

GamePad view is black

Hello, so I just recently tried this tutorial out to play Super Mario 3D World on my laptop. It works really well, but there is an issue. For some reason, the GamePad screen isn't displaying anything. Any ideas?

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.