suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

Windows server problem #2508

Closed Gamadorium closed 4 days ago

Gamadorium commented 1 week ago

When I run the game's server, I don't get an error, but I see a lot of clones like this in the task manager, how can I fix this?

image

insthync commented 1 week ago

That are maps that were spawned by map-spawn server?

Gamadorium commented 1 week ago

I only have 3 maps in the game. After starting the server, it replicates itself like this. What can I send you for control?

insthync commented 1 week ago

Want to see your serverConfig.json, it may spawn by allocate maps settings

Gamadorium commented 1 week ago

image image

This is the extension I defined in the shortcut:

C:\Server\Game.exe -startMapSpawnServer -spawnExePath "C:\Server\Game.exe" -startCentralServer -startDatabaseServer -machineAddress "212.10.127.36"

insthync commented 1 week ago

Try set spawnChannels to ["1"] And set spawnAllocateMaps to []

Gamadorium commented 1 week ago

I will try it and follow it and let you know immediately.

Gamadorium commented 1 week ago

image image I did as you said, but it still happens like this. What do you think could be the reason for this problem?

insthync commented 1 week ago

Is it lesser, right?

insthync commented 1 week ago

From what I see, the problem is you are not understand about how map-spawn server work yet.

When it spawn it will create new instance like that.

So it is work as intended, there is no problem

Gamadorium commented 1 week ago

Currently, I changed the RAM resource of my server to 32 GB. Yes, it copies less, but it closes the game after a certain period of time. Can we prevent this?

insthync commented 1 week ago

It use Unity as server, so that is how it is, you can reduce amount of ram use by exclude meshes/texture from server build, that is it

Gamadorium commented 1 week ago

This would be great. Could you please direct me to a place where I can find an example of this?

insthync commented 1 week ago

Simplest way is to remove renderers components from the scene when you are going to build for a server

insthync commented 1 week ago

You also can try this https://forum.unity.com/threads/unity-dedicated-server-package.1419295/