Hello,
This may be a rather stupid question and very simple but i am having trouble and must be doing something wrong.
Basically, at the moment i have my level blueprint that in its ‘Play’ settings, has ‘2 Number of clients’, and when i click play, everything seems fine, 2 windows and 2 different players. However i didn’t really know how i can make sure that this is actually working and would work with 2 separate connections. So, i looked at the recent ‘CouchKnights’ project that was released with 4.3 and packaged the ‘CouchKnights’ game and followed the instructions within the level editor which say…
With this, i created 2 shortcuts of my game executable, one the client and one the server.
The target for the server shortcut was this :
F:\WindowsNoEditor\CouchKnights\Binaries\Win64\CouchKnights.exe CouchKnights Room?Listen -Game
and the target for the client shortcut was this :
F:\WindowsNoEditor\CouchKnights\Binaries\Win64\CouchKnights.exe CouchKnights 1"2.1"".1."2 -Game
(Without the quotation marks in my IP)
And so i tested this and it all seemed to work perfectly fine.
Next i tried to package my current project and did the same process with the shortcuts as well.
This also worked and i had both players in the game.
However, next i tried to send this packaged game with the shortcuts to my friend. First of all we tried with the shortcuts. I would open the shortcut server with a target like this…
F:\ …..WindowsNoEditor\GameProject_1\Binaries\Win64\GameProject_1.exe GameProject_1 Networking_Multiplayer?Listen -Game
and then i had him open the client shortcut who`s target looked like this…
F:\ …..WindowsNoEditor\GameProject_1\Binaries\Win64\GameProject_1.exe GameProject_1 1"2.1"".1."2 -Game
(Without the quotation marks in my IP)
However this method did not work.
So i looked to trying the ‘Command Line’ method instead of using shortcuts.
Firstly, i opened my game .exe and typed in the console this…
open ''myMapname"?listen
and then i had my friend launch the .exe and type in the console…
open ''MyIPAddress"
However this also did not work. I may be very wrong in thinking its this simple, but from what i have watched and read, i cant tell if there’s more work for me to do? All i want to do is have the client connect and join the listen server. Am i doing something wrong?
I am sorry this turned into a really long post for something that probably could have been put much simpler.
If anyone could help at all with this it would be a great help, as i have been trying to figure it out for a while. Any help is greatly appreciated.
Thanks A lot!