x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

splitscreen with networking

I got a multiplayer LAN network game working great, but then when I added splitscreen for each client (including the listen server), then it started acting really weird. It would still spawn the pawns and possess them on the Server, but on the client, it doesn't possess them anymore, AND it changes the client's playercontroller IDs to -1 to match their IDs on the Server. I wonder if it's trying to possess with a null playercontroller because of it getting shunted around as a side effect like that. No way to tell because I know I'm not telling it to change its ID.

Product Version: UE 4.17
Tags:
more ▼

asked Feb 11 '18 at 06:31 AM in Blueprint Scripting

avatar image

mightyenigma
3.8k 18 20 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I have solved this by removing an RPC loop, and by converting the Tank preferences setup for the tank pawn's Possess event to use Player State : Player ID to match players to their respective controllers across machines (since there is no matching them up any other way, as I sadly discovered through many hours of trial and error).

more ▼

answered Mar 16 '18 at 11:41 PM

avatar image

mightyenigma
3.8k 18 20 20

avatar image Groliver7 Apr 06 '19 at 08:00 PM

Hey mightyenigma, thanks a lot for this info. Would you bother sharing screenshots of the blueprint? I am blocked on this network splitcreen feature for some time now and still cant find a way out.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

could you elaborate on that? i'm trying to accomplish this as well

more ▼

answered Feb 21 '19 at 06:16 PM

avatar image

SpudCrowley
5 1 2

avatar image mightyenigma Feb 21 '19 at 06:37 PM

The problem was that I had the mistaken notion that Player Controller IDs were the same thing as Player IDs. They're not. Player Controller IDs are 0, 1, 2, 3 for local splitscreen players (or just 0 if one player on that machine), and -1 for players on another machine.

Player IDs that you get from PlayerState object are unique and are the same across all connected machines. I had to loop through all the Players in the GameState : PlayerArray and find the one with the same Player ID as the one I sent via RPC in order to find the right one. There's probably a better way to do that than looping through them all but that's how I got it to work.

avatar image SpudCrowley Mar 06 '19 at 06:55 AM

good information! i will remember that... games need to have split screen online pvp.. good ol days

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question