# Hot-reloadable files are expected to contain a hyphen (UE5.4 fom source code)

**URL:** <https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [February 15, 2025, 2:29am UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376 "2025-02-15T02:29:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 2:29am UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/1 "2025-02-15T02:29:21Z")

</div>

I have this problem when I try to compile (UE5.4 fom source code)

 ![compiler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/f/20f6e469faba2802f6534ad3e7a5c67de079a7bd.png)

There seems to be some problem renaming files.

`Hot-reloadable files are expected to contain a hyphen`

It seems that it only need a hyphen in the middle of the file name.

 ![guion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/8/268ab25cb47b2d869c6782ba7e328b97acb0fcab.png)

* * *

 ![Rider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/c/1dcf4766f91d70931b462c7921cd505ea04ab438.png)

* * *

-PIE compilation works  
-Hot Reload does not work

 ![workflow1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/a/d9ae621f637ac79be384953b53cc1af3da21fde2.jpeg)

* * *

-Only occurs in UE5.4 version compiled from source code.  
-The precompiled UE5.4 version does not has this problem

That’s why I’m sure it’s not a problem with the IDE. (Rider is not the problem).

* * *

CMD:

 ![cmd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/0/1b0cde6774160e28a2a9603f4e98535c95d018c6.png)

* * *

Does anyone know how to fix this?

Thank you so much!!

* * *

C:\UnrealEngine-5.4\Engine\Programs\UnrealBuildTool\Log.txt

* * *

Log: Compilation Failed (Editor is open)  
[Log.txt](https://forums.unrealengine.com/uploads/short-url/x6fGlG5NyBK8ZOrI0dMJwtvHC76.txt) (6.9 KB)

* * *

Log: Compilation Successful (Editor is close)  
[Log.txt](https://forums.unrealengine.com/uploads/short-url/UOmfSaW2uWTSE1ixOO1CKOiv8.txt) (8.0 KB)

* * *

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 8:15am UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/2 "2025-02-15T08:15:20Z")

</div>

I found adding the follow argument “Hot-Reload” does works!!

`-ModuleWithSuffix=MyProjectName,XXXX`

Where XXXX seems to be a random number (but different to preexistent in Win64 folder)

Complete command:

`...\Build.bat" -ModuleWithSuffix=MyProjectName,XXXX MyProjectNameEditor Win64 Development "...\MyProjectName.uproject" -waitmutex`

It woks with CMD:

 ![CMD (2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/b/9bb40d140f0f37f9965a4768c346df783db35e4c.png)

Now i need it work with Rider…

Any Idea to get that is welcome!!

Thank you so much!!

* * *

EDITED 1:

* * *

Here i found a solution for vscode in Linux… i need the same but for Rider in Windows (JetBrains Rider 2024.1.4)

> [@A way to make UE5 HotReload from vscode under Linux](https://forums.unrealengine.com/t/a-way-to-make-ue5-hotreload-from-vscode-under-linux/829465):
>
> If you build your project within vscode under Linux, you should noticed that the UE5 does not Hot Reload the newly c++ code. And after some researches, I found a solution to resolve this issue. First, You need install the [vscode extension](https://marketplace.visualstudio.com/items?itemName=augustocdias.tasks-shell-input). Then, Generate vscode project file And edit your .vscode/tasks.json file { "version": "2.0.0", "tasks": [ { "label": "MyProjectEditor Linux Development Build", "group": "build", "command": "Engine/Build/BatchFiles/Linux/Build.sh"…

* * *

EDITED 2:

* * *

Where can i modify this? it is read only…

 ![RiderConfig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/d/e2d429f2edae9a89fb88b010fea48f9ff61e740c.png)

I have a bat file and it does work…

```auto
@echo off

set UNREALDIR=C:\UnrealEngine-5.4

::give a random number between 0000 and 9999
set /A NUM=%RANDOM% %% 9999-0000

::Clean Compilation
set "WITHOUTEDITOR=CatharsisEditor Win64 Development "%USERPROFILE%\Desktop\UNREAL PROJECT\Catharsis544\Catharsis.uproject" -waitmutex -NoHotReload"

::Hot Reload
set "WITHEDITOR= -ModuleWithSuffix=Catharsis,%NUM% CatharsisEditor Win64 Development "%USERPROFILE%\Desktop\UNREAL PROJECT\Catharsis544\Catharsis.uproject" -waitmutex"

TASKLIST | FINDSTR "UnrealEditor.exe" && set ARGUMENTS=%WITHEDITOR% || set ARGUMENTS=%WITHOUTEDITOR%

call "%UNREALDIR%\Engine\Build\BatchFiles\Build.bat" %ARGUMENTS%

pause

```

I just need Rider use it

Thank you!!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 12:25pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/3 "2025-02-15T12:25:13Z")

</div>

I did a quick rider test and it’s editable on my end. Though I did open up the generated sln file so it had VMake settings already made

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/e/b3e744af9d3d69cc46a6949903ef7a48e78d752a.png)

Downloaded trial JetBrains Rider 2024.3.5 (trial for now). I’ll see how it differs from VS.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 12:29pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/4 "2025-02-15T12:29:15Z")

</div>

Ok, i will dowload it, and i will try it too.  
Thank you so much @3dRaven

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/5 "2025-02-15T13:25:06Z")

</div>

I Installed this version of Rider (Non Comercial)

`JetBrains.Rider-2024.3.5.win.zip`

And it can compile… no problem… it does works!!

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/a/69af185ec81110bb6879091d12e7e70a6807bbc4.png)

The build configuration is the same… except this → ( -FromMSBuild )  
…and it is also read-only too

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/2/75225539c03ead4b2ae833c0a421caa39ff296f2.png)

I don’t understand anything!!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 1:31pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/6 "2025-02-15T13:31:37Z")

</div>

Did you generate the sln file and then open that in rider?

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 1:34pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/7 "2025-02-15T13:34:15Z")

</div>

I use the same nls file for both Riders…  
I actually have both open.

 ![two](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/4/2f484ab5dd64510a62c7473cef951c051898ce9d.png)

The one on the left is successful because it compiled with the editor closed.

The one on the right is with the editor open

* * *

But I’m going to try the old Rider again… just in case

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 1:44pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/8 "2025-02-15T13:44:18Z")

</div>

False positive

Rider broke… LOL

I think it’s not saving changes…  
I compiled with errors and it doesn’t detect them…

Compilation successful even with errors…

 ![false positive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/6/fe6a2430dcfdc2e45287ee65bb82a72eb2046c83.png)

I’m going to close one of the two and try again to see what happens.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/9 "2025-02-15T13:51:30Z")

</div>

@3dRaven

Rider doesn’t work anymore…  
The non-commercial version is garbage

 ![0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/a/32a6728d457f45260dfac3f3e04ca022646c7ac5.png)  
And I’m afraid the old version is broken too.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 2:10pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/10 "2025-02-15T14:10:14Z")

</div>

They both broke… definitely installing the new version of Rider was the worst idea of ​​the day…

I’m going to uninstall both and reinstall the old version.

The original problem is not solved then…  
I still need help with that…

❤

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 4:02pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/11 "2025-02-15T16:02:01Z")

</div>

Your Rider is broken too?  
I uninstalled both versions and reinstalled the old version.  
And now… It makes a fake compilation.  
It does not generate files nor does it detect errors in the code.

I even fixed the error message by following the instructions in this post…

> [@Microsoft.extensions.caching.memory in EpicGames.Horde still use version 6.0.1 .NET that has Denial of Service Vulnerability](https://forums.unrealengine.com/t/microsoft-extensions-caching-memory-in-epicgames-horde-still-use-version-6-0-1-net-that-has-denial-of-service-vulnerability/2083618/6):
>
> I have the same issue in 2025 and the changes are not working for my 5.3engine：(

Raider no longer works.

The non-commercial version made some changes somewhere and broke everything. 😭

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 4:04pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/12 "2025-02-15T16:04:56Z")

</div>

Haven’t had a successful compile yet. (one is in progress). Had to change my pagefile settings as it was not enough for rider (vs seems to cope with disk space better during the process).

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 4:12pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/13 "2025-02-15T16:12:52Z")

</div>

Look… this happen to me… it does a fake compilation  
-No errors  
-And binaries files are not generated

* * *

I found it… This is broken… THIS → "MyProjectNameEditor " is missing.

 ![333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/e/8ce437bb80fcad7c2d03f4e6e0a01a2bb8beaf17.png)

This is worse than the beginning 🤣

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 5:06pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/14 "2025-02-15T17:06:21Z")

</div>

I got it… What a nightmare… But I got it

1-I deleted all the project temp folders  
2-Compiled by command line (CMD)  
3-I generated visual Studio Project Files  
4-Now Rider works again. 🦾

But HotReload still doesn’t work.

I think the best solution for now is to give Rider the BAT file I created.  
I just need to know which file the build configuration is saved in.  
I know it has to be one of the files generated by visual studio…  
But I’m searching like crazy… even using Grep I can’t find a match.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 5:09pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/15 "2025-02-15T17:09:17Z")

</div>

Works here no problem out of the box.

[](https://www.youtube.com/watch?v=0xmnX2YbrYk)

Didn’t change anything from the default settings. Only added in the sdk override in the unrealbuildtools to get it to build ok. Project built fine, hot reload works no problems.

No Bat editing or anything of that sort on my end.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 5:15pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/16 "2025-02-15T17:15:00Z")

</div>

> [@3dRaven](#):
>
> Only added in the sdk override in the unrealbuildtools

do you mean this?  
Engine\Saved\UnrealBuildConfiguration.xml

or this?

```auto
using UnrealBuildTool;
	using System.Collections.Generic;
	public class MyProjectTarget : TargetRules
	{
		public MyProjectTarget(TargetInfo Target) : base(Target)
		{
			Type = TargetType.Game;
			// Other properties go here
		}
	}

```

or what?

Show me what you did…

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 5:24pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/17 "2025-02-15T17:24:44Z")

</div>

only  
` Engine\Saved\UnrealBuildConfiguration.xml` the one I sent you in a pm earlier.

Surprisingly after changing the pagefile size everything started working. I am on the trial version for now though not the non-comercial version. Just wanted to test it out to see if it’s any faster than VS.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 5:28pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/18 "2025-02-15T17:28:55Z")

</div>

> [@3dRaven](#):
>
> ` Engine\Saved\UnrealBuildConfiguration.xml` the one I sent you in a pm earlier.

Well, for some reason that doesn’t work for me.

Take my bat file.

[RiderCompileEditor.bat](https://forums.unrealengine.com/uploads/short-url/80ED8guUr732hpnb3OcvZGFWb6J.bat) (666 Bytes)

It is faster than Rider and VS…

But you can’t edit errors in the code with it.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 15, 2025, 5:30pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/19 "2025-02-15T17:30:41Z")

</div>

I’m seeing near instant updates with hot reload.

“If it’s not broken then don’t fix it”

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [February 15, 2025, 5:34pm UTC](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376/20 "2025-02-15T17:34:47Z")

</div>

> [@3dRaven](#):
>
> “If it’s not broken then don’t fix it”

But it’s broken… LOL

![100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/1/ef1bf7ae4c15529de421771857eed9e6baf6edaa.png)

![444](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/5/e65e8d5cfb355e0da60d2e944fe5d597ac4e56a3.png)

For some reason it is not working in the version compiled from source code + Rider

But… With my BAT file it Work Perfect!!!

So, or Rider or The Engine… or Both (Something must be broken for sure)

[Next page](https://forums.unrealengine.com/t/hot-reloadable-files-are-expected-to-contain-a-hyphen-ue5-4-fom-source-code/2333376.md?page=2)
