Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!phoenix!ejgraves From: ejgraves@phoenix.Princeton.EDU (Eric James Graves) Newsgroups: comp.sys.mac Subject: Re: Bug in Tetris allows any score Summary: More (illegal) tetris high scores... Message-ID: <14315@phoenix.Princeton.EDU> Date: 6 Mar 90 22:41:29 GMT References: Distribution: usa Organization: Princeton University, NJ Lines: 32 In the previous article, gregory@icad.com points out a way to get high scores in the game. Of course, other unscrupulous types make up their high score list with resedit. (Not a recommended procedure for those not familiar with Resedit, so I'll only give what I know of the format.) Open the "scor" resource, then "scor ID=1000". It will open as a general format item. The first byte is the length of the high-score holder's name. That is followed immediately by the name in ASCII, and filler. At positions 1C,1D,1E and 1F they store the score, as a 4-byte signed hex number (ie, the maximum score possible is 7fff ffff, or 2,147,483,647). Furthermore, the level attained is stored in position 1B (It seems like the highest level tetris recognizes is 9, but if you set the high bit of the level, it prints in bold.) The format repeats itself at positions 20, 40, etc (all in hex). One interesting note is that Tetris recognizes when a score is too high and changes the point size in an attempt to make it fit, but even at the reduced size, the maximum attainable score doesn't fit. PS-Be careful... People might get suspicious if resediting your scores causes a score of -1, or some other suspicious number in first place. Furthermore, By using resedit, it is possible to make the first-place score lower than the others, and screwing up the way Tetris updates the highscore list. Disclaimer: This is posted only for the information of netters. I do not encourage anyone to modify their high score list in any way, and will take no responsibility for any strange occurences. In other words, if you screw up, don't blame me. :) ejgraves@phoenix.princeton.edu or ejgraves@pucc.bitnet