Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rpiller

Pages: [1] 2
1
RakNet C++ Support / Calling a web service
« on: July 17, 2014, 12:52:32 PM »
Are there any examples on how to call rest web services in C++? Something like: http://myurl/api/GetProduct/2 or something alike?

Also, are these forums even relevant anymore seeing as RakNet was sold and the creator seemed to be pretty much the only one answering questions here anyway :)

2
RakNet C++ Support / _CRT_SECURE_NO_WARNINGS errors
« on: April 27, 2014, 09:26:16 AM »
Getting a bunch of these errors. I see from a previous post these used to be warnings but now with VS 2013 they show up as errors. Where in VS 2013 do I put this _CRT_SECURE_NO_WARNINGS and will it even work considering they are errors now and not warnings?


Error   31   error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.   c:\raknet_pc-4.0802\raknetsrc\ds_table.cpp   99   1   RakNetTest

3
RakNet C++ Support / Secure only on login
« on: January 10, 2013, 06:41:21 AM »
Is there a way to only use RakNet secure connection only for my login? Then after that the connection wouldn't be secure and wouldn't incur the extra bytes. In order for me to use the guid on the connection as the ID of the client on the server I'm guessing it would need to be the same rak interface as well?

4
SWIG and C# support / C# client with C++ server
« on: February 14, 2012, 11:39:35 AM »
Am I able to mix client/server between C# and C++? So can I have a C# client app using RakNet talk to a C++ server app using RakNet?

5
SWIG and C# support / RakNet in WinForms application
« on: July 07, 2011, 03:06:08 PM »
Since a WinForms application doesn't really give us access to the main loop, what is the best way to use RakNet with a WinForms project? Would it be a timer that is checking for network messages?

6
RakNet C++ Support / int8_t collision with mysql connector c++
« on: May 24, 2011, 11:37:12 PM »
Not sure if you care or not but I found a redefinition error with int8_t in nativetypes.h. I'm using RakNet with MySql connector for C++ and it seems it also does a typedef to make an int8_t type. They both point to the same base type so I just commented out the mysql connector version and it works, but not sure if there is a way to handle that on your end for future builds perhaps.

7
SWIG and C# support / DLL_Swig build error
« on: May 06, 2011, 08:20:15 PM »
Getting a bunch of errors trying to build the DLL_Swig project about:

Error   2   error C2039: 'SystemAddress_address' : is not a member of 'RakNet'   C:\RakNet\DependentExtensions\Swig\SwigOutput\CplusDLLIncludes\RakNet_wrap.cxx   4063   1   RakNet

Erroring out on lines like:
RakNet::SystemAddress_address *arg1 = (RakNet::SystemAddress_address *) 0 ;


Any ideas what's up with this?

8
RakNet C++ Support / Client pinging server. I've done search but...
« on: December 21, 2010, 10:09:55 PM »
I have set SetOccasionalPing(true). Then from forum search I see you have to do something like GetAveragePing() for example, but I couldn't find anyone who shows the parameter to that function. It says AddressOrGUI as the type. I tried "localhost" but that doesn't compile. If I'm the client and I call Connect() to an IP address, how do I get a value to that server address to pass to GetAveragePing()? I'm assuming it's stored somewhere in the RakPeerInterface variable?

I tried using the packet value I get in each loop (since the client only gets data from the server and so that systemaddress should be the server address), but that crashed on me. I must be missing something easy here.

I just want to ping the machine I'm always connected to. I would think GetAveragePing() would have an overloaded version that didn't take any parameter and just pinged the first connection it has.

9
RakNet C++ Support / Making lag
« on: December 20, 2010, 11:11:40 AM »
So I'm running my networked game locally and everything works great. I'm trying to get a few people to help me out that are spread out around the US, but I was wondering how I can make/simulate some lag locally on my machine for each client so I can see how my code reacts to it.

10
RakNet C++ Support / Sending pos/rot updates
« on: December 18, 2010, 11:23:00 AM »
I have a client and a server program that use RakNet. I have the client setup to send pos/rot updates to the server 20 times a second. Then when the server gets the  update it sends it off to the other clients right then and there. When I run the server and 2 clients on my machine and move 1 client around it doesn't really look like the other client is getting pos/rot updates 20 times a second. For now I just snap the remote client to the pos/rot that comes in, but there are sometimes 1/2 second or so delay from one position to the next.

How can I tell what is going on with this? Debugging this is kind of a pain. Is there some easy way to tell if the packets are truly coming in fast enough like I think they should be? With this being all on the same machine I would think it should be fast.


Ideally I would be able to just attach some sort of packet watcher to my clients and servers to see how often packets are coming and going.

11
RakNet C++ Support / Smooth network movement
« on: November 29, 2010, 01:30:54 PM »
I'm curious if there is any addon or if anyone knows of a decent way to get smooth network movement of objects. I know this can be game specific but just wondering if anyone has done anything (as this is a pretty common task in networked games) already to make this easier.

I have a game where the client is authoritative of it's position. It also sends it's position every 100ms to the server and the server broadcasts that position out to the other clients. So the other clients then get new position for these remote characters. Obviously just snapping to these new values creates insane jerky movement. One can interpolate between the current value to the new updated value, but how many steps to make with the interpolation and I assume the ping should have something to do with the step value of the interpolate.

Just curious if anyone has done this already. This game is more RPG style so it doesn't require the exact precision of something like a FPS.

12
I downloaded 3.81. Converted the 2005 solution to 2008 express. Compiled both debug & release. Created a project and added the header files, added the libs, put the dll's in my projects directory. I include #include "RakPeerInterface.h" in my file. When I place the line:

RakPeerInterface* peer = RakPeerInterface::GetInterface();

I get 'GetInstance' : is not a member of 'RakPeerInterface'

What am I missing?

I don't see GetInstance() in the rakpeerinterface.h. Are the tutorials setup for 4.x?

13
SWIG and C# support / Pre-builts
« on: August 09, 2010, 08:45:33 PM »
I think this may be easier for people trying to get started. Here is the pre-built RakNet.dll file for Beta 4, and I also took all the source files that are generated and put those into their own dll also, which I call RakNet.Net.dll. All you have to do with this is reference RakNet.Net.dll in your .NET project (be it VB.NET or C#) and then have RakNet.dll in your exe path.


http://dl.dropbox.com/u/1293842/RakNet.Net/RakNet.dll

http://dl.dropbox.com/u/1293842/RakNet.Net/RakNet.Net.dll

14
SWIG and C# support / Namespace
« on: August 09, 2010, 08:33:29 PM »
Is there a way for Swig to make a Namespace for RakNet? It's not a huge deal, but seems like it would be best if C# RakNet had a namespace around it by default.

15
SWIG and C# support / C# issue with some data types
« on: August 08, 2010, 03:07:52 PM »
I built the C# version with swig and it seemed to built ok. When I open up the SwigTestApp I'm getting 22 errors complaining about some SWIGTYPE_ errors.

Quote
Error   1   The type or namespace name 'SWIGTYPE_p_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetBPlusTreeRow.cs   50   29   SwigTestApp
Error   2   The type or namespace name 'SWIGTYPE_p_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetBPlusTreeRow.cs   61   32   SwigTestApp
Error   3   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetBPlusTreeRow.cs   67   32   SwigTestApp
Error   4   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetBPlusTreeRow.cs   92   10   SwigTestApp
Error   5   The type or namespace name 'SWIGTYPE_p_RakNet__FileListTransferCBInterface__OnFileStruct' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\FileListTransferCBInterface.cs   47   30   SwigTestApp
Error   6   The type or namespace name 'SWIGTYPE_p_RakNet__FileListTransferCBInterface__FileProgressStruct' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\FileListTransferCBInterface.cs   52   38   SwigTestApp
Error   7   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   150   10   SwigTestApp
Error   8   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_Cell_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   156   67   SwigTestApp
Error   9   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   156   10   SwigTestApp
Error   10   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_Cell_p_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   163   67   SwigTestApp
Error   11   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   163   10   SwigTestApp
Error   12   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_Cell_p_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   170   67   SwigTestApp
Error   13   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   170   10   SwigTestApp
Error   14   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   210   10   SwigTestApp
Error   15   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   216   10   SwigTestApp
Error   16   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_ColumnDescriptor_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   226   10   SwigTestApp
Error   17   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_SortQuery_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   253   32   SwigTestApp
Error   18   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_Row_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   253   111   SwigTestApp
Error   19   The type or namespace name 'SWIGTYPE_p_DataStructures__Table__Row' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   270   122   SwigTestApp
Error   20   The type or namespace name 'SWIGTYPE_p_DataStructures__ListT_FilterQuery_t' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\Table.cs   274   83   SwigTestApp
Error   21   The type or namespace name 'SWIGTYPE_p_p_Cell' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetListCellPointer.cs   68   10   SwigTestApp
Error   22   The type or namespace name 'SWIGTYPE_p_p_Cell' could not be found (are you missing a using directive or an assembly reference?)   C:\RakNet4\DependentExtensions\Swig\SwigWindowsCSharpSample\SwigTestApp\SwigFiles\RakNetListCellPointer.cs   77   10   SwigTestApp



What did I do wrong?

Also, does anyone have some prebuilt cs files and dlls? I don't much care to build these myself. Would prefer using prebuilt files honestly as it's just easier.


On a side note, why isn't the C# version just all put into a .NET dll that we would reference? Seems that would be easiest for the developer.

Pages: [1] 2