Code identical to lecture doesn't work?

Hi,
I am stuck on Lecture 187 of the Unreal Engine 5 C++ developer course
My execute task function is returning an error “error C4716: ‘UBTTask_ClearBlackboardValue::ExecuteTask’: must return a value”, even though I have included a return of Succeeded. I have gone through the lecture multiple times and my code is identical, is there something I’m missing?

Non functioning code

1 Like

Can you put screenshot that is more zoomed in. Text in your screenshot is pretty pixelated.

1 Like

Creating patch ----------
Running C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe -Target=“ObstacleAssaultEditor Win64 Development -Project=”“C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject”"" -LiveCoding -LiveCodingModules=“C:/Program Files/Epic Games/UE_5.0/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“C:/Program Files/Epic Games/UE_5.0/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Log file: C:\Users\kerid\AppData\Local\UnrealBuildTool\Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
Parsing headers for ObstacleAssaultEditor
Running UnrealHeaderTool “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject” “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\ObstacleAssaultEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\kerid\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(29): Error: Unknown variable specifier ‘EdithAnywhere’
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(32): Error: Unknown variable specifier ‘EdithAnywhere’
Build failed.
Grazie a chi sapra’ aiutarmi…ho messo anche il punto e virgola e seguito alla lettera il video…

You have misspelt EditAnywhere

Grazie e’ vero, scusa, ho corretto in una riga , ho salvato e compilato e mi dice questo…
Creating patch ----------
Running C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe -Target=“ObstacleAssaultEditor Win64 Development -Project=”“C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject”"" -LiveCoding -LiveCodingModules=“C:/Program Files/Epic Games/UE_5.0/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“C:/Program Files/Epic Games/UE_5.0/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Log file: C:\Users\kerid\AppData\Local\UnrealBuildTool\Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
Parsing headers for ObstacleAssaultEditor
Running UnrealHeaderTool “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject” “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\ObstacleAssaultEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\kerid\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(26): Error: Unknown variable specifier ‘EdithAnywhere’
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(29): Error: Unknown variable specifier ‘EdithAnywhere’
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(32): Error: Unknown variable specifier ‘EdithAnywhere’
Build failed.

Could you show your code please?

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include “CoreMinimal.h”

#include “GameFramework/Actor.h”

#include “MovingPlatform.generated.h”

UCLASS()

class OBSTACLEASSAULT_API AMovingPlatform : public AActor

{

GENERATED_BODY()

public:

// Sets default values for this actor's properties

AMovingPlatform();

protected:

// Called when the game starts or when spawned

virtual void BeginPlay() override;

public:

// Called every frame

virtual void Tick(float DeltaTime) override;

UPROPERTY(EdithAnywhere)

int32 MyInt = 99;

UPROPERTY(EdithAnywhere)

float MyFloat = 5.99;

UPROPERTY(EdithAnywhere)

bool MyBool = true;

};

That still says you’re using EdithAnywhere instead of EditAnywhere (no ‘h’). Though you haven’t shown your .cpp code

Grazie, non capisco dove e’ l’errore o cosa manco di fare, ho aggiunto la “h” li dove mancava in visual code e dopo ho in unreal engine 5 aggiornato …ma mi scrive fallimento…ho mostrato il mio codice…lo hai visto per favore?
Quick restart disabled when re-instancing is enabled.
Log file: C:\Users\kerid\AppData\Local\UnrealBuildTool\Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
Parsing headers for ObstacleAssaultEditor
Running UnrealHeaderTool “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\ObstacleAssault.uproject” “C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\ObstacleAssaultEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog=“C:\Users\kerid\AppData\Local\UnrealBuildTool\Log_UHT.txt” -installed
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(26): Error: Unknown variable specifier ‘EdithAnywhere’
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(29): Error: Unknown variable specifier ‘EdithAnywhere’
C:/Users/kerid/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/MovingPlatform.h(32): Error: Unknown variable specifier ‘EdithAnywhere’
Build failed.

Added ‘h’? I’m telling you to remove it. There’s no ‘h’ in the word “Edit”. Also if you’re still having issues please show your full code.

Avevo capito male dovevo togliere invece che aggiungere…scusa ! Voglio ringraziarti perche’ ho rimosso le “h” e finalmente ho avuto successo…Successfully linked patch (0.000s)
Patch creation for module C:\Users\kerid\Documents\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor-ObstacleAssault.dll successful (0.000s)

Volevo ancora chiedere dove trovo il codice .cpp che volevo mostrarti… in visual code? Grazie mille

You should be able to find it in the explorer (Ctrl + Shift + E) under Source / ProjectName

Privacy & Terms