RouterClient.cs is throwing an exception

Hello, new guy, first post.

Just created the standard project (for Windows) as shown in the game studio (used VS2015) but when trying to run it, the VS is asking me for the location of the “RouterClient.cs” source file.

I downloaded a fork from Github and found it at “\sources\engine\SiliconStudio.Xenko.Engine\Engine\Network\RouterClient.cs” but then VS throw an exception at line 125 (An exception of type ‘System.AggregateException’ occurred in SiliconStudio.Xenko.Engine.dll but was not handled in user code).

The Inner details of the exception said “No connection could be made because the target machine actively refused it 127.0.0.1:31254”

I get that the source file is needed for debugging but what I don’t get is why on earth would the engine try to do networkish stuff, especially if the engine doesn’t have any networking capabilities (so far that is). I don’t have any firewalls or antivirus, except windows defender.

Any clues? (and please don’t say, disable windows defender :slight_smile:).

Thanks

EDIT

hm, didn’t realise this but it appears that Xenko talks with one of it’s own services (/service/1.8.3-beta/SiliconStudio.Xenko.EffectCompilerServer.exe?packageid=748376db-f3bc-48d8-940d-25e32f1a5564) which is causing all this.

Is all that part of a released game as well or is it only during development?

Hello,

That is part of development process. The Game connects back to the developer PC to let it know what shaders were needed by the game, so that they can later be precompiled for faster startup.

You can easily disable it when shipping your game:

  • Right click on your package in the solution explorer
  • Click Package Properties
  • Untick Record used effects
  • If not enough, you can also set Effect Compiler to Local (I think that’s not necessary anymore, it was from when some specific platforms couldn’t compile locally, but now all of them can do so)
3 Likes