Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6
This is the forum to discuss the Wrox book Professional XNA Game Programming: For Xbox 360 and Windows by Benjamin Nitschke; ISBN: 9780470126776
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 2nd, 2008, 07:42 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two book samples won't load in Xbox 360

Two of the game samples used in the book won't load on the Xbox 360.
For example, DungeonQuest, after compiling and deploying to the Xbox 360, when you load the game, I get a black screen, then after 4 seconds, it just goes back to the XNA Game Launcher screen with no errors in the debugger.

XnaShooter does the exact same thing but with the following errors:

1. "An unhandled exeption of type 'System.InvalidOperationException' occurred in System.Xml.dll Additional information: There is an error in XML document (0, 0)."

This error highlights the following code in GameSettings.cs:

Code:
GameSettings loadedGameSettings = 
    (GameSettings)new XmlSerializer(typeof(GameSettings)).
    Deserialize(file);


2. "An unhandled exception of type 'System.TypeLoadException' occured in XnaShooterXbox360.exe"

This error highlights the following code in BaseGame.cs:

Code:
int resolutionWidth = GameSettings.Default.ResolutionWidth;
Also to note, I downloaded the latest source files from http://abi.exdream.com.
  #2 (permalink)  
Old January 18th, 2008, 05:32 AM
Wrox Author
 
Join Date: May 2007
Location: Hannover, , Germany.
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to abi.exdream.com
Default

I'm sorry that those samples don't work for you, I have always tested them first on the Xbox 360, but there are many things that can go wrong.

BTW: The Dungeon Quest game was not part of the book ^^

The GameSetting exception can be caught and ignored (game settings are not that important on the Xbox 360 anyways, the other error is basically telling you that the GameSettings are not correct (which should be fixed by catching the first exception).

I will update the XNA games shortly to XNA 2.0 and test them again on the Xbox 360 to make sure everything is in order. The updated code can then be found on http://XnaProjects.net

http://abi.exdream.com
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use image Stitching software 360 panorama SantanuDrezmz ASP.NET 2.0 Professional 1 February 14th, 2008 10:11 AM
Xbox 360 Game (2.0) - Pong darktatami BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 January 18th, 2008 05:26 AM
Deploying Windows Project to 360 Emmulator BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 August 2nd, 2007 01:03 PM
Speedy Racer Not Working On XBOX lbyrdjr BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 May 7th, 2007 10:59 PM
Can I use access for the samples in the book? manniken BOOK: ASP.NET Website Programming Problem-Design-Solution 3 October 19th, 2004 12:29 PM



All times are GMT -4. The time now is 09:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.