Commit Graph

599 Commits

Author SHA1 Message Date
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
Pasi Kallinen 8fdf52f018 Ensure the watching menu page isn't outside the list. This can happen when returning
from watching a game on page 2 and there's fewer games being played.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@579 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-12-18 12:14:25 +00:00
Pasi Kallinen 16a15a6ff2 Update example config url and year.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@578 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-11-13 20:55:19 +00:00
Pasi Kallinen 30c458d9fc Add %N string mangling that returns the first character of the user's name.
This is a hack to work around the userdata directory limits.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@577 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-10-12 13:47:40 +00:00
Pasi Kallinen 1abe3a1117 TTY playback fixes from blackpenguin.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@576 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-09-13 16:18:22 +00:00
Pasi Kallinen 0321c2713c Remove the internal text editor and all the support code; now compiles virus and ee as standalone executables.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@575 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 20:39:32 +00:00
Pasi Kallinen ff31d082d1 Make ncurses redraw the whole screen after watching someone.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@574 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 19:58:32 +00:00
Pasi Kallinen 693eb02d0d Move screen clears and refreshes into initcurses()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@573 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 16:41:03 +00:00
Pasi Kallinen 16dfad48a4 More signals fixes &c. (Now it seems to work)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@572 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 16:32:04 +00:00
Pasi Kallinen eb91e63f77 More signal handling, this time for when running the game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@571 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 19:14:35 +00:00
Pasi Kallinen d623b5c0d6 Improve signal handling and leaving/entering curses.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@570 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 17:06:05 +00:00
Pasi Kallinen 725b6cd1d2 Improve signal handling a bit
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@569 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 06:50:18 +00:00
Pasi Kallinen bf9db511f5 Move shmem freeing into it's own function
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@568 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-13 13:31:40 +00:00
Pasi Kallinen ef9018dff1 Allow dumping the shared memory data with dgamelaunch -D
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@567 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-13 10:19:45 +00:00
Pasi Kallinen 3f50414639 Change cursor key up and down behaviour in watching-menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@566 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-09 09:01:26 +00:00
Pasi Kallinen 69ae1ebaeb Oops. Should check what I write.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@565 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-09 08:46:27 +00:00
Pasi Kallinen 9e48fc215d When selecting a random game to watch, try to avoid idle games and games with too big terminals.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@564 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-09 08:41:29 +00:00
Pasi Kallinen 413256523c If using ncurses, use color to hilight games with too big terminals in watching menu.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@563 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 17:46:47 +00:00
Pasi Kallinen fecd1b9361 Make sure ipfile malloc gets freed in any case.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@562 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 09:02:46 +00:00