Developer Notes

This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.

Description

After adding C++ to a content-only project, Create Session no longer works in a packaged game. The following warning appears in the log:
LogScript:Warning: CreateSession - Invalid or uninitialized OnlineSubsystem

Note that the DefaultEngine.ini file has not been altered and still contains the information found here:
https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html

Log attached.

Reproduced in 4.10.1 and Main (CL# 2811181)

Steps to Reproduce

1. Create a new blank BP project
2. Save the map as "GameLevel"
3. Create a new GameMode, "GameModeBP"
4. Create a new GameInstance, "GameInstanceBP"
5. Project Settings > Maps & Modes > Set Default GameMode to the new GameMode
6. Project Settings > Maps & Modes > Set Game Instance Class to the new GameInstance
7. Project Settings > Maps & Modes > Set Game Default Map to the saved map, "GameLevel"
8. Create a new Player Controller, "ControllerBP"
9. In the GameModeBP, set Player Controller Class to the new Controller BP
10. In the GameInstanceBP Event Graph, create a custom event with a ControllerBP reference Input, "HostGame"
11. HostGame > Create Session (Public Connections 2) > On Success > Open Level (GameLevel, listen)
[Image Removed]
12. In the ControllerBP Event Graph, create a custom event, "CallHostGame"
13. CallHostGame > Get Game Instance > Cast to GameInstanceBP > HostGame
14. Add an Input Key > Call Host Game
[Image Removed]
15. Compile/SaveAll
16. Include the information found here in the DefaultEngine.ini: https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html
17. Package for Development Win64
18. Play the packaged game, press C
19. File > New C++ Class
20. Create a new empty C++ class
21. Package for Development Win64
22. Play the packaged game, press C

Result:
After adding C++ to a content-only project, Create Session no longer works. The following warning appears in the log: "LogScript:Warning: CreateSession - Invalid or uninitialized OnlineSubsystem"

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

3
Login to Vote

Won't Fix
ComponentUE - Networking
Affects Versions4.10.14.12
CreatedDec 28, 2015
ResolvedMar 14, 2017
UpdatedMar 14, 2017