So, I went to start editing my project via C++ because I’m not new to coding and want to keep sharpening my skills
When I went to start initializing variables in a header file with very simple ‘float MaxStamina = 100.0f;’ etc I saved my project and closed to start seeing if the details will populate in the component menus
All of a sudden my project can’t open back up… I get the infamous error that I am missing modules.
I literally added one .h and .cpp file
I went back into CLion (the IDE im using) and searched all over, all variables seem to make sense and I have no idea what the ‘missing module’ means.
cant build in my IDE (option is greyed out)
deleted intermediate (and re-added files with VSC in the menu)
deleted saved (and re-added files with VSC in the menu)
deleted both (and re-added files with VSC in the menu)
reinstalled unreal
reinstalled CLion
asked chatGPT
I cant even make any new games either now, I am completely and absolutely in every way stopped from working on anything and everything.
I asked in discord, but nobody answered
Can someone please help me? It seems the module rebuilder hasnt worked correctly in quite some time and I’m completely lost, the last thing I can do is fresh install windows and I LITERALLY just did that a few days ago for my spring cleaning aha
hey welcome to the forum.
don’t despair i don’t think you need to reinstall windows.
have you regenerated your project? i haven’t seen that in your list.
also can you share the header of your new class and which folder is in?
that’s the magic of the forum. posts tend to stay around for people to look at them.
that’s very last resort lol. i wouldn’t trust an llm even if i get paid.
can you share the actual error log? (like the full log)
also can you try rider? it’s free for non commercial and also for testing.
but with rider you don’t open the sln file, you open the uproject. but delete intermediate, saved, and binaries, before opening it. no need to regenerate with rider as it will do it automatically.
oh i was expecting you had some issues when trying to build.
pretty common to have issues the first time.
awesome! rider is pretty nice. otherwise i wouldnt speak of a paid software.
im happy it helped. i’m not sure if clion works as well as rider for unreal. i know rider is meant to be used with ue.
i also know there’s a plugin that you have to activate in the project settings for clion support, but again im not sure if that helps or not.
awesome thanks for sharing the code. it all looks good.
a couple of suggestions (they’re not errors but just what i’d retouch)
add BlueprintType, and Blueprintable to the UCLASS on top. not necessary but could help.
beware theword “component” is lowercase. If you were to rename the class i’d recommend to delete and recreate. otherwise you’ll have to be a bit careful and potentially regenerate the project if not using rider.
linux is case sensitive.
always use a UPROPERTY() on UObject pointers, or they’ll get garbage collected.
make it Transient (just put transient inside uproperty) if it does not need to be serialized. (important or you might get weird behaviour).
use tobjectptr instead of raw pointers, but for class definition only.
like so
TObjectPtr OwnerCharacter = nullptr;
(i think you write TObjectPtr but i usually forward declare at the top of the header instead of inline).
also this is more a take it or leave it suggestions, but i’d always initialize my variables in the header. including ownercharacter = nullptr and defaultwalkspeed = ??;
my pleasure, im happy it helped. if it solved your issue maybe consider marking the post as solution.
i hope you can also make it work with vstudio if you need to. otherwise id recommend rider if you can stick to it.
When I create a new project I get this error message and unreal crashes
Running C:/Program Files/Epic Games/UE_5.5/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“D:/Unreal/third/third.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300
Running UnrealBuildTool: dotnet “....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“D:/Unreal/third/third.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\phill\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207
(Family=14.44.35207, FamilyRank=1, Version=14.44.35207, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.44.35207 is not a preferred version. Please use the latest preferred version 14.38.33130
Creating makefile for thirdEditor (no existing makefile)
Total execution time: 0.38 seconds
Platform Win64 is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platform support files (DataDrivenPlatformInfo.ini, SDK.json, etc).
oh no…
that’s a bit odd.
so something is wrong with your setup.
that’s a generic error. it either fails to parse it, or the tool to generate the files is bad. i think your case is the 2nd.
yeah, “or newer” is dangerous. is there a chance you can downgrade your compiler to 14.38? i don’t think that’s the cause but it could help. make sure to uninstall 14.44
this is potentially teh issue.
you need to install the correct windows sdk.
it can help to make sure you don’t have extra versions. but be careful when removing stuff.
*1 that view can help find extra versions.
also make sure to have .net installed, also through vsudio installed. i think v8 is necessary, sometimes maybe v6.
make sure to pick the right version of the sdk for you. i’m using 5.2 so im on sdk 10.0.22 for windows 11. but notice there’s one for windows 10.
also the one in the picture is a random one i got from the website. check the table on the link above.
also reboot the pc, windows needs to reboot to update some variables like the path.
Well… now I can make new projects and the rebuilder SOMEWHAT works
But my main project ‘MyProject’ still has the module error
Where is the log file i could post you of the rebuilder that errors out when I try to load ‘MyProject’? I’m sincerely so confused and want to understand what I did