OfficialNoms / ALSReplicated

This is a community-based effort to fully and effectively replicate Advanced Locomotion System v4 which is permanently free on the Epic Marketplace.
MIT License
107 stars 88 forks source link

dedicated server runtime HUD "access none" error per client #10

Open insomniaunleashed opened 4 years ago

insomniaunleashed commented 4 years ago

Detailed description of issue When dedicated server is enabled, play in editor error "Blueprint Runtime Error: "Accessed None trying to read property ALS HUD". Blueprint: ALS_Player_Controller Function: Execute Ubergraph ALS Player Controller Graph: EventGraph Node: Add to Viewport" appears on load per client

Steps To Reproduce: 1: Play the ALS_DemoLevel with 2 players and dedicated server enabled

  1. Change to the message log

Expected Results: No load errors.

Actual Results: Per client, the above message is output into the play in editor log

insomniaunleashed commented 4 years ago

Proposed Solution Detect dedicated server, if found only add the HUD elements to remote clients

ALS_Player_Controller->Event Graph->Begin Play ALSdedicatedServerDetect