Troubleshooting this TutorialSometimes, even though you try hard to understand the information in a tutorial, things don't work out quite like you want it to. This page is here to help you resolve any problems you might be having with the tutorial on setting up XNA. The Common Mistakes section describes common problems that people have when doing the things in this tutorial, and how to resolve them. The Frequently Asked Questions section describes questions that people have that aren't related to mistakes, but rather, trying to understand the stuff better or exploring how it can be used. If your problem or concern isn't addressed here, feel free to add a comment below, so that I know where you're having trouble. I like to keep these pages fairly clean, so I may remove comments that I felt like have been addressed. If I remove your comment and you don't feel like the problem has been fixed, repost the question and we'll take another look at it. If a tutorial has a mistake in it, I will fix the mistake and reply to the comment with a brief explanation. However, after a couple of weeks I'll likely go back and remove the original comment as well as my reply, because, hopefully, the problem will have been fixed, and it won't be a concern any more. |
Common MistakesNone listed yet… |
Frequently Asked QuestionsNone listed yet… |
when i install Microsoft visual C# 2010 xna's installer cant find it
I've updated the tutorial to XNA 4.0. Try going through the tutorial again, and see if that makes a difference. Otherwise, I'd say uninstall anything that is related to MS Visual Studio, MS Visual C# Express, any other Microsoft "Express" Edition, and maybe even any .NET framework, and start from the beginning, installing Visual C# Express 2010, and then XNA Game Studio.
If you are a university student with a university email you can get visual studio professional for free. C# express works great but visual studio is great too and I wanted to make people aware.
Yes, that's an excellent point, and I'm glad you're bringing it up. But I want to issue a caution to anyone who's thinking about going this route.
When you use academic licenses of professional software, they almost without exception disallow you from doing anything commercial with it. This would include putting your game on XBox Live Indie Games, or selling your game online.
I'm about 99.9% certain that this is the case with the academic version of Visual Studio. I tried looking for a definitive source, but the best I could come up with is this. It's kind of out of date, but I'd suspect it still applies.
This same restriction does not apply for Visual C# Express, which is why I've leaned towards that instead. (That, and that not everyone who comes to this site is a student.)
Anyway, that's something to consider.
Why use the game studio 4.0 if there is a game studio 4.0 refresh?
It has some bug fixes and you can now develop for windows phone os 7.1
just google: "microsoft xna game studio 4.0 refresh". It should be the first link
Why can't I upload links? :P
Thanks, Arjun. That's the version that I've been using, but the tutorial wasn't updated to reflect this. I've changed it so that it is now. Thanks for pointing it out to me!
I am trying to use MonoGame seeing as I am running Windows 8 and no XNA installation tutorials/workarounds have worked yet for me. This part of the tutorial requires the installation of XNA 4.0, however I have tried multiple times to install this, and it fails every time. Any suggestions?
Thanks, James :)
Aha never mind, I just sorted it. Turns out you need to install the Games for Windows thingy for some reason, and then it works.
When I try to setup XNA, the installation prematurely ends with no error code. I tried others' advises, by installing Windows Phone SDK 7.1, however, that failed too. Please help.
Computer specs:
Windows 8 Pro
3GB RAM
Intel Pentium 4 3.0 GHz
Nvidia Geforce 6800
I'm trying to install XNA with VS2013 Pro, but the script can't extract the extension files to the
target directory. ($xnaLocation = ("C:\XNA-temp\ExtractedExtensions\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0");) .
I'm not used to this srcipting language. Please help.
I've had a lot of people run the script with VS 2013 Pro, so I know it works in general. There might be something specific about your setup that it doesn't like, and I think that's the starting point.
So first let me ask this: you ran PowerShell as an administrator, right? I don't think you'd get as far as you did if you hadn't, but I just want to make sure.
Next up, let's see what the script was able to do. If you look on your C drive, do you have a XNA-temp folder sitting there at the root? It's possible it couldn't create that folder for various reasons, and if it can't, well… that's the end of what it can do.
(Hm. A couple of other questions worth asking: What version of Windows do you have, and do you have a drive labeled C? Most computers do, and I'm not sure Windows would even install if you don't, but I just wanted to ask just in case.)
If the script can't create the folder called XNA-temp, you could try creating that directory yourself before running the script to see if that fixes it.
Well, I managed to get the things working by copying manualy the XNA 4.0 directory from a previous Visual Stduio Express 2010, then running the script. Although the errors, it configured the XNA correctcly in Visual Studio 2013 Pro.
Yes I ran PowerShell as an administrator and I have set the ExecutionPolicy to Unrestricted to run the script.
It seems it fails to extract the extension files to the c:\XNA-temp directory. Btw this directory is NOT created for some reason. Which option switch should I use to allow verbose mode instead of /quiet in start-Process ? So I could get more information.
Windows version is 7 Brazilian Portuguese…
The /quiet thing makes it so the installer doesn't show a user interface while the installation is happening. You probably want to leave that there, but add in some extra stuff to get it to log what it's doing.
You could change the code that does this:
So that it looks more like this:
That will turn on logging (/L) of everything (*) and make it verbose (V). You should probably change the path that it writes to. After the script runs and fails, open it up and see if there is anything useful in it.
For what it's worth, I just ran the script myself and got a similar error. I was messing with the script, but the next time I ran it, it seemed to work correctly. I don't think I changed anything in the script, so it might be worth rerunning the script to see what happens.
If the log doesn't have anything useful, the next thing I might suggest is to edit the script and go to the bottom. On about line 146, there's a line that deletes this temporary directory. You could delete that line (so that the directory doesn't get deleted) and run it one more time. (If this works, I have a good hunch why.)
The link for the 64-Bit version of the script is down
Yeah, it was. Sorry. I broke it when I was uploading the 32-bit one. It should be fixed now, though I'm sad because in doing so, the download counter got reset, and I'm back to 0… Anyway, try it again. It should work now!
Post preview:
Close preview