Brian Theado 20Jan2005 - Inspired by the wealth of Tcl/Tk games available at sdarchive and elsewhere, I wrote some code that can be used to browse and execute a bunch of applications all bundled together into a single starkit.
I bundled together over 60 games in a just over 2MB starkit that can be downloaded from http://tkoutline.sourceforge.net/tkgamepack.kit . Run the program and see a hierarchical list of Tcl/Tk games. Click on the game title to launch it. Click on the game's url to find more information. Add the title of a game to the command line and that game will be run directly.
Implementation details.
Way cool! I've wondered for a long time when someone would take the initiative on this ;) -jcw
LV So, if people come up with additional script only games, how would they go about requesting the code be added?
Brian Theado - putting a request here seems like a good start.
LV So each time I select a game, a new starkit will end up in the real world flat directory where the starkit resides? Is there no way to run the starkits from where they are in the bundle?
I tried to find out for myself, but I see this error when I try to run your starkit:
invalid command name "option" while executing "option add *Text.wikimarkup "wikilinks urls style" user" (procedure "openAppLauncherOutline" line 3) invoked from within "openAppLauncherOutline [file join $::starkit::topdir applauncher]" (procedure "applauncher" line 31) invoked from within "applauncher" invoked from within "if {[llength $argv] == 0} { applauncher } else { set nestedkit [lindex $argv 0] set nestedkitmain [glob -nocomplain [file join $starkit::t..." (file "/volws/lwv28/ldatae/WWW/tkgamepack.kit/applauncher.tcl" line 68) invoked from within "source $starkit::topdir/applauncher.tcl" (file "./tkgamepack.kit/main.tcl" line 3) invoked from within "source ./tkgamepack.kit/main.tcl" ("uplevel" body line 1) invoked from within "uplevel [list source [file join $self main.tcl]]"
The problem is that your application launcher program is missing that
package require Tk
that you mentioned having to add in a few games.
The reason your app is working is probably because you are using Windows. Unfortunately, this is one of the differences between Windows and non-Windows tclkits.
Brian Theado - Yep. Thanks for the report and I have added the package require Tk. Redownload and try again.
I guess I didn't explain the implementation well enough. It is a single file and stays a single file. All the games run from within the starkit.
NEM - I get an error on startup on Mac OS X:
bad event type or keysym "grave" while executing "event add <<ShowAllAtCurrent>> <Control-grave>" .... (procedure "mapKeysToEvents" line 5) ....
This may well be a Mac OS X/Wishkit specific bug.