Path: chuka.playstation.co.uk!news From: Mark O'Shea Newsgroups: scee.yaroze.freetalk.english Subject: Re: Basic beginner questions Date: Sun, 12 May 2002 18:20:38 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 37 Message-ID: <3CDE9656.69719B33@dk.ibm.com> References: NNTP-Posting-Host: sungold3.dk.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en > > > > i also have a question about loadfont > > > > FntLoad(960, 256); what are these magical numbers? ive looked through > the > > bookand it doesnt mention these number anywhere that i could see, what am > i > > missing. The numbers indicate where in VRAM the "fonts"(4bit TIM file) are to be put. If you change them just make sure that 1) it is within VRAM's adressable space of 1024x512. 2) the "fonts" have a width of 64x128 so make sure they don't fall of the edge of VRAMs area. 3) and of course don't put the fonts on top of your double buffer or where your game graphics are. > > ive used this line > > #define YAROZE_SCENE_ADD (0x80090000) > > > > according to some demos ive seen they used 0x80100000 > > > > i tried using this value but found that my graphic didnt appear, should > > either location work? Yes either should work but... I am sure you know this but just in case.The space available to us goes from 0x80090000 to 0x801fff00. The graphics, sound etc. everything has to go into that space including the game itself. So it is quite easy to have different data overlapping each other if you're not careful. I'm guessing your TIM is trying to occupy the same space as your executable. And as the EXE is normally the last thing that is loaded, your TIM is gone. Just stick with 0x80090000 and if you ever get up to 0x80100000 you'll have to change the adress where the EXE is loaded. In GCC you'll have to edit your Makefile and if your using Codewarrior you need to go into Target Settings/Mips Linker Panel and change the "Code Adress". Mark