Commit graph

94 commits

Author SHA1 Message Date
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
Al Riddoch
29415a6a6e 2007-11-14 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp, common/globals.h: Modify the loadConfig
	  function so it takes usage hints, and checks the options in known
	  sections against those in the usage help.

	* client/client.cpp, server/server.cpp, tools/cyaddrules.cpp,
	  tools/cycmd.cpp, tools/cydumprules.cpp, tools/cyloadrules.cpp,
	  tools/cypasswd.cpp: Convert all calls to loadConfig to provide
	  the right hints.
2007-11-14 22:40:17 +00:00
Al Riddoch
420e77561a 2007-11-05 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Add a template function that ensures config
	  values are read without having to repeat the section and key.
	  Much less verbose and more obvious. Set the default ruleset in a
	  more sane way.
2007-11-05 04:11:38 +00:00
Al Riddoch
4adaff13ef 2007-10-01 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Make a missing config file no longer fatal,
	  as the default are now sane, and do work.

	* server/server.cpp: Fix up some error and status messages.
2007-10-01 04:57:15 +00:00
Al Riddoch
336c8cd203 2007-10-01 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Make the default ruleset "mason" as basic
	  no longer exists in the default install. Remove some error
	  messages which no longer apply.
2007-10-01 04:43:13 +00:00
Al Riddoch
2069f3dd4c 2007-07-29 Al Riddoch <alriddoch@zepler.org>
* common/log.cpp, common/log.h: Switch to taking a C++ string reference
	  rather than a char *, as it is not really an optimisation, and it
	  makes the code simpler to read and write.

	* client/BaseClient.cpp, client/ClientConnection.cpp,
	  common/AtlasFileLoader.cpp, common/BaseEntity.cpp,
	  common/Database.cpp, common/globals.cpp, common/id.cpp,
	  common/inheritance.cpp, common/log.cpp, common/log.h,
	  rulesets/Character.cpp, rulesets/Creator.cpp, rulesets/Entity.cpp,
	  rulesets/MemMap.cpp, rulesets/Motion.cpp, rulesets/Pedestrian.cpp,
	  rulesets/Py_Object.cpp, rulesets/Py_RootEntity.cpp,
	  rulesets/PythonMindScript.cpp, rulesets/PythonThingScript.cpp,
	  rulesets/Python_API.cpp, rulesets/Thing.cpp, server/Account.cpp,
	  server/Admin.cpp, server/ArithmeticFactory.cpp,
	  server/CommClient.cpp, server/CommListener.cpp,
	  server/CommMDNSPublisher.cpp, server/CommServer.cpp,
	  server/Connection.cpp, server/EntityFactory.cpp,
	  server/Persistance.cpp, server/Restoration.cpp,
	  server/ScriptFactory.cpp, server/TaskFactory.cpp,
	  server/WorldRouter.cpp, server/server.cpp: Convert over to using
	  new API correctly.

	* data/mason.xml: Add biomass and transient to fircone, making its
	  script obsolete:
2007-07-29 03:33:33 +00:00
Al Riddoch
f8a2731576 2007-06-19 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp, common/globals.h: Change the type and name
	  of the ruleset list to a string.

	* rulesets/Python_API.cpp, server/EntityFactory.cpp,
	  server/server.cpp, tools/cyaddrules.cpp, tools/cydumprules.cpp,
	  tools/cyloadrules.cpp: Switch to using single ruleset config
	  variable.
2007-06-19 13:19:57 +00:00
Al Riddoch
6f8c07fe76 2007-06-19 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Remove loading config data for inherited
	  rulesets.

	* rulesets/Python_API.cpp: Add the python path for mind code
	  manually, and only add one path for the ruleset.
2007-06-19 12:54:54 +00:00
Al Riddoch
1c1c64d959 2007-05-07 Al Riddoch <alriddoch@zepler.org>
common/globals.cpp: Fix the namespacing of the access system call.
2007-05-07 22:53:13 +00:00
Al Riddoch
74b0e5c5ca 2007-05-07 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Fix the check_tmp_path() function, so it is
	  actually checking the path it has been given, add an access check
	  so we detect a temporary directory that exists but does not have
	  right permissions. Fix the error reporting when both paths fail.
2007-05-07 22:45:15 +00:00
Al Riddoch
7512de5046 2007-05-01 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp: Add version and help options to the usage
	  information.
2007-05-02 00:14:38 +00:00
Al Riddoch
1b457a7439 2007-04-29 Al Riddoch <alriddoch@zepler.org>
* common/globals.h, common/globals.cpp: Flag the usage data for
	  cycmd and database tools. Add an additional argument to the
	  usage function for programs which take additional non-varconf
	  arguments.

	* tools/cyaddrules.cpp, tools/cycmd.cpp, tools/cydumprules.cpp,
	  tools/cyloadrules.cpp: Add usage to the rest of the tools.

	* client/client.cpp: Add additional argument usage information.
2007-04-29 13:32:27 +00:00