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
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
9f4e5c65c7
various fixes
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@300 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-17 16:42:56 +00:00
Jilles Tjoelker
545e5e8721
Merge J. Ali Harlow's patch for NhExt support, with a few changes.
...
Tested a little whether nethack still works.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@288 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-21 16:22:55 +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
56e5619777
Added dgl-wall to cvsignore, fixed build
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@249 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 09:01:03 +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