🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #37105

Re: Risk on a Mac II

#37105
From: Bernie Bernstein
Date: Thu, 02 Feb 1989 02:25
50 lines
2692 bytes
A few days ago I asked for the patch to get Risk to work on the
Mac II.  I got several responses about it and letters from others
who wanted to know the same info.  Here is an excerpt from the
letter I received from Jacob Ben-david Zimmerman.

>From: zimerman@phoenix.Princeton.EDU (Jacob Ben-david Zimmerman)

    Article 13733 of comp.sys.mac:
    Path: agate!ucbvax!ucsd!sdcsvax!ucsdhub!esosun!seismo!uunet!portal!cup.portal.com!Jerry_Geronimo_Whitnell
    From: Jerry_Geronimo_Whitnell@cup.portal.com
    Subject: Re: Risk game
    Date: 6 Feb 88 06:14:23 GMT
    Organization: The Portal System (TM)
    
    A little work with TMON tracked down the problem.  It is using the
    Window Managers own port to draw the map.  To do draw any other
    windows, it saves away the bit map.  The problem is, it is using
    GetWMgrPort to get the port to figure out the size and Apple, in it's
    great wisdom, change the definition of what GetWMgrPort returns (used
    to be a GrafPort, now a CGrafPort).  So Risk calculates a random value
    for the size of the port, tries to allocate that much memory and exits
    when it can (not very good programming style :-)
    
    So, here is a patch to get around the little problem:
    
    Offset $680E (Block $34, offset $e)
    
    was: 3029 0006 C1E8 000C 48C0
     to: 303C 1000 C1FC 0156 4E71 if 256 colors
     to: 303c 0800 C1FC 0156 4E71 if 16 colors
     to: 303C 0400 C1FC 0156 4E71 if 4 colors
     to: 303C 0200 C1FC 0156 4E71 if 2 colors
    
    Pick the number of colors you normally run the game at and apply the
    above patch using FEdit or ResEdit.  All this does is ignore the
    returned GrafPort and calculate the values based on built in
    constants.  It appears to work fine with these patches applied, but
    caveat emptor :-).  Be sure to apply these to a backup copy, not your
    original.
    
    Jerry Whitnell
    
    
Thanks Jacob.


      o,  ,,   ,      | Bernie Bernstein                      | ,    ,,
      L>O/  \,/ \    ,| University of Colorado at boulder     |/ \,,/  \
     O./  '  / . `, / | office: (303) 492-1218                |     / ` \  ,.
    ,/   /  ,      '  | email: bernard@boulder.colorado.edu   | /        ''  \
Technical Details
Message-ID: <6326@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ncar!boulder!bernard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ncar!boulder!bernard
From: bernard@boulder.Colorado.EDU (Bernie Bernstein)
Newsgroups: comp.sys.mac
Subject: Re: Risk on a Mac II
Message-ID: <6326@boulder.Colorado.EDU>
Date: 2 Feb 89 02:25:33 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: bernard@boulder.Colorado.EDU (Bernie Bernstein)
Organization: University of Colorado, Boulder
Lines: 50