Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Source/MantleEditor/Private/MantlePlaceValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,15 +910,17 @@ namespace
{
Result.Issues.Add(FMantleValidationIssue{ EMantleIssueSeverity::Error, LabelOf(Actor), Problem, TEXT("Change it in the effect's Details panel.") });
}
// The effect systems are cooked into the game client (mantle client/Content/Mantle/Effects); the plugin ships no assets, so a
// creator's project normally lacks them. Players see the effect; only this editor's preview draws nothing.
const FSoftObjectPath System(FMantleEffects::SystemPath(Props.Archetype));
if (!FPackageName::DoesPackageExist(System.GetLongPackageName()))
{
Result.Issues.Add(FMantleValidationIssue{
EMantleIssueSeverity::Warning,
LabelOf(Actor),
FString::Printf(TEXT("is a %s effect, whose system (%s) this Mantle Core does not have yet, so it shows nothing here or for players."),
FString::Printf(TEXT("is a %s effect. It shows nothing in this editor, because the effect itself (%s) is part of the Mantle game, not this project."),
FMantleEffects::ArchetypeDisplayName(Props.Archetype), *System.ToString()),
TEXT("Update the Mantle Core plugin; the place still publishes, and the effect appears once players' clients have it.") });
TEXT("Nothing to do: the place publishes and players see the effect in game.") });
}
}

Expand Down