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 10 forks source link

Windows server problem #2508

Closed Gamadorium closed 5 months ago

Gamadorium commented 5 months 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 5 months ago

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

Gamadorium commented 5 months 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 5 months ago

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

Gamadorium commented 5 months 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 5 months ago

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

Gamadorium commented 5 months ago

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

Gamadorium commented 5 months 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 5 months ago

Is it lesser, right?

insthync commented 5 months 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 5 months 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 5 months 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 5 months ago

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

insthync commented 5 months ago

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

insthync commented 5 months ago

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