WhiteCoreSim / WhiteCore-Dev

WhiteCoreSim - Software to create your own virtual world
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

How to config wc run in *.server.exe seperatly? #251

Open toweiyg opened 7 years ago

toweiyg commented 7 years ago

Hi, how to config wc run *server.exe seperately? if i try to run WhiteCore.Server.AssetServer.exe, even if i use -config, after that , the WhiteCore.Server.AssetServer.exe can not run. it said: [Config]: Configuration : ../Config, WhiteCore.AssetServer.ini

emperorstarfinder commented 7 years ago

Good evening.

Below you will find what you need to do:

Individual Server Configuration

=================================

In this folder are example 'ini' files to run individual servers for each of the required services.

Note: These files are NOT INCLUDED in the standard grid configuration. To use your configurations you will need to modify the '[Handlers]' section of 'WhiteCoreServer.ini'

Example: To configure for a separate Asset Server the Configuration for the 'WhiteCore.Server.exe' instance could be changed to...

;; If you wish to run separate *.server.exe files, you will need ;; to comment this line and configure these services externally. ;Include-Single = Grid/ServerConfiguration/SingleServerInstance.ini Include-Simgle = Grid/IndividualServers/WhiteCore.AssetServer.ini

In reality though this probably could be expanded upon as that seems to be the only information available. Keep in mind to if your only running a small grid or just starting out or even just taking WhiteCore-Sim for a test run you probably wont really even need to split up the instances for the grid services.

toweiyg commented 7 years ago

Thank you very much. I've read this Readme.md file. But it make me misunderstand. If i modify the WhiteCore.Server.ini like the readme said. but which exe i could run to give assetservice? the WhiteCore.Server.AssetServer.exe or WhiteCore.Server.exe?

if i run WhiteCore.Server.AssetServer.exe, it will promot [Config]: Configuration : ../Config, WhiteCore.AssetServer.ini, if i run WhiteCore.Server.exe, as it setup another grid(the database will contain all tables),that is weird。

toweiyg commented 7 years ago

@fly-man- @emperorstarfinder

the Config\Grid\IndividualServers\README.md, does not solve this question, will you please give an example ?

thank you very much!

emperorstarfinder commented 7 years ago

Good morning,

Yes it is a bit vague and there does need to be better documentation for this. In the meantime I did a bit of digging on this. The following steps should be of help

  1. in WhiteCore.Server.ini look for the following:

;; Set up WhiteCore-Server to run all of the services ;; This is the default. ;; If you wish to run separate *.server.exe files, you will need ;; to comment this line and configure these services externally. Include-Single = Grid/ServerConfiguration/SingleServerInstance.ini

  1. In the Config/Grid/IndividualServers you can edit WhiteCore.ServersBase.ini as necessary.

  2. Launch the individual servers and this should work.

Hope this is of a bit more help

toweiyg commented 7 years ago

@emperorstarfinder ,Good morning, thank you for your help. for example, i want to run the world like: 1:192.168.0.2, as the server, on PC-server 2:192.168.0.3, as the asset server ,on PC-asset 3:192.168.0.4, as the avatar server, on PC-avatar 4:192.168.0.5, as the inventory server, on PC-inventory 5:192.168.0.6, as the grid server, on PC-grid 6:192.168.0.7, as the web server, on PC-web

First, on pc-server, i modify the WhiteCore.Server.ini, comment "Include-Single = Grid/ServerConfiguration/SingleServerInstance.ini", and modify "Config\Grid\ServerConfiguration\GridSetup.ini" ,and run "grid_console.bat", it will listen on 8002,8003,8009 port.

Second,on pc-asset, , i modify the WhiteCore.Server.ini, comment "Include-Single = Grid/ServerConfiguration/SingleServerInstance.ini", add "Include-Single =Grid/IndividualServers/WhiteCore.AssetServer.ini". Question one, need i modify other ini's? Question two, which exe file i should to run? the "WhiteCore.Server.AssetServer.exe" or the "WhiteCore.Server.exe"?

but if i run WhiteCore.Server.AssetServer.exe, it will promot " [Config]: Configuration : ../Config, WhiteCore.AssetServer.ini"; if i run "WhiteCore.Server.exe", you will find the 8002\8003\8009\8010 opened on this pc. it's weird. and i found the database have the same tables as the pc-server.

did I descripted the question clearly?

emperorstarfinder commented 7 years ago

I would recommend running the bat files for the actual server in the bin directory. the grid_console.bat is looking for them all and is acting like the ConsoleCombiner

If you follow the steps I outlined by running WhiteCore.Server.AssetServer that should run just the asset server itself.

toweiyg commented 7 years ago

@emperorstarfinder Thank you. But if i run the bat files int bin directory, the AssetServer trying to find WhiteCore.AssetServer.ini ,and failed.

emperorstarfinder commented 7 years ago

Can you post the error message it gives you when attempting to do this? It could help shed some light on the cause.

toweiyg commented 7 years ago

the console just disappeared。 And when I in debug mode, i found it try to find WhiteCore.AssetServer.ini , and [server] node.

emperorstarfinder commented 7 years ago

if you look in the Data/logs directory for the console your attempting to run does this provide any additional messages?

toweiyg commented 7 years ago

I cannot find the Data/logs,as if never created。I've tried to find the log file, but nothing found.

i use the 0.9.4 version