Commit graph

249 commits

Author SHA1 Message Date
Alistair Riddoch
e9d93045bd Add the necessary exception catches around createObject. 2009-08-02 17:10:51 +01:00
Alistair Riddoch
5ec0a5c57b Remove DateTime from a whole bunch of dependencies 2009-05-07 14:05:29 +01:00
Alistair Riddoch
e4be4eed46 Move more options to the new dynamic mechanism. 2009-04-09 00:13:15 +01:00
Alistair Riddoch
61d57f84b7 Move socket config options to the new mechanism. 2009-04-08 21:22:19 +01:00
Al Riddoch
09b8ef151e Strip out all the old Id data 2009-04-08 10:48:43 +01:00
Alistair Riddoch
ff5bee5ddb dd support for changing account passwords. 2009-03-20 16:58:29 +00:00
Alistair Riddoch
b25d743fbc Remove all the cvsignore files. 2009-03-20 01:54:35 +00:00
Alistair Riddoch
7479da8ce4 Rename accountbase file to AccountBase to match class. 2009-03-20 01:39:18 +00:00
Alistair Riddoch
0b2aaa4b12 Add options to "cydb user mod" to better support type change, and in
future support password.
2009-03-19 19:03:37 +00:00
Alistair Riddoch
823baf725a Implement a whole load more database functionality 2009-03-18 21:54:15 +00:00
Alistair Riddoch
bdc9055893 Implement the command to purge world data. 2009-03-18 15:59:23 +00:00
Al Riddoch
8093c17a00 2009-03-11 Al Riddoch <alriddoch@googlemail.com>
* tools/cydb.cpp: Fill out the subsystem mechanism.
2009-03-11 12:28:40 +00:00
Al Riddoch
6ccd8ac05a 2009-02-09 Al Riddoch <alriddoch@googlemail.com>
* tools/cypython.cpp: Add history to the readline functionality.
2009-02-09 19:14:03 +00:00
Al Riddoch
89a533f460 2009-02-09 Al Riddoch <alriddoch@googlemail.com>
* tools/cypython.cpp: Ensure varconf types are fully defined when
	  the object gets deleted.
2009-02-09 14:44:42 +00:00
Al Riddoch
08c477661d 2009-02-09 Al Riddoch <alriddoch@googlemail.com>
* tools/cypython.cpp: Add a tool to inject python lines into the
	  server.
2009-02-09 05:48:41 +00:00
Al Riddoch
c03b9f12b3 2009-02-06 Al Riddoch <alriddoch@googlemail.com>
* tools/cycmd.cpp: Get rid of crazy template code and replace with
	  straightforward generic client code with two connect methods.
2009-02-06 15:01:38 +00:00
Al Riddoch
319789147f Remove a whole bunch of files that have long been removed from the build
but not removed from cvs.
2009-01-18 03:32:34 +00:00
Al Riddoch
42571fd756 2008-12-07 Al Riddoch <alriddoch@googlemail.com>
* tools/cydb.cpp: Add code for handle db connection.
2008-12-07 17:33:11 +00:00
Al Riddoch
0e7ed7b598 2008-12-01 Al Riddoch <alriddoch@googlemail.com>
* tools/cydb.cpp: Add the ground work for a new tool to perform
	  various admin tasks on the database.
2008-12-01 22:18:01 +00:00
Al Riddoch
c2cd20945d 2008-11-07 Al Riddoch <alriddoch@googlemail.com>
* tools/cyaddrules.cpp: Switch varconf/Config.h to the lower
	  case name.
2008-11-07 04:04:55 +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
67a9d94314 2008-11-03 Al Riddoch <alriddoch@googlemail.com>
* common/system.cpp, common/system.h: Add security_init(), a
	  function to initialise any security or crypto related libraries
	  used. This is required by recent version of libgcrypt when
	  using hash functions.

	* server/server.cpp, tests/systemtest.cpp, tools/cypasswd.cpp:
	  Call security_init() in all programs that use security related
	  functions.
2008-11-03 17:12:31 +00:00
Al Riddoch
353eb822e2 2008-10-22 Al Riddoch <alriddoch@googlemail.com>
* server/Makefile.am, tools/Makefile.am: Update the static libraries
	  required for relocatable portable binaries.
2008-10-22 14:09:07 +00:00
Al Riddoch
a043e08123 2008-09-15 Al Riddoch <alriddoch@googlemail.com>
* tools/cycmd.cpp: Add a new command to allow the creation of
	  more arbitrary in game entities.
2008-09-15 17:17:19 +00:00
Al Riddoch
011587b688 2008-08-24 Al Riddoch <alriddoch@googlemail.com>
* tools/cycmd.cpp: Add a cast so the compiler does not warn about
	  string constants.
2008-08-24 22:03:11 +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
e418f9a1ef 2008-01-13 Al Riddoch <alriddoch@googlemail.com>
* client/BaseClient.cpp, client/ClientConnection.cpp,
	  common/BaseWorld.h, common/OperationRouter.h, common/TypeNode.h,
	  common/inheritance.cpp, common/inheritance.h, common/types.h,
	  rulesets/ActivePropertyFactory.h, rulesets/AtlasProperties.h,
	  rulesets/EntityPropertyFactory.h, rulesets/LocatedEntity.h,
	  rulesets/MemMap.h, rulesets/Motion.h, rulesets/Movement.h,
	  rulesets/Pedestrian.h, rulesets/PythonThingScript.cpp,
	  rulesets/Statistics.h, rulesets/Task.h, server/Account.h,
	  server/Connection.h, server/Player.h, server/ServerRouting.h,
	  server/WorldRouter.h, tests/OperationExerciser.h, tools/cycmd.cpp:
	  A major clean up and re-work in internal headers.
2008-01-13 01:32:54 +00:00
Al Riddoch
292f16d1ea 2007-12-07 Al Riddoch <alriddoch@zepler.org>
* common/Database.h, common/Database.cpp: Add a new decoder for atlas
	  objects, and use it when getting the full contents of a table
	  full of Atlas data.

	* server/Persistance.cpp, server/Persistance.h: Modify the API
	  for getting the rules table to use atlas objects rather than
	  messages.

	* server/EntityFactory.cpp: Re-enable loading rules from the
	  Database, now that the data is available from the peristence
	  API in the right format.
2007-12-07 17:42:58 +00:00
Al Riddoch
8026e6ae90 2007-12-05 Al Riddoch <alriddoch@zepler.org>
* common/Database.cpp, common/Database.h: Remove the flag specifying
	  that the database should be created at connection time, as we
	  basically can't do this. Make the default database name depend on
	  instance name currently in use.

	* common/accountbase.cpp, tools/cydumprules.cpp, tools/cyloadrules.cpp:
	  Fix code for the change to the database API.
2007-12-05 22:43:46 +00:00
Al Riddoch
5b43c0cc59 2007-11-20 Al Riddoch <alriddoch@zepler.org>
* tools/Makefile.am, tools/cyconfig.cpp, tools/cyconvertrules.cpp:
	  Add support for --help and --version to everything.
2007-11-20 02:40:37 +00:00
Al Riddoch
4b47bb7624 2007-11-16 Al Riddoch <alriddoch@zepler.org>
* tools/cycmd.cpp: Make some checks clearer.
2007-11-16 02:41:38 +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
aea12d3a0d 2007-11-05 Al Riddoch <alriddoch@zepler.org>
* tools/cyaddrules.cpp, tools/cycmd.cpp: Use less verbose function
	  template to read config values.
2007-11-05 19:42:10 +00:00
Al Riddoch
419f405ac2 2007-09-22 Al Riddoch <alriddoch@zepler.org>
* common/log.cpp: Return correctly from the event log testing
	  function.

	* tools/cydumprules.cpp: Remove obsolete usage reporting function.
2007-09-22 15:05:34 +00:00
Al Riddoch
87ecdcad4b 2007-07-30 Al Riddoch <alriddoch@zepler.org>
* client/Py_CreatorClient.cpp, common/Database.cpp,
	  common/accountbase.cpp, common/system.cpp, rulesets/Character.cpp,
	  rulesets/Motion.cpp, rulesets/Plant.cpp, rulesets/Py_Location.cpp,
	  rulesets/Py_Mind.cpp, rulesets/Py_Operation.cpp,
	  rulesets/Py_Point3D.cpp, rulesets/Py_Statistics.cpp,
	  rulesets/Py_Task.cpp, rulesets/Py_TerrainProperty.cpp,
	  rulesets/Py_Thing.cpp, rulesets/Py_Vector3D.cpp,
	  rulesets/Py_WorldTime.cpp, rulesets/Python_API.cpp,
	  rulesets/TerrainProperty.cpp, server/Admin.cpp,
	  server/CommServer.cpp, server/Connection.cpp,
	  server/EntityFactory.cpp, server/WorldRouter.cpp,
	  tools/cycmd.cpp, tools/cyconvertrules.cpp, tools/cyctrl.cpp:
	  Remove unnecessary () from conditional expressions, where operator
	  binding is clear.
2007-07-30 18:12:50 +00:00
Al Riddoch
e7d031876e 2007-07-29 Al Riddoch <alriddoch@zepler.org>
* common/log.cpp, common/log.h, common/BaseEntity.cpp,
	  common/BaseEntity.h: Switch to taking a C++ string reference rather
	  than a char *, for the rest of the logging and error related
	  calls.

	* common/Database.cpp, common/log.cpp, common/log.h,
	  rulesets/PythonMindScript.cpp, server/Account.cpp,
	  server/Admin.cpp, server/Connection.cpp, server/Player.cpp,
	  tools/cyisoload.cpp: Convert over to using the new API correctly.
2007-07-29 12:22:58 +00:00
Al Riddoch
15a0d3c15f 2007-07-17 Al Riddoch <alriddoch@zepler.org>
* autopackage/default.apspec.in: Explicitly enable binreloc for
	  autopackage builds.

	* server/Makefile.am, tools/Makefile.am: Link a couple more libraries
	  statically.
2007-07-17 01:27:11 +00:00
Al Riddoch
f4d4ac8938 2007-06-22 Al Riddoch <alriddoch@zepler.org>
* server/EntityFactory.cpp, tools/cyaddrules.cpp,
	  tools/cyloadrules.cpp: Remove some directory walking debug output.
2007-06-22 12:58:59 +00:00
Al Riddoch
9178cce27f 2007-06-19 Al Riddoch <alriddoch@zepler.org>
* tools/cydumprules.cpp: Re work the rule dumper to use the ruleset
	  column more correctly.
2007-06-19 17:45:56 +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
13d0e5e00f 2007-06-16 Al Riddoch <alriddoch@zepler.org>
* data/Makefile.am: Install the xml files for mason into the mason.d
	  subdir, as the rule loading code now prefers.

	* server/EntityFactory.cpp, tools/cyaddrules.cpp,
	  tools/cyloadrules.cpp: Modify the way rule xml files are loaded
	  so files from the ruleset specific subdirectory are loaded first,
	  and the legacy way of doing it is done if this files, with a warning
	  message.
2007-06-16 13:39:54 +00:00
Al Riddoch
1e1fc0c825 2007-06-12 Al Riddoch <alriddoch@zepler.org>
* tools/AdminClient.cpp: Add a message reporting when a rule is not
	  uploaded because it has been overridden.
2007-06-12 18:56:21 +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
Al Riddoch
d597378886 2007-04-28 Al Riddoch <alriddoch@zepler.org>
* common/globals.cpp, common/globals.h: Add interfact and mechanism
	  for showing usage data for all the programs given one central
	  location for the data.

	* server/server.cpp: Test out the usage function.

	* tools/cypasswd.cpp: Display usage using the old mechanism.
2007-04-28 16:45:13 +00:00
Al Riddoch
41d00bcab1 2007-04-28 Al Riddoch <alriddoch@zepler.org>
* commong/globals.h, common/globals.cpp: Add definitions for different
	  error codes from reading the config file, in particular codes that
	  indicate that the user has requested version, help or usage
	  information. Add a function for reporting the version of tools.

	* server/server.cpp: Add support for version or usage arguments,
	  including specific reporting of the server build number, which is
	  does not apply when reporting the version of other components.

	* tools/Makefile.am: Fix the globals modules dependency on consts.

	* tools/cypasswd.cpp: Add support for version or usage arguments.
2007-04-28 15:21:17 +00:00
Al Riddoch
e5eb644147 2007-04-24 Al Riddoch <alriddoch@zepler.org>
* tools/cypasswd.cpp: Improve the usage documentation.

	* common/globals.cpp: Add a varconf parameter lookup to allow
	  shorthand arguments to be used to request usage information.
2007-04-24 12:59:26 +00:00
Al Riddoch
39a4cb71be 2007-02-07 Al Riddoch <alriddoch@zepler.org>
* rulesets/Character.cpp: Don't complain about unknown tick types.

	* tools/cycmd.cpp: Use a cleaner more consistent way to identify
	  tick ops that are for this client.
2007-02-07 23:08:26 +00:00
Al Riddoch
1eebf58f98 2007-02-07 Al Riddoch <alriddoch@zepler.org>
* tools/cycmd.cpp: All add_agent command to specify avatar type,
	  so cycmd is usable with non-priveleged accounts.
2007-02-07 23:00:41 +00:00
Al Riddoch
900f0d4c86 2007-01-09 Al Riddoch <alriddoch@zepler.org>
* tools/cycmd.cpp: Implement the delete command for in game
	  entities.
2007-01-09 11:51:37 +00:00
Al Riddoch
33208a9068 2007-01-08 Al Riddoch <alriddoch@zepler.org>
* data/mason.xml: Set default mass on bottle entity.

	* tools/cycmd.cpp: Add help for upcoming delete command. Improve
	  readability by using available typedefs.

	* rulesets/Thing.cpp: Hide some debug output.
2007-01-08 23:30:04 +00:00