Compile complete -- 1 errors, 0 warningsC:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========Seems like swig didn't compile all needed files, so i tried to downgrade it to 2.0.12

------ Build started: Project: SwigTestApp, Configuration: Release x86 ------C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\TestMain.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\NatPunchthroughClient.cs(86,10): error CS0246: The type or namespace name 'SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing' could not be found (are you missing a using directive or an assembly reference?)C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\FullyConnectedMesh2.cs(141,141): error CS0246: The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t' could not be found (are you missing a using directive or an assembly reference?)C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNet.cs(76,36): error CS0246: The type or namespace name 'RakWString' could not be found (are you missing a using directive or an assembly reference?)C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNet.cs(76,52): error CS0246: The type or namespace name 'RakWString' could not be found (are you missing a using directive or an assembly reference?)C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNet.cs(76,18): error CS0246: The type or namespace name 'RakWString' could not be found (are you missing a using directive or an assembly reference?)

Compile complete -- 6 errors, 0 warningsC:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3267: The primary reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL".========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========At least now i have those files. So, probably, swig version may be critical. Does anyone made C# library already (for 4.081 version of Raknet)? What tools you used (and their versions)?

I've tried everything to build the RakNet swig DLL from the most recent package available for download and nothing works. All sorts of files missing, and the bat files don't run properly either.

How did you end up getting your DLL to compile?also, the one you provided can't actually be used with anything outside of the project you made / computer you compiled it with, looks like it's the debug build instead of a release build. Could you upload your release build please and thanks?

I notice that by default, after about 5 seconds under the debugger (application is paused) or 5 seconds after disconnecting internet, a client is disconnected.

Unfortunately this has lead to a few false positives for me and clients occasionally get disconnected in bad network conditions. What could I do both on client and server side to help prevent this. Maybe make it 30 seconds instead of 5? I just want to make sure clients do not get disconnected in bad network conditions.

I'd like to know more about underlying techniques of Raknet natpunching. Does Raknet use standardizes methods like STUN( http://en.wikipedia.org/wiki/STUN )? Or does it have it's own way of handling with the punching? If so, how does this compare to STUN?

I'm asking this because I'm looking for a network library for an online game with the best possible NAT punching implementation.

if (startForwardingOutput[i].result==UDPFORWARDER_SUCCESS || startForwardingOutput[i].result==UDPFORWARDER_FORWARDING_ALREADY_EXISTS)Otherwise, filling in the port where UDPFORWARDER_FORWARDING_ALREADY_EXISTS is set is irrelevant and never ends up coming through to the callback?

Yeah, it's pretty sad that the only ones writing on the forums are spambots, and desperate users, who are trying to figure out something.. They should really hire a support guy..

You can just try to make your own lag simulator. It's easy, make a class, which you set up the desired latency, and packet loss, and when you would normally call the Send function, call this class's Send function, which decides if the packet will be dropped or not, and how much later should it send it. The lagsimulator did this too, basically.