Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: urgent help required Date: Tue, 30 Mar 1999 11:12:35 +0100 Organization: Sony Computer Entertainment Europe Lines: 36 Message-ID: <3700A393.CDC973F6@scee.sony.co.uk> References: <3702c554.12329198@news.playstation.co.uk> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en wicked nun wrote: > > I'm having a strange problem, I have three sets of TMD's which I load > into memory when I run my game. I use dataman to put the data in the > right place. My game runs fine until I make any changes to the tmd > models, then it just hangs on init. > > I always recompile after making any changes, this is to ensure > dataman.h is included. Could be a bug in dataman. (Shock! No! I wrote it!) If there's only 3 files, then it's pretty easy to check if dataman is doing its job properly. After specifying the first address for the first file, the next address for the next file is equal to the first address + size of the first file, but rounded up so the result is a multiple of 4. I.e. if first address is 100, first file is 10 bytes in size, then the second file will be placed at address 112 (100 + 10 rounded up to a multiple of 4). Other possible causes - your TMDs are very big, and writing over something important (like code - ooer). To prevent this, I use raw2src (also known as bin2src). Get it from my home page (~jruss1). It converts a binary file into a C file that you can use in your programs (with appropriate casting). Cheers, James -- == James_Russell@scee.sony.co.uk ph: +44 (171) 447-1626 - fax: 390 4324 == Tools and Middleware Licensing Manager - Sony Computer Entertainment Europe Busier than a flying squirrel in a wind-tunnel...