617 Commits

Author SHA1 Message Date
git-svn-migrate
3ef04ef269 Convert svn:ignore properties to .gitignore. 2011-12-11 17:46:34 +02:00
Pasi Kallinen
bb5507b983 Allow defining the login db in config file also when using sqlite.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@628 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-13 16:13:53 +00:00
Pasi Kallinen
a6ab367469 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@627 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 15:35:44 +00:00
Pasi Kallinen
3f402d4bbd Fix ee's check for ERR input (bhaak).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@626 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 14:50:37 +00:00
Pasi Kallinen
97967299ea A very primitive Unicode conversion of ee.
This introduces a 1MB file limit due to a lame static buffer in one place.
(Adam Borowski <kilobyte@angband.pl>)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@625 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 14:49:01 +00:00
Pasi Kallinen
b5d3e6257b Allow getting the server time and date via banner variables:
bannervars = [ "$DATETIME" = timeformat("%F %T") ]


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@624 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 14:34:40 +00:00
Pasi Kallinen
5a0c90fa0f Make bannerstrmangle able to handle arbitrarily long strings.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@623 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 18:05:11 +00:00
Pasi Kallinen
6e6d773dd1 README and Changelog update.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@622 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 16:48:21 +00:00
Pasi Kallinen
85d39473fb Always draw the whole banner.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@621 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 15:50:59 +00:00
Pasi Kallinen
228be4b554 Document commandline parameters and environment variables
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@620 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 19:28:28 +00:00
Pasi Kallinen
4098176edc Document error codes. Make all error conditions return unique error codes.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@619 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 19:06:20 +00:00
Pasi Kallinen
d770f8ed96 Add "duration" watch-mode column, which shows time since the game was started.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@618 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 17:50:41 +00:00
Pasi Kallinen
b42d170041 Add configurable default filemode.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@617 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 19:09:43 +00:00
Pasi Kallinen
acfbf2781d ...except ncurses prevents using escape sequences. Grh.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@616 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 18:01:59 +00:00
Pasi Kallinen
6bce15fd41 Add $ESC(code), which allows changing text color and attributes in banners.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@615 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 17:47:24 +00:00
Pasi Kallinen
1b0489d50f Document $INCLUDE()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@614 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 16:36:58 +00:00
Pasi Kallinen
0ba0998ece Replace server_id with generic configurable string replacements usable in banners.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@613 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 15:31:34 +00:00
Pasi Kallinen
78e94fa5de Add %t string formatting, for the TTYREC of the last played game. (Edoardo Spadolini <kerio00@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@612 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-07 14:41:21 +00:00
Pasi Kallinen
3c51941256 Make sending select-utf8-charset escape code configurable.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@611 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-05 13:57:32 +00:00
Pasi Kallinen
1d7ceb5ddf Make locale configurable.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@610 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-04 14:03:15 +00:00
Pasi Kallinen
acf2705aea Fix defconfig.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@609 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 16:02:30 +00:00
Pasi Kallinen
8c4329175c Fix default watch column indexes (Napkin).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@608 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:57:22 +00:00
Pasi Kallinen
76be23aa5c Add option -i <name> to initialize a player externally. (Marc H. Thoben <root@develz.org>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@607 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:53:34 +00:00
Pasi Kallinen
8e076008d1 Tweak output of -s slightly. (Marc H. Thoben <root@develz.org>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@606 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:49:14 +00:00
Pasi Kallinen
3b189f61d9 Add option -s to show active players. (Marc H. Thoben <root@develz.org>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@605 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:45:46 +00:00
Pasi Kallinen
b2ffeb7c3e try to not stomp all over ncurses' WINCH handler (Jesse Luehrs <doy@tozt.net>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@604 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:42:30 +00:00
Pasi Kallinen
6942ccae67 Stop reinitializing curses inside a signal handler (doy).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@603 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:40:03 +00:00
Pasi Kallinen
e29747ab89 Set a more sane default filemode. (Marc H. Thoben <root@develz.org>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@602 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:37:26 +00:00
Pasi Kallinen
ae54e1ae83 Ignore some more spurious vt100 G-charset switches in IBM mode.
Apparently CAO's ncurses emits it while mine doesn't, and this breaks
    some terminals, including gnome-terminal but not PuTTY.
    (Adam Borowski <kilobyte@angband.pl>)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@601 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:36:03 +00:00
Pasi Kallinen
cc6cf14b6f Blindly assume the user's terminal can do Unicode or be switched into it.
I expect this to work in 99% cases, and if it fails, there's probably no
    regression since I don't know of a terminal that can be easily switched to
    CP437 but doesn't support "\e%G".
    
    It would be better to check if the terminal uses Unicode and convert
    everything to ASCII, and I'll do that soon, but this version might be
    good enough for now.
    (Adam Borowski <kilobyte@angband.pl>)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@600 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:34:01 +00:00
Pasi Kallinen
eae0ddf649 Allow querying the game via --print-charset if encoding is "ask". (Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@599 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:31:15 +00:00
Pasi Kallinen
d497cb4529 Convert ancient encodings on the game's output.
Neither old Crawl nor NetHack accept non-ASCII input, so I didn't bother
    implementing that.
    (Adam Borowski <kilobyte@angband.pl>)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@598 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:28:49 +00:00
Pasi Kallinen
47cfe66d43 ancient encodings: config option (Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@597 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:23:14 +00:00
Pasi Kallinen
70fd9c005b Fix corruption of non-ASCII characters in banners.
I hardcoded the locale to en_US.UTF-8 since it might get passed wrong,
    and it's a reasonable value on public servers.
    (Adam Borowski <kilobyte@angband.pl>)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@596 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:05:31 +00:00
Pasi Kallinen
514e8808a9 Add extra_info_file support. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@595 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:00:14 +00:00
Pasi Kallinen
e2af2199f4 Fix watch_columns shift/reduce conflict: watch_columns was being used in both a standalone rule and as a KeyType. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@594 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:50:35 +00:00
Pasi Kallinen
6439b5788b Document the watch_columns option. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@593 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:49:22 +00:00
Pasi Kallinen
2004c0e472 Accept escape to go back in menus. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@592 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:47:50 +00:00
Pasi Kallinen
a224b6582c Add watch_columns config option. (Darshan Shaligram <scintilla@gmail.com>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@591 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:46:42 +00:00
Pasi Kallinen
9fc78de52e Bugfix: when using sqlite and registering a nick with length longer or equal to max_newnick_len, it may have succeeded even if such a nick already existed.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@590 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 13:47:19 +00:00
Pasi Kallinen
11dfabda89 Fix the "unlink" command so it actually works.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@589 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-08-31 14:42:37 +00:00
Pasi Kallinen
b1e40ba5b7 Add per-game "postcommand" hook, executed right after the game ends.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@588 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-08-31 14:36:22 +00:00
Pasi Kallinen
61e3e65647 When using $INCLUDE() in a bannerfile, don't display the file being included.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@587 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-08-12 18:06:34 +00:00
Pasi Kallinen
24001a23c5 Add TODO: Document the exit error codes.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@586 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-03-28 14:30:19 +00:00
Pasi Kallinen
3405bcf1a8 Add TODO: Cursor keys not working after watching a game of curses-nethack.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@585 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-03-26 19:01:57 +00:00
Pasi Kallinen
3d0812cc3c Also ignore idle time < 5s when sorting by watchers.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@584 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 20:52:29 +00:00
Pasi Kallinen
c6069a8de7 Sort by player name, if "not idle" (less than 5s)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@583 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 19:58:51 +00:00
Pasi Kallinen
a070ebdbf2 Don't show idle times less than 5s.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@582 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 19:23:48 +00:00
Pasi Kallinen
7223417d76 Add account flags for admins, banned accounts, preventing password or email changing.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@581 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 16:39:05 +00:00
Pasi Kallinen
643bebe6ab Don't assume sudo is passwordless.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@580 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-14 21:08:44 +00:00