LunaGC-7.1.0 WIP
Note from the maintainer
Base 6.7 from girluh's LunaGC. The server is more stable now, but still expect many bugs.
Updated version of Grasscutters, with some new features implemented.
If you need help, please create an issue in this repository and I will try my best to help.
Features and functionality of the ps is not guaranteed, try it yourself to see what works and what doesnt (Most are broken). This is possibly the only public PS with updated mob and gadget spawns! (Up to Version 5.4)
Contribute if you want/can...
Read the handbook!
Setup Guide
- Read it below, its just enough to get the server up and running along with the client.
Main Requirements
- Get Java 17
- Get MongoDB Community Server
- Get NodeJS (For handbook generation)
- Get game version REL7.1.0
- Make sure to install java and set the environment variables.
- Build the server (refer to "Compile the actual server" in this guide.)
- Download the Resources, make a new folder called
resourcesin the downloaded LunaGC folder and then extract the resources in that new folder. - Set useEncryption, Questing and useInRouting to false (it should be false by default, if not then change it)
- Patch the game
- Start the server (you can use Cultivation or Fiddler) and the game (the client), make sure to also create an account in the LunaGC console (otherwise you cannot log in)!
- Have fun (or don't)
Patching the game
- Install Rust and Cargo (comes with rustup)
- Go to the
patch/folder (make sure you have cloned this repository with the--recurse-submodulesflag). If that folder is empty, rungit submodule update --initor clone animegamepatch yourself - Run
cargo build --releaseto build the DLLext.dllattarget/release - Inject the DLL into the game. You can do this by renaming the patch to
Astrolabe.dlland putting it in the game folder, next toGenshinImpact.exe.
Getting started
-
Clone the repository (install Git first )
git clone --recurse-submodules https://github.com/capyb2222/LunaGC.git -
Now you can continue with the steps below.
Compile the actual Server
Requirements:
Java Development Kit 17 | JDK or higher
-
Sidenote: Handbook generation may fail on some systems. To disable handbook generation, append
-PskipHandbook=1to thegradlew jarcommand. -
For Windows:
.\gradlew.bat .\gradlew.bat jar -
For Linux:
chmod +x gradlew ./gradlew ./gradlew jar
You can find the output JAR in the project root folder.
Manually compile the handbook
./gradlew generateHandbook
Gacha
All banners from 1.0 to 7.1 are supported. To change the banners, use the /banner command (use /banner list to list all the supported banner versions).
Artifact shop
You can buy artifacts (lvl 20) in Blanche's shop in Mondstadt. If you need Mora, you can use this command:
/give 202 x10000000
The odds are now close to the official server, so the stats should be more accurate now.
Troubleshooting
- Make sure to set useEncryption and useInRouting both to false otherwise you might encounter errors.
- To use windy make sure that you put your luac files in C:\Windy (make the folder if it doesnt exist)
- If you get an error related to MongoDB connection timeout, check if the mongodb service is running. On windows: Press windows key and r then type
services.msc, look for mongodb server and if it's not started then start it by right clicking on it and start. On linux, you can dosystemctl status mongodto see if it's running, if it isn't then typesystemctl start mongod. However, if you get error 14 on linux change the owner of the mongodb folder and the .sock file (sudo chown -R mongodb:mongodb /var/lib/mongodbandsudo chown mongodb:mongodb /tmp/mongodb-27017.sockthen try to start the service again.)
Credit
girluh's LunaGC
kitkat's patch
kitkat's proto
Terax for nt
Note
If you use code from this project, please credit capyb2222 somewhere in your project.
Support
If you like the project, you can support me on Ko-fi.
