Jump to content
  • Advertisement
Sign in to follow this  

C# game not runnning on other computers

This topic is 2436 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there,

I have a problem with my C# game. How am I supposed to know what must be installed to be able to run it on another computer?

I tried installing the .NET framework but I think that's not enough.

Many thanks!

Share this post


Link to post
Share on other sites
Advertisement

Hi there,

I have a problem with my C# game. How am I supposed to know what must be installed to be able to run it on another computer?

I tried installing the .NET framework but I think that's not enough.

Many thanks!


You using any type of graphics library like XNA or SlimDX?


Share this post


Link to post
Share on other sites

[quote name='essbee' timestamp='1315798082' post='4860539']
Hi there,

I have a problem with my C# game. How am I supposed to know what must be installed to be able to run it on another computer?

I tried installing the .NET framework but I think that's not enough.

Many thanks!


You using any type of graphics library like XNA or SlimDX?



[/quote]

If you're running XNA, make sure you are #1) your project is not using the Xbox 360 component network and storage services (they only run under the full framework; alot of XNA examples include them needlessly for PC projects leading to a ton of confusion), and #2) that they have the XNA Framework Redistributable installed.

#2 is easy to fix, just have VS do a publish of the game and .Net and the XNA redistributable should be included as dependancies in the installer.
#1 is not easy, and requires the PC to have the full XNA framework and all its dependancies installed. This is a major PITA, but if you can, remove the appropriate services from your game setup and you'll be fine. If you -have-to- have them, your friends will need a copy of VS-Express, .NET 4.0, and XNA-Full before it will run (MS made XNA-Full dependant on VS installed features... dunno why).

UPDATE: The services im talking about are the GamerServices (http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspx) if you use any of them, you need to include the full XNA framework, since they are only available in it. While Xbox 360 contains them already by default, most windows PCs do not, and therefore you would need to include the full XNA deployable rather than the XNA Redistributable if you plan to take advantage of any of them on the PC.

Share this post


Link to post
Share on other sites
Okay, the thing is that I have a game that I plan to release on Steam. I think Steam already do all these installations depending on the game needs but I wanted to know what I needed so I can test it on other computers. Yes I have XNA in my game for the sounds but I don't use it for graphics. I'll try installing xna and .net without installing VS (because that would be too much of an hassle I guess) and see if it works.

Anyway, thanks to both of you and don't hesitate if you have anything to add.

Cheers.

Share this post


Link to post
Share on other sites
Okay I finally understood what Net Gnome said but I have a little problem with the dependencies with tao.sdl 1.2.13.0. Windows seems to expect it to be at the global assembly cache. So XNA seems to be fine but what should I do with this taoframework?

I'll continue my search but if you know what to do then I would greatly appreciate if you could tell me.

Thank you.

Share this post


Link to post
Share on other sites

Okay I finally understood what Net Gnome said but I have a little problem with the dependencies with tao.sdl 1.2.13.0. Windows seems to expect it to be at the global assembly cache. So XNA seems to be fine but what should I do with this taoframework?

I'll continue my search but if you know what to do then I would greatly appreciate if you could tell me.

Thank you.


you may be able to add the Tao dependencies in your solution properties. right click your solution file in VS, select properties, goto the publish tab, and check Application Files and Prerequisites. If it is an installer that VS recognizes, it'll be under Prerequisites, otherwise you may have to manually add it under Application Files. This is where you start getting into the phrase known as "dll hell". You have a couple options at this point. manually reference each required DLL and its dependencies, then you can use the built in publisher to create an install package, otherwise, you may want to look into a 3rd party installer that you can use to attach these dependency installers into. This can be a very frustrating part of software development, don't loose heart, you'll get it working eventually.


Share this post


Link to post
Share on other sites

Okay, the thing is that I have a game that I plan to release on Steam. I think Steam already do all these installations depending on the game needs but I wanted to know what I needed so I can test it on other computers.


Actually, if you do get on Steam and your game requires any special Libraries, you will have to include them in your game files and set up a Steam installer script. So it is best to figure out exactly what your end users will need now. wink.gif

Share this post


Link to post
Share on other sites

[quote name='essbee' timestamp='1315872092' post='4860907']
Okay I finally understood what Net Gnome said but I have a little problem with the dependencies with tao.sdl 1.2.13.0. Windows seems to expect it to be at the global assembly cache. So XNA seems to be fine but what should I do with this taoframework?

I'll continue my search but if you know what to do then I would greatly appreciate if you could tell me.

Thank you.


you may be able to add the Tao dependencies in your solution properties. right click your solution file in VS, select properties, goto the publish tab, and check Application Files and Prerequisites. If it is an installer that VS recognizes, it'll be under Prerequisites, otherwise you may have to manually add it under Application Files. This is where you start getting into the phrase known as "dll hell". You have a couple options at this point. manually reference each required DLL and its dependencies, then you can use the built in publisher to create an install package, otherwise, you may want to look into a 3rd party installer that you can use to attach these dependency installers into. This can be a very frustrating part of software development, don't loose heart, you'll get it working eventually.



[/quote]

Hey there Net Gnome,

I want to thank you for the help you gave me but it doesn't seem to work. It still need tao prerequisites. The thing is that I can run the .exe version of the Release folder but the installer I published just doesn't start. I thought that maybe you had an idea about this? For the release version to work I installed tao opengl, xna and .net and it went well. The publish version must be missing something obvious.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!