Hey guys,
So I’ve been out of UE4 for a while now and trying to pick it up again.
To refresh my knowledge I tried to create my own blueprint showing the project version of the game. I had this working in a previous project. So I went on re-creating it but I’m having issues on the C++ side.
To clarify, it’s a new empty project, version 4.11 of the engine.
The errors I’m getting are these:
- code OtherCompilationError
(5) Serellyn_Library_1 G:\Game
Development\Tutorials\Serellyn_Library_1\Intermediate\ProjectFiles\Error 1 - MSB3073 The command
““E:\Installed Programs\Epic
Games\4.11\Engine\Build\BatchFiles\Build.bat”
Serellyn_Library_1Editor Win64
Development “G:\Game
Development\Tutorials\Serellyn_Library_1\Serellyn_Library_1.uproject”
-waitmutex -2015” exited with code -1. Serellyn_Library_1 C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37
First of all, these error messages mean nothing to me. I can’t figure out what is going wrong. After some searching someone suggested to delete the ‘Intermediate’ folder and then rebuild. So I did but it stays the same.
So here’s the code I’ve got.
Header file
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "LaunchExternalProgram.generated.h"
/**
*
*/
UCLASS()
class SERELLYN_LIBRARY_1_API ULaunchExternalProgram : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
UFUNCTION(BlueprintPure, meta = (FriendlyName = "Launch External Program", CompactNodeTitle = "ExtProgram"), Category = "Core Functions")
static FString LaunchExternalProgram();
};
CPP file
#include "Serellyn_Library_1.h"
#include "LaunchExternalProgram.h"
FString ULaunchExternalProgram::LaunchExternalProgram() {
//FPlatformProcess::CreateProc(TEXT("F:\test.txt"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
FString ProjectVersion;
GConfig->GetString(
TEXT("/Script/EngineSettings.GeneralProjectSettings"),
TEXT("ProjectVersion"),
ProjectVersion,
GGameIni
);
return ProjectVersion;
}
Anyone knows what is going on? I’d appreciate some help.
Thank you in advance.
Serellyn