Commit Graph

172 Commits

Author SHA1 Message Date
Pasi Kallinen b13a65584a Make process titles give more information
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@408 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-12 23:15:30 +00:00
Pasi Kallinen 7fad594685 Tweak some messages given to user
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@407 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-12 22:51:12 +00:00
Pasi Kallinen a5eab78b5a Better handling of tty loss
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@406 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-12 22:29:13 +00:00
Pasi Kallinen ada1c093b6 Make sortmode keep it's value even if you back out of the watching window.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@404 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-06 17:40:57 +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 efcfb05f41 Don't do other NetHack-specific stuff either in dgl itself...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@394 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 17:59:53 +00:00
Pasi Kallinen b029b458f3 Don't set NETHACKOPTIONS env var inside dgl, set it in config file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@393 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 17:54:05 +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 41d038ef3e bugfix: registration was allowed from the main menu even when allow_new_nicks = 0 in dgl rcfile.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@390 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 12:05:08 +00:00
Pasi Kallinen ad74bfdd77 No need to check for buffer existence, gets rid of warnings
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@387 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 09:00:16 +00:00
Pasi Kallinen 19a66fc451 configure sorts the config.h defines alphabetically,
so change DGL_SQLITE_DB to USE_SQLITE_DB so it's next to USE_SQLITE3.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@386 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:44:02 +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 0633108e74 Fix the sqlite3 addition: Newly registered nicks shouldn't interfere with already registered ones.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@377 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 10:01:35 +00:00
Pasi Kallinen 843b212de7 Remove some fixme-comments which are done already.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@376 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 23:48:25 +00:00
Pasi Kallinen 56ba2a56b6 When the sqlite db is locked, retry up to ten times, sleeping one second between tries.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@375 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 23:44:09 +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 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 abb8f106f6 Fix a bug; inprogress-dir is now configurable, so use that string length for str alloc instead of assuming it's 11 chars.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@361 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-06-11 19:40:51 +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 f4a322f996 Fix segfault when no mkdir or chdir defined
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@358 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-06 23:13:06 +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 f64b9da317 Fix watching, thanks to Jilles!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@349 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 16:21:58 +00:00
Pasi Kallinen c0b1bdfa8e Fix inprogress file name truncation
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@348 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 15:17:26 +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 7e976aa770 use a copy of the environment variable instead of the actual spot on the heap
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@338 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 08:58:32 +00:00
Jilles Tjoelker 0817cc32e8 * Make sure curses will redraw the watch list after 'm' has been used
* ^L and ^R will redraw the entire screen in the watch list


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@334 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 12:59:33 +00:00
Joshua Kwan 8f78e6128c use libgen.h
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@328 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 23:34:13 +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
Jilles Tjoelker dc7b46bbfe Use setproctitle(3), if available, to hide autologin password and show logged
in user and whether they are playing.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@325 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-28 19:41:06 +00:00
Joshua Kwan 6fecd2b69d hide all extra arguments, because they're probably -p
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@321 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-22 16:36:09 +00:00
Joshua Kwan aa1a46543b fix everything!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@309 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 21:16:50 +00:00
Joshua Kwan eee0d887dc bum da bum
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@306 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:18:13 +00:00
Joshua Kwan 9aee4e563f various fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@304 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:16:22 +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 8e89cf0e65 autoconfize
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@301 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 17:57:29 +00:00
Joshua Kwan cd3f89cbc9 assert
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@297 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 18:06:25 +00:00
Joshua Kwan e07195ad82 wtf?
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@296 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 08:43:51 +00:00
Joshua Kwan f6b9135c34 pretty serious bugfix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@292 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-13 03:05:47 +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 f293d97c68 NULLify me if login fails
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@289 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-22 15:04:15 +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 61c7349a86 Change clear() to erase() for less flicker when refreshing watch list.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@286 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-21 16:53:07 +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