# When I try to use the new "Create Session" node, it fails

**URL:** <https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, unreal-engine, Blueprint, question\
**Created:** [January 3, 2015, 8:46pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939 "2015-01-03T20:46:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 3, 2015, 8:46pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/1 "2015-01-03T20:46:13Z")

</div>

The output logs show: “Invalid or uninitialized OnlineSubsystem” and then on the next line, “Cannot map local player to unique net ID”

I’m using a fresh copy of the 3rd-person game template.

Here’s my blueprint setup. I have my character set up to call the HostSession event when I press a key.

 ![25490-createsession.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/8/4c8d37ebb1b1cfb47716236b897edf03f72a9e8d.jpeg)

I tried “Use LAN” both checked and unchecked.

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 5, 2015, 10:32pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/2 "2015-01-05T22:32:13Z")

</div>

So now it seems to work in PIE but not as a standalone or packaged game. Thoughts?

---

<div class="post-metadata">

**Author:** ![Ryan\_Gerleve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Gerleve](https://forums.unrealengine.com/u/Ryan_Gerleve)\
**Post date:** [January 5, 2015, 10:44pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/3 "2015-01-05T22:44:30Z")

</div>

Hey Greg,

You’ll also need to add a default platform service entry to \<YourProjectDir\>/Config/DefaultEngine.ini (or you can use different values in the platform-specific inis if your project supports multiple platforms):

```
[OnlineSubsystem]
DefaultPlatformService=Null

```

I recommend starting with Null, as above, since this will allow you to connect over a LAN and is the simplest to get working.

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 5, 2015, 11:14pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/4 "2015-01-05T23:14:27Z")

</div>

Hey Ryan,

I already had that in there, but it didn’t fix it. Are there any other ini’s I should worry about?

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 5, 2015, 11:39pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/5 "2015-01-05T23:39:30Z")

</div>

I added what you said there to BaseEngine.ini and now it seems to work when run as “game,” but not when packaged. I’m really confused.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [January 6, 2015, 12:28am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/6 "2015-01-06T00:28:33Z")

</div>

You sure you did DefaultEngine.ini?

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 6, 2015, 12:32am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/7 "2015-01-06T00:32:47Z")

</div>

Yes, MyProjectFolder\Config\DefaultEngine.ini. I’ve also tried BaseEngine.ini and adding my own Config\DefaultEngine.ini in the packaged game. Still no dice.

---

<div class="post-metadata">

**Author:** ![Ryan\_Gerleve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Gerleve](https://forums.unrealengine.com/u/Ryan_Gerleve)\
**Post date:** [January 6, 2015, 9:09pm UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/8 "2015-01-06T21:09:03Z")

</div>

I’m having trouble reproducing this failure. I’m using UE 4.6.1, create a new project with the Blueprint 3rd person template, add a CreateSession node called from a key event, and add DefaultPlatformService=Null to Config/DefaultEngine.ini. Package project for Windows 64-bit, run the game from the package, trigger session creation, and it succeeds.

Which engine version are you using? Is it a custom build from the GitHub code? Also, are you getting the same error message in the log from the packaged build (“Invalid or uninitialized OnlineSubsystem”)?

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 7, 2015, 1:00am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/9 "2015-01-07T01:00:41Z")

</div>

Hey Ryan,

I just solved it by adding the OnlineSubsystemNull dependency in my Build.cs file as detailed here: [4.6 Preview and Create Session - Multiplayer & Networking - Unreal Engine Forums](https://answers.unrealengine.com/questions/141764/46-preview-and-create-session.html)

Both my actual project and my 3rd person template seem to be working now, thanks!

---

<div class="post-metadata">

**Author:** ![Ryan\_Gerleve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Gerleve](https://forums.unrealengine.com/u/Ryan_Gerleve)\
**Post date:** [January 7, 2015, 1:13am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/10 "2015-01-07T01:13:47Z")

</div>

Ah, glad to hear it - I apologize for not mentioning that earlier, I should have asked if you were using the Blueprint 3rd person template or the C++ 3rd person template!

---

<div class="post-metadata">

**Author:** ![gregdumb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregdumb](https://forums.unrealengine.com/u/gregdumb)\
**Post date:** [January 7, 2015, 1:22am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/11 "2015-01-07T01:22:47Z")

</div>

It was my fault too, I wasn’t clear about whether I was using a BP or C++ project.

---

<div class="post-metadata">

**Author:** ![youthnick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@youthnick](https://forums.unrealengine.com/u/youthnick)\
**Post date:** [February 28, 2017, 7:12am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/12 "2017-02-28T07:12:37Z")

</div>

This works for me ! Thx bro !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4c8d46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4c8d46](https://forums.unrealengine.com/u/anonymous_user_3b4c8d46)\
**Post date:** [February 28, 2017, 11:24am UTC](https://forums.unrealengine.com/t/when-i-try-to-use-the-new-create-session-node-it-fails/302939/13 "2017-02-28T11:24:43Z")

</div>

nah it’s my fault, I should’ve read this thread sooner and informed both of you ;D
