Class ref is not passed to server within the struct in UE 4.19. Instead, the default value is passed to the server.
LogNetPackageMap: Warning: SanityCheckExport: CacheObject == NULL. NetGUID: 1, Object: /Game/BP_BaseActor.BP_BaseActor_C, Expected: BP_DerivedActor_C
LogNetPackageMap: Warning: SanityCheckExport: Name mismatch. NetGUID: 1, Object: /Game/BP_BaseActor.BP_BaseActor_C, Expected: BP_DerivedActor_C
LogNetPackageMap: Warning: SanityCheckExport: Outer mismatch. Object: /Game/BP_BaseActor.BP_BaseActor_C, NetGUID: 1, Current: /Game/BP_BaseActor, Expected: /Game/BP_DerivedActor
Open attached project in UE 4.18. Start in PIE window with 2 players. It will spawn a cube.
Open attached project in UE 4.19. Start in PIE window with 2 players. It will not spawn a cube, see description for log output
Detailed Steps:
1. Create a bp class based on actor (BP_BaseActor).
2. Create another bp class based on BP_BaseActor (BP_DerivedActor).
3. Add a Cube or similar component to BP_DerivedActor.
4. Create a BP struct including a class reference to BP_BaseActor with default BP_BaseActor.
5. Create reliable Server RPC which spawns an actor. RPC takes struct as parameter and spawns the class specified in the struct.
6. Call server RPC on client (for example on custom controller with Has Authority Remote).
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
What is the difference between Camera and CineCamera?
How to delete some elements correctly when deleting an array loop?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-57173 in the post.
2 |
Component | UE - Networking |
---|---|
Affects Versions | 4.19 |
Target Fix | 4.20 |
Created | Apr 2, 2018 |
---|---|
Resolved | Jun 15, 2018 |
Updated | Jun 28, 2018 |