The server is currently full :C
#1
If settings.ini is missing and you try to join the server the client will give the following error message: The server is currently full :C-- Try again later

The server writes the following:
Code:
[15:56:56] Starting up server.
[15:56:56] Port 25565 has been bound, server is open for connections
[15:56:56] Loading settings...
[15:56:56] -- Loading Groups --
[15:56:56] -- Done Loading Groups --
[15:56:56] --Loading recipes--
[15:56:56] --Done loading recipes, found 102 recipes
[15:56:56] --Loading furnace recipes--
[15:56:56] Got 9 furnace recipes, and 11 fuels.
[15:56:56] --Done loading furnace recipes--
[15:56:56] Loading worlds...
[15:56:56] cWorld::cWorld(world)
[15:56:56] Seed: 2079799275
[15:56:56] Preparing spawn area in world "world"
[15:56:56] 399 chunks to load, 0 chunks to generate
[15:56:57] Loading plugin manager...
[15:56:57] Loading plugins
[15:56:57] cPluginManager: Can't find settings.ini, so can't load any plugins.
[15:56:57] No plugins loaded
[15:56:57] Loading MonsterConfig...
[15:56:57] cMonsterConfig: Must have both settings.ini and monsters.ini to confi
gure attributes
        using default attributes

[15:56:57] Starting Authenticator...
[15:56:57] Starting server...
[15:56:57] ServerListenThread
[15:56:57] ServerTickThread
[15:56:57] Starting InputThread...
[15:56:57] Initialization done, server running now.
[15:57:15] Client "127.0.0.1" connected!
[15:57:15] New ClientHandle created at 0582F528
[15:57:15] Creating a new cSocketThread (currently have 0)
[15:57:15] HANDSHAKE userid0
[15:57:15] Deleting client "userid0" at 0582F528
[15:57:15] ClientHandle at 0582F528 deleted
[15:57:29] Client "127.0.0.1" connected!
[15:57:29] New ClientHandle created at 0582F528
[15:57:29] HANDSHAKE userid0
[15:57:29] Deleting client "userid0" at 0582F528
[15:57:29] ClientHandle at 0582F528 deleted
[15:57:38] Client "127.0.0.1" connected!
[15:57:38] New ClientHandle created at 0582F528
[15:57:38] HANDSHAKE userid0
[15:57:38] Deleting client "userid0" at 0582F528
[15:57:38] ClientHandle at 0582F528 deleted

It might be useful to let the server end immediately with an error if there is no settings.ini? After all there is no point in starting the server if max 0 users are allowed to connect...
Reply
Thanks given by:
#2
On the other hand, I believe there are a lot of quite illiterate users who want to "just download and run", just like the official MC server - it just works out of the box. Perhaps including a (safe) default settings.ini instead of the ".example" one? And putting all the features it provides in it, just commented out?
Another possibility would be an installer. I can work with Inno Setup decently so I could cook one up without much trouble. Is it worth bothering?
Reply
Thanks given by:
#3
(03-20-2012, 03:31 AM)xoft Wrote: On the other hand, I believe there are a lot of quite illiterate users who want to "just download and run", just like the official MC server - it just works out of the box. Perhaps including a (safe) default settings.ini instead of the ".example" one? And putting all the features it provides in it, just commented out?
I didn't think about like that.. A safe default settings.ini sounds like the best -- and easiest -- way to go.

(03-20-2012, 03:31 AM)xoft Wrote: Another possibility would be an installer. I can work with Inno Setup decently so I could cook one up without much trouble. Is it worth bothering?
I think your time is better spend elsewhereBig Grin

Reply
Thanks given by:
#4
(03-20-2012, 03:54 AM)tbar Wrote:
(03-20-2012, 03:31 AM)xoft Wrote: On the other hand, I believe there are a lot of quite illiterate users who want to "just download and run", just like the official MC server - it just works out of the box. Perhaps including a (safe) default settings.ini instead of the ".example" one? And putting all the features it provides in it, just commented out?
I didn't think about like that.. A safe default settings.ini sounds like the best -- and easiest -- way to go.

(03-20-2012, 03:31 AM)xoft Wrote: Another possibility would be an installer. I can work with Inno Setup decently so I could cook one up without much trouble. Is it worth bothering?
I think your time is better spend elsewhereBig Grin

i say when it comes down to it theres alot of people who dont know what to do or how to do, so it would be a good idea in the future. Would allow those people to click install and run with out giving them a headache, or asking on here =P
Reply
Thanks given by:
#5
Slight problem with that is that Windows 6+ won't let ordinary users' programs write into Program Files, where MCServer would be installed, so we need to actually make some way for the server to work on such Windows setups.

I believe the correct way to do so is for the installer to install to Program Files and make a folder inside ProgramData for the application and set that folder writable to all users; then MCServer would need to store and read all its files in that ProgramData subfolder. Tough to do it cross-platformlyTongue
Reply
Thanks given by:
#6
I think the easiest and simplest way is to make the MCServer.exe create and add default values to the settings files. In some cases MCServer does this (in some strange ass way).

The best way to do this (I think) is by creating a cIniFile object, filling it with default values, THEN load the values from disk and save the ini. This way values already present in the ini file overwrite the default settings, and default settings are added when they are not present
Reply
Thanks given by:
#7
(03-26-2012, 05:39 AM)FakeTruth Wrote: I think the easiest and simplest way is to make the MCServer.exe create and add default values to the settings files.
Just as the official server does it...

Reply
Thanks given by:
#8
The official server does a bit more voodoo than this - if you enable some setting in the official server's config, it may add a few more defaults pertaining to that setting ( http://www.minecraftforum.net/topic/7628...roperties/ )
But I guess for us the process described by FakeTruth is alright.
Reply
Thanks given by:




Users browsing this thread: 5 Guest(s)