Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
toweiyg opened this issue Apr 26, 2017 · 11 comments
Open

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

toweiyg opened this issue Apr 26, 2017 · 11 comments
Labels
Milestone

Comments

@toweiyg
Copy link

toweiyg commented Apr 26, 2017

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
Copy link
Contributor

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
Copy link
Author

toweiyg commented Apr 27, 2017

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。

@fly-man- fly-man- added this to the 0.9.5 milestone Apr 27, 2017
@toweiyg
Copy link
Author

toweiyg commented Apr 28, 2017

@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
Copy link
Contributor

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
Copy link
Author

toweiyg commented Apr 28, 2017

@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
Copy link
Contributor

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
Copy link
Author

toweiyg commented May 2, 2017

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

@emperorstarfinder
Copy link
Contributor

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

@toweiyg
Copy link
Author

toweiyg commented May 2, 2017

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

@emperorstarfinder
Copy link
Contributor

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

@toweiyg
Copy link
Author

toweiyg commented May 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants