If you run the game server, the CPU usage will be 100%. Do you know how to solve it?
If you run the game server, the CPU usage will be 100%. Do you know how to solve it?
Edit your 3-GameServer.bat like this :
and you can also change gameserver\bin\gameserver.bat (if you have 16gb ram) : line 16 and 17@echo off
cd gameserver\bin\
start /affinity 1F gameserver.bat
exit
@rem Add default JVM options here. You can also use JAVA_OPTS and GAMESERVER_OPTS to pass JVM options to this script.set DEFAULT_JVM_OPTS="-Xms4g" "-XX:NewRatio=3" "-XX:+UseG1GC" "-Xmx16g" "-server"
Thank you for your answer. We did as you told us, but we still have 100% CPU. When I run the Archer version, CPU 5% comes out, but Guardian version only has CPU 100%. I don't know what the problem is.
Just added a region update every time the client time is updated, not ideal but seems to work well enough for now
If you really want to know:
Code:public void updateTime(){ World.getInstance().getPlayers().forEach(p->p.sendPacket(new SMSetGameTime())); World.getInstance().getPlayers().forEach(this::updateEntities); //TODO: rewrite regions to handle this on its own } public void updateEntities(final Player player){ WorldMap worldMap = World.getInstance().getWorldMap(); if (player.getLocation().getGameSector() != null){ worldMap.notifyEnter(player, player.getLocation().getGameSector(), false, false); } }
Last edited by Ryfon; 26-10-21 at 02:08 AM.
So I was going through the gameserver configs and I found that theres a setting to keep certain items on with a loot filter. SOOOOO does this version come with a loot filter or anything?
Not worked, still stuck in server try connection, patch for client applied, launcher used, IP's in launcher config changed for IP LS/GS, but still nothing...
in LS log me seen:
Code:18:01:48.388 INFO - Gameserver [519 CH1] registered successfuly with ServerID=1 and ChannelID=1. 18:03:35.467 WARN - Server -> Client: SMSetFrameworkInformation 18:03:35.527 WARN - Client -> Server: CMGetCreateUserInformationToAuthenticServer 18:03:35.632 WARN - Server -> Client: SMGetCreateUserInformationToAuthenticServer 18:03:35.637 INFO - Account [tielay] logged in with IP [172.16.31.204] by token [null] 18:03:35.644 WARN - Client -> Server: CMLoginUserToAuthenticServer 18:03:35.883 WARN - Server -> Client: SMLoginUserToAuthenticServerNak 18:03:35.884 ERROR - Can't find opcode for packet: SMLoginUserToAuthenticServerNak
Last edited by TieLay; 26-10-21 at 05:05 PM.
I have been stuck here for 40 minutes anyone know how to solve ??
https://imgur.com/a/ANSvIx8
EDIT: Solved
Last edited by Mustlord59; 26-10-21 at 06:28 PM. Reason: stuff
Computer specs?
- - - Updated - - -
What files you're using? Are you sure your java is 8 version?
- - - Updated - - -
Yea. Jin created a drop filter, i don't tested it
- - - Updated - - -
This wont go eat the cpu or the ram ?
Now I have a new error
https://imgur.com/a/iZQef6y
I followed tutorial to setup local server, but then I get Connection to loginserver failed Reason: Unknown server.
@Ledie help me please
Do you know the command for the drop filter?
CPU: Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz x 2
Hypervisor: ESXi-6.7.0-20190402001-standard
RAM: 64Gb
CPU: 4 cores
OS: Windows Server 2012R2
JAVA: JDK 8U311 without JRE
Env: JAVA_HOME and JDK_HOME point into JDK install dir, not use JDK from Server pack JDK\bin include into %PATH%
Where run Server and Client isn't one computer, in config me replace 127.0.0.1 by Server's IP.
For launch game me use launcher from Client, from this theme, with changed IPs in config to server's one and patch from server's archive used to, by replacing "\ads\languagedata_en.loc", "\bin64\ShadowDesert.exe" no need replace it's identical exists in Client.
So it's enough?
Last edited by TieLay; 26-10-21 at 08:59 PM.