Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Darco Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Down Memory lane.... Date: Tue, 15 Sep 1998 07:23:07 -0400 Organization: SCEA News Server Lines: 50 Message-ID: <35FE4E1B.771DA50C@bigfoot.com> References: <35FD0D0D.90E4A527@cwmail.com> <35FD1BB0.15B97AD7@scee.sony.co.uk> NNTP-Posting-Host: 255.dialup.datasys.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; U) James Russell wrote: > > Tones wrote: > > > > For example, say I've got the program which takes up (this is a silly > > example by the way!!) 0.2 Megs, and I've put a sprite at address > > 0x80100000 which is 65Kb in size, where would the next tim file sit if > > it was 100Kb. > > If you place the sprite at 0x80100000 and it is 65K, then the next tim file would be at 0x80100000 + > 65K = 0x80100000 + 0x10400 = 0x80110400. > This can all get to a big hassle if your files change size all the time, but thankfully, there are a > couple of utilities written by Yaroz-keteers to handle all this for you - They use a text file with > a list of all your data files to check the sizes of each of the data files, then create both a > SIOCONS 'auto' file and an C include-able file that you can use in your programs, with all the data > files positioned correctly in memory. You can check out mine (called DATAMAN) at > http://www.netyaroze-europe.com/~jruss1/ I have a really cool datafile combiner that essentially does the same thing, but with a few twists. It combines all of the files you select into a big file, and then generates a C header file listing all of the addresses. So instead of taking forever to upload a gazillion files, you just upload 2 -- The big datafile and the program. What's cool about it is that you can set it up so that adding a datafile (Say, a TIM file) is as easy as copying a file to a directory and recompiling! you can start using it in your code instantlyWoo-Hoo! There's a copy of this program in the projects section of the Voria GameWorks web site (http://www.datasys.net/users/stu/rquat/voria), but it's an older version. The new vesion (v1.1) has the option of allowing you to round up the file sizes of the datafile entries by 16. (So that all of the addresses start at an address ending with 0) This helps if for some reason your program starts to choke. I'll be putting up the new version soon, when I get the new web page updated. Actually, the next version I put up will probably be version 1.2, as there are a few features that I think should be added. Oh yeah, the source code is included so you can hack it up all you like. Or re-compile it to other operating systems. (It's written in straight ANSI C) Everyone who's tried it has loved it. Of course, the only person who's tried it is Steve Tolin, but that's just a minor technicality. I'm still legaly accurate. Common' you know you want to. Go ahead and download it. It's in the projects section. Right there at the bottom of the page. 'Darco