Help with C++ files

Hi there everybody!
Good morning [meaning I wish you all a good morning, that it is a good morning whether we all want it or not; or that I feel good (could be better) this morning; AND that it is a morning to be good on] !!!
How are you all? Better than me, i hope TT-TT…

The question is: “how am I supposed to create a new Empty C++ Class into UE 5.1?”

  • First things first, for some reason (I think maybe something about the last updates), in one day I was totally able to go at Tools → Create New C++ Class and it would be created with “no problems” except that it wouldn’t Compile instantly from inside the Engine (but the only thing I should do was to open the solution after close UE, open the SLN file in the project folder and Build it manually).

  • SOOOO

  • NOW:

  • The window to create the file comes with the .h AND the .cpp files (the ones from the Source Folder, not from the Project Folder [Img02])

  • It is possible to me to click on “Create New C++ Class”; than the window [to create it] opens and now two options happens to me:

01. IF Live Coding in EDITOR SETTINGS is OFF:

This is the OUTPUT LOG I see if I ask CREATE (NO LIVECODING):

[I’m posting here for the first time in much time…so I don’t know if the Image i just tryied to upload [Img01] got uploaded, so here’s the text:]

LogLiveCoding: Error: Live coding failed, please see Live console for more information
LogLiveCoding: Display: Console will be hidden but remain running in the background. Restart to disable completely.
LogDirectoryWatcher: A directory notification for ‘…/…/…/Engine/Plugins/’ was aborted.
LogLiveCoding: Display: Starting Live Coding compile.
Display: Reload/Re-instancing Complete: No object changes detected
LogLiveCoding: Error: Live coding failed, please see Live console for more information
LogLiveCoding: Display: Console will be hidden but remain running in the background. Restart to disable completely.
LogDirectoryWatcher: Display: A directory notification failed for ‘D:/UnrealProjects_5.0/Home_Experience/Saved/Collections/’ because it could not be accessed. Aborting watch request…
LogUObjectHash: Compacting FUObjectHashTables data took 53.78ms
Running D:/EPIC/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject” -game -engine -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject” -game -engine -progress
Log file: C:\Users\abrao\AppData\Local\UnrealBuildTool\Log_GPF.txt
Some Platforms were skipped due to invalid SDK setup: Mac, IOS, Android, Linux, LinuxArm64, TVOS.
See the log file for detailed information
Discovering modules, targets and source code for project…
Targets with a unique build environment cannot be built with an installed engine.
LogSlate: Window ‘Message’ being destroyed
Message dialog closed, result: Yes, title: Message, text: Successfully added class ‘Home_Experience’, however you must recompile the ‘Home_Experience’ module before it will appear in the Content Browser. Failed to generate project files.
Would you like to open the Output Log to see more details?
LogSlate: Window ‘Add C++ Class’ being destroyed

02. IF Live Coding in EDITOR SETTINGS is ON:

After “”“CREATE”“”:

Successfully added class ‘MyClass’, however you must recompile the ‘Home_Experience’ module before it will appear in the Content Browser. Failed to generate project files.

Would you like to open the Output Log to see more details?

But as I said, there is no SLN file, so I can’t Compile nor even open it.

After: Go to Tools → Generate Visual Studio 2022 Project:

RESULTS: An error occurred while trying to generate project files.

Running D:/EPIC/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject” -game -engine -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject” -game -engine -progress
Log file: C:\Users\abrao\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Mac, IOS, Android, Linux, LinuxArm64, TVOS.
See the log file for detailed information

Discovering modules, targets and source code for project…
Targets with a unique build environment cannot be built with an installed engine.

After: CTRL + ALT + F11
RESULTS: Registered process D:\EPIC\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor.exe (PID: 15624)
Accepted Live coding shortcut
---------- Creating patch ----------
Running D:\EPIC\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development -Project=”“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject”“” -LiveCoding -LiveCodingModules=“D:/EPIC/Epic Games/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“D:/EPIC/Epic Games/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex
Quick restart disabled when re-instancing is enabled.

  • Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -Target=“UnrealEditor Win64 Development -Project=”“D:/UnrealProjects_5.0/Home_Experience/Home_Experience.uproject”“” -LiveCoding -LiveCodingModules=“D:/EPIC/Epic Games/UE_5.1/Engine/Intermediate/LiveCodingModules.txt” -LiveCodingManifest=“D:/EPIC/Epic Games/UE_5.1/Engine/Intermediate/LiveCoding.json” -WaitMutex*
  • Log file: C:\Users\abrao\AppData\Local\UnrealBuildTool\Log.txt*
  • Creating makefile for UnrealEditor (no existing makefile)*
  • Parsing headers for UnrealEditor*
  • Running Internal UnrealHeaderTool D:\UnrealProjects_5.0\Home_Experience\Home_Experience.uproject D:\UnrealProjects_5.0\Home_Experience\Intermediate\Build\Win64\UnrealEditor\Development\UnrealEditor.uhtmanifest -WarningsAsErrors -installed*
  • Total of 0 written*
  • Reflection code generated for UnrealEditor in 2.1822368 seconds*
  • Target is up to date*
  • Total execution time: 101.42 seconds*
    Unable to parse D:/EPIC/Epic Games/UE_5.1/Engine/Intermediate/LiveCoding.json (missing LinkerPath field)

03. And It does not matter that it does not create the SNL file in the Project Folder; only by trying to do this process, the Project simple won’t open again and it keep telling me that “The Following Modules Are Missing Or Built With A Different Engine Version: Would you like to rebuild them now?.”

So, is there any enlightened soul that can help me with this???
Thanks for now!!!

Att.,
Tammy Abrão
PanaMoonLTDA

??

I don’t understand, I just edited it