Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Setting up Genshin 3.2VM on Ubuntu Server

Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
Genshin 3.2 VM version a

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
dTHSeLT - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

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
KDYZmOt - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

2. Modify the content of the file to the one below
F4YGKyC - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

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.


L208XOP - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums




5dhAU9 - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums


POAcJpA - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums


HiuXqpf - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums



:: GM Command ::

Download:

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

4FVeOXz - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums


Itc5Sjk - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums


:: Android Emulator ::

:: WinScp and Putty
Download:

rhO5UOl - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

i9MmCxL - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

bdBTeqY - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

:: Navicat DB Connection ::
MySQL Server
User name: root
Password: f2c340a9-bf06-4345-9654-00b074b92fe8
6AzWQQY - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums



Mongo DB
Bai0Fs - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums


Data
mZ55Gft - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

::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.
m7BQSQn - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

You can also download and use the official release from https://github.com/fatedier/frp

:prerequisite:
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
OvOK3TX - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

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)

ynim07L - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

::: Old Version :::
:: Modify Server Config File Reload Time to reduce server load. ::

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" {} +


:: 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 {} \;


:: 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

::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
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Apr 14, 2016
Messages
18
Reaction score
3
HHXYXIX - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

How to fix?
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
Can the client run in an area where there is no internet connection? Or does it only run with a permanent internet connection?
Should be working fine without Internet connection, just need to have local area network access.

not working
Did you patch the UserAssembly.dll file?
If you did and still have issues, then I have no idea what's wrong.
 
Banned
Banned
Joined
Aug 28, 2021
Messages
144
Reaction score
16
Should be working fine without Internet connection, just need to have local area network access.


Did you patch the UserAssembly.dll file?
If you did and still have issues, then I have no idea what's wrong.
In this VM server are there monsters on the map and can you do quests?
 
Newbie Spellweaver
Joined
Apr 14, 2016
Messages
18
Reaction score
3
Should be working fine without Internet connection, just need to have local area network access.


Did you patch the UserAssembly.dll file?
If you did and still have issues, then I have no idea what's wrong.
i dont know
LNxmQj - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

how to create new account? i want try
YkAVaER - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
i dont know
LNxmQj - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

how to create new account? i want try


Enter this command
ip addr
to check the server IP
dTHSeLT - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

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
KDYZmOt - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

2. Modify the content of the file to the one below
F4YGKyC - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

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.
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Aug 14, 2015
Messages
50
Reaction score
5
This server can friend login? Im all server on and bridge setting
friend login but client error 4206 show and fail
Look grasscutter log friend login token is ok why?

and thank you for your efforts
 
Newbie Spellweaver
Joined
Nov 22, 2017
Messages
25
Reaction score
4
Is this files playing normally work? everything work?
 
Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
This server can friend login? Im all server on and bridge setting
friend login but client error 4206 show and fail
Look grasscutter log friend login token is ok why?

and thank you for your efforts
This VM is NAT mode, only support local PC.

Is this files playing normally work? everything work?
Game Quest working.
I'm not sure if everything else is fully working.
 
Newbie Spellweaver
Joined
Apr 14, 2016
Messages
18
Reaction score
3
maybe my PC wrong, i can not load Cultivation with double click(run as admin OK)
i can login with official myhoyo account or facebook account but error
XKJpEgl - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

5S8aZp6 - Setting up Genshin 3.2VM on Ubuntu Server - RaGEZONE Forums

sr my english verybad
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
maybe my PC wrong, i can not load Cultivation with double click(run as admin OK)
i can login with official myhoyo account or facebook account but error


sr my english verybad

I believe you skipped the step where you should have
"Replace the UserAssembly.dll in Genshin\GenshinImpact_Data\Native game folder with the one in the Zip File"

Your Login error appears to be caused by the game connecting to the live server.
 
Newbie Spellweaver
Joined
Apr 14, 2016
Messages
18
Reaction score
3
I believe you skipped the step where you should have
"Replace the UserAssembly.dll in Genshin\GenshinImpact_Data\Native game folder with the one in the Zip File"

Your Login error appears to be caused by the game connecting to the live server.
i do anything but error
 
Last edited:
Back
Top