# Missing Compile Button / Hot Reload not working

**URL:** <https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, compile, editor, Visual-Studio, CPP, question, hot-reload\
**Created:** [May 17, 2020, 10:40am UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332 "2020-05-17T10:40:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dividuum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dividuum/32/748742_2.png) [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Post date:** [May 17, 2020, 10:40am UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/1 "2020-05-17T10:40:04Z")

</div>

Hello guys!  
I am was working on my code today, when I realized that not only my code changes do not get hot-reloaded into the editor anymore, but also my Compile Button is missing:

 ![302116-compile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/2/c62bf57bdca8ba4425261932d766f090bc66af6f.jpeg)

Some time, it was there, this project started as BP only but I am using C++ since many many months.

**What I’ve already tried:**

- I have rebuilt the solution multiple times
- Deactivated my plugins
- Cooked the Project (only some ‘known’ warnings, no errors)
- Deleted the .vs, Binaries, Build, Saved and Intermediate folders as well as the solution, Generated Visual Studio project files, rebuilt, cooked…
- Created a new cpp actor class
- Refreshed Visual Studio Project in the editor

The only other thing I could imagine causing this was updating to a newer Visual Studio 2017 version which caused me some compile trouble which I managed to resolve.

Has anyone some Ideas or what could be wrong/experiences with that problem?

---

<div class="post-metadata">

**Author:** ![SlothfulAlly](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slothfulally/32/88708_2.png) [@SlothfulAlly](https://forums.unrealengine.com/u/SlothfulAlly)\
**Post date:** [May 17, 2020, 6:16pm UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/2 "2020-05-17T18:16:41Z")

</div>

![302172-ah-ss.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/4/c24ad6c4d9d4a233221d2895ee496c7ca705e83f.png)

Right click your uproject file and open it with notepad or any text editor. Make sure your project has the “module” section. If it isn’t there, add it like in the image above with your project name and save. You should see the compile button now along with hot-reloads.

---

<div class="post-metadata">

**Author:** ![Dividuum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dividuum/32/748742_2.png) [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Post date:** [May 17, 2020, 6:33pm UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/3 "2020-05-17T18:33:23Z")

</div>

This is how my .uproject looks like:

```
{
	"FileVersion": 3,
	"EngineAssociation": "4.24",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "HarrisonProject",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
				"CoreUObject",
				"AIModule",
				"Engine",
				"GameplayAbilities"
			]
		}
	],
	"Plugins": [
		{
			"Name": "DlgSystem",
			"Enabled": true,
			"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/6d0255a60be340dfa1c556503cc57eb3"
		},
		{
			"Name": "GameplayAbilities",
			"Enabled": true
		},
		{
			"Name": "VictoryBPLibrary",
			"Enabled": true,
			"MarketplaceURL": "http://www.ue4code.com"
		},
		{
			"Name": "LowEntryExtStdLib",
			"Enabled": true,
			"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/846c2ad08f164f45b0335ecebf85361e"
		}
	]
}

```

As you can see, the Modules Section is not only there, but also well filled… Do you have other ideas what could be the problem?

---

<div class="post-metadata">

**Author:** ![SlothfulAlly](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/slothfulally/32/88708_2.png) [@SlothfulAlly](https://forums.unrealengine.com/u/SlothfulAlly)\
**Post date:** [May 17, 2020, 7:41pm UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/4 "2020-05-17T19:41:17Z")

</div>

I had the same issue that you described in the post and got it fixed by adding the module part (which was missing in my case after upgrading from VS2017 to VS2019). Unfortunately I don’t have any more clues to what might be the cause.

---

<div class="post-metadata">

**Author:** ![Dividuum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dividuum/32/748742_2.png) [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Post date:** [May 18, 2020, 8:07am UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/5 "2020-05-18T08:07:37Z")

</div>

Ok, I have an idea what could be the problem.

I’ve modified my Project.h & .cpp files because I wanted to add a virtual shader source path, so I could use .usf files in my custom material nodes. Therefore I worked on my Project Module.  
As I am not very experienced in working with modules in ue4, I’ve followed this forum post for the implementation: [LINK](https://forums.unrealengine.com/development-discussion/rendering/1562454-virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download)

Here are the files, can you spot something suspicious in there? I’ve also tried to add my “HarrisonProject” Module to the HarrisonProject.uproject, but this changed nothing.

HarrisonProject.h:

```
// Copyright by Felix Voigt

#pragma once

#include "CoreMinimal.h"
#include "ModuleManager.h"

//Project Module to add virtual shader files
//https://forums.unrealengine.com/development-discussion/rendering/1562454-virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download
class FHarrisonProjectModule : public IModuleInterface
{
public:
	virtual void StartupModule() override;
	virtual void ShutdownModule() override;
};

```

HarrisonProject.cpp:

```
// Copyright by Felix Voigt

#include "HarrisonProject.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/IPluginManager.h"
#include "Logging/LogMacros.h"
#include "Misc/Paths.h"
#include "Shader.h"

#define LOCTEXT_NAMESPACE "FHarrisonProjectModule"

void FHarrisonProjectModule::StartupModule()
{
#if (ENGINE_MINOR_VERSION >= 21)    
    FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
    AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);
#endif
}

void FHarrisonProjectModule::ShutdownModule()
{
	//necessary?
	ResetAllShaderSourceDirectoryMappings();
}

IMPLEMENT_PRIMARY_GAME_MODULE(FHarrisonProjectModule, HarrisonProject, "HarrisonProject" );

```

---

<div class="post-metadata">

**Author:** ![Dividuum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dividuum/32/748742_2.png) [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Post date:** [May 18, 2020, 8:08am UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/6 "2020-05-18T08:08:14Z")

</div>

For whatever reason I could not coment your answer, so I’ve written a new answer …

---

<div class="post-metadata">

**Author:** ![Dividuum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dividuum/32/748742_2.png) [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Post date:** [May 18, 2020, 9:05am UTC](https://forums.unrealengine.com/t/missing-compile-button-hot-reload-not-working/465332/7 "2020-05-18T09:05:27Z")

</div>

I’ve found the solution: The module has to derive from FDefaultGameModuleImpl instead of IModuleInterface. So HarrisonProject.h should look like that:

```
class FHarrisonProjectModule : public FDefaultGameModuleImpl

```

instead of

```
class FHarrisonProjectModule : public IModuleInterface

```

Thanks for your help!
