#Linux Guide?/How to install?
113 messages · Page 1 of 1 (latest)
@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.
id love that, i havent gotten it figured out on my own yet
Got it, which distro are you on?
im on SteamOS, so im not sure if itll be compatible with the workarounds ^^”
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?
Yep!
Great, so first grab cultivation_1.2.0_amd64.zip from here https://github.com/Grasscutters/Cultivation/releases/tag/v1.2.0-alpha, extract and run the cultivation file inside.
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?
i dont think i do
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
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
thank you so much
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.
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
No worries, keep me posted
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 },
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
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/
Edited this, grasscutter.jar attempts to read configs from $PWD so you must cd into the Grasscutter folder before running it.
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
I'm planning to write all this up in a cleaner way after running through any potential issues that might crop up here
yeah i'll send any issues I get your way then
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
Weird, that's the bug the Fixes branch was supposed to remove
Would you be open to compiling a copy of the archive I have?
is your cultivation thorny also 1.2.3?
yep
Though I suspect the version number wouldn't be updated with commits on this branch
what exactly does the --proxy flag do?
yeah true
--proxy Is what redirects the game traffic to a Grasscutter or Private server
without the flag does the proxy start when the game is launched through cultivation?
If you launch it through the GUI, yes.
ah
here with no gui it says it is disconnecting from the proxy even without the proxy flag
That might just be a stock shutdown message, let me test
yeah I tested running from an anime launcher and no connection with running only --no-gui
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
Try sudo -c $USER ./cultivation --no-gui --proxy ?
Does this or the regular release work for you, launching through GUI?
both do
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.
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
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
Good luck, I'm stumped
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
Sure, but you can't use them with Grasscutter
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
so, which version is the best one?
There is no "best" version. It's up to whatever you want to play
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
I mean, which version is the best to run it through grasscutter?
starting from 3.0?
Yes, there is no "best" version to use. It's up to what you want to do. The further back you go, the more stable things will be - but the less stuff will be available/implemented.
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
Thanks! Also, do I need to compile NotThorny version of Cultivation?
No need to compile it yourself but you can if you'd like
I'd recommend NotThorny, the main build has some issues on Linux that I use NotThorny to workaround, as mentioned above.
Releases contain only windows versions, tried to compile it by myself, but there are errors from yarn:
Looks like my libs are too new for appimage, trying to create links
When I try to launch the game, I get "Failed to open file: No such file or directory (os error 2)" error
Never mind, the original Cultivation works, but the NotThorny version is a broken trash
Liar, the grasscutter 1.7.4 supports only 4.0.0 version