Commit Graph

395 Commits

Author SHA1 Message Date
Pasi Kallinen 61ac74268c For errors in config file, report the whole unrecognized token
(and quit right after it) instead of error per char.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@405 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-06 19:35:14 +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 d34e23035a Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@403 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-06 12:35:41 +00:00
Pasi Kallinen dec0e3764f Fix a bug where num_games was one too big.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@402 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-06 10:13:29 +00:00
Pasi Kallinen 73a9f978cd Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@401 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-02 16:50:41 +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 d15a30cf3e Update the example config file, and allow comment-lines in it to have
spaces or tabs before '#'


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@398 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 20:43:13 +00:00
Pasi Kallinen 88adb16393 update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@397 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 20:20:02 +00:00
Pasi Kallinen 9ebb30b417 Allow defining several game_args with one definition:
game_args = "goo", "bar", ..



git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@396 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 19:56:15 +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 1dfea9da26 update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@389 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 11:45:14 +00:00
Pasi Kallinen 3a4a499113 Define both USE_SQLITE3 and USE_SQLITE_DB when --enable-sqlite and/or --sqlite-db is given.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@388 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 11:28:51 +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 8a69418237 Changelog typo, whoops
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@384 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:05:25 +00:00
Pasi Kallinen 3c4f053599 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@383 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-29 01:55:03 +00:00
Pasi Kallinen de9c0c60c9 Update the autotools stuff to allow sqlite handling.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@382 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-29 01:01:07 +00:00
Pasi Kallinen 4145814352 Fix convert script test for already existing db file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@381 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 23:45:15 +00:00
Pasi Kallinen 60be87ff9a Improve the conversion script
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@380 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 12:41:46 +00:00
Pasi Kallinen 8ced697836 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@379 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 12:02:58 +00:00
Pasi Kallinen ffb264cb7c Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@378 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 11:53:19 +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 46fbda0887 Add a shell script to convert the old flat-text database to sqlite database.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@374 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 19:54:05 +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 9875eb144e Changelog update
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@371 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 23:17:24 +00:00
Pasi Kallinen ec7a1c5675 TODO update
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@370 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 18:11:26 +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
Joshua Kwan 7b437cd518 1.4.7
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@368 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 22:39:54 +00:00
Joshua Kwan 0dbf1fe244 release 1.4.7
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@364 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 21:05:21 +00:00
Pasi Kallinen d367cba07d Add some TODO stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@363 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 21:04:03 +00:00
Joshua Kwan e47264d87e fix typo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@362 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-07-05 04:05:41 +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 2659d92164 Update TODO ideas
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@359 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-09 12:57:45 +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 d107435cff Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@357 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-02 18:35:56 +00:00
Pasi Kallinen 9fc8adb586 Update example config file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@356 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 16:06:50 +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 71cbbcbd04 Expand the example config file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@353 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:31:52 +00:00