in reply to Block Stacker - A Block Stacking Game for Perl

gives me an error:
./blockstacker.pl unknown color name "SystemButtonFace" at /usr/local/lib/perl/5.8.4/Tk/Widget.pm line 205. at lib/BlockStacker/GUI.pm line 518
Though I just updated my Tk from CPAN...

P!
  • Comment on Re: Bock Stacker - A Block Stacking Game for Perl

Replies are listed 'Best First'.
Re^2: Bock Stacker - A Block Stacking Game for Perl
by superfrink (Curate) on Nov 01, 2004 at 04:45 UTC
    I had the same problem (Perl 5.8.0 on slackware 9.1 with Tk just updated from CPAN). I just removed line 520 from lib/BlockStacker/GUI.pm and the program ran fine. It did open up in a very small window way up in the top left corner of my screen so I had to resize and move it though. (By the way I'm using Fluxbox.)

    Also very neat game William G. Davis. I especially like how it looks like you had fun with the messages in the game and the extra odd shapes that I'm not used to dealing with in most tetris games. ++ indeed.

      Thanks guys. I removed the offending line from BlockStacker/GUI.pm and uploaded a new version to SourceForge.

      As for the shrunk window, I think that's due to either using geometry("+0+0") to position the window but not specify its size, or the withdraw()/deiconify() + raise() combo used with it, or maybe both. Try commenting out those calls in createMainWindow() and runMainLoop() in GUI.pm and see if that helps.