Genshin 3.2 VM version a
::Incorrect Server IP::




:: GM Command ::
:: Android Emulator ::
:: WinScp and Putty
:: Navicat DB Connection ::
::Setup Server for Wan/Public IP access::
::: Old Version :::
Code:
::Genshin3.2 VM::
Vmware 15.x
8vCPU
16GB Ram
Harddisk: 80G (SSD/NVMe)
Network: NAT
OS: Ubuntu Server (genshin:Genshin2023@@)
IP Address: 192.168.200.130 (NAT)
https://i.imgur.com/Dc15XKx.png
Source: https://www.youtube.com/watch?v=ob7EFaO81NI
::Start Server::
Login: genshin
Password: Genshin2023@@
1. sudo -i (change to root)
2. /root/genshin/srv/cli start (starting game server)
::Stop Server::
1. Press Ctrl-C twice (exit dispatch console)
2. /root/genshin/srv/cli stop (stopping game server)
::Start Game::
Replace the UserAssembly.dll in Genshin\GenshinImpact_Data\Native game folder with the one in the Zip File
Launch Cultivation, Goto Option.
Set Game Install Path to your Genshin Game folder
Uncheck Automatically Path Metadata
Check Use Internal Proxy
Check Connect via Grasscutter
IP: 192.168.200.130
Port: 2888
Uncheck Use HTTPS
Click Launch to play.
Test account
username: Test
Password: 123456
::Notes::
Following server has been disable in cli file
# cd ../oaserver
# chmod +x oaserver
# nohup ./oaserver -i 9001.9.1.1 &
# cd ../pathfindingserver
# chmod +x pathfindingserver
# nohup ./pathfindingserver -i 9001.8.1.1 &
# cd ../multiserver
# chmod +x multiserver
# nohup ./multiserver -i 9001.7.1.1 &
# cd ../tothemoonserver
# chmod +x tothemoonserver
# nohup ./tothemoonserver -i 9001.10.1.1 &
original cli file has been rename to cli-default
::Download::
VM:
GDrive: https://drive.google.com/drive/folders/18nxvLmpVXAQF2nHYJpReCSQR_I745LSd?usp=share_link
Mega.nz: https://mega.nz/folder/4dBRGR5D#frGFO-2-1TWKmUi6SJlJMA
Password: YY1707
Client:
https://autopatchhk.yuanshen.com/client_app/download/pc_zip/20221024103618_h2e3o3zijYKEqHnQ/GenshinImpact_3.2.0.zip
Cultivation to use as Launcher:
https://github.com/Grasscutters/Cultivation/releases/
https://github.com/Grasscutters/Cultivation/releases/download/v1.0.10-alpha/Cultivation_1.0.10_x64_en-US.msi
Patched UserAssembly.dll:
Included in the Zip file
::Incorrect Server IP::
Enter this command
ip addr
to check the server IP

If the server IP is not 192.168.200.130
You have to set the IP to 192.168.200.130
1. Edit the ip config file
sudo nano /etc/netplan/00-installer-config.yaml

2. Modify the content of the file to the one below

3. Apply the IP changes
sudo netplan --debug apply
Enter this command to check your server ip again
ip addr
It should show 192.168.200.130 now, and restart the VM.
ip addr
to check the server IP
If the server IP is not 192.168.200.130
You have to set the IP to 192.168.200.130
1. Edit the ip config file
sudo nano /etc/netplan/00-installer-config.yaml
2. Modify the content of the file to the one below
3. Apply the IP changes
sudo netplan --debug apply
Enter this command to check your server ip again
ip addr
It should show 192.168.200.130 now, and restart the VM.
:: GM Command ::
Download: https://mega.nz/file/4VxRBToK#33rvoEgDBUjSLD4M5wau3c3Irmg3o0Gno2idfOBxVBI
Crystal
gm uid mcoin 999999
Talent
gm uid talent unlock all
Godmode
gm uid wudi global avatar on / off
Unlimited ele brust
gm uid energy infinite on / off
Unlimited stamina
gm uid stamina infinite on / off
Send item
gm uid item add id qty


Crystal
gm uid mcoin 999999
Talent
gm uid talent unlock all
Godmode
gm uid wudi global avatar on / off
Unlimited ele brust
gm uid energy infinite on / off
Unlimited stamina
gm uid stamina infinite on / off
Send item
gm uid item add id qty
:: Android Emulator ::
Follow Kei's instructions on Post
https://forum.ragezone.com/f857/genshin-impact-server-files-1208797-post9154374/?#post9154374



https://forum.ragezone.com/f857/genshin-impact-server-files-1208797-post9154374/?#post9154374
:: WinScp and Putty
:: Navicat DB Connection ::
MySQL Server
User name: root
Password: f2c340a9-bf06-4345-9654-00b074b92fe8

Mongo DB

Data

User name: root
Password: f2c340a9-bf06-4345-9654-00b074b92fe8
Mongo DB
Data
::Setup Server for Wan/Public IP access::
Download FRP(fast reverse proxy) and genshin server config files (Password: YY1707)
https://mega.nz/file/9QhjzSTK#BhzEKs6KZ7LHxTN4iaIuk4S9jJyug-ddNrcemGlF1cM
Some virus scanner will detect FRP as riskware.frp.

You can also download and use the official release from https://github.com/fatedier/frp
rerequisite:
1. A public IP address on a Windows/Linux pc/vps.
e.g. 10.11.11.11 is the public IP address
:Step:
1. extract genshin_wan.7z
2. replace 10.10.10.10 with 10.11.11.11 in all ini, xml, and json files in all folder

3. replace _secret_token_ with your own secret_token in all ini files in frp folder
4. choose you OS
4.1. Setup FRP server on windows
---- Copy folder [win vps] to your windows pc/vps.
---- Run frps.bat
---- Configure firewall rules to allow frps.exe or port number 8899 and other forwarding port number
4.2. Setup FRP server on linux
---- Copy folder [linux vps] to your linux pc/vps.
---- put frps and frps.ini under /usr/local/frps/
---- set frps to executable (755)
---- put this file (frps.service) at /etc/systemd/system
---- run "sudo systemctl daemon-reload && sudo systemctl enable frps && systemctl start frps"
---- Configure firewall rules to allow port number 8899 and other forwarding port number
---- Then you can manage frps with "sudo service frps {start|stop|restart|status}"
5. setup FRP client on genshin server
---- Copy folder [genshin] to your genshin server.
---- put frpc and frpc.ini under /usr/local/frpc/
---- set frpc to executable (755)
---- put this file (frpc.service) at /etc/systemd/system
---- run "sudo systemctl daemon-reload && sudo systemctl enable frpc && systemctl start frpc"
---- Then you can manage frpc with "sudo service frpc {start|stop|restart|status}"
6. upload and overwrite all the files in [genshin] folder on to your genshin server. Start genshin server cli
---- /root/genshin/srv/cli start
Set the public IP in your launcher to
IP: 10.11.11.11
Port: 2888
Uncheck Use HTTPS
Forwarding port
TCP
2888 to 2888 (sdkserver)
20001 to 20001 (Dispatch server)
20011 to 20022 (Muip Server) set 20022 to other port if you dont want unknown ppl connecting to your GM server or remove this port from the ini file
UDP
20041 20041 (Gate Server)

https://mega.nz/file/9QhjzSTK#BhzEKs6KZ7LHxTN4iaIuk4S9jJyug-ddNrcemGlF1cM
Some virus scanner will detect FRP as riskware.frp.
You can also download and use the official release from https://github.com/fatedier/frp
1. A public IP address on a Windows/Linux pc/vps.
e.g. 10.11.11.11 is the public IP address
:Step:
1. extract genshin_wan.7z
2. replace 10.10.10.10 with 10.11.11.11 in all ini, xml, and json files in all folder
3. replace _secret_token_ with your own secret_token in all ini files in frp folder
4. choose you OS
4.1. Setup FRP server on windows
---- Copy folder [win vps] to your windows pc/vps.
---- Run frps.bat
---- Configure firewall rules to allow frps.exe or port number 8899 and other forwarding port number
4.2. Setup FRP server on linux
---- Copy folder [linux vps] to your linux pc/vps.
---- put frps and frps.ini under /usr/local/frps/
---- set frps to executable (755)
---- put this file (frps.service) at /etc/systemd/system
---- run "sudo systemctl daemon-reload && sudo systemctl enable frps && systemctl start frps"
---- Configure firewall rules to allow port number 8899 and other forwarding port number
---- Then you can manage frps with "sudo service frps {start|stop|restart|status}"
5. setup FRP client on genshin server
---- Copy folder [genshin] to your genshin server.
---- put frpc and frpc.ini under /usr/local/frpc/
---- set frpc to executable (755)
---- put this file (frpc.service) at /etc/systemd/system
---- run "sudo systemctl daemon-reload && sudo systemctl enable frpc && systemctl start frpc"
---- Then you can manage frpc with "sudo service frpc {start|stop|restart|status}"
6. upload and overwrite all the files in [genshin] folder on to your genshin server. Start genshin server cli
---- /root/genshin/srv/cli start
Set the public IP in your launcher to
IP: 10.11.11.11
Port: 2888
Uncheck Use HTTPS
Forwarding port
TCP
2888 to 2888 (sdkserver)
20001 to 20001 (Dispatch server)
20011 to 20022 (Muip Server) set 20022 to other port if you dont want unknown ppl connecting to your GM server or remove this port from the ini file
UDP
20041 20041 (Gate Server)
::: Old Version :::
:: Modify Server Config File Reload Time to reduce server load. ::
:: Remove/Reduce log files ::
:: Fixed Mongo DB data and DB Connection using Navicat ::
::Make MySQL and MongoDB docker start automatically when the system boots:::
Modify the reload time from 300 seconds (5 mins) to 36000 seconds (10 hours)
sudo -i
cd genshin/srv
find . -name "gameserver.xml" -exec sed -i "s/AutoReloadConfig interval=\"300\"/AutoReloadConfig interval=\"36000\"/g" {} +
find . -name "muipserver.xml" -exec sed -i "s/AutoReloadConfig interval=\"300\"/AutoReloadConfig interval=\"36000\"/g" {} +
sudo -i
cd genshin/srv
find . -name "gameserver.xml" -exec sed -i "s/AutoReloadConfig interval=\"300\"/AutoReloadConfig interval=\"36000\"/g" {} +
find . -name "muipserver.xml" -exec sed -i "s/AutoReloadConfig interval=\"300\"/AutoReloadConfig interval=\"36000\"/g" {} +
:: Remove/Reduce log files ::
Change to root privileges
sudo -i
Change config files
nano /root/genshin/srv/gameserver/conf/gameserver.xml
nano /root/genshin/srv/muipserver/conf/muipserverxml
nano /root/genshin/srv/nodeserver/conf/nodeserver.xml
<!-- log configuration -->
<LogConf>
<LogLevelMask value="" />
<MaxLogLen value="8192" />
<LogCutTime value="1440" />
<LogKeepTime value="4320" />
<LogQueueSize value="170" />
<LogBufSize value="24576" />
<LogList>
---delete all---
</LogList>
</LogConf>
change all nohup
nano /root/genshin/srv/cli
cd nodeserver
chmod +x nodeserver
nohup ./nodeserver -i 9001.3.1.1 &
to
cd nodeserver
chmod +x nodeserver
nohup ./nodeserver -i 9001.3.1.1 &> nohup.out &
check log files
find /root/genshin/srv/ -type f \( -name 'nohup.*' -o -name '*.log*' \) -ls
delete log files
find /root/genshin/srv/ -type f \( -name 'nohup.*' -o -name '*.log*' \) -exec rm {} \;
sudo -i
Change config files
nano /root/genshin/srv/gameserver/conf/gameserver.xml
nano /root/genshin/srv/muipserver/conf/muipserverxml
nano /root/genshin/srv/nodeserver/conf/nodeserver.xml
<!-- log configuration -->
<LogConf>
<LogLevelMask value="" />
<MaxLogLen value="8192" />
<LogCutTime value="1440" />
<LogKeepTime value="4320" />
<LogQueueSize value="170" />
<LogBufSize value="24576" />
<LogList>
---delete all---
</LogList>
</LogConf>
change all nohup
nano /root/genshin/srv/cli
cd nodeserver
chmod +x nodeserver
nohup ./nodeserver -i 9001.3.1.1 &
to
cd nodeserver
chmod +x nodeserver
nohup ./nodeserver -i 9001.3.1.1 &> nohup.out &
check log files
find /root/genshin/srv/ -type f \( -name 'nohup.*' -o -name '*.log*' \) -ls
delete log files
find /root/genshin/srv/ -type f \( -name 'nohup.*' -o -name '*.log*' \) -exec rm {} \;
:: Fixed Mongo DB data and DB Connection using Navicat ::
Fixing Account information lost and not saved into MongoDB after VM shutdown.
1. sudo -i (change to root)
2. mkdir /root/genshin/mongo_data (create data dir for mongo db)
3. nano ./docker.sh (modify docker.sh file)
change
docker run -d --net=host mongo
to
docker run -v /root/genshin/mongo_data:/data/db -d --net=host mongo
Ctrl-X to save the changes
1. sudo -i (change to root)
2. mkdir /root/genshin/mongo_data (create data dir for mongo db)
3. nano ./docker.sh (modify docker.sh file)
change
docker run -d --net=host mongo
to
docker run -v /root/genshin/mongo_data:/data/db -d --net=host mongo
Ctrl-X to save the changes
::Make MySQL and MongoDB docker start automatically when the system boots:::
1. sudo -i
Delete all existing docker image containers
2. docker rm -vf $(docker ps -aq)
3. nano ./docker.sh
change
docker run -d --net=host -v /root/genshin/database_map_folder:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=f2c340a9-bf06-4345-9654-00b074b92fe8 mysql:5.7-debian
docker run -v /root/genshin/mongo_data:/data/db -d --net=host mongo
to
docker run --restart=always -d --net=host -v /root/genshin/database_map_folder:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=f2c340a9-bf06-4345-9654-00b074b92fe8 mysql:5.7-debian
docker run --restart=always -v /root/genshin/mongo_data:/data/db -d --net=host mongo
Ctrl-X to save the changes
4. bash docker.sh
(rename the docker.sh file to avoid being run again in future)
5. mv docker.sh docker.bak
Delete all existing docker image containers
2. docker rm -vf $(docker ps -aq)
3. nano ./docker.sh
change
docker run -d --net=host -v /root/genshin/database_map_folder:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=f2c340a9-bf06-4345-9654-00b074b92fe8 mysql:5.7-debian
docker run -v /root/genshin/mongo_data:/data/db -d --net=host mongo
to
docker run --restart=always -d --net=host -v /root/genshin/database_map_folder:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=f2c340a9-bf06-4345-9654-00b074b92fe8 mysql:5.7-debian
docker run --restart=always -v /root/genshin/mongo_data:/data/db -d --net=host mongo
Ctrl-X to save the changes
4. bash docker.sh
(rename the docker.sh file to avoid being run again in future)
5. mv docker.sh docker.bak
Last edited: