Erik Ogenvik
2eb5481650
Use a function for starting clients.
...
This is more light weight than having to use factories.
2014-01-28 23:08:15 +01:00
Erik Ogenvik
051dc01bd5
Added client factory intermediary.
2014-01-28 22:29:21 +01:00
Erik Ogenvik
6e40b48e05
Use asio listeners for tcp and domain sockets.
2014-01-28 14:44:48 +01:00
Erik Ogenvik
5a602a5588
Remove domain socket on start.
...
This should probably be done a little better.
2014-01-25 23:22:52 +01:00
Erik Ogenvik
3d7c81bc3b
Initial work on using boost::asio.
2014-01-25 20:29:45 +01:00
Erik Ogenvik
432b4d9899
Resume autoimported world.
...
We want the world to be in a playable state by default.
2013-11-24 23:46:27 +01:00
Erik Ogenvik
28ced0076e
Adjusted logging.
2013-11-24 23:10:04 +01:00
Erik Ogenvik
a642bc29b4
Added autoimport into empty servers.
...
When the server is run it checks if it's empty. If that's true, and the
cyphesis:autoimport variable is set (which it is by default), and the
file it points to exists, the server will spawn a new process which will
call on the "cyimport" tool to import the world specified.
The effect of this is that when cyphesis is run for the first time, it
will automatically populate the world into a playable state. This should
allow for a much better user experience, since many users never manage
to properly populate the world.
Note that we're spawning a separate process to run the cyimport command.
We could as well just do the importing in-process, but that would
require some more coding. Using a separate process if good enough, so
that will do for now.
2013-11-24 22:26:22 +01:00
Erik Ogenvik
a5aa7ddc90
Fix comment.
2013-11-24 21:19:11 +01:00
Erik Ogenvik
d21ec0a2fc
Fix memory leak.
...
This doesn't really matter as the process is shut down anyway, but
having the leak messes with Valgrind.
Plus it's the right thing to do.
2013-09-12 22:27:27 +02:00
Erik Ogenvik
4f614189dc
Spelling.
2013-08-22 10:47:08 +02:00
Erik Ogenvik
1a22c60669
Try to print out more info is std exception.
2013-08-22 10:45:06 +02:00
Erik Ogenvik
efada4d5ea
Only send thoughts to entities with minds.
2013-08-22 10:43:03 +02:00
Erik Ogenvik
5b308280c5
Set up mind persistence through soft exit.
2013-08-22 09:54:46 +02:00
Olek Wojnar
7f9ff2246d
Remove CVS $Id tags
...
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Sean Ryan
88773d1e99
Install MetaServerAPI 1:0:0 and integrate.
...
Use of just MSP for packet wrangling, and then
using current form of commserver transport. Also
added server attribute section to config.
2013-05-30 16:31:20 -04:00
Erik Ogenvik
d523b3083c
Allow user to abort shutdown.
...
This is mainly a way to jump out of the shutdown process if it hangs.
2013-04-07 23:20:23 +02:00
Erik Ogenvik
873a6d7ffb
Store and restore thoughts.
...
Currently thoughts are only stored when the server is shut down. A more
proper way would probably be to query character and store their thoughts
at regular intervals while the simulation is running.
2013-04-07 23:20:23 +02:00
Alistair Riddoch
215766ba4b
Remove unused Entity.h include
2013-01-18 19:50:49 +00:00
Alistair Riddoch
95b078249a
Rename database variable for disambiguation
2012-08-13 20:01:27 +01:00
Alistair Riddoch
d948e097f3
Add a new class for cleaner local clients
2012-07-31 23:42:35 +01:00
Alistair Riddoch
121137c490
Make template more flexible
2012-07-31 23:32:22 +01:00
Alistair Riddoch
e54995056d
Use TCP listener factory for dynamic ports too
2012-07-25 21:34:20 +01:00
Alistair Riddoch
9cfc20606c
Open the main listen socket with the factory
...
We now are listening correctly on dual stack!
2012-07-24 17:01:10 +01:00
Alistair Riddoch
c80adab634
Move code for listening into a factory class
2012-07-24 16:51:12 +01:00
Alistair Riddoch
b7bbf9f013
Remove debug output
2012-07-24 08:39:12 +01:00
Alistair Riddoch
96d42785c5
Switch to shared_ptr so listeners can share factories
2012-07-24 08:35:33 +01:00
Alistair Riddoch
83118ef6b7
Naive first pass dual stack listening
...
Make use of new skstream functionality to open two listen sockets on the
same port, one of each stack. This way is better than opening a single
socket for multiple stacks, as it is more portable.
2012-07-20 16:21:31 +01:00
Alistair Riddoch
7f15f86e54
Remove unused header
2012-07-20 01:13:34 +01:00
Alistair Riddoch
022a71384c
Room duplicate classes and separate out deps
2012-03-14 15:57:24 +00:00
Alistair Riddoch
693012e188
No need to specialize this template explicitly
2012-03-05 14:15:34 +00:00
Alistair Riddoch
850819f8a0
Move the comments around
2012-02-06 20:52:39 +00:00
Alistair Riddoch
68494ba520
Use the ruleset global less often, making code more isolated
2012-01-19 19:34:20 +00:00
Alistair Riddoch
be735604b3
Move mind creation to the property
...
Also clean up factory, make more flexible and use shared script factory
code.
2011-12-15 18:33:32 +00:00
Alistair Riddoch
7f4ae74c99
Change error message to more sensible message
2011-11-01 19:01:26 +00:00
Alistair Riddoch
875fd723ad
Remove obsolete argument from ComMServer constructor
2011-10-31 13:04:38 +00:00
Alistair Riddoch
e949f36c6c
Use the new class for time updates
2011-10-31 11:19:33 +01:00
Alistair Riddoch
d6edd6ab09
Remove unused include
2011-10-31 10:38:31 +01:00
Alistair Riddoch
8d90a28a75
Add new class encapsulating gettimeofday
2011-10-31 10:35:37 +01:00
Alistair Riddoch
3ae768d993
Avoid metaserver code using link from commserver to server
2011-10-30 01:26:13 +02:00
Alistair Riddoch
34556ed9a4
Hold a reference to server from client factory
2011-10-30 01:04:36 +02:00
Alistair Riddoch
843a4d565d
Separate out calling idle and poll
2011-10-29 05:51:15 -07:00
Alistair Riddoch
b81787a2a8
Remove the use of stack for top level server objects
2011-10-02 16:56:29 +01:00
Alistair Riddoch
5f785e79c8
Merge branch 'master' into bullet_physics
...
Conflicts:
TODO
configure.ac
2011-05-03 17:13:04 +01:00
Alistair Riddoch
a62fcb89be
Remove the hacked in server account creation
2011-02-28 18:53:58 +00:00
Alistair Riddoch
723ff1280c
Remove unused username and password members from CommPeer
2010-12-09 16:05:57 +00:00
Alistair Riddoch
217459c9ef
Always pass in integer ID when creating objects.
2010-11-26 16:07:29 +00:00
Alistair Riddoch
65f259272c
Remove the concept of a dedicated peer port
2010-11-26 11:04:44 +00:00
Manohar Vanga
4adbdddecf
Cleaned up CommPeer setup code in server/server.cpp
2010-08-17 11:58:21 +05:30
Manohar Vanga
28e46144e3
Added initialization and deletion calls for TeleportAuthenticator in server.cpp
2010-08-17 11:58:18 +05:30