#Linux Guide?/How to install?

113 messages · Page 1 of 1 (latest)

rigid knot
#

Apologies for creating a new post but with Cultivation now supporting Linux, I've been really trying to get it working. I'm absolutely new to linux though and i'm not quite sure how to install Cultivation through there.

gloomy steeple
#

@rigid knot Have you figured this out yet? I just got it running on Arch myself after a few workarounds, so I'd be up for giving a rundown if you need, since exisiting install instructions don't cover everything that needs to be done for Linux.

rigid knot
#

id love that, i havent gotten it figured out on my own yet

gloomy steeple
#

Got it, which distro are you on?

rigid knot
#

im on SteamOS, so im not sure if itll be compatible with the workarounds ^^”

gloomy steeple
#

SteamOS is based on Arch so it shouldn't be a problem, but I don't have a Steam Deck, so I might not be able to help on Deck specific issues.

#

Can you use / do you have access to a terminal?

rigid knot
#

Yep!

gloomy steeple
#

This will open a window, click the download button in the top-right and download "Grasscutter All-in-One"

#

After that's done, we need to set the path to the game files, but the current Linux release has a bug where the game path can't be set via the GUI.

#

So close Cultivation and open this file in a text-editor: /home/$USER/.local/share/cultivation/configuration.json

#

In there, look for "game_install_path":. After the colon, add the absolute path to your GenshinImpact.exe with double quotation marks, for me this is "/home/haizen/.local/share/anime-game-launcher/Genshin Impact/GenshinImpact.exe"

#

Grasscutter also needs Java (pacman -S jdk-openjdk) and MongoDB. Do you have an AUR helper installed?

rigid knot
#

i dont think i do

gloomy steeple
#

Alright, run these commands one by one in a new terminal window
sudo pacman -S --needed base-devel git clone https://aur.archlinux.org/paru.git cd paru makepkg -si

#

It'll take a while, so let me know when done, we'll be using this to install MongoDB

gloomy steeple
#

When done, run paru -S --skipreview jdk-openjdk mongodb-bin to install Grasscutter dependencies

#

Note: Do not regularly use paru --skipreview unless you know what you're doing, it's bad practice. I suggest learning about the Arch User Repository and building from source later in your own time.

#

Add the following lines to /etc/hosts
# Genshin logging servers (do not remove!) 0.0.0.0 sg-public-data-api.hoyoverse.com 0.0.0.0 log-upload-os.hoyoverse.com 0.0.0.0 overseauspider.yuanshen.com
This will block Hoyo telemetry servers so Cultivation will work

#

You will need to edit the file with root permissions, one way is this command: sudo nano /etc/hosts

rigid knot
#

thank you so much

gloomy steeple
#

Now we need to run Grasscutter, this is also bugged in the Cultivation Linux release, so we need to do it manually.

#

Run sudo systemctl start mongodb then run cd /home/$USER/.local/share/cultivation/grasscutter and sudo java -jar grasscutter.jar

#

You need to run those two commands each time before you play and keep that terminal window open for as long as the game is running.

#

In that Grasscutter terminal window, run the following command account create [any username] [any UID above 10000], so for example account create haizen 10001

#

With all that done, open Cultivation again. Go to the settings and ensure that the checkboxes match these images:

#

Now launch the game through Cultivation:

#

Provided all went well, the game should open and take you to the title screen, and you should be able to log in using the username you set earlier and any password.

#

You'll know it's working if you see Welcome, [USERNAME]@grasscutter.io!

#

The game might not use your GPU and run slow at this point, but it should at least open. Ping me when done and let me know how it goes.

rigid knot
#

awesome, thanks again
i think its going to be a few days before i can update you, made a dumbass move and forgot my sudo password. sounds like i have to grab a usbc hub. this has been extremely helpful though

gloomy steeple
#

No worries, keep me posted

gloomy steeple
#

Forgot to mention, before running Grasscutter and creating your account, open this file /home/$USER/.local/share/cultivation/grasscutter/config.json and look for "questing":. Set this to "enabled": true or else newly created accounts will not be able to start any quests.
"questing": { "enabled": true },

clever river
#

This guide looks perfect, gonna try it out when I get home from work. Was having issues when launching through An Anime Game Launcher - had to tweak my runner and dxvk version to get it good - how would I do this for cultivation? Also running Arch

gloomy steeple
#

What I opted to do was run Cultivation with only the proxy, run the game my own way (Lutris, AAGL, etc) and manually redirect Wine's traffic to Cultivation's proxy.

#

Cultivation has a CLI that lets you launch just the proxy, but it's bugged in the current Linux release. You'll want to compile the source code from this branch: #1181758075640750120 message

#

After that, run the compiled Cultivation binary from a terminal with these flags: ./cultivation --no-gui --proxy. If it doesn't work, you may need to enable execute permissions with chmod +x ./cultivation

#

Once Grasscutter and Cultivation are both running separately, you'll need to set the http_proxy and https_proxy environment variables to 127.0.0.1:8035 for wine.

#

From a terminal it would look like this: http_proxy="127.0.0.1:8035" https_proxy="127.0.0.1:8035" $WINE GenshinImpact.exe. Where $WINE is the path to your wine binary.

#

For AAGL, you'd want to set these vars in the settings: Settings > Enhancements > Environment

#

Currently, the above method needs to be done anyway if you plan on using Akebi/3DMigoto/ReShade etc.

#

To compile the source code, run these commands:
sudo pacman -S git nodejs yarn rust git clone https://github.com/NotThorny/Cultivation.git cd Cultivation yarn install && yarn build

#

The files you want will be under ./Cultivation/src-tauri/target/release/

gloomy steeple
clever river
#

sweet this looks great and thoughrough - ill get it setup when im home

#

might make a pr to the wiki so there is some actual linux documentation

gloomy steeple
#

I'm planning to write all this up in a cleaner way after running through any potential issues that might crop up here

clever river
#

yeah i'll send any issues I get your way then

clever river
#

okay everything running smoothly except having issues running the complied fork of cultivation

#

without the --no-gui or --proxy flag it runs as expected, however here is the error I get when adding the flag

gloomy steeple
#

Weird, that's the bug the Fixes branch was supposed to remove

clever river
#

yeah

#

I was reading through the other thread you linked as well

gloomy steeple
#

Would you be open to compiling a copy of the archive I have?

clever river
#

is your cultivation thorny also 1.2.3?

gloomy steeple
#

yep

#

Though I suspect the version number wouldn't be updated with commits on this branch

clever river
#

what exactly does the --proxy flag do?

gloomy steeple
#

--proxy Is what redirects the game traffic to a Grasscutter or Private server

clever river
#

without the flag does the proxy start when the game is launched through cultivation?

gloomy steeple
#

If you launch it through the GUI, yes.

clever river
#

ah

#

here with no gui it says it is disconnecting from the proxy even without the proxy flag

gloomy steeple
#

That might just be a stock shutdown message, let me test

clever river
#

yeah I tested running from an anime launcher and no connection with running only --no-gui

gloomy steeple
#

Just compiled again and it works fine for me, might be a file access issue (os error 2)

#

I've had that happen randomly with Cultivation too

clever river
#

that would make sense

#

I am compliling again now too

gloomy steeple
#

Try sudo -c $USER ./cultivation --no-gui --proxy ?

clever river
#

yeah smart lemme try that

#

same

gloomy steeple
#

Does this or the regular release work for you, launching through GUI?

clever river
#

both do

gloomy steeple
#

From what I understand the Linux PR uses AAGL to launch the game, so you might already be good to play, but getting 3DM working might be another matter.

clever river
#

wait I might be dumb npm was a version behind I updated and am rebuilding

#

hmm still issues

#

might have to figure it out tomorrow I am tired

gloomy steeple
#

I'm out of ideas, but maybe try launching the GUI once as sudo, then close and try the proxy again?

#

To be honest, I had this same error before and I have no idea what fixed it

clever river
#

weird

#

ill lyk if I have any breakthroughs

gloomy steeple
#

Good luck, I'm stumped

modest sapphire
#

Hi! I'm trying to setup everything on Arch Linux, but github repo says I should install 4.0.x version of the game. Can I choose other versions? For example, 1.0.0

dark girder
#

Earliest Grasscutter versions only go to 2.2-2.4 area. That of course means fewer implementations when you go back that far. Any versions earlier than that have no Grasscutter, period

modest sapphire
dark girder
#

You go back in versions and things get more stable but less overall will be implemented

#

Newest version if you want the most stuff to be implemented

modest sapphire
#

I mean, which version is the best to run it through grasscutter?

#

starting from 3.0?

dark girder
#

Use the latest available version, 4.0, if you want the most stuff to be implemented. Go back in versions if you want it to be more stable but don't mind there not being as much stuff that works at all

modest sapphire
dark girder
#

No need to compile it yourself but you can if you'd like

gloomy steeple
modest sapphire
modest sapphire
#

Looks like my libs are too new for appimage, trying to create links

modest sapphire
modest sapphire
modest sapphire
dark girder
#

That is correct, 1.7.4 only supports 4.0

#

If you want an earlier version then you have to use an earlier version of Grasscutter, that's the whole reason I said there's less implemented