-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Command and arguments get squashed in with no space. Had to change it like this to make any of my commands with arguments work.
https://github.com/JanSeliv/MetaCheatManager/blob/d3e92dbdd76283bbb66fb0d41ac5dbb76806cbf1/Source/MetaCheatManager/Private/MetaCheatManagerUtils.cpp#L111C2-L111C77
Fix:
const FString CmdString = CheatCommand.FunctionName.ToString() + " " + ParsedCmd;
Unreal 5.5
Also noticed, that AllCheatCommands are not getting populated at all in MetaCheatManager.h
if the the blueprint of cheat manager is created and used in PlayerController, leading to no cheat commands working at all. No clue why that happens. Related #4
#UPDATE
Managed to make a crude workaround for blueprinted cheat manager. Added that, and call it in the PlayerController BeginPlay. Everything works as expected now.
void UMetaCheatManager::PostLoad()
{
Super::PostLoad();
if (GetClass()->IsNative())
{
LoadConfig();
}
else if (!HasAllFlags(RF_ClassDefaultObject))
{
if (UMetaCheatManager* CDO = StaticClass()->GetDefaultObject<UMetaCheatManager>())
{
AllCheatCommands = CDO->AllCheatCommands;
}
}
}