Commit Graph

75 Commits

Author SHA1 Message Date
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
Pasi Kallinen 877b3e777c Simplify the watching-screen sorting.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@372 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-25 16:27:30 +00:00
Pasi Kallinen 4c0614da1c Allow sorting the watching-screen names by either name or idle-time. (Based slightly on a patch by Dragonizer)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@369 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 18:09:15 +00:00
Pasi Kallinen 7b3bcd72d7 Config-file variable allow_new_nicks
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@360 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-09 16:42:14 +00:00
Pasi Kallinen 4e509075f4 Add new config file value 'mkdir', and allow variables in mkdir and chdir
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@355 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 12:09:42 +00:00
Pasi Kallinen 1feff8677b Watching menu shows what game the players are playing
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@354 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 10:11:38 +00:00
Pasi Kallinen d5636ad844 lockfile is global, not per-game variable
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@352 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:29:45 +00:00
Pasi Kallinen 89825b1ca4 passwd file is global config, not per-game
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@351 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:18:32 +00:00
Pasi Kallinen 59254ed4b7 Add 'chdir' per-game config variable, which defines the dir where dgl will chdir to before executing the game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@350 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:05:12 +00:00
Pasi Kallinen 731caa2fcf Allow setting max nick length in the dgl config file, while still retaining backwards compatibility with old-style, up to 20-char
long nicks.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@347 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 11:10:07 +00:00
Pasi Kallinen 7ec2c4b9cc Allow more than one game per dgl installation.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@345 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-29 20:14:55 +00:00
Joshua Kwan 03718b936e setproctitle for teh lunix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@327 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 19:19:28 +00:00
Joshua Kwan cda1f84bcc stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@303 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:04:36 +00:00
Joshua Kwan 1a36469589 add USER-authentication support
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@291 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-12 00:11:18 +00:00
Joshua Kwan 4d45d4d263 move junk around, genericize things
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@287 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-03 19:27:42 +00:00
Jilles Tjoelker eeb6f9edaa Add possibility to backup the savefile before starting nethack.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@282 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-17 14:04:31 +00:00
Jilles Tjoelker e33b7fabd6 Pass window size to watchers via inprogress file; show it on the list.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@265 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 13:58:03 +00:00
Joshua Kwan da4c7ec4a7 Add a prototype for ttyrec_getpty. [dummy commit to test svn]
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@251 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 09:37:15 +00:00
Joshua Kwan 901a5ea38a Committing this, currently broken, shouldn't be within 5 minutes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@248 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 05:57:36 +00:00
Joshua Kwan 0676d450d0 CRITICAL: Do NOT call writefile() for a new user
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@229 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 22:30:59 +00:00
Joshua Kwan 7f0a010f23 at Pasi's request add option to change email address.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@224 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-05 19:38:17 +00:00
Joshua Kwan b34e8a4af3 Kludge to detect 'maxusers = 0' and handle f_num > myconfig->max more smoothly
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@205 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 08:20:28 +00:00
Joshua Kwan 99e9e4997b Config file blues.. add silent option on command line
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@198 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 06:23:02 +00:00
Joshua Kwan 710df809e0 Allow user to login on the spot.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@195 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 03:04:58 +00:00
Joshua Kwan 6f11c9053a Regenerate dependencies, function prototypes, remove useless includes, globals,
and make code more readable. Move externs into a header file, just tidying up.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@186 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 02:49:29 +00:00
Joshua Kwan aaaa35c525 Fix some stuff related to HUP'ping processes (not completely fixed yet)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@181 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-28 16:31:37 +00:00
Joshua Kwan a095001e0a remove deep_copy function, rename initncurses to initcurses
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@169 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-26 08:29:04 +00:00
Joshua Kwan c4932ed44b Cleanups - globals, extraneous #defines, #include order, etc.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@161 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-25 22:34:35 +00:00
Joshua Kwan 8b9c796b10 Add ability to change location of passwd and lockfile.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@137 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 01:57:44 +00:00