Recent Topics

Ads

[deprecated] RoR Under Linux

Problems installing or downloading the game? Check the Install Guide first.
Forum rules
READ THE INSTALL GUIDE BEFORE YOU POST IN THIS SUBFORUM.

The stickies exist to handle common queries. Save our time and yours by reading them first.

Thank you.
User avatar
bichka
Posts: 430

Re: [Guide] RoR Under Linux

Post#151 » Tue Oct 01, 2019 10:04 pm

my script for installation in 64bit Ubuntu :

Code: Select all

#!/bin/sh

_pref="$HOME/.war"

WINEARCH=win32 
WINEPREFIX="${_pref}"

export WINEARCH
export WINEPREFIX

rm -rf "${_pref}"
wine wineboot

winetricks corefonts
winetricks comctl32ocx
winetricks comctl32
winetricks comdlg32ocx
winetricks vcrun2012
winetricks d3dx9
winetricks directx9
winetricks d3dx9_36
winetricks dotnet40

echo 'Hardlinking Game...'
cd
cp -al 'Games/WAR' "${_pref}/drive_c/"
echo 'Done.'

winecfg
working copy of game is placed in ~/Games/WAR
so i always can completely clean wine instalation (or even few of them for different wine versions) and reinstall it

hardlinking works very fast and almost don't consume space. While you always have something to roll back

Script for running :

Code: Select all

#!/bin/sh

cd "$HOME/.war/drive_c/WAR"
export STAGING_SHARED_MEMORY=1
export STAGING_RT_PRIORITY_SERVER=90
export STAGING_RT_PRIORITY_BASE=90
export CSMT=enabled
export WINEDEBUG=-all 

WINEARCH=win32 WINEPREFIX=~/.war wine 'RoRLauncher.exe'

Ads
User avatar
wdesu
Posts: 66

Re: [Guide] RoR Under Linux

Post#152 » Wed Oct 16, 2019 11:39 pm

bichka wrote: Tue Oct 01, 2019 10:04 pm my script for installation in 64bit Ubuntu :
...
Thank you, very cool!
I made a Lutris script based on your scripts. It can be installed with

Code: Select all

lutris -i ror.yaml
(assuming you save it as 'ror.yaml').

It asks for a game folder that you downloaded using torrent (or just an existing game folder), copies it to a new wine prefix and sets up the prefix.

It's easy to modify it to download RoRInstaller.exe from the site and install everything without requiring the user to download the game separately using torrent but testing it is a pain (don't want to wait until RoRInstaller.exe downloads everything. And I think most people prefer to torrent the game too anyway).

Code: Select all

# Install with:
#     lutris -i ror.yaml
# Lutris looks for the script in the home directory if path is relative.
# To install a script from the current folder:
#     lutris -i $PWD/ror.yaml
#
#
# replace 'merge:' with 'move:' if you want to move the game to the prefix
# instead of copying it
#
# Reference: https://github.com/lutris/lutris/blob/master/docs/installers.rst

name: Return of Reckoning
game_slug: return-of-reckoning
version: I have a game folder. Set up Wine prefix and copy my game there
# NOTE: 'version' is probably not the right place for that but it looks fine in the GUI
slug: return-of-reckoning-torrent
runner: wine

script:
    game:
        exe: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning/RoRLauncher.exe
        prefix: $GAMEDIR/prefix
        working_dir: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning
    installer:
        - insert-disc:
              message: Please provide a path to your game folder (it should contain RoRLauncher.exe).
              requires: RoRLauncher.exe
        - merge:
              src: $DISC
              dst: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning
        - task:
              arch: win64
              description: Creating Wine prefix
              name: create_prefix
              prefix: $GAMEDIR/prefix
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: corefonts
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comctl32ocx
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comctl32
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comdlg32ocx
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: vcrun2012
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: d3dx9
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: directx9
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: d3dx9_36
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: dotnet40
    wine:
        Desktop: false
        WineDesktop: 1024x768
    system:
        terminal: false
        env:
            WINEARCH: win64
            WINEDEBUG: -all
            STAGING_SHARED_MEMORY: 1
            STAGING_RT_PRIORITY_SERVER: 90
            STAGING_RT_PRIORITY_BASE: 90
            CSMT: enabled
            WINEDLLOVERRIDES: winemenubuilder.exe=d d3d11=
            WINEPREFIX: $GAMEDIR/prefix
Spoiler:
I don't know why I did it though, Lutris is bloat.
Upd: note that currently (2019-10-17) release version of Lutris has a bug that prevents installing games from local scripts. git version works fine. https://github.com/lutris/lutris/issues/2333
Upd2: i'll put the scripts along with a readme into my ui repo https://gitlab.com/cupnoodles14/war-ui/ ... ter/lutris
Last edited by wdesu on Tue Nov 19, 2019 5:15 am, edited 1 time in total.

Polarpex
Posts: 1

Re: [Guide] RoR Under Linux

Post#153 » Sat Oct 26, 2019 1:43 am

wdesu wrote: Wed Oct 16, 2019 11:39 pm
bichka wrote: Tue Oct 01, 2019 10:04 pm my script for installation in 64bit Ubuntu :
...
Thank you, very cool!
I made a Lutris script based on your scripts. It can be installed with

Code: Select all

lutris -i ror.yaml
(assuming you save it as 'ror.yaml').

It asks for a game folder that you downloaded using torrent (or just an existing game folder), copies it to a new wine prefix and sets up the prefix.

It's easy to modify it to download RoRInstaller.exe from the site and install everything without requiring the user to download the game separately using torrent but testing it is a pain (don't want to wait until RoRInstaller.exe downloads everything. And I think most people prefer to torrent the game too anyway).

Code: Select all

# Install with:
#     lutris -i ror.yaml
# Lutris looks for the script in the home directory if path is relative.
# To install a script from the current folder:
#     lutris -i $PWD/ror.yaml
#
#
# replace 'merge:' with 'move:' if you want to move the game to the prefix
# instead of copying it
#
# Reference: https://github.com/lutris/lutris/blob/master/docs/installers.rst

name: Return of Reckoning
game_slug: return-of-reckoning
version: I have a game folder. Set up Wine prefix and copy my game there
# NOTE: 'version' is probably not the right place for that but it looks fine in the GUI
slug: return-of-reckoning-torrent
runner: wine

script:
    game:
        exe: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning/RoRLauncher.exe
        prefix: $GAMEDIR/prefix
        working_dir: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning
    installer:
        - insert-disc:
              message: Please provide a path to your game folder (it should contain RoRLauncher.exe).
              requires: RoRLauncher.exe
        - merge:
              src: $DISC
              dst: $GAMEDIR/prefix/drive_c/Program Files (x86)/Return of Reckoning
        - task:
              arch: win64
              description: Creating Wine prefix
              name: create_prefix
              prefix: $GAMEDIR/prefix
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: corefonts
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comctl32ocx
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comctl32
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: comdlg32ocx
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: vcrun2012
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: d3dx9
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: directx9
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: d3dx9_36
        - task:
              name: winetricks
              prefix: $GAMEDIR/prefix
              app: dotnet40
    wine:
        Desktop: false
        WineDesktop: 1024x768
    system:
        terminal: false
        env:
            WINEARCH: win64
            WINEDEBUG: -all
            STAGING_SHARED_MEMORY: 1
            STAGING_RT_PRIORITY_SERVER: 90
            STAGING_RT_PRIORITY_BASE: 90
            CSMT: enabled
            WINEDLLOVERRIDES: winemenubuilder.exe=d d3d11=
            WINEPREFIX: $GAMEDIR/prefix
Spoiler:
I don't know why I did it though, Lutris is bloat.
(Upd: note that currently (2019-10-17) release version of Lutris has a bug that prevents installing games from local scripts. git version works fine.)
Nice! New player here and used bichka's scripts to install and run the game. I prefer to put all my non steam games in lutris so I will keep your .yml till the fix for local script install is pushed out :)

Koltyr
Posts: 1

Re: [Guide] RoR Under Linux

Post#154 » Tue Nov 05, 2019 5:37 pm

Hey o/, just a small message to thank you all for the researches and the scripts. It helps a lot !

Linux shall prevail !

User avatar
xpander
Community Management
Posts: 727
Contact:

Re: [Guide] RoR Under Linux

Post#155 » Wed Nov 13, 2019 9:08 am

You dont need that many dll's :) just

Code: Select all

winetricks dotnet40 d3dx9_34
then D9VK and you are golden

Maybe corefonts if you dont have enough fonts installed into your system

still the overly bright groundtexture issue is present. disabling specular from game settings and restarting the game makes it a bit better, doesnt glitch the reflections on the distance.

NOTE! if you also have wine build with fsync and your kernel is built with fsync, performance is really really good, no stutters and game is running at the engine cap of 100FPS pretty much constantly
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

User avatar
Jagrfel
Posts: 11

Re: [Guide] RoR Under Linux

Post#156 » Sun Nov 17, 2019 11:59 am

Hello and thanks for all the info you provide and help us.I tried everything you wrote in the guide but could not make launcher to start .I have some knowledge with linux but never used wine.Is there somewhere a simple step by step guide or someone explain to me or is it so much to ask ?

User avatar
xpander
Community Management
Posts: 727
Contact:

Re: [Guide] RoR Under Linux

Post#157 » Mon Nov 18, 2019 4:31 pm

explain where you got stuck? start things from terminal to see what messages it throws up etc.

Theres a lutris script here at the comment Post#153 so try this if you are not familiar with configuring wine manually
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

sigz
Posts: 12

Re: [Guide] RoR Under Linux

Post#158 » Mon Dec 16, 2019 5:01 pm

With dxvk (which includes d9vk now), the launcher's window displays black. I can still click throught, the game works, but the launcher is always black... Any idea about that ?

Ads
User avatar
kaela
Posts: 43

Re: [Guide] RoR Under Linux

Post#159 » Mon Dec 16, 2019 8:57 pm

Please excuse me for hijacking but any chance of running RoR under OSX (except using VMware/Parallels)?
Happy Holidays

User avatar
xpander
Community Management
Posts: 727
Contact:

Re: [Guide] RoR Under Linux

Post#160 » Tue Dec 17, 2019 6:57 pm

sigz wrote: Mon Dec 16, 2019 5:01 pm With dxvk (which includes d9vk now), the launcher's window displays black. I can still click throught, the game works, but the launcher is always black... Any idea about that ?
its black for me also, but only on my left monitor, if its on the right monitor then its rendering fine. I have no idea why its doing that.

i think it might be something to do with the DXVK_HUD. Maybe... havent tested without yet
Helpful links:

Install guide for Linux
Install guide for Windows
Offical RoR Discord

AUR package for WARAddonClient

-------------------------------------------------------------------
My Linux Gaming Videos

Who is online

Users browsing this forum: No registered users and 26 guests