Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2008, 07:42 PM
Registered User
 
Join Date: Jul 2007
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.
 
Old January 18th, 2008, 05:32 AM
Wrox Author
 
Join Date: May 2007
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.