XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone

NAVIGATION - SEARCH

Chapter 8 - Skybox Issues

Hi,


First of all, just want to say great book - I'm having a lot of fun so far, and am enjoying learning how XNA works!


Up until now, it's been pretty smooth sailing.  In Chapter 8, after having completed all work up until Page 165, just before the new section "Content Pipeline Processor Parameters", I try to run the project and I receive the following error:
"File contains XELibrary.Skybox but trying to load as XELibrary.Skybox." 
This occurs when reading the following line:
skybox = Content.Load<Skybox>(@"Skyboxes\skybox")
Needless to say this rather confusing.

I had a different error previously, which drove me so insane I deleted my work and re-coded the entire project making sure to duplicate exactly what was detailed.  The previous error I had was something to the effect of "Unable to find XELibrary.SkyboxReader".

After reading through the threads here, I double checked all my references and as far as I'm able to tell I have referenced everything as needed (ensuring a 3.0 project and references).

If anyone could offer a little help, I'd be most appreciative as I'm simply at my wits end, and really want to move past this so I can continue with the rest of the book!
Thank you in advance,


-Don

Don Tickner - Monday, October 25, 2010 @ 7:38 AM

Re: Chapter 8 - Skybox Issues

Ok, after sitting down for a long time and a lot of coffee I located the source of the problem and corrected it.


It seems that, when creating the XELibrary project some chapters earlier, I had actually used the default name - which carried over in the Assembly - XNA assigns (WindowsGameLibrary1 I believe).  Although I had renamed the file, I hadn't double checked the Assembly information, which created the issue.  XNA was looking for XELibrary, and it was finding WindowsGameLibrary1.

I hope this helps someone else who's as silly as me :c)

Don Tickner - Tuesday, October 26, 2010 @ 3:52 AM
XNA Essentials |

XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone

NAVIGATION - SEARCH

Code Problems

Ok I got the book, installed vis studio 2010 and xna 4.0, chapter 2 worked fine got it working on the xbox and everything. When trying to do chapter 3 it wont convert for 2010 vis studio output says:


C:\Users\Boyd\Desktop\XNA\Chapter3\PerformanceBenchmark\PerformanceBenchmark\PerformanceBenchmark.csproj : error  : Unable to read the project file 'PerformanceBenchmark.csproj'.
C:\Users\Boyd\Desktop\XNA\Chapter3\PerformanceBenchmark\PerformanceBenchmark\PerformanceBenchmark.csproj(98,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\XNA Game Studio\v2.0\Microsoft.Xna.GameStudio.Common.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

No other chapter will work. What am I doing wrong :S

RockRidX - Tuesday, December 7, 2010 @ 3:44 PM

Re: Code Problems

Im sorry if I sound like an absolute noob or something and thats why I'm getting no replies, I really need some help. This is for my final year project at university and I'm disappointed that I bought this book and its of no help because none of the code works.


Please if theres anyone out there that can help me, give this idiot the benefit of the doubt and reply.


Thanks


Rock

RockRidX - Thursday, December 9, 2010 @ 9:43 AM

Re: Code Problems

Rock,


Sorry for the delay.  Things have been extremely busy at work.


There are a lot of breaking changes in XNA 4.0.  You should install VS2008 C# Express and XNA GS 3.1 to use the code in the book as it is.  That will be the fastest way to get going.


I'm working on updated code but I'm not done with it yet.

Chad Carter - Monday, December 13, 2010 @ 9:31 AM

Re: Code Problems

Hi Chad,


I would guess that the GS4.0 update would be why I'm also having issues with Chapter 4?


When I try to do the graphics.GraphicsDevice.VertexDeclaration, I'm being told that the GraphicsDevice does not contain a definition for 'VertexDeclaration' and that there is no extension method capable of accepting a first argument of the graphics.GraphicsDevice type.

Felanor - Thursday, January 6, 2011 @ 8:40 PM