# Module integration problem

**URL:** <https://forums.unrealengine.com/t/module-integration-problem/496186>\
**Category:** C++\
**Tags:** migration, function-library, unreal-engine, question, UE4-27\
**Created:** [February 9, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/module-integration-problem/496186 "2022-02-09T15:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antokog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antokog](https://forums.unrealengine.com/u/Antokog)\
**Post date:** [February 9, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/module-integration-problem/496186/1 "2022-02-09T15:30:05Z")

</div>

Hello, I`m trying to integrate ActionRPGLoadingScreen (from Epic sample) into my project. I solved some issues (in my project DEFINE_LOG_CATEGORY work in some other way), but then I get problems with RPGBlueprintLibrary. For some reason in RPGBlueprintLibrary.h, it cant get a UBlueprintFunctionLibrary class. I`m new at c++, so maybe I missed something stupid? What am I doing wrong here?  
Here is the log:

 ![Screenshot (544)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/d/b1d5b61bbe21ff99ccba9417540d837f0fac1722.png)

RPGBlueprintLibrary.h

```auto
#pragma once
#include "LoadingSystemTest.h"
#include "RPGBlueprintLibrary.generated.h"

UCLASS()
class URPGBlueprintLibrary : public UBlueprintFunctionLibrary
{
	GENERATED_UCLASS_BODY()

public:
	/** Show the native loading screen, such as on a map transfer. If bPlayUntilStopped is false, it will be displayed for PlayTime and automatically stop */
	UFUNCTION(BlueprintCallable, Category = Loading)
		static void PlayLoadingScreen(bool bPlayUntilStopped, float PlayTime);

	/** Turns off the native loading screen if it is visible. This must be called if bPlayUntilStopped was true */
	UFUNCTION(BlueprintCallable, Category = Loading)
		static void StopLoadingScreen();

	/** Returns true if this is being run from an editor preview */
	UFUNCTION(BlueprintPure, Category = Loading)
		static bool IsInEditor();

	//Returns the project version set in the 'Project Settings' > 'Description' section of the editor
	UFUNCTION(BlueprintPure, Category = "Project")
		static FString GetProjectVersion();
};

```

[RPGBlueprintLibrary.h](https://forums.unrealengine.com/uploads/short-url/jqUOps85vaEsv0hMKNfdPxCXpEz.h) (1.0 KB)

RPGBlueprintLibrary.cpp

```auto
#include "RPGBlueprintLibrary.h"
#include "ActionRPGLoadingScreen.h"

URPGBlueprintLibrary::URPGBlueprintLibrary(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
}

void URPGBlueprintLibrary::PlayLoadingScreen(bool bPlayUntilStopped, float PlayTime)
{
	IActionRPGLoadingScreenModule& LoadingScreenModule = IActionRPGLoadingScreenModule::Get();
	LoadingScreenModule.StartInGameLoadingScreen(bPlayUntilStopped, PlayTime);
}

void URPGBlueprintLibrary::StopLoadingScreen()
{
	IActionRPGLoadingScreenModule& LoadingScreenModule = IActionRPGLoadingScreenModule::Get();
	LoadingScreenModule.StopInGameLoadingScreen();
}

bool URPGBlueprintLibrary::IsInEditor()
{
	return GIsEditor;
}

FString URPGBlueprintLibrary::GetProjectVersion()
{
	FString ProjectVersion;

	GConfig->GetString(
		TEXT("/Script/EngineSettings.GeneralProjectSettings"),
		TEXT("ProjectVersion"),
		ProjectVersion,
		GGameIni
	);

	return ProjectVersion;
}

```

[RPGBlueprintLibrary.cpp](https://forums.unrealengine.com/uploads/short-url/8NlC9c3zTrGVpn8ueIPAwSSlHUR.cpp) (989 Bytes)
