Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!sq!hobie From: hobie@sq.UUCP Newsgroups: comp.sys.amiga Subject: BOBs and KS 1.2 Message-ID: <1987Sep16.132922.8847@sq.uucp> Date: Wed, 16-Sep-87 13:29:22 EDT Article-I.D.: sq.1987Sep16.132922.8847 Posted: Wed Sep 16 13:29:22 1987 Date-Received: Fri, 18-Sep-87 04:50:09 EDT Reply-To: hobie@sq.uucp (Hobie Orris) Organization: SoftQuad Inc., Toronto Lines: 28 Keywords: Losing situation. Checksum: 32418 I have just written a program using BOBs that does not display the BOB I ask it to display, but otherwise works just fine. After carefully going over my (admittedly old) Rom Kernel Manual and Programmer's Guide (also old, version 1) I could find no error in what I had done. Being naturally suspicious from dealing too long with an Amiga, I booted my copy of KickStart 1.1 and ran the program again. It worked exactly as intended. So my question is: what's different in BOBs between KS 1.1 and KS 1.2? This is the initialization sequence of my BOB that works under 1.1: InitMasks(&starshipVS); /* create VSprite collision masks */ InitGels(&dummy1, &dummy2, &mygel); /* set up 2 dummy VSprites in list */ rp->GelsInfo = &mygel; /* link GelsInfo (not in RKM!!!) */ AddBob(&starshipBob, rp); /* put BOB in Gels list */ SortGList(rp); /* obligatory sorting of list */ DrawGList(rp, MyVP); /* draw all BOBs in list */ The BOB, starshipBob, was generated by NGI from a DPaint II brush. The var- iable `rp' is a pointer to a window RastPort; `MyVP' is derived from calling ViewPortAddress(win) and getting a ViewPort structure for the window `win'. One notable event: NGI does not initialize the field BorderLine in the VSprite structure, which I had to do to stop the program from crashing. I would appreciate any help in solving this puzzle (I'll even give you a copy of the source). Gratias tibi maximas! Hobie Orris | guest of SoftQuad Inc., Toronto, Ont. |"There'll be no more giant leeches {ihnp4 | decvax | ? }!utzoo!sq!hobie | When you find the good Lord Jesus"