BraceYourselfGames / UE-BYGRichText

Rich text library supporting customizable Markdown formatting
BSD 3-Clause "New" or "Revised" License
142 stars 18 forks source link

Dedicated server run in editor crashes with CDO not able to find engine fonts #2

Open phalasz opened 3 years ago

phalasz commented 3 years ago

While trying to use this plugin to run the game in editor as a client spawning a dedicated server process it crashes as by default engine fonts are excluded from dedicated servers.

The issue comes from these lines https://github.com/BraceYourselfGames/UE4-BYGRichText/blob/main/Source/BYGRichText/Public/Settings/BYGRichTextProperty.h#L135-L136

jswigart commented 2 years ago

Following the example in UText3DComponent::UText3DComponent(), just wrapping that code seems the likely solution

image

phalasz commented 2 years ago

Thank you for this. Seems to resolve the issue of instant crash on bootup of dedicated server if the plugin is enabled.