Pasi Kallinen
f53dfb5c7b
Minor optimization in watching menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@558 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-07 20:01:40 +00:00
Pasi Kallinen
3f3e9c3277
Handle some additional keys in the watching-menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@557 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-06 17:30:16 +00:00
Pasi Kallinen
e80d1c338b
Remove the watcher if user kills the terminal while watching.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@556 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-06 16:01:08 +00:00
Pasi Kallinen
80baf8a856
Adjust the watching-menu Size-column slightly.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@550 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-04 14:54:07 +00:00
Pasi Kallinen
124161588a
Move watching-menu column info into struct.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@549 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 19:15:09 +00:00
Pasi Kallinen
082c777fe8
Add $INCLUDE(filename) menu banner command.
...
That text in any line of a menu banner file will cause
the file 'filename' to be included in that place.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@548 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 17:54:13 +00:00
Pasi Kallinen
431ef1e791
Don't put the info lines too low on the page in the watching menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@547 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 16:27:42 +00:00
Pasi Kallinen
b0da5fedd1
Restore the old watching-menu paging. This time for reals.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@546 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-03 16:17:28 +00:00
Pasi Kallinen
cb781bc3d6
Watchers fix. Memory alignment on 64bit systems?
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@542 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-02 08:34:19 +00:00
Pasi Kallinen
afa0b07631
Increment/decrement the games[] nwatchers too.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@540 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-02 07:28:46 +00:00
Pasi Kallinen
0ad8f2cead
Fix idletime display.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@538 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-01 15:30:04 +00:00
Pasi Kallinen
113fc564ef
Show the number of people watching each game in the watching-menu.
...
Also allow sorting by # of watchers.
Requires dgamelaunch to be compiled with --enable-shmem
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@536 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-01 14:41:54 +00:00
Pasi Kallinen
6245e81b59
Restore the exact paging in watching-menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@535 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-04-29 16:30:59 +00:00
Pasi Kallinen
ef7d6eb846
Define menu_max_idle_time option to kill dgl when the user idles too long. From Darshan Shaligram
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@531 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:32:57 +00:00
Pasi Kallinen
445e54f8f8
Change max. length of mail message from magic number to a define.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@526 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-02-25 17:02:32 +00:00
Pasi Kallinen
11eef77614
Allow setting resource limits on core dump size and memory usage. Idea and some code from crawl.develz.org dgl.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@523 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-02-25 16:40:55 +00:00
Pasi Kallinen
64c9bf043f
Fix a segfault when selecting a non-existent game entry to watch. Found by blackpenguin.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@521 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-12-23 18:04:26 +00:00
Pasi Kallinen
4b8e110006
Move the cursor after writing the banner only if cursor coords were explicitly defined.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@520 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-12-01 21:55:48 +00:00
Pasi Kallinen
41c0322ad9
Change max. length of passwords from magic number to a define.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@518 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-28 17:53:00 +00:00
Pasi Kallinen
9bed813458
Change max. length of player name from magic number to a define.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@516 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-27 18:41:35 +00:00
Pasi Kallinen
160ddf3b5b
Remove unused variable. Update TODO.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@515 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-11-27 18:05:36 +00:00
Pasi Kallinen
4a76ab5733
Remove the "unsorted" watch-menu sort method, and make "username" the default.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@510 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-21 09:06:44 +00:00
Pasi Kallinen
add9a7fa49
Allow ',' in the watching menu to sort by the previous column.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@508 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 20:45:27 +00:00
Pasi Kallinen
ae11d81827
Allow sorting by all of the fields in the watching-menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@507 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 19:29:47 +00:00
Pasi Kallinen
91675def98
Don't clear the menu screen if the keypress wasn't recognized.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@505 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-19 15:17:28 +00:00
Pasi Kallinen
7a00201cea
Fix game watching when loggedin.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@502 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 19:15:46 +00:00
Pasi Kallinen
f07d814c27
Move the terminal resize to when you're watching the game.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@501 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 18:24:22 +00:00
Pasi Kallinen
5c0a1876fb
Fix toggling the window resize on and off in the watching-menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@500 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:55:17 +00:00
Pasi Kallinen
9dc52ce7dd
When doing '/' in watching-menu, match player names without case, and try to find the best match from the beginning of the player name.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@499 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:52:12 +00:00
Pasi Kallinen
857105e8b2
Prevent a segfault when trying to watch a game when none is available.
...
Also disable '/' when no games available.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@498 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:25:18 +00:00
Pasi Kallinen
6a703c4bf7
Give feedback when typing '/' in the watching menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@497 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:21:56 +00:00
Pasi Kallinen
ad13d4eb7b
Restore the previous watching-menu behaviour: don't require enter keypress to watch.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@495 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 17:09:27 +00:00
Pasi Kallinen
e6fb6ecafe
In the watching-menu, keep the same player selected even when resorting the entries.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@493 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 14:29:46 +00:00
Pasi Kallinen
c237c27478
Rename dgl's local_{COLS,LINES} so they don't collide with ee
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@492 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:57:12 +00:00
Pasi Kallinen
1a7f346b20
Actually mark the game entry as selected when using '/' or '*' in watching menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@490 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:20:55 +00:00
Pasi Kallinen
29f507bda8
Add a watching-menu command to start watching a random game.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@489 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:10:45 +00:00
Pasi Kallinen
b841c2801c
Show slightly different texts in watching-menu when no games are available.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@488 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 13:03:22 +00:00
Pasi Kallinen
284a2201e3
Show the watching-menu sorting by hilighting the title.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@483 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 10:31:45 +00:00
Pasi Kallinen
94f0867063
Add better watchmenu help
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@480 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 09:45:42 +00:00
Pasi Kallinen
62744f361a
Make the lines actually work like they should, duh.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@479 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 09:19:49 +00:00
Pasi Kallinen
4a53a95307
Readjust the lines
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@478 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:48:15 +00:00
Pasi Kallinen
2146f33c82
Adjust the position of the watching-menu bottom lines
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@477 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:46:06 +00:00
Pasi Kallinen
c08ce22995
Free populated games.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@476 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:39:19 +00:00
Pasi Kallinen
fff23611d8
Dynamically alloc is_nhext array in watching menu.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@475 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 08:29:33 +00:00
Pasi Kallinen
0b9067ee0a
Small fixes to the watching-screen, caused by variable height screen.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@474 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 02:11:31 +00:00
Pasi Kallinen
4d3be5720c
Fix wrong offset.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@473 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 01:14:32 +00:00
Pasi Kallinen
653396a7d2
Drastic changes to the watching-screen.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@472 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 01:03:27 +00:00
Pasi Kallinen
65bc2cee98
Handle screen size changes.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@471 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-18 00:17:50 +00:00
Pasi Kallinen
ec7e3b3d49
In the watching-screen you can press '/' and type a player name and press enter.
...
If a player's name matches, you'll watch that player.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@470 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 22:40:45 +00:00
Pasi Kallinen
972bb6fa6b
Add per-game configurable ttyrec-dir; If it's not defined for some game,
...
no ttyrecs are saved for that game, and those games cannot be spectated.
Add more debugging output to dgldebug.log -file
Add configure option --enable-debugfile to enable or disable the debugging log.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@468 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 20:26:56 +00:00
Pasi Kallinen
592b966d78
Remove lines that are commented out, and which can now be done via the config file hooks.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@467 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 17:37:58 +00:00
Pasi Kallinen
39456b7a75
Make dgl-create-chroot -script work again.
...
Change the dgldir directory layout; all rcfiles, dumps and ttyrecs are now under dgldir/userdata/USERNAME/
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@466 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 17:34:36 +00:00
Pasi Kallinen
2b6b21cb51
Minor typo fix.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@465 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-15 15:11:54 +00:00
Pasi Kallinen
5782235ecf
Patch from Jeremy Chadwick:
...
Linux telnetd allows importing the USER envvar via telnet,
while FreeBSD does not. FreeBSD, on the other hand, does allow
the LOGNAME envvar. Check USER first, then LOGNAME.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@462 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-09-26 19:13:05 +00:00
Pasi Kallinen
d2be5b05d6
Don't keep reloading the banners.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@451 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-08-23 12:47:11 +00:00
Pasi Kallinen
715108f70d
Fix a bug where users couldn't exit from dgl. Found by blindcoder.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@449 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-08-23 12:39:01 +00:00
Pasi Kallinen
dfc4cc51d1
Fix a bug that caused multiple user entries to be inserted into the sqlite db when the db was locked by some other process.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@448 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-08-23 09:47:04 +00:00
Pasi Kallinen
5d0bfc1b21
If the cursor-definition is missing from the menu, put cursor to the end of the last line of the banner.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@447 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 11:35:26 +00:00
Pasi Kallinen
db5bcbaf85
Add $SERVERID and server_id stuff so admin can change the server ID (url, telnet address, whatever) simply by editing one line in the
...
config file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@444 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 11:21:29 +00:00
Pasi Kallinen
6cf3c008bc
Don't show the "press 'm' to mail user" in watching screen unless spool is enabled.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@442 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 09:36:20 +00:00
Pasi Kallinen
146947b386
Make watching-screen default sortmode configurable
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@441 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 09:13:50 +00:00
Pasi Kallinen
e63075f995
Fold the dgl-wall functionality into dgamelaunch itself:
...
./dgamelaunch -W "nick:message"
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@439 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-04-06 08:27:44 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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