mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-23 04:19:48 +00:00
A game server reimplementation for a certain turn-based anime game
data | ||
gradle/wrapper | ||
lib | ||
src | ||
.gitignore | ||
build.gradle | ||
gradlew | ||
gradlew.bat | ||
keystore.p12 | ||
README.md | ||
settings.gradle |
Lunar Rail
A WIP server emulator for version 1.4.0 of a certain turn based anime game.
Running the server and client
Prerequisites
- Java 17 JDK
Recommended
- Mongodb (4.0+)
Starting up the server
- Compile the server with
./gradlew jar
- Create a folder named
resources
in your server directory, you will need to downlaodTextMap
andExcelBin
folders which you can get from a repo like https://github.com/Dimbreath/StarRailData into your resources folder. - Run the server with
java -jar LunarRail.jar
. Lunar Rail comes with a built in internal mongo server for its database, so no Mongodb installation is required. However, it is highly recomended to install Mongodb anyways.
Connecting with the client
- Login with the client to an official server at least once to download game data.
- If you are using the provided keystore, you will need to install and have Fiddler running. Make sure fiddler is set to decrypt https traffic.
- Set your hosts file to redirect at least
hkrpg-sdk-os-static.hoyoverse.com
andglobaldp-prod-os01.starrails.com
to your http (dispatch) server ip.
Server console commands
/account create [username] {playerid}
- Creates an account with the specified username and the in-game uid for that account. The playerid parameter is optional and will be auto generated if not set.
In-Game commands
There is a dummy user named "Server" in every player's friends list that you can message to use commands. Commands also work in other chat rooms, such as private/team chats.
!spawn [monster id] [stage id]
!give [item id] [amount]