Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By
PDF Page 13
Figure 2-1

In Figure 2-1 "Lifecycle of an XNA game," the method should be "UnloadContent()" instead of "UploadContent()"

Anonymous 
PDF Page 20
Last paragraph before sample code

The last sentences refer to the variable "texture" as a "Texture2" variable while they are actually "Texture2D" variables.

Anonymous 
Printed Page 22
in LoadContent()

(@"Imageslogo") should read (@"Images/logo")
and
(@Imageslogo_trans") should read (@Images/logo_trans")

Neil Wise 
Printed Page 84
First piece of code

Before the code sample, it is written that "...the following code will play the start cue" when it actually plays the track cue.

Joona Luodonpää 
Printed Page 86
8

I´m not sure if this error occurs because I´m using XNA 3.1 and the book is for the version 3.0 but if I write:

SoundEffectInstance soundEffectInstance = soundEffect.play();

a compilation error occurs telling Error 1 Cannot implicitly convert type 'bool' to 'Microsoft.Xna.Framework.Audio.SoundEffectInstance'

If I just write:

soundEffect.play();

it just work fine.

Please check this and in case you´re planning to write Learning XNA 3.1 take this into account.

Greets!

Arturo Nereu 
PDF Page 133
In code, after //Reset spawn timer

The code

// Reset spawn timer
nextSpawnTime = ((Game1)Game).GetRandom.Next(
((Game1)Game).EnemySpawnMinMilliseconds,
((Game1)Game).EnemySpawnMaxMilliseconds);

which is said to reset the spawn timer is not the code that has been developed previously. The object GetRandom does not exist in Game1 at this point, nor do the variables used as the Next method arguments. Instead, the method ResetSpawnTime() - which uses the rnd object in Game1 and similarly named variables to those in the erroneous code (though they are local to SpriteManager, not Game1) - is used.

davedpmccarthy 
Printed Page 239
Code listing at the top of the page

The use of MathHelper.PiOver4 with the left mouse button causes the left mouse button to roll the camera to the right. The use of -MathHelper.PiOver4 with the right mouse button makes the right mouse button roll the camera to the left. These should be reversed.

Blayne Mayfield 
PDF Page 252
Final paragraph

Where the text reads
"Add the following code to the constructor of the ModelManager class"

it should read
"Add the following code to the Initialize method of the ModelManager class"

davedpmccarthy 
Printed Page 428
LoadContent() function

The parameter of Content.Load is mistypen. It loads "imageshreerings" when it should be "images\threerings".

Joona Luodonpää