Another case of the Blank Screen
Hi,
Fantastic book by Ben by the way. I have been a user of his blog site for quite a long time. Hard to find any better, really... I put him in the same category as Andre' Lamothe and that's two of a kind...
Anyway, I am also getting a blank screen on the key games I want to test (XNA Shooter and the racing games) but, unlike previous posters I am getting the blank screen on the XBox 360. Everything runs well on Windows (I am running everything on Vista without any problems.)
On the XBox 360, I debugged the program, let's say XNA Shooter though I see this problem with all games whether the code from this site or the ones from XNAProjects. Upon debug, I see an exception. It is failing to load content files for a few of the PNG images. I noticed that these images are not added to the C# project and thus are not built and deployed so this explains the problem. The files (say, ItemHealth.png as one example) are not on the xbox though they are on Windows (on the right folder).
So I assume Ben, for some reason, is loading these files directly from code (I did not check I just assumed since the thing works fine on Windows).
The question I have is this: how do I deploy the missing files to the XBox 360 since they are not being deployed automatically as part of the build/deploy process? (I have tried to add the files to the projet but this does not work. I get a build warning that the assets were added twice which seems to contradict my theory in fact but that's what I see if I add the png files to the project. If I ignore the warning the files are not deployed either anyway so it is looking like "user error" on my part)...
I am pretty certain the missing file(s) is the problem. The error I get through the debugger is pretty obvious (or else, I am indeed missing the obvious...) but I also assume other people have run these successfully on the 360 so perhaps I am turning senile :)
thanks for any comments.
|