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. 

OnlineSessionInterfaceNull Sessions.Num() always zero

I am currently trying to debug and implement player to player voice communication between two players on a dedicated server. I am only so versed in all of the C++ I am digging through so please tell me if I am totally barking up the wrong tree.
I believe I have tied in the proper commands for the playercontroller to call StartTalking and StopTalking, and as I step through the code I see alot of what I would expect. However, when in FOnlineVoiceImpl::Tick I am noticing that the code cannot step past the check for if the SessionInt->GetNumSessions() > 0, and stepping into that code always shows the number at 0.
Is this something funky because I am using a dedicated server? (I have noticed other quirks in networking that occur on dedicated, but not listen servers) Is this where I should be looking to debug voice functionality? (voice packet processing appears to be done here)
Any information involving networking and voice would honestly be awesome.

Further information: It appears that RegisterLocalTalker and RegisterRemoteTalker are not being used here (breakpoints arent hit). I am using blueprints to host the server session and also to join the server, would this cause something in the subsystem to not generate a recognizable session?

Product Version: Not Selected
Tags:
more ▼

asked Mar 18 '15 at 02:04 AM in C++ Programming

avatar image

Spiris
1.1k 40 33 76

avatar image Spiris Mar 20 '15 at 01:18 AM

A humble bump, I still cannot figure out how to get the game session available outside of on my local machine.

avatar image eXi Mar 20 '15 at 01:38 PM

Hey, it would be nice if you could only bump after 4 days with no reply.

Bumping ealier will clutter the HUB and make it harder for other people to get their problems solved (:

avatar image Spiris Mar 20 '15 at 03:18 PM

Sorry, I figured after two days the post was going to be lost to antiquity. I will keep it less frequent though. My intent would never be to hurt other people chances at getting answers.

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

2 answers: sort voted first

As it turns out, connecting to my server via 'open ' is not the proper way to join a session, and results in connected clients ignoring the session that does in fact exist on the server. In order to solve this I had to set up a session in c++ (I couldn't find the one hosted through Blueprints) and used the find and join session blueprint nodes to connect to my server. The session is now accessable along with all of the functions I need. Huzzah!

more ▼

answered Mar 20 '15 at 07:00 PM

avatar image

Spiris
1.1k 40 33 76

avatar image altnabla Mar 20 '15 at 08:30 PM

Good news :) Glad it's fixed

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

What online subsystem are you using? (if any). From the sound of your post you're not actually using an Online subsystems (aka Steam/PSN/...) which are implementing the interface. Resulting in no session whatsoever

more ▼

answered Mar 20 '15 at 01:34 PM

avatar image

altnabla
79 2 3 6

avatar image Spiris Mar 20 '15 at 03:14 PM

I am using OnlineSubsystemNull with OnlineSessionInterfaceNull. It forms a session when running the PIE dedicated server, but ran as a separate process it does not. In either case I am connecting to it using the console command 'open ' and passing non session related data over the network (we have a chat box sending text messages globally, player movement, etc)

(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