Commit Graph

465 Commits

Author SHA1 Message Date
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
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 59254ed4b7 Add 'chdir' per-game config variable, which defines the dir where dgl will chdir to before executing the game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@350 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:05:12 +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 687239516b Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@346 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-29 20:25:35 +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 ee906001f2 fix all sorts of stuff with dgl-create-chroot
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@344 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2006-07-09 07:04:09 +00:00
Joshua Kwan f3239d7a2f Update svn info, use $(DESTDIR)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@343 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2005-01-02 10:31:59 +00:00
Joshua Kwan 683aa5879b one more dummy commit
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@342 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:05:06 +00:00
Joshua Kwan fbcaeb1837 dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@341 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +00:00
Joshua Kwan 8b30520189 dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@340 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +00:00
Joshua Kwan 3494f125ce dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@339 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +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 debd70f269 Use select() if kevent() does not work, e.g. file on msdosfs.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@337 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-28 21:30:54 +00:00
Jilles Tjoelker 8038fbe363 Use kqueue() if available (FreeBSD) to improve watching.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@336 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 14:00:29 +00:00
Jilles Tjoelker 389ad58508 Describe recent commits.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@335 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 13:08:51 +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
Jilles Tjoelker ca91ccc027 Use one select() call to both delay and detect keypresses.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@333 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 12:43:59 +00:00
Jilles Tjoelker 30973454e4 * Clean up a bit
* Close the ttyrec file when watching is done


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@332 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 12:30:24 +00:00
Jilles Tjoelker e31ca985ee Making watching more efficient:
* Don't uselessly read the ttyrec file at the start.
* Toggle the ttyrec file between buffered and non-buffered. Non-buffered I/O
  via stdio can be very inefficient.
* Keep stdout buffered, and flush it when waiting for a key or more ttyrec
  data.

Tested somewhat on my FreeBSD 4 machine.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@331 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-22 22:32:10 +00:00
Joshua Kwan baa776486f amend Changelog for 1.4.6
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@329 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 23:35:16 +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
Joshua Kwan 2afc9476a4 no more editors/*
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@326 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-30 03:39:39 +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
Jilles Tjoelker 20b453bfde Include config.h in ttyrec.c (tried to use STREAMS on FreeBSD)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@324 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-28 12:39:23 +00:00
Joshua Kwan a39ceb7ae3 sane default for terminfo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@323 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-23 17:46:17 +00:00
Joshua Kwan 033b20f11d update
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@322 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-22 16:37:33 +00:00