Path: chuka.playstation.co.uk!news From: Giulio Newsgroups: scee.yaroze.programming.codewarrior Subject: Re: Now I'm getting REALLY mad! Date: Fri, 19 Dec 1997 17:11:13 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 115 Message-ID: <349A9CA1.7E336240@tin.it> References: <34902D9A.A58C5281@tin.it> <01bd094f$aa411420$6c0b0a0a@newcastle.twowaytv.co.uk> <3496FC87.B1AD07DF@tin.it> <01bd0a92$e4e72b20$LocalHost@Angela1.intelligent-group.com> NNTP-Posting-Host: Genova7-45.tin.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) Craig Graham wrote: > Hmm. I've tried to recreat what you describe and may not have got it > (post the code if this is wrong): > > typedef struct { > int test_var1; > GsSPRITE *sprt; > } Sprite; > > Sprite *ptrSprite1,*ptrSprite2,arrSprite[1]; I hope you are using version 2.0.3 of the compiler that I think is the last posted by Metrowerks. Oks' look and try this one: typedef struct SpriteType { GsSPRITE *SprBody ; // Body of the sprite using library int SprOld_X,SprOld_Y ; // Old sprite's position u_char AnimClock ; // Animation clock u_char AnimSpeed ; // Animation speed u_char MotionClock ; // Motion clock u_char MotionSpeed ; // Motion speed u_char CurrentFrame ; // Current frame being displayed u_char NumFrames ; // Total number of frames u_char State ; // State of the sprite (Dead, Alive...) u_char Hits ; // How many hits the sprite has got u_char Doing ; // What the sprite is doing u_char Type ; // What kind of sprite is // being processed // Other sprite related variables.... } Sprite, *SpritePtr ; Sprite PlayerOne [1] ; // Ugly struct of player one that // I must use to make my program run // using PlayerOne as a pointer // SpritePtr PlayerOne ; // Right pointer def that it's not usable // Sprite *PlayerOne ; // Eh,eh too easy to be able to use this Now I can tell you that during code generation the CW has not gave me any problem but the debugger during PlayerOne initialization gave me a Bus error or memory load/fetch error (I don't remember). I have spent some days trying all to make it works finally I have defined an array of a single element (that could be called a pointer) and it works! The only thing you will probably notice (if you try it) in the project window under the colums related to data size that with the right two definition of pointer CW will not grow up the number but with the array of only one element the number will grow up.( at last in my project this is the way it works...) Now I have two ways keep on with my ugly array or change all my sprite related functions calls. Try this if you want, if you need more code I will post it to you in a different way. > Globals are listed in the browser window. Click on the file with the global > you > want to look at, a list of globals from that file then appears in the > globals pane > of the browser window. I know the presence of that windows but it seems that the debugger (ver 1.7.6) shows me only look up tables and some other variables (two or three). The previos version of Metrowerks Yaroze debuggers had not this problem, if I remember well... So if I defines a GsSprite Pippo or a Sprite Lollo as globals I will not be able to watch theirs changes during program flow if they are not processed inside a function that use one of them. Moreover on discussion groups I have read that other guys have got the same problem with globals and that Metrowerks is evading them too. > Come now, as I said before, you're working with a limited market embedded > system here. That you're getting any sort of dev system for the money is > amazing enough. The bugs in Code Warrior aren't nearly that bad. Of course > there are better compilers that folks use at Uni (on workstations, > mainframes > and PC's). I used them myself, but you have to accept that they have much > larger potential markets esp. on the PC (even then, Visual C++ has as many > debugger problems as code warrior), and proportionally more time & effort > goes into them. You have to make allowances..... I have same thoughts but I wanted to scream my disappoint 'cause I wish to become a senior developer but all around me seems to go the wrong way! As I have already written I have little time to write code 'cause I get no money from this and I need some to live (as everyone I think). I hope that with a degree in systems engineering, some experience and works to show I could get a full work as a game developer here in Italy or (better) in other states. So understand me when I go mad for a company that sells a buggy IDE causing loss of time for nothing. What is very nice is that Metrowerks thanks you for being a CodeWarrior, but please be serious, we need a good IDE and not a lot of silly words. > Here's the path to being a developer (well, the one we took): Thanks for your suggestions (as I have written advices are always welcome). I have rendered graphics, music and sound ready for my game (I'm also a musician with a wonderful Yamaha electronic keyboard and a friend of mine use Lightwave 5 at a good level) but my game is not thought to be a game to sell in the big market but the first presentation card to find a full time job as a developer. I know that to make a best selling game I need a real team and I really lack one but I'm sure that if I'll be able to show what I can do alone I'll also be able to find a software house ready to bet on me. Cheers, Giulio ******************************* Why in Italy there's no support for games developers? *******************************