Go to file
2023-03-06 03:51:33 +05:00
excel-hash-wrapper-macro Fix data loading errors with 3.4+ excels 2023-03-06 03:45:35 +05:00
kcp@1b8ded3cac Move project library crates to git submodules to make life a bit easier 2022-05-28 18:20:50 +05:00
lua_serde@ab1544174d Move project library crates to git submodules to make life a bit easier 2022-05-28 18:20:50 +05:00
mhycrypt@a632fa676c Bump reference 2022-07-24 14:55:33 +05:00
misc Remove SSL stuff 2022-07-24 14:48:06 +05:00
packet-processor Abstract message passing interface further, prepare for decoupling 2022-10-06 18:12:40 +05:00
packet-processor-macro One step close to DB 2021-11-25 04:57:09 +05:00
proto@00025e5e2a Update references 2022-07-24 14:46:15 +05:00
rs-ipc Abstract message passing interface further, prepare for decoupling 2022-10-06 18:12:40 +05:00
src Fix login issue on 3.5.0 2023-03-06 03:46:01 +05:00
.gitignore Implement Lua Scene loading 2022-02-02 20:42:41 +05:00
.gitmodules Move project library crates to git submodules to make life a bit easier 2022-05-28 18:20:50 +05:00
Cargo.toml Fix data loading errors with 3.4+ excels 2023-03-06 03:45:35 +05:00
LICENSE Add license 2022-01-21 23:07:40 +05:00
README.md Updated README 2023-03-06 03:51:33 +05:00

RustySamovar

Custom server for YuanShen / Genshin Impact video game.

Supported game versions: 1.4.5x - 3.5.5x (depends on protocol definitions provided and keys used)

Note: Github repo is a mirror of the main repo located at Invisible Internet Bublik. In case Github mirror dies, use I2P to access the main site.

Building

Toolkit preparation

You'll need any C/C++ toolkit installed:

  • On Windows, MS VS Community or MinGW will do the job;
  • On *nix, you just need GCC / Clang

Also you'll need to install Rust.

  • On Windows, refer to official instructions
  • On Linux, use system package manager to install rustc and cargo

Preparing the workplace

Clone repository with git clone --recurse-submodules <repo_url>. This is required to initialize all submodules.

Retrieving protocol definitions

Look at the instructions in the proto project on how to get the required file set.

Retrieving traffic encryption keys

Refer to Sapozhok's README about traffic encryption keys. Note that RustySamovar doesn't need SSL keys, only RSA and regional ones.

Compiling

Just plain and simple cargo build.

Running

Preparation

To run the server, you'll need some of the game's files:

  • Lua scripts, grab them from DecompiledLua/Lua subdirectory and put into data/lua/ subfolder of the server
  • ExcelBinOutput configs, grab them from ExcelBinOutput subdirectory and put into data/json/game/ subfolder of the server
  • BinOutput configs, grab them from 2.5.52/Data/_BinOutput subdirectory and put into data/json/game/ subfolder of the server

Alternatively you can dump everything by yourself using tools available at Bublik.

Starting the server

Just cargo run will do the trick.