Hi,
First: The code I used is available at: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
I used only the “Player 0 = Keyboard, Player 1 = Gamepad (C++)” part
Log is attached, but this error happened to me in more than one place in my game.
Also, it is crshing my game from time to time and makes it unstable from time to time…
For the time being I will revert to the default GameViewportClient until I understand it more clearly or you guys find a solution for it…
Thanks
Hey Sulaiman404-
Can you explain what the error is that you’re getting? You also mentioned a crash, can you provide the callstack and log files from the crash for additional information.
As for the code you’re using, the link provided is from a community created page of the wiki so I can’t guarantee it will work natively. Can you explain what it is you’re trying to accomplish?
Hey ,
What I am trying to achieve with the code is to seperate the keyboard from the controllers, so Keyboard is index = 0, Gamepad 1 index = 1, Gampad 2 index = 2 and so on for the rest of controllers.
Please see the report that generated after the crash and the logs for the latest crash in the attachment
Thanks
After testing the code provided by the wiki it appears to be working for me. In a new third person template project I was able to add the code as described and then in the Level Blueprint use two CreatePlayer nodes to create the second and third players. In PIE I’m able to give input to the first player (player0) with the keyboard, input to second player (player1) with the first controller, and input to third player (player2) with the second controller. How you’re creating your players may be the cause of the issues you’re seeing. If you are setting the Number Of Players field in the Play drop-down of the editor then that is creating a server/client setup where both server and client are treated their own player0 (rather than server being player0 and client being player1). Hopefully this will help you setup your multiplayer
Cheers