Download

dedicated server with Steam

Hello guys, i have followed https://forums.unrealengine.com/showthread.php?118246-Steam-Blueprint-Multiplayer-Project-Files.

We have successfully integrated steam lobby sessions in our project in UE4.15. But we need to do it with dedicated server. When I launched dedicated server build it crashes.
I have also tested the project provided by Wes Bun in above link, i am having same issues.

I have followed this tutorial for dedicated server https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux). Which works for projects without steam.

Also i dont know if my hierarchy is right for joining and launching sessions.

  1. Find lobby on steam.
  2. join available lobbies or create lobby on steam
  3. when 10 players have joined the lobby ask them if they are ready.
  4. If all players are ready request our nodeJS server to launch dedicated server with required map and port and return IP & Port of the launched server.
  5. travel all 10 players to that server.

Here are logs for crash in dedicated server


Log file open, 04/27/17 13:03:07
LogPlatformFile: Not using cached read wrapper
LogInit:Display: RandInit(1804841763) SRandInit(1804841763).
LogTaskGraph: Started task graph with 5 named threads and 9 total threads with 1 sets of task threads.
LogStats: Stats thread started at 0.104027
LogInit: Using libcurl 7.47.1
LogInit:  - built for x86_64-pc-win32
LogInit:  - supports SSL with OpenSSL/1.0.2g
LogInit:  - supports HTTP deflate (compression) using libz 1.2.8
LogInit:  - other features:
LogInit:      CURL_VERSION_SSL
LogInit:      CURL_VERSION_LIBZ
LogInit:      CURL_VERSION_IPV6
LogInit:      CURL_VERSION_ASYNCHDNS
LogInit:      CURL_VERSION_LARGEFILE
LogInit:      CURL_VERSION_IDN
LogInit:  CurlRequestOptions (configurable via config and command line):
LogInit:  - bVerifyPeer = false  - Libcurl will NOT verify peer certificate
LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
LogInit:  - CertBundlePath = nullptr  - Libcurl will use whatever was configured at build time.
LogModuleManager:Warning: ModuleManager: Module 'OnlineSubsystemSteam' not found - its StaticallyLinkedModuleInitializers function is null.
LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
LogInit: Build: ++UE4+Release-4.15-CL-0
LogInit: Engine Version: 4.15.1-0+++UE4+Release-4.15
LogInit: Compatible Engine Version: 4.15.0-0+++UE4+Release-4.15
LogInit: Net CL: 0
LogDevObjectVersion: Number of dev versions registered: 14
LogDevObjectVersion:   Dev-Blueprints (B0D832E4-1F89-4F0D-ACCF-7EB736FD4AA2): 8
LogDevObjectVersion:   Dev-Build (E1C64328-A22C-4D53-A36C-8E866417BD8C): 0
LogDevObjectVersion:   Dev-Core (375EC13C-06E4-48FB-B500-84F0262A717E): 2
LogDevObjectVersion:   Dev-Editor (E4B068ED-F494-42E9-A231-DA0B2E46BB41): 14
LogDevObjectVersion:   Dev-Framework (CFFC743F-43B0-4480-9391-14DF171D2073): 22
LogDevObjectVersion:   Dev-Mobile (B02B49B5-BB20-44E9-A304-32B752E40360): 0
LogDevObjectVersion:   Dev-Networking (A4E4105C-59A1-49B5-A7C5-40C4547EDFEE): 0
LogDevObjectVersion:   Dev-Online (39C831C9-5AE6-47DC-9A44-9C173E1C8E7C): 0
LogDevObjectVersion:   Dev-Physics (78F01B33-EBEA-4F98-B9B4-84EACCB95AA2): 0
LogDevObjectVersion:   Dev-Platform (6631380F-2D4D-43E0-8009-CF276956A95A): 0
LogDevObjectVersion:   Dev-Rendering (12F88B9F-8875-4AFC-A67C-D90C383ABD29): 12
LogDevObjectVersion:   Dev-Sequencer (7B5AE74C-D270-4C10-A958-57980B212A5A): 3
LogDevObjectVersion:   Dev-VR (D7296918-1DD6-4BDD-9DE2-64A83CC13884): 0
LogDevObjectVersion:   Dev-LoadTimes (C2A15278-BFE7-4AFE-6C17-90FF531DF755): 1
LogInit: Compiled (64-bit): Apr 27 2017 11:11:55
LogInit: Compiled with Visual C++: 19.00.24215.01
LogInit: Build Configuration: Development
LogInit: Branch Name: ++UE4+Release-4.15
LogInit: Command line: -log -port=7788
LogInit: Base directory: C:/Users/athar/Desktop/New folder/WindowsNoEditor/SteamProject/Binaries/Win64/
LogInit: Installed Engine Build: 0
LogInit: Presizing for max 2097152 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
LogStreaming:Display: Async Loading initialized: New Async IO: true, Event Driven Loader: true, Async Loading Thread: false
LogInit: Object subsystem initialized
[2017.04.27-08.03.07:349]  0]LogInit: Selected Device Profile: [WindowsServer]
[2017.04.27-08.03.07:349]  0]LogInit: Applying CVar settings loaded from the selected device profile: [WindowsServer]
[2017.04.27-08.03.07:358]  0]LogInit: Computer: RAJPOOTATHAR-PC
[2017.04.27-08.03.07:359]  0]LogInit: User: athar
[2017.04.27-08.03.07:360]  0]LogInit: CPU Page size=65536, Cores=12
[2017.04.27-08.03.07:361]  0]LogInit: High frequency timer resolution =2.597656 MHz
[2017.04.27-08.03.07:362]  0]LogMemory: Memory total: Physical=24.0GB (24GB approx)
[2017.04.27-08.03.07:362]  0]LogMemory: Platform Memory Stats for WindowsServer
[2017.04.27-08.03.07:363]  0]LogMemory: Process Physical Memory: 87.97 MB used, 87.97 MB peak
[2017.04.27-08.03.07:363]  0]LogMemory: Process Virtual Memory: 101.74 MB used, 101.74 MB peak
[2017.04.27-08.03.07:364]  0]LogMemory: Physical Memory: 6562.68 MB used,  18010.90 MB free, 24573.58 MB total
[2017.04.27-08.03.07:365]  0]LogMemory: Virtual Memory: 322.92 MB used,  18010.90 MB free, 134217728.00 MB total
[2017.04.27-08.03.07:884]  0]LogTextLocalizationManager: No specific translations for ('en-US') exist, so ('en') translations will be used.
[2017.04.27-08.03.08:083]  0]LogAssetRegistry: FAssetRegistry took 0.0160 seconds to start up
[2017.04.27-08.03.08:089]  0]LogPackageLocalizationCache: Processed 3 localized package path(s) for 2 prioritized culture(s) in 0.004466 seconds
[2017.04.27-08.03.08:089]  0]LogPakFile: New pak file ../../../SteamProject/Content/Paks/SteamProject-WindowsNoEditor.pak added to pak precacher.
[2017.04.27-08.03.08:297]  0]LogBlueprintUserMessages:Warning: DEBUG: LocalNotification DefaultPlatformService NOT FOUND
[2017.04.27-08.03.08:301]  0]LogInit: Selected Device Profile: [WindowsServer]
[2017.04.27-08.03.08:317]  0]LogNetVersion: GetLocalNetworkVersion: CL: 0, ProjectName: steamproject, ProjectVersion: , EngineNetworkVersion: 2, GameNetworkVersion: 0, NetworkChecksum: 3392783210
[2017.04.27-08.03.08:363]  0]LogUObjectArray: 28206 objects as part of root set at end of initial load.
[2017.04.27-08.03.08:363]  0]LogUObjectAllocator: 5645840 out of 0 bytes used by permanent object pool.
[2017.04.27-08.03.08:364]  0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2017.04.27-08.03.08:370]  0]LogModuleManager:Warning: ModuleManager: Module 'XAudio2' not found - its StaticallyLinkedModuleInitializers function is null.
[2017.04.27-08.03.08:401]  0]LogEngine: Initializing Engine...
[2017.04.27-08.03.08:423]  0]LogStreaming:Warning: Export 1 (MaterialExpressionVectorParameter0) in ../../../Engine/Content/EngineDebugMaterials/DebugMeshMaterial.uasset was not created.
[2017.04.27-08.03.08:424]  0]LogStreaming:Warning: File ../../../Engine/Content/EngineDebugMaterials/DebugMeshMaterial.uasset had 1k of exports we never loaded.
[2017.04.27-08.03.08:434]  0]LogStreaming:Warning: Export 1 (MaterialExpressionTextureSample_1) in ../../../Engine/Content/EngineMaterials/M_InvalidLightmapSettings.uasset was not created.
[2017.04.27-08.03.08:438]  0]LogStreaming:Warning: File ../../../Engine/Content/EngineMaterials/M_InvalidLightmapSettings.uasset had 1k of exports we never loaded.
[2017.04.27-08.03.08:457]  0]LogStreaming:Warning: Export 1 (MaterialExpressionVectorParameter_4) in ../../../Engine/Content/EditorMaterials/GizmoMaterial.uasset was not created.
[2017.04.27-08.03.08:457]  0]LogStreaming:Warning: File ../../../Engine/Content/EditorMaterials/GizmoMaterial.uasset had 1k of exports we never loaded.
[2017.04.27-08.03.08:464]  0]LogStreaming:Warning: Export 1 (MaterialExpressionScalarParameter_0) in ../../../Engine/Content/EngineMaterials/PhAT_JointLimitMaterial.uasset was not created.
[2017.04.27-08.03.08:468]  0]LogStreaming:Warning: Export 2 (MaterialExpressionVectorParameter_0) in ../../../Engine/Content/EngineMaterials/PhAT_JointLimitMaterial.uasset was not created.
[2017.04.27-08.03.08:473]  0]LogStreaming:Warning: File ../../../Engine/Content/EngineMaterials/PhAT_JointLimitMaterial.uasset had 1k of exports we never loaded.
[2017.04.27-08.03.08:488]  0]LogInit: Texture streaming: Disabled
[2017.04.27-08.03.08:560]  0]LogInit:Display: Game Engine Initialized.
[2017.04.27-08.03.08:560]  0]LogInit:Display: Starting Game.
[2017.04.27-08.03.08:562]  0]LogNet: Browse: /Game/Maps/Arena01?Name=Player
[2017.04.27-08.03.08:564]  0]LogLoad: LoadMap: /Game/Maps/Arena01?Name=Player
[2017.04.27-08.03.08:605]  0]LogMemory: Platform Memory Stats for WindowsServer
[2017.04.27-08.03.08:605]  0]LogMemory: Process Physical Memory: 141.65 MB used, 144.43 MB peak
[2017.04.27-08.03.08:607]  0]LogMemory: Process Virtual Memory: 128.85 MB used, 132.10 MB peak
[2017.04.27-08.03.08:609]  0]LogMemory: Physical Memory: 6635.92 MB used,  17937.66 MB free, 24573.58 MB total
[2017.04.27-08.03.08:610]  0]LogMemory: Virtual Memory: 376.66 MB used,  17937.66 MB free, 134217728.00 MB total
[2017.04.27-08.03.08:610]  0]LogMemory: 
[2017.04.27-08.03.08:611]  0]Allocator Stats for binned2: (not implemented)
[2017.04.27-08.03.08:690]  0]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2017.04.27-08.03.10:225]  0]LogWindows:Error: === Critical error: ===
[2017.04.27-08.03.10:227]  0]LogWindows:Error: 
[2017.04.27-08.03.10:228]  0]LogWindows:Error: Assertion failed: !bCheckAdded || NodeRef.bAddedToGraph [File:E:\Softwares\development\game\UnrealEngineSource\Engine\Source\Runtime\CoreUObject\Public\Serialization/AsyncLoading.h] [Line: 248] 
[2017.04.27-08.03.10:229]  0]LogWindows:Error: 
[2017.04.27-08.03.10:230]  0]LogWindows:Error: 
[2017.04.27-08.03.10:231]  0]LogWindows:Error: 
[2017.04.27-08.03.10:231]  0]LogWindows:Error: KERNELBASE.dll!0x0000000015589E08
[2017.04.27-08.03.10:232]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E36BF04A
[2017.04.27-08.03.10:233]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E34E7C5A
[2017.04.27-08.03.10:233]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E346ED28
[2017.04.27-08.03.10:234]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E3726470
[2017.04.27-08.03.10:235]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E378694D
[2017.04.27-08.03.10:236]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E37472FE
[2017.04.27-08.03.10:239]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E372308F
[2017.04.27-08.03.10:240]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E376275E
[2017.04.27-08.03.10:240]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E37692BB
[2017.04.27-08.03.10:241]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E378A2CF
[2017.04.27-08.03.10:243]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E3789438
[2017.04.27-08.03.10:243]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E374F775
[2017.04.27-08.03.10:245]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E38E627A
[2017.04.27-08.03.10:245]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E38E5AE9
[2017.04.27-08.03.10:248]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E5C73AFD
[2017.04.27-08.03.10:249]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E5C2F2CF
[2017.04.27-08.03.10:250]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E5548A4A
[2017.04.27-08.03.10:251]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E330C554
[2017.04.27-08.03.10:252]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E330BAB2
[2017.04.27-08.03.10:253]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E330BC2A
[2017.04.27-08.03.10:253]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E331B098
[2017.04.27-08.03.10:254]  0]LogWindows:Error: SteamProjectServer.exe!0x00000000E701600B
[2017.04.27-08.03.10:256]  0]LogWindows:Error: KERNEL32.DLL!0x0000000017112774
[2017.04.27-08.03.10:257]  0]LogWindows:Error: ntdll.dll!0x0000000018DF0D61
[2017.04.27-08.03.10:259]  0]LogWindows:Error: ntdll.dll!0x0000000018DF0D61
[2017.04.27-08.03.10:260]  0]LogWindows:Error: 
[2017.04.27-08.03.10:269]  0]LogExit: Executing StaticShutdownAfterError
[2017.04.27-08.03.10:345]  0]LogWindows: FPlatformMisc::RequestExit(1)
[2017.04.27-08.03.10:345]  0]Log file closed, 04/27/17 13:03:10


friendly bump*

it could be a crash because of gameplay code. u need to debug it .
1.do a debug build of the dedicated server
2.then lunch it.
3.attach visual studio debugger into it
4.then lunch your client and join to the ip of dedicated server
and see what happens.
VS will show you the file and line number where it is crashing.

easy . but time-consuming.

Btw, u can do all these things in your local pc. no need of remote server.