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
Dec 19, 2022
Messages
7
Reaction score
0
CPU stuck. Maybe you don't have enough cpu power for it to run correctly. Anyway you need to wait server to load first as it takes some time to load.
I waited about 25 minutes but got a cpu error while the client was connecting to the server (the client gave a connection error). I have an Intel i5-9600K, I don't think it's that weak
 
Initiate Mage
Joined
Oct 12, 2018
Messages
4
Reaction score
0
failed: network is unreachable
 
Initiate Mage
Joined
Sep 15, 2022
Messages
2
Reaction score
0
thx @Biomanable its work now!

I change it to

1 1001,1002,1003,1004,1005,1006,1007,1008 1009,1010,1011,1012 2020-01-01 00:00:00 2030-12-31 03:59:59 1 1050

for test
 
Joined
Jan 13, 2011
Messages
774
Reaction score
177
me sad

Instruction on 1st post not full...
About my problem:
- server starts with no matter erros
- me unpack clent, add cultivation and launch it so me publish it's log:
Code:
Wrote certificate to %USERPROFILE%\AppData\Roaming\cultivation\ca\cert.crt
Wrote private key to %USERPROFILE%\AppData\Roaming\cultivation\ca\private.key
Installed certificate.
Failed to get bg file response: missing field `bg_file` at line 1 column 325503
^ please stop reporting this as an error it's so annoying LMFAO
Root "Trusted root Centers sertifications"
Sing corresponds to the public key
Cert "Cultivation" added to the repository.
CertUtil: -addstore — the command was executed successfully.
Failed to open file: The specified file cannot be found. (os error 2)
Failed to get bg file response: missing field `bg_file` at line 1 column 325503
^ please stop reporting this as an error it's so annoying LMFAO
Failed to open file: The specified file cannot be found. (os error 2)
Starting process watcher...
Connecting to proxy...
Connected to the proxy.
Error getting registry setting: Provided path not found: "Software\\miHoYo\\Genshin Impact"
Game closed
Disconnecting from proxy...
Disconnected from proxy.
Starting process watcher...
Connecting to proxy...
Connected to the proxy.
And client stuck in white screen after me open the door...

As i seen in screenshot in 1st message - need grasscutter JAR-file, but in instruction no one word about it, and how fix it?
And where get it, and what JRE or JDK ver needed and how configured?



P.S. Me put mod UserAssembly.dll into client's folder
 
Newbie Spellweaver
Joined
May 17, 2007
Messages
91
Reaction score
76
I waited about 25 minutes but got a cpu error while the client was connecting to the server (the client gave a connection error). I have an Intel i5-9600K, I don't think it's that weak
Try to add more cpu cores for vm. If vm have enough cpu power its should not stuck for 20+ seconds.



Instruction on 1st post not full...
About my problem:
- server starts with no matter erros
- me unpack clent, add cultivation and launch it so me publish it's log:
Code:
Wrote certificate to %USERPROFILE%\AppData\Roaming\cultivation\ca\cert.crt
Wrote private key to %USERPROFILE%\AppData\Roaming\cultivation\ca\private.key
Installed certificate.
Failed to get bg file response: missing field `bg_file` at line 1 column 325503
^ please stop reporting this as an error it's so annoying LMFAO
Root "Trusted root Centers sertifications"
Sing corresponds to the public key
Cert "Cultivation" added to the repository.
CertUtil: -addstore — the command was executed successfully.
Failed to open file: The specified file cannot be found. (os error 2)
Failed to get bg file response: missing field `bg_file` at line 1 column 325503
^ please stop reporting this as an error it's so annoying LMFAO
Failed to open file: The specified file cannot be found. (os error 2)
Starting process watcher...
Connecting to proxy...
Connected to the proxy.
Error getting registry setting: Provided path not found: "Software\\miHoYo\\Genshin Impact"
Game closed
Disconnecting from proxy...
Disconnected from proxy.
Starting process watcher...
Connecting to proxy...
Connected to the proxy.
And client stuck in white screen after me open the door...

As i seen in screenshot in 1st message - need grasscutter JAR-file, but in instruction no one word about it, and how fix it?
And where get it, and what JRE or JDK ver needed and how configured?



P.S. Me put mod UserAssembly.dll into client's folder
Just time how much time its loading before it gives error. If you get time out in like 30 seconds,its mean you redis cache is full,so its can't add needed data. For fix this you either need to clear redis cache or add more ram to vm.
If its loading for a long time (at least 1 minute or more) and only then give error,its most likely you server isn't loaded yet(just wait for it too load) or gameserver just crashed. You can check it with "sudo cli status"
 
Joined
Jan 13, 2011
Messages
774
Reaction score
177
Just time how much time its loading before it gives error. If you get time out in like 30 seconds,its mean you redis cache is full,so its can't add needed data. For fix this you either need to clear redis cache or add more ram to vm.
If its loading for a long time (at least 1 minute or more) and only then give error,its most likely you server isn't loaded yet(just wait for it too load) or gameserver just crashed. You can check it with "sudo cli status"

Waste time - till me close client
RAM - 16Gb and server and client of different PCs
cli status - how enter if server's console in "Dispatch>" mode and waits, or me need open new tty session?

log - more data
Code:
2022-12-20T10:43:48Z <ERROR:emu.grasscutter.data.DataLoader> We were unable to locate your default data files.
2022-12-20T10:43:49Z <ERROR:emu.grasscutter.utils.Crypto> An error occurred while loading keys.
java.lang.NullPointerException: null
        at java.base/java.util.Objects.requireNonNull(Objects.java:208)
        at emu.grasscutter.utils.Crypto.loadKeys(Crypto.java:43)
        at emu.grasscutter.Grasscutter.main(Grasscutter.java:81)
2022-12-20T10:43:49Z <INFO:emu.grasscutter.Grasscutter> 正在启动 Grasscutter...
2022-12-20T10:43:49Z <INFO:emu.grasscutter.Grasscutter> 游戏版本:3.2.0
2022-12-20T10:43:49Z <INFO:emu.grasscutter.Grasscutter> Grasscutter 版本:1.0.0-dev-6cd3c228
2022-12-20T10:43:52Z <INFO:emu.grasscutter.server.http.HttpServer> [Dispatch] Dispatch 服务器启动于 .[1m.[33m172.16.200.121:2888.[0m
2022-12-20T10:43:52Z <INFO:emu.grasscutter.Grasscutter> 加载完成!输入 "help" 查看命令列表
2022-12-20T10:44:45Z <INFO:emu.grasscutter.Grasscutter> Press Ctrl-C again to shutdown.
2022-12-20T10:48:54Z <INFO:emu.grasscutter.Grasscutter> Press Ctrl-C again to shutdown.
2022-12-20T10:49:41Z <ERROR:emu.grasscutter.data.DataLoader> We were unable to locate your default data files.
2022-12-20T10:49:42Z <ERROR:emu.grasscutter.utils.Crypto> An error occurred while loading keys.
java.lang.NullPointerException: null
        at java.base/java.util.Objects.requireNonNull(Objects.java:208)
        at emu.grasscutter.utils.Crypto.loadKeys(Crypto.java:43)
        at emu.grasscutter.Grasscutter.main(Grasscutter.java:81)
2022-12-20T10:49:42Z <INFO:emu.grasscutter.Grasscutter> 正在启动 Grasscutter...
2022-12-20T10:49:42Z <INFO:emu.grasscutter.Grasscutter> 游戏版本:3.2.0
2022-12-20T10:49:42Z <INFO:emu.grasscutter.Grasscutter> Grasscutter 版本:1.0.0-dev-6cd3c228
2022-12-20T10:49:42Z <INFO:emu.grasscutter.server.http.HttpServer> [Dispatch] Dispatch 服务器启动于 .[1m.[33m172.16.200.121:2888.[0m
2022-12-20T10:49:42Z <INFO:emu.grasscutter.Grasscutter> 加载完成!输入 "help" 查看命令列表
2022-12-20T11:10:12Z <INFO:emu.grasscutter.server.http.dispatch.RegionHandler> [Dispatch] Client 172.16.xxx.xxx request: query_region_list
2022-12-20T11:10:26Z <INFO:emu.grasscutter.auth.DefaultAuthenticators$PasswordAuthenticator> [Dispatch] 客户端 172.16.xxx.xxx 已登录,UID 为 10002
2022-12-20T11:10:26Z <INFO:emu.grasscutter.server.http.dispatch.DispatchHandler> [Dispatch] 客户端 172.16.xx.xxx 正在尝试登录
2022-12-20T11:10:26Z <INFO:emu.grasscutter.auth.DefaultAuthenticators$SessionKeyAuthenticator> [Dispatch] 客户端 172.16.xx.xxx 成功交换 token
2022-12-20T11:10:26Z <INFO:emu.grasscutter.server.http.dispatch.DispatchHandler> [Dispatch] 客户端 172.16.xx.xxx 正在尝试登录
2022-12-20T12:15:00Z <INFO:emu.grasscutter.Grasscutter> Press Ctrl-C again to shutdown.

So as me seen client can login but can't income



so top shows:
Code:
top - 12:40:52 up 22:04,  2 users,  load average: 2.17, 1.54, 0.83
Tasks: 241 total,   1 running, 240 sleeping,   0 stopped,   0 zombie
%Cpu(s):  7.1 us,  5.2 sy,  0.0 ni, 87.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  16009.3 total,    353.0 free,   9842.8 used,   5813.4 buff/cache
MiB Swap:   4096.0 total,   4056.1 free,     39.9 used.   5827.2 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  39438 root      20   0   20.0t   3.5g 573708 S  15.3  22.3   3:25.85 gameser+
  39432 root      20   0   20.0t   1.0g 356000 S   9.7   6.4   0:29.17 gateser+
  39434 root      20   0   20.0t 919452 352304 S   9.0   5.6   0:27.52 dbgate
  39430 root      20   0   20.0t   1.1g 139380 S   8.7   6.8   0:27.96 nodeser+
  39440 root      20   0   20.0t   3.3g 420432 S   8.7  21.1   3:11.68 muipser+
  39436 root      20   0   20.0t   1.3g 351128 S   7.3   8.5   0:22.64 dispatch
    503 root      19  -1  142308  31164  30048 S   0.3   0.2   0:25.90 systemd+
    697 root      rt   0  347916  18984   9020 S   0.3   0.1   0:46.36 multipa+
   1282 systemd+  20   0 2611664  98344  36924 S   0.3   0.6   8:48.88 mongod
  39688 root      20   0    9380   3988   3224 R   0.3   0.0   0:00.55 top
      1 root      20   0  169404  11128   6716 S   0.0   0.1   0:03.78 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par+
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker+
      8 root       0 -20       0      0      0 I   0.0   0.0   0:01.85 kworker+
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_perc+



So as me seen 1st start - will filed coz not all data implement into client an user's profile...

So it's work, but strange - looks like an emu or developer's mode
 
Newbie Spellweaver
Joined
May 17, 2007
Messages
91
Reaction score
76
My processor only has 6 cores at 3.70Ghz. This is not enough?
You need at least 6 cores set for vm. Notice - its not actually mean its use all 6 cores your have. Vm don't have separate checks for threads,so if you cpu 6 6/12 and you set 2 cpu on vm,its literally mean you only set 1 full core,which is not enough. Just set at least 6 cores and try.



So as me seen client can login but can't income


So as me seen 1st start - will filed coz not all data implement into client an user's profile...

So it's work, but strange - looks like an emu or developer's mode
You also should check if firewall on vm is on. Without opened ports you also get white screen.
 
Joined
Jan 13, 2011
Messages
774
Reaction score
177
Does exists way change binded IP address to my?
What the files needed edit. O enough find all files with 192.168.200.130 and replace it by my IP or exists some thin moments?

Me ask - me answer... So:
- select IP and remeber it
- launch VM
- login
- escalate access level
- edit base config "sudo nano /etc/netplan/00-installer-config.yaml" and write you's IP
- reboot or execute "sudo netplan --debug apply"
- after that U can connect trough SSH and work distantly
- for easiest way me install Midnight Commander and use Midnight Editor as base editor
- in MC start search files in "/" all files with pattern "192.168.200.130" and edit each other
- after that restart VM
It's all
 
Newbie Spellweaver
Joined
Dec 2, 2020
Messages
17
Reaction score
2
winch ports do i need to open for running it on other pc can get it to work
 
Last edited:
Newbie Spellweaver
Joined
Sep 8, 2022
Messages
35
Reaction score
12
I can't do multi-setting. No matter how I set it up, I can't connect.
 
Joined
Jan 13, 2011
Messages
774
Reaction score
177
So about connect errors, in some situation Cultivation's proxy not proxing connect from client to you's server...
How me catch it:
- in IP 172.16.200.121 me launch server
- from IP 172.16.135.129 me launch Client via Cultivation - all work like a charm and in server's log me seen data about connecting
- then friend, before plays GI in original Server, connects to my LAN trough VPN with IP 192.168.8.115 in home and IP 10.8.65.67 in my LAN
- he swap UserAssembly.dll on right way, launch Cultivation as Admin, wait till it implement certs and make some noise and close launcher and Cultivation
- he 2nd start Cultivation enter correct data for connection, as in 1st post and servers IP and try connect
- GI launched and ask login/Password, but when he press connect - GI ask captcha(why?)
- after passing captcha friend catch error - incorrect Login
- but in server side - nothing happend in log - no one try to connect from friend's client, like his Client try connect to another server ignoring Cultivation's settings

So problem looks like that...
sry 4 bed Ingles...
 
Last edited:
Newbie Spellweaver
Joined
Sep 21, 2016
Messages
29
Reaction score
74
_secret_token_ is what?
_secret_token_ is the password for your frp server. set your own password when you setup your frp server.

winch ports do i need to open for running it on other pc can get it to work
TCP
2888 (sdkserver)
20001 (Dispatch server)
20011 (Muip Server)
UDP
20041 (Gate Server)
 
Back
Top