Commit graph

105 commits

Author SHA1 Message Date
Erik Ogenvik
86bea785a9 Default to not use binreloc.
By default we don't want to use binreloc for setting the paths
dynamically. Instead this can be enabled through the command line
argument "--cyphesis:dynamicpaths=true".
We don't envision cyphesis will be distributed as a binreloc package
much. Using a container format such as Docker seems more plausible.
2015-07-15 11:31:34 +02:00
Erik Ogenvik
3966c31fdb Allow directory for binaries to be set.
By default it will use binreloc to figure out where it's running, as
with other directories.
2015-05-28 21:22:11 +02:00
Erik Ogenvik
f8932858fd Enable aiclient.
The idea is that the aiclient runs in a separate process and handles all
AI functionality.
This is done by having a "possession" client which recieves possession
requests from the server, and spawns new AI clients for each request.
2015-05-24 11:25:06 +02:00
Erik Ogenvik
14a054622b Added explicit instantiation for integers. 2014-05-01 11:29:03 +02:00
Erik Ogenvik
96b02656e1 Make sure memory is properly released. 2014-01-20 23:07:22 +01:00
Erik Ogenvik
2dca4949ed Created "deeds" ruleset and made it default.
It's currently a copy of the Mason ruleset.
Where Mason focuses on letting the users create the world themselves,
Deeds instead focuses on allowing world authors to set up enticing
worlds with gameplay and stories. In contrast to Mason there are more
features available to the world authors which allow for automatic
creation of entities and so on.
2013-11-15 21:14:47 +01:00
Erik Ogenvik
edf8cdf6c9 Only show relevant options.
This fixes a long standing bug where all options were shown for all
commands.
2013-11-14 22:21:07 +01:00
Erik Ogenvik
3f04803b59 Fixed issue with options not working.
For some time these haven't worked. The cause was a linker/compiler
issue where string fields not being assigned value if they weren't of
the correct constness.
2013-11-13 20:55:34 +01:00
Erik Ogenvik
20be06aef7 Added "soft" exit option.
A "soft" exit tries to first query any external minds for their
thoughts, so that they can be persisted. This might take up to five
seconds.
2013-08-21 20:53:40 +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
Alistair Riddoch
68494ba520 Use the ruleset global less often, making code more isolated 2012-01-19 19:34:20 +00:00
Alistair Riddoch
9c32176f8e Remove help for removed peers config option 2010-12-10 00:52:18 +00:00
Alistair Riddoch
c1791e392a Merge branch 'master' into teleport 2010-11-17 11:29:45 +00:00
Alistair Riddoch
5b9ab9bba1 Upgrade to newer, cleaner binreloc code. 2010-08-30 18:17:37 +01:00
Alistair Riddoch
bcf05e3ddd Call the prefix reading function during config load. 2010-08-19 18:04:53 +01:00
Manohar Vanga
4a31858480 Corrected usage flags for 'peers' attribute in common/globals.cpp 2010-08-17 11:58:23 +05:30
Manohar Vanga
174e9ab118 Added documentation to common/globals.cpp and man/cyphesis.sgml 2010-08-17 11:58:21 +05:30
Alistair Riddoch
259ab318d4 Move postprocessing of options so instance settings can take effect. 2009-12-12 21:03:09 +00:00
Alistair Riddoch
f31cfd6873 Provide more useful help information for unix socket options. 2009-12-03 18:33:36 +00:00
Alistair Riddoch
68cce50a8c Implement interactive mode for cyclient, which just gives a python prompt. 2009-11-25 17:54:44 +00:00
Alistair Riddoch
892e5c551d Add check for <io.h> and include if available. 2009-09-17 02:24:48 +01:00
Alistair Riddoch
31c7f84c28 Add missing doc comments. 2009-08-24 14:16:39 +01:00
Alistair Riddoch
077f8d9188 When setting up the server start time, use raw default constants 2009-05-07 13:49:51 +01:00
Alistair Riddoch
5505ed6bc4 Remove debug output when looking for settings in the config 2009-04-19 00:40:49 -07:00
Alistair Riddoch
a465998718 Remove completely unused setting 2009-04-09 01:41:14 +01:00
Alistair Riddoch
59cff06064 Only warn about options from the command line 2009-04-09 01:27:08 +01:00
Alistair Riddoch
f1f6fb8ed2 Move restricted option to new mechanism. 2009-04-09 00:27:11 +01:00
Alistair Riddoch
e4be4eed46 Move more options to the new dynamic mechanism. 2009-04-09 00:13:15 +01:00
Alistair Riddoch
670c09f990 Move metaserver boolean option to the new mechanism. 2009-04-08 21:56:24 +01:00
Alistair Riddoch
2ad73f462c Add support for boolean options 2009-04-08 21:49:52 +01:00
Alistair Riddoch
3167c5cc82 Remove duplicated defaults 2009-04-08 21:48:01 +01:00
Alistair Riddoch
b03a541c46 Remove unused pvp config options 2009-04-08 21:32:44 +01:00
Alistair Riddoch
61d57f84b7 Move socket config options to the new mechanism. 2009-04-08 21:22:19 +01:00
Alistair Riddoch
b4fb3cb179 Add new functions to the interface 2009-04-08 15:50:02 +01:00
Alistair Riddoch
617f66dbef Convert trial option peer_port to the new machanism. 2009-04-08 02:21:54 +01:00
Alistair Riddoch
92406490c4 Add support for option values and reading from varconf 2009-04-08 02:03:14 +01:00
Alistair Riddoch
2685cd105c Add support for the values and defaults 2009-04-08 00:16:35 +01:00
Alistair Riddoch
521b8fdf09 Add new inlined config options system inspired by gflags 2009-04-07 23:17:49 +01:00
Al Riddoch
12ce0672fd 2009-02-09 Al Riddoch <alriddoch@googlemail.com>
* common/globals.h, common/globals.cpp: Add config settings for the
	  python socket.
2009-02-09 05:32:44 +00:00
Al Riddoch
e59f808fed 2008-11-10 Al Riddoch <alriddoch@googlemail.com>
* common/globals.cpp: Fix usage information for dynamic port range
	  options.
2008-11-10 14:01:34 +00:00
Al Riddoch
f76fe6e90e 2008-11-09 Al Riddoch <alriddoch@googlemail.com>
* common/globals.h, common/globals.cpp: Add a global for the http port
	  setting. Move the dynamic port range where there is likely to be
	  more space.
2008-11-09 06:19:40 +00:00
Al Riddoch
49c5f0355c 2008-11-07 Al Riddoch <alriddoch@googlemail.com>
* common/globals.cpp: Modify the way socket paths are handled
	  and allow them to be specified as absolute paths.

	* client/ClientConnection.cpp, server/CommUnixListener.cpp,
	  tools/cyaddrules.cpp, tools/cycmd.cpp: Don't build the complete
	  socket path here, as it is now determined in the config.
2008-11-07 01:21:49 +00:00
Al Riddoch
44a7b3c1cd 2008-04-28 Al Riddoch <alriddoch@googlemail.com>
* common/Database.cpp, common/globals.cpp, common/id.cpp,
	  common/log.cpp, modules/DateTime.cpp, rulesets/Container.h,
	  rulesets/Statistics.h, server/CommListener.cpp,
	  server/CommServer.cpp, tools/cyconfig.cpp, tools/cyconvertrules.cpp:
	  Add includes required for recent compilers which include less
	  stuff implicitly in standard headers.
2008-04-28 17:26:08 +00:00
Al Riddoch
d74e3860c8 2007-12-10 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Add usage information for --help and --version
	  so that the checker does not warn about them.

	* configure.ac: Increment version.

	* NEWS: Update NEWS announcement for release.

	* Release 0.5.15
2007-12-13 00:21:48 +00:00
Al Riddoch
fb12fd3bac 2007-12-05 Al Riddoch <alriddoch@zepler.org>
* server/Persistance.cpp: Add an information message when attempting
	  to create a new instance database.

	* server/server.cpp: Store a new value for the start of the dynamic
	  port range, if one is allocated.

	* common/globals.cpp: Force the instance name into lower case
	  alphanumeric, and underscore only. Reject it if it can't easily
	  be forced.
2007-12-06 02:46:32 +00:00
Al Riddoch
5d30c0705e 2007-12-05 Al Riddoch <alriddoch@zepler.org>
* common/globals.h, common/globals.cpp: Add exported variables for
	  the names of the main config sections.
2007-12-05 21:27:33 +00:00
Al Riddoch
46fa541e69 2007-12-05 Al Riddoch <alriddoch@zepler.org>
* common/globals.h, common/globals.cpp: Provide a separate function
	  for saving user settings back to the home directory. When
	  configuring a new instance, store the ruleset in user settings,
	  and log an informational message rather than a warning.

	* server/server.cpp: When dynamically assigning a port to a new
	  instance, store the port in user settings, and log an informational
	  message. Save the user configuration once the validity has been
	  completely verified and applied.
2007-12-05 17:33:19 +00:00
Al Riddoch
c903f35634 2007-12-05 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Move the instance configuration setting out
	  of a section, and fix the usage code so it can deal correctly with
	  this.
2007-12-05 01:21:11 +00:00
Al Riddoch
ce42e54c4b 2007-12-04 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp, common/globals.h: Add a new config setting for
	  the instance short name, and support per-instance configuration.
	  Add config settings for a dynamic port range.

	* server/server.cpp: Support per-instance configuration and use a
	  dynamic port for non-default instances.
2007-12-04 19:18:17 +00:00