Commit Graph

426 Commits

Author SHA1 Message Date
Pasi Kallinen 25d36a74f5 Define the admin-hasn't-installed-banner-file string in just one place
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@436 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 17:52:32 +00:00
Pasi Kallinen ef7920a624 add the retard check to the new menus
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@435 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 15:07:26 +00:00
Pasi Kallinen 3e2e1c1721 Remove unused menu code
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@434 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 14:59:31 +00:00
Pasi Kallinen 94ea761a7b Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@433 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-05 14:52:45 +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 7678120451 update todo, we have a minor bug
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@431 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-26 20:30:37 +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 7dfa5ca681 Call endwin() every time we leave, just in case.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@429 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-23 16:55:32 +00:00
Pasi Kallinen d5a33f3ad2 Replace last flood protection with retard protection, and make the protection reset when editing options file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@428 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-23 12:51:21 +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 4e082fbcd6 Update todo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@426 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-20 17:05:09 +00:00
Pasi Kallinen 802018c137 If we can't read from the canned rc file, don't create empty default one.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@425 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-20 17:03:17 +00:00
Pasi Kallinen 53b361ea54 Fix bug where all queues were connected.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@424 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-03-20 17:00:31 +00:00
Pasi Kallinen 11b20c6b73 Don't stop executing the cmdqueue even if file copy fails
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@423 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-15 22:01:44 +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 ea203348e1 Update Changelog and TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@421 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 20:36:24 +00:00
Pasi Kallinen 2b909a3610 Return to dgamelaunch after the game ends.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@420 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 20:34:43 +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 2d0a128be7 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@418 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 18:18:42 +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 979f455eb0 More TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@416 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 12:31:32 +00:00
Pasi Kallinen 5c5a2443e7 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@415 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 12:21:31 +00:00
Pasi Kallinen a8efb00680 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@414 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 10:53:08 +00:00
Pasi Kallinen ed2a1a4a78 Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@413 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 10:49:35 +00:00
Pasi Kallinen e266a3bf7d Change allow_new_nicks to accept either "yes" or "no", not a number.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@412 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 10:38:45 +00:00
Pasi Kallinen eba56654bd Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@411 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 00:26:25 +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 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 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