Hi CorrM, thanks for the plugin, just about to check out your example projects. However I’m having trouble figuring out how to start the GameServer. Can you give some instructions about this? Just starting the .exe under bin/debug does not seem to do anything. As of your code I would expect a console to popup.
Opening the project in visual studio and trying to build I get: …\GameServer\Module1.vb’ could not be found.
Edit: Ok, managed to start the server, with …\GameServer\obj\Debug\GameServer.exe
By trying to run the Chat example there are issues. The Chat example project is for 4.16 and the Plugin only exists for 4.17. I just upgraded the example project to 4.17 and startet it. Now there are errors within the project.
WidgetBlueprint Chat: “TCP Send” node is not known. Replace with “SendBytes” node
Level Untitled LevelBlueprint: TCP Connect node is not known. Repalce with “Connect” node
Edit2:Why does the GameServer always change the package identifier (Bytes[0]) after receiving a package?
Edit3: IsConnected crashes the engine when called with an empty device structure.
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\RocketSync\4.17.0-3573198+++UE4+Release-4.17\Working\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 596] Array index out of bounds: -1 from an array of size 0
UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
UE4Editor_CorrmSocket!UCorrmSocket::IsConnected() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\corrmsocket\source\corrmsocket\private\corrmsocketbplibrary.cpp:186]
UE4Editor_CorrmSocket!UCorrmSocket::execIsConnected()
Edit4: The device struct contains the “FromListener” member. What does it mean? It seems to be the info if I am server or client, but then it is missplaced in that structure as it has nothing to do with the device. Should just be an extra pin on the event nodes.
Your StringToByte function crashes the engine when the string is empty