Answer Questions
Krutika Vista install problems
XNA won't install on Vista RC 1 5736. I'll try on a daily build tomorrow in the office. Are you going to support Vista in December Bummer about the 1.0, but understandable. How did you run the installer with elevated permissions Running msiexec manually I didn't think you could do it the same way as regular programs, with a right-click > Run as administrator. I did try disabling UAC and installing, but that still didn't work, it needed the VC# SP1 patch. FWIW my config consists of Vista 5744 x86, VS2003 and 2005, and VC# Express (natch). Again, I'd like to reiterate my lack of actual bitching. I think MS is doing a bang-up job of getting the tools into everybody's hands. ...Show All
Pita69 Dispose
Hello, I've noticed that apart from the top-level "using" statement, the example code never calls Dispose on anything. Is that something we should care about Does it cause unmanaged resource leaks What resources get disposed for us Thanks, Peter I haven’t made this rules I am not that happy with them too because you need additional knowledge to know when you have to call Dispose. As I am already promised I will write a suggestion for connect. But this led us to another question. What is with properties that gives you access to objects which implement IDisposeable Texture tex = device.Texture[0]; Would you call Dispose for tex after you are done with it Many of the DirectX resource objects have i ...Show All
Luke R Globtrotting and Creators Club and DreamBuildPlay
I've been working on a windows version of an XNA game for a while now. I'm to the point where I want to get a creators club membership and move it to the 360. I've also been waiting for the details of the DreamBuildPlay contest, so I can plan the rest of the project. Also depending on the contest details I've been waiting to buy tickets to Japan and Australia. To my question: If I get a creators club membership and get my game going on the 360 here (US) then go to Japan for 1 month and bring my laptop/360 can I use my creators club over there Same with Australia Also are the ethernet connections the same in all 3 countries How about the power Today is the last day I can get cheap tickets to Japan, so I'm going to get them, but if the ...Show All
Sixto XNA Beta 2 Question - Content.Load related
OK, I am hearing about this new content.load method that you can use instead of using the classic Texture2D.FromFile("..."), however, this may sound kinda nooby, but how do I access the content after it has been loaded I guess I do not really understand because I am not that advanced with XNA yet, and I would like a little rundown. Thanks in advance. What's a good way to store your textures Right now I have a dictionary that uses a string as the key and Texture2D as the value. My Character class has a SetTexture method, and it just set's the class's mTexture to a value from the dictionary. It just passes a reference, right It doesn't load the texture for each sprite, does it The problem is to do with how you have declar ...Show All
Srikanth Ramakrishnan XNA Framework wish list
XNA Framework wish list. - System.Net.Sockets o Socket (Tcp & UDP transport) o Do not really need support for TcpClient, TcpListener and UdpClient - System.Security.Cryptography o Rijndael o MD5 - System.IO o FileStream o StreamWriter / Reader - System.Text o StringBuilder o Full UniCode support - System.Threading - System.Diagnostic Thanks, Roger Larsen Our Xbox system assemblies are based on the .NET Compact Framework (2.0), so you can get a rough idea of what is supported by looking in the MSDN documentation. We'll certainly be supporting Sys ...Show All
slein Reading embedded files
Hi, i've added a .xml file to my xna project for windows, i've set it to be an embedded resource, how i can i them read the file n e attempt i make seems to try to read a file from the hdd or from a url many thanks Stephen suggested you need to use GetManifestResourceStream instead of GetFile. String resources are the only embedded types supported on the 360, I believe. So the above would be a good idea if you plan on using your code there. I thought the ResourceManager was for reading from .resx files That's a different kind of embedding to if you select "Embedded Resource" as the Build Action in the VS properties. I think you ca ...Show All
Richard Meijer Device Creation Problem
Hi, I am a starter to the game development. I planned to create a small program(game) that just initializes a device as a startup. I decided to do it in c#. I have the VS2005 Express Edition to start development. I have also downloaded the DirectX SDK, oct 2006. But the express edition throws an error InvallidCallExcpetion Every time i create a device. This is how i create it. PresentParameters presentParams = new PresentParameters(); presentParams.Windowed = true; presentParams.SwapEffect = SwapEffect.Discard; device = new Device(0, Microsoft.DirectX.Direct3D.DeviceType.Reference, this.Handle, CreateFlags.SoftwareVertexProcessing, presentParams); } I have a old graphics unit(sis 6326, 4 Mb) and a PII ...Show All
Bulldog.NET Very weird problem
Hello, I'am having a problem using Visual Studio 2005 Express Edition with the XNA GSE. When I go to File -> Nuevo Proyecto (notice that, it's "File" in english and "Nuevo Proyecto" in spanish, I speak spanish) it shows this: I can't do any of the proyects I could do without the XNA (Console Applications, Windows applications, etc.). If I uninstall XNA GSE, those options appear, but reinstalling, they disappear again... And this type of things happen all around the program, for example If I go to the Solution Explorer, right-click in the project, Add - > Nuevo Elemento (mixing languages again) it shows this: I can't even create a class!!! And all the other things... these things happen, again ...Show All
JennyMQuinn The device does not support creating a texture of the given format with the given ResourceUsage
Hello everyone. We've just started writing a PC game in XNA, and are progresing very quickly. However we're a bit concerned by the fact that the game started not to run on the artist's machine. Through installing VC#, we discovered basically it's failing to create a Texture2D with the following parameters: // Create the cache texture this.Texture = new Texture2D( graphicsDevice, 256, 256, 1, ResourceUsage.Dynamic, SurfaceFormat.Alpha8, ResourceManagementMode.Manual ); "The device does not support creating a texture of the given format with the given ResourceUsage" Or practically any parameters, truth be told. The graphics card is an NVIDIA FX 5900 Ultra, this works fine on various othe ...Show All
Shuman Kibria In Game Movies
Does anyone know whether the XNA Framework will allow for games to be written that have Cut-Scene videos, perhaps using non-Microsoft codecs such as divx or another codec that allows high-video compression to limit the size of the game. Will the game be able to use any audio/video codecs that Windows has installed on it, and will it be able to load pre-written non-managed code DLL's Version 1 of the XNA Framework will not include video playback functionality. Please let us know if that is important for you so we can correctly prioritise it when deciding the feature set for future releases. On Windows, you can load any existing native DLL's, using P/Invoke or a managed C++ wrapper, but on Xbox you are limited to only runn ...Show All
V.E Assemblies Not Referenced
After installing XNA Game Studio Express 1.0, I get the following error in my Beta 2 project: Error 1 The type 'Microsoft.Xna.Framework.Graphics.SpriteBlendMode' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff'. But it is referenced, and I'm pretty sure it's the right version too. I even tried to copy the code and content files into a new project, but it still gave the error. If anyone can help me I would appreciate it. Thanks. It sounds like you may have just tried to open a Beta 2 project in the final version of GSE. Your program may be looking for the older XNA beta framework. Try this, it migh ...Show All
mjoc69 Joysticks, wheels, gamepads...
Managed DirectX is dead. I don’t really understand when I can use game-devices. The supporting of Xbox360 controllers equals to no support game controllers after all (in Windows, of course). What's your question exactly The Xbox 360 controllers plug right into a Windows computer. This is true for third-party 360 controllers, too; they're all USB. Microsoft basically decided to do a clean break with the past, and defining what capabilities/inputs a game controller has, and that's all that's supported in XNA. Anyone who buys a new controller will get a 360 compatible controller, which works with XNA. Anyone who has an old controller will have to pay $29. If you target PC only, you can link with ...Show All
NeW2VB A few questions about the XNA IDE
When I double-click on the source file in the Solution Explorer that represents both code and a designer, it brings up the designer by default. You have to right-click and select "View Code" to get the code. Is there a way to make it bring up the source code by default I searched the help and the forums and I couldn't find any way to change the behavior. It seems to me that you'd want the code much more often than you'd want the designer. Also, after I switched my game from windowed mode to fullscreen mode, bringing up the designer would switch the screen resolution to the backbuffer size of my game. Is this expected or is this a bug Everytime I do it there are VCSExpress icons added to the tray and they don't go away after ...Show All
peedee Trying to move ContentManager to another class
After successfully building the "How to Render a Model" example in the XNA docs, I am trying to move: myShip = content.Load<Model>("media\\ship"); to a separate class and I was getting: Error 1 The name 'content' does not exist in the current context so I changed it to: myShip = Game1.content.Load<Model>("media\\ship"); and then I got: Error 1 'Game1.content' is inaccessible due to its protection level so I changed ContentManager content; in Game1.cs to: public ContentManager content; and now I get: Error 1 An object reference is required for the nonstatic field, method, or property I'm stuck now. Ideas Thanks! Greg If you want to do it this way ...Show All
Brandon Hawkins Requirements to built your own games?
First of all hi.. i'm new to the programming games stuff.. so i would like to know if XNA Game Studio Express is a good way to start with programming languages What are the main languages used in XNA Game Studio Express C, C#, c++, VB Does XNA Game Studio require a medium knowledge of this programming languages or any newbie can learn how to program their own games without any knowledge of programming languages Thanks in advance!! XNA Game Studio Express is specifically targeted for people just like you. You will be able to use any of the .NET language (C#, VB, etc) to program using the XNA framework. You will need to know how to program in that language, but you don't need to be an exp ...Show All
