Commit Graph

103 Commits

Author SHA1 Message Date
Pasi Kallinen b5d3e6257b Allow getting the server time and date via banner variables:
bannervars = [ "$DATETIME" = timeformat("%F %T") ]


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@624 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 14:34:40 +00:00
Pasi Kallinen 85d39473fb Always draw the whole banner.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@621 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 15:50:59 +00:00
Pasi Kallinen d770f8ed96 Add "duration" watch-mode column, which shows time since the game was started.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@618 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 17:50:41 +00:00
Pasi Kallinen 0ba0998ece Replace server_id with generic configurable string replacements usable in banners.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@613 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 15:31:34 +00:00
Pasi Kallinen 78e94fa5de Add %t string formatting, for the TTYREC of the last played game. (Edoardo Spadolini <kerio00@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@612 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-07 14:41:21 +00:00
Pasi Kallinen 3c51941256 Make sending select-utf8-charset escape code configurable.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@611 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-05 13:57:32 +00:00
Pasi Kallinen 1d7ceb5ddf Make locale configurable.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@610 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-04 14:03:15 +00:00
Pasi Kallinen 47cfe66d43 ancient encodings: config option (Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@597 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:23:14 +00:00
Pasi Kallinen 514e8808a9 Add extra_info_file support. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@595 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:00:14 +00:00
Pasi Kallinen a224b6582c Add watch_columns config option. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@591 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:46:42 +00:00
Pasi Kallinen b1e40ba5b7 Add per-game "postcommand" hook, executed right after the game ends.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@588 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-08-31 14:36:22 +00:00
Pasi Kallinen 7223417d76 Add account flags for admins, banned accounts, preventing password or email changing.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@581 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 16:39:05 +00:00
Pasi Kallinen 0321c2713c Remove the internal text editor and all the support code; now compiles virus and ee as standalone executables.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@575 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 20:39:32 +00:00
Pasi Kallinen 725b6cd1d2 Improve signal handling a bit
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@569 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 06:50:18 +00:00
Pasi Kallinen 413256523c If using ncurses, use color to hilight games with too big terminals in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@563 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 17:46:47 +00:00
Pasi Kallinen e80d1c338b Remove the watcher if user kills the terminal while watching.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@556 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-06 16:01:08 +00:00
Pasi Kallinen ffc63ae838 Use longs in shmem structs (Might prevent alignment problems)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@541 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-02 08:15:01 +00:00
Pasi Kallinen 113fc564ef Show the number of people watching each game in the watching-menu.
Also allow sorting by # of watchers.   
Requires dgamelaunch to be compiled with --enable-shmem


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@536 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-01 14:41:54 +00:00
Pasi Kallinen ef7d6eb846 Define menu_max_idle_time option to kill dgl when the user idles too long. From Darshan Shaligram
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@531 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:32:57 +00:00
Pasi Kallinen 9934d365bd Allow dgamelaunch to kill processes that are idle for too long with SIGHUP. From Darshan Shaligram
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@530 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:02:51 +00:00
Pasi Kallinen 445e54f8f8 Change max. length of mail message from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@526 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-02-25 17:02:32 +00:00
Pasi Kallinen 41c0322ad9 Change max. length of passwords from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@518 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-28 17:53:00 +00:00
Pasi Kallinen 9bed813458 Change max. length of player name from magic number to a define.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@516 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-27 18:41:35 +00:00
Pasi Kallinen ae11d81827 Allow sorting by all of the fields in the watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@507 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 19:29:47 +00:00
Pasi Kallinen c237c27478 Rename dgl's local_{COLS,LINES} so they don't collide with ee
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@492 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:57:12 +00:00
Pasi Kallinen c08ce22995 Free populated games.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@476 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:39:19 +00:00
Pasi Kallinen 65bc2cee98 Handle screen size changes.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@471 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 00:17:50 +00:00
Pasi Kallinen 972bb6fa6b Add per-game configurable ttyrec-dir; If it's not defined for some game,
no ttyrecs are saved for that game, and those games cannot be spectated.

Add more debugging output to dgldebug.log -file

Add configure option --enable-debugfile to enable or disable the debugging log.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@468 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 20:26:56 +00:00
Pasi Kallinen 39456b7a75 Make dgl-create-chroot -script work again.
Change the dgldir directory layout; all rcfiles, dumps and ttyrecs are now under dgldir/userdata/USERNAME/


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@466 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 17:34:36 +00:00
Pasi Kallinen 24a8f3a448 Add a "gameend" hook. Patch from jorgenpt.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@464 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-02 17:41:12 +00:00
Pasi Kallinen 3801c41172 Use HAVE_SETENV. This must've been a leftover from before configure was used.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@461 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-07-25 15:21:15 +00:00
Pasi Kallinen 715108f70d Fix a bug where users couldn't exit from dgl. Found by blindcoder.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@449 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-08-23 12:39:01 +00:00
Pasi Kallinen db5bcbaf85 Add $SERVERID and server_id stuff so admin can change the server ID (url, telnet address, whatever) simply by editing one line in the
config file.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@444 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 11:21:29 +00:00
Pasi Kallinen 146947b386 Make watching-screen default sortmode configurable
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@441 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 09:13:50 +00:00
Pasi Kallinen 2184a3609c Allow any number of different games per dgl installation without needing to recompile.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@437 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 22:55:46 +00:00
Pasi Kallinen 9612c57b94 Admin-defineable menu structures.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@432 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 13:29:19 +00:00
Pasi Kallinen 4eb5ec3c68 For now, make game config files (and other files) created by dgl a+rw
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@430 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-23 18:01:56 +00:00
Pasi Kallinen dbc778b478 Generalize the retarded clients / flood checking, and reset it when we played a game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@427 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-21 13:15:34 +00:00
Pasi Kallinen b57983ec56 Add new config-file commands for quit, watch_menu, ask_login and ask_register
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@422 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-14 22:06:32 +00:00
Pasi Kallinen 0ee48979db Add config file command "chmail" that will ask the user to change his email
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@419 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 18:28:50 +00:00
Pasi Kallinen 7d639dea61 Add config file command "chpasswd" which will prompr user to change his password, if logged in.
Also, remove dgl-wall from Makefile, because it doesn't work anymore.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@417 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 18:12:20 +00:00
Pasi Kallinen 45f9640554 Add a new configuration file command ifnxcp that allows file copying without overwriting already existing file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@410 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 00:12:59 +00:00
Pasi Kallinen 83de87968d Add a configuration command to execute an arbitrary file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@409 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-12 23:47:45 +00:00
Pasi Kallinen eb4a08c8ea configure now accepts parameter --num-games=INT which will
set the maximum number of games dgamelaunch supports.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@400 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 21:41:17 +00:00
Pasi Kallinen eb2fdc2629 Minor comment/whitespace cleaning
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@399 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 20:57:50 +00:00
Pasi Kallinen 4f95c35047 Remove the old mkdir and chdir options to prevent lex collisions
with the commands mkdir and chdir


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@395 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 18:13:54 +00:00
Pasi Kallinen 0d509576d8 Remove savefilefmt from config file; backing up the savefile
can now be done with per-game commands.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@392 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 17:36:46 +00:00
Pasi Kallinen 24cb396d16 Two new things:
1) Allow admin to define some commands that are run when something happens.
   format is

commands [ <time> ] = <command> ...

<time> can be one of:
 login     = when user logs in
 dglstart  = when someone telnets in
 register  = when a new user is registered
 gamestart = when a game is started

<command> is:
 mkdir "foo"       = creates a directory "foo"
 chdir "foo"       = changes current work dir to "foo"
 cp "foo" "bar"    = copies file "foo" to "bar"
 unlink "foo"      = deletes file "foo"
 setenv "foo "bar" = sets environment variable "foo" to "bar"

For example

commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo"


You can also define per-game commands that are executed when
the game is started.


2) Defining game info in the config file has changed slightly.
   Put "DEFINE { ... }" around the game-specific stuff.

See the example config file.



git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@391 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 17:03:05 +00:00
Pasi Kallinen 6dbf5f4728 Unify the flat-text and sqlite handling
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@385 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:29:28 +00:00
Pasi Kallinen 9858f42424 Allow SQLite for the user login database, instead of the flat text file.
Define USE_SQLITE3 in the config.h, and define DGL_SQLITE_DB as the
database file to be used.  Note that sqlite must have write access to
the directory where the db file is.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@373 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 19:52:48 +00:00