Path: chuka.playstation.co.uk!news From: "Greg Cook" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Basic beginner questions Date: Mon, 13 May 2002 09:20:39 +1200 Organization: PlayStation Net Yaroze (SCEE) Lines: 66 Message-ID: References: <3CDE9656.69719B33@dk.ibm.com> NNTP-Posting-Host: 202.37.124.253 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Thanks Chris and Mark, That does help alot to explain a few things, so much to learn with this system, ive donwloaded so many bits of code and looked over it that my eyes are killing :) anyways im still working on it all, would love to have more time to work with it. Greg "Mark O'Shea" wrote in message news:3CDE9656.69719B33@dk.ibm.com... > > > > > > 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 >