Commit graph

61 commits

Author SHA1 Message Date
Griatch
167d09b4cd Add secret_settings and mechanisms for managing it. This allows for easier hiding game- and server-specific settings when sharing the game dir with others. 2017-06-04 22:55:28 +02:00
Griatch
008566f358 Move gametime conversion factors to contrib and remove them from the settings file with the motivation that the gametime constats were always highly game specific and a remnant from another time. Reworked the gametime library and add server epoch building from vincent-lg's original PR. The gametime module now deals exclusively in seconds. 2017-02-12 19:16:56 +01:00
Griatch
6b89945cd3 Extract the deprecation checks from the evennia launcher into its own module deprecations.py as it grows. 2017-02-12 19:16:56 +01:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
Griatch
293c3b077d Add external-runner option to the launcher to allow for replacing the native evennia runner with an external process manager (like Linux' start-stop-daemon). Note that without a replacement, this option will make evennia un-reloadable. 2016-12-08 23:24:14 +01:00
Griatch
3a4a097163 Move the SetCtrlHandler call before the firing of the event. 2016-11-25 09:07:49 +01:00
Tehom
870b417855 Cleaner handling of KeyboardInterrupt exception 2016-11-25 09:07:49 +01:00
Tehom
f086433e83 These fixed the exceptions that popped up for me when stopping the evennia process on Windows - believe it or not, the wholly redundant try/except block for printing the success message in evenna_launcher actually removed a traceback.. But since Windows seems incredibly finicky, it'd probably be a good idea to see if it breaks anything for someone else using Windows first. 2016-11-25 09:07:48 +01:00
Griatch
ffb9befd7f Change how evennia stop works under Windows, as per #1100. This introduces the launching of SIGINT-like signals in Windows which unfortunately means the Windows console will show an annoying question about terminating batch jobs (which cannot be removed, apparently). But it should now work consistently with the Linux version when stopping and restarting from the command line. 2016-11-23 19:07:54 +01:00
Griatch
4d3ea8df07 Add support for testing with other settings than the default one. Implements #774. 2016-11-02 21:01:47 +01:00
Griatch
e6f857a536 Remove setting.SEARCH_MULTIMATCH_SEPARATOR, replacing it with SEARCH_MULTIMATCH_REGEX and SEARCH_MULTIMATCH_TEMPLATE. This allows simple yet powerful control over the error output without needing to overload the parser. 2016-09-11 10:39:47 +02:00
Griatch
9856ac735d Remove the use of the python executable when calling twistd.exe in the windows twistd batch file. Interestingly, running python on a Windows executable (as opposed to a python script file) works fine for some (Win7?) while causing errors of a non-recognized file type for others (Win10?). 2016-09-02 23:14:14 +02:00
Griatch
57923bdbc7 Fix an install error in Windows due to the Twisted Windows executable changing name from twistd.py to twistd.exe. 2016-09-02 22:10:04 +02:00
Griatch
edf42a3d06 Fix and clean up some help text in the evennia launcher. 2016-08-10 23:02:01 +02:00
Griatch
49c16b5160 Fix the identification of versions, so e.g. 1.10 > 1.8 by making use of disutils.version.LooseVersion. 2016-07-31 13:19:11 +02:00
Griatch
01c6cbf5f0 Made the inlinefunc->inlinefuncs error appear in a safer location since it could fall away in some common situations. 2016-05-22 20:49:45 +02:00
Griatch
644cf9451f Removed deprecated non-nested {inlinefuncs, only accepting (). Changed the default name of the mygame/server/conf/inlinefunc.py to mygame/server/conf/inlinefuncs.py. Added deprecationwarning for the old name. 2016-05-22 20:49:45 +02:00
Griatch
aa1b8357d8 Made a more elaborate echo when resetting the settings file. 2016-05-22 20:45:42 +02:00
Griatch
198a348d73 Changed some wording 2016-05-22 20:45:39 +02:00
Griatch
faee3510a8 Added a evennia --initsettings for adding an empty settings file to an existing game directory. Made error messages on missing settings files more informative, as discussed on the mailing list. 2016-05-22 20:45:39 +02:00
Griatch
6782ff1333 Made the default_settings file itself detect GAME_DIR, leading to a lot less cookie cutter in the gamedir/server/conf/settings.py file. Refactored the detection algorithm also in the launcher. 2016-05-22 20:45:39 +02:00
Griatch
402b9a7394 Upped twisted requirement to 16.0.0. This because of a backwards incompatible change in Twisted's lLoopingCall that Evennia makes use of. This fixes failings with loading the tutorual world (due to loopingcall errors). 2016-03-24 11:50:58 +01:00
Griatch
907322cc2f Updated Evennia for django 1.9 (1.8 still supported). Run 'pip install --upgrade -e .' in
the Evennia repository to upgrade.
2016-02-20 09:14:31 +01:00
Ahmed Charles
bcd8674ef3 Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Ahmed Charles
ee0db7a50d Use python3 input. 2015-11-02 00:19:04 +01:00
Griatch
a64f7b5630 Some cleanup in the launcher output. 2015-11-01 18:20:08 +01:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
2743f98fb0 Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795. Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils. 2015-09-27 13:05:29 +02:00
Griatch
8234d9c0d0 Changed operation of evennia start (non-interactive). It will now default to have the Server log to stdout (Portal defaults to a logfile as before). Use the -l or --log flag to have the Server log to the logfile specified by server.SERVER_LOG_FILE. 2015-09-08 00:27:24 +02:00
Griatch
4c6ff5b12d Added handling of Ctrl-C in interactive mode. Resolves #803. 2015-09-07 23:57:50 +02:00
Griatch
f1834dc194 Reworked interactive mode, on the way to fixing #803. 2015-09-07 23:45:24 +02:00
Greg Taylor
a9480f9f64 Make evennia -i block until process is closed. Fixes #803. 2015-09-07 23:44:10 +02:00
Greg Taylor
886830b773 Assorted PEP8 cleanups in evennia_launcher.py 2015-09-07 19:57:57 +02:00
Griatch
72049eeddd Made the evennia_launcher gracefully report a missing log directory instead of raising a traceback (a missing log dir happens when cloning game dirs since log files are in .gitignore) 2015-07-08 10:41:47 +02:00
Griatch
57b2396af7 Fixed a unicode error in the evennia launcher. 2015-06-23 08:06:53 +02:00
Griatch
b2ddd34efd Updated parts of server/ dir to google docstrings as per #709. 2015-06-22 21:02:03 +02:00
Jonathan Piacenti
a5887d23e2 Make command ambiguity handler pluggable. 2015-06-20 13:18:50 -05:00
Griatch
97e04ee710 Twisted min version upped to 15.2.1 due to a change in the LoopingCall infrastructure that Evennia relies on. This resolves #744 by updating the Evennia implementation accordingly. 2015-05-27 22:35:05 +02:00
Griatch
a53eadc0f1 Made the error clearer when trying to start the server without first having created the database 2015-05-03 13:37:25 +02:00
Griatch
b59e38caf5 Adding migrations for django1.8. 2015-04-04 00:08:51 +02:00
Griatch
df5c5f4fed Added a better check to account for changes in django1.8+. 2015-04-04 00:08:51 +02:00
Griatch
ee1ec3979c Updates for making Evennia compatible with Django 1.8+. Still not fully functioning. 2015-04-04 00:08:51 +02:00
Griatch
e778582dca removed the individual typeclass path prefixes from settings file, replacing it with the general TYPECLASS_PATH since typeclasses are now more likely to be grouped together anyway. 2015-03-15 16:36:25 +01:00
Griatch
fe48757928 Made settings listing from launcher alphabetical. Fixed bug in mxp-to-html for the webclient. 2015-03-07 16:04:08 +01:00
Griatch
a1a821b7b5 added listsettings option to evennia launcher, to easier inspect the values of the currently chosen settings file. 2015-03-07 01:37:31 +01:00
Griatch
000f14c028 Updated how the automatic timeout closes the session on the portal side. A lot cleaner now. 2015-03-06 18:52:29 +01:00
Griatch
9d6b4bd545 fixed kwarg multiple-option call to django-admin 2015-03-05 15:41:21 +01:00
Griatch
9392154ab7 Added --settings option to evennia-launcher. 2015-03-05 15:33:09 +01:00
Griatch
d3f06218f8 Minor update to parsing 2015-03-05 15:04:20 +01:00