Recent Posts

Pages: [1] 2 3 ... 10
1
Programming / Re: Tutorial error "SocketDescriptor" is undefined? How to fix?
« Last post by zedo509 on March 22, 2015, 02:19:51 PM »
Hello Guys ! I try to install RakNet in QtCreator by compiling some example in the tuto on linux and i got the same error. My .pro is:

TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt


unix {
           #ce repertoire
            INCLUDEPATH += /usr/include/RakNet
            CONFIG += link_pkgconfig
        }

 win32 {

            }
CONFIG(debug, debug|release)
     {
       TARGET = $$join(TARGET,,,d)
      LIBS *= -lRakNetDinamic.so
     }
CONFIG(release, debug|release):LIBS *= -lRakNetDinamic
SOURCES += main.cpp

Can u help me ?
2
SWIG and C# support / About swig versions
« Last post by Amphilohiy on March 19, 2015, 02:41:18 AM »
Hi. I got RakNet 4.081 and try to make dll for Unity. So i'm using bat file with 3.0.5 swig to make *.cs and trying to compile windows test project with 2010 studio, and got an error.
Code: [Select]
------ Build started: Project: SwigTestApp, Configuration: Release x86 ------
error CS1504: Source file 'C:\bin\RakNet\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper.cs' could not be opened ('Unspecified error ')

Compile complete -- 1 errors, 0 warnings
C:\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
Code: [Select]
------ 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 warnings
C:\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)?

P.S. last time i probably forgot to update new files in project.
3
SWIG and C# support / Re: Error while building the DLL in raknet_wrap.cxx
« Last post by dlun on March 11, 2015, 07:43:37 AM »
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?
4
RakNet C++ Support / Making Connections as Stable as Possible?
« Last post by jmasterx on February 27, 2015, 11:06:05 PM »
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.

Thanks
5
RakNet C++ Support / What NAT punching technique does Raknet use?
« Last post by maarten on February 26, 2015, 04:42:19 AM »
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.
6
SWIG and C# support / Re: Error while building the DLL in raknet_wrap.cxx
« Last post by devMidgard on February 24, 2015, 10:57:11 AM »
I managed to finally build the newest RakNet version C# DLL, so if anyone is searching for that, I'm just sharing it here, as I don't want anybody else to go through the madness it is.

https://drive.google.com/file/d/0BwuOJwLuDZfnM29DTFlLTWZWOXc/view?usp=sharing
7
SWIG and C# support / Error while building the DLL in raknet_wrap.cxx
« Last post by devMidgard on February 23, 2015, 12:34:15 PM »
Hi, for some reason I can't build the DLL with Raknet_wrap.cxx, I have no idea on how C++ works (I'm a C# guy) so it would be very handful if you could tell me what's wrong.

The full error reports the following:

raknet_wrap.cxx(15441): error C2558: class 'RakNet::ReliabilityLayer' : no copy constructor available or copy constructor is declared 'explicit'

And the line where the error is is this:

  jresult = new ReliabilityLayer((const ReliabilityLayer &)result);

Full function:

SWIGEXPORT void * SWIGSTDCALL CSharp_RakPeer_RemoteSystemStruct_reliabilityLayer_get(void * jarg1) {
  void * jresult ;
  RakNet::RakPeer::RemoteSystemStruct *arg1 = (RakNet::RakPeer::RemoteSystemStruct *) 0 ;
  ReliabilityLayer result;
 
  arg1 = (RakNet::RakPeer::RemoteSystemStruct *)jarg1;
  result =  ((arg1)->reliabilityLayer);
  jresult = new ReliabilityLayer((const ReliabilityLayer &)result);
  return jresult;
}

I need to know what's wrong asap!
8
RakNet C++ Support / Possible fix for OnForwardingInProgress
« Last post by mchugh on February 17, 2015, 03:04:48 AM »
Hi,

I had observed for a long time that the OnForwardingInProgress call never provided a proxyPort other than zero, I think the problem is in UDPForwarder.cpp, where the following line:

Code: [Select]
if (startForwardingOutput[i].result==UDPFORWARDER_SUCCESS)
should read:http://www.jenkinssoftware.com/forum/Themes/default/images/icons/modify_inline.gif

Code: [Select]
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?
9
RakNet C++ Support / Re: ApplyNetworkSimulator
« Last post by Honya on February 16, 2015, 11:56:33 AM »
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.
10
RakNet C++ Support / Re: ApplyNetworkSimulator
« Last post by ddeng on February 16, 2015, 11:04:43 AM »
It's been 6 days. I'm pretty disappointed that there's no reply.
Pages: [1] 2 3 ... 10