Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: Lewis_Evans@playstation.sony.com Newsgroups: scee.yaroze.programming.2d_graphics Subject: buggged Date: 16 Mar 1998 11:31:46 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 169 Sender: news@chuka.playstation.co.uk Message-ID: <6ej2j2$bg71@emeka.playstation.co.uk> Reply-To: Lewis_Evans@playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk by mail2.fw-sj.sony.com (8.8.8/8.8.8) with ESMTP id DAA17739 for ; Mon, 16 Mar 1998 03:36:31 -0800 (PST) From: Lewis_Evans@playstation.sony.com To: news@playstation.co.uk (1) the sprite address is given as 0x80010000 which is in the middle of libps library code, not a TIM address. The valid address range as stated in the manual is 0x80090000 to 0x801fffff, all program and data must go in there. (Mapfiles tell you exactly where program goes in memory, see SCEE samples for makefile options to make GNU create a mapfile). This alone would explain the lack of visible image. Also ensure that the batch file is called and loads the TIM to a valid location. (2) screen width and height have odd values; typical screen resolutions are x - 256, 320, 384, 512, 640 y - 256, 512 (PAL); 240, 480 (NTSC) Giving unusual values to GsInitGraph has unpredictable/unreliable effects (3) If you build a program by modification from another program, and keep backups, you can know when you have come across a problem, which part of code you've been changing and this is a big help in localising the problem; plus you can go back to a backup of a few hours/days/weeks ago and continue from there, knowing that that version worked fine. Lewis Help me Ive been trying to get this program to work for about a week now all i want to do is display a large sprite on the screen is could one of you brainy people help me out. Bree@which.net /******************************************************/ //TITLE: Simple Sprite Program //AUTHOR: KingBree (With untold respect to IRA RAINEY) //DATE: 3.10.98 /******************************************************/ //includes #include #include "pad.h" //defines #define SPRITE_CNT (1+1)//sprite counter #define SCREEN_HEIGHT (384) #define SCREEN_WIDTH (512) #define SpriteAdd (0x80010000)//address of tim //Prototypes void InitSprite (); void PadInit(); u_long PadRead(void); //Define the length of the ORDERING TABLES #define OT_LENGTH (1) //Ordering table variables GsOT WorldOT[2]; //an array 2 units long GsOT_TAG OTTag[2][1<