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"

Why is my player 1 not joining into player 2 session?

alt textSo basically i have a join and create session blueprint script. For some reason when i get player 1 to click play it joins the session and creates it for other players to join. When player 2 presses play it will run the code of join session but will always go into its own session and not player 1's session? Im really stuck and would like to figure out why?

I have done the online subsystem like so:

[OnlineSubsystem] DefaultPlatformService=Null

Product Version: UE 4.19
screenshot-1.png (173.9 kB)
more ▼

asked Apr 28 '18 at 09:30 PM in Blueprint Scripting

avatar image

1 1

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

2 answers: sort voted first

Player 1 just has to create session and Player 2 just has to join session. Doing both for both players isn't going to work

Hope that helps :)

more ▼

answered May 06 '18 at 06:38 AM

avatar image

Kit Kat134
203 2 9 10

avatar image Kit Kat134 Oct 21 '18 at 02:52 AM

If this works for you, please accept the answer :) If there are still problems, can you add more detail as to what isn't working and how your blueprints are setup?

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

I don't know but there are two things to fix first:

  1. You're looping over all the found sessions and trying to join ALL of them. You should probably only join one (use foreachloop with break maybe).

  2. After that loop is done, I see you trying to Create ANOTHER session right after you joined one already. I'm not sure but I think that you can't be in two different sessions at once and I think maybe you can't stay in a session you joined if the joining client creates yet another one and thereby becomes the host of its own thing instead of being in the world of the host it joined previously.

more ▼

answered May 06 '18 at 05:15 AM

avatar image

3.7k 18 23 20

(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