x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can not create new C++ project

Hi,

I know a lot of peoples asked this before, but my error code is different (and I tried a lot of fixes who didnt worked for me). So I try to build a new C++ project and everytimes at 60% it crashed and says that :

 Running C:/Program Files/Epic Games/UE_4.20/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/planch2/Documents/Unreal Projects/MyProject/MyProject.uproject" -game -rocket -progress
 Discovering modules, targets and source code for project...
 ERROR: UnrealBuildTool Exception: System.ArgumentException: Illegal characters in path.
           at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
           at System.IO.Path.GetFullPathInternal(String path)
           at Tools.DotNETCommon.FileReference..ctor(String InPath) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\DotNETCommon\DotNETUtilities\FileReference.cs:line 23
           at UnrealBuildTool.DynamicCompilation.RequiresCompilation(List`1 SourceFileNames, FileReference AssemblySourceListFilePath, FileReference OutputAssemblyPath) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 73
           at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, List`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 413
           at UnrealBuildTool.RulesAssembly..ctor(IReadOnlyList`1 Plugins, List`1 ModuleFiles, List`1 TargetFiles, Dictionary`2 ModuleFileToPluginInfo, FileReference AssemblyFileName, Boolean bContainsEngineModules, Boolean bUseBackwardsCompatibleDefaults, Boolean bInstalled, RulesAssembly Parent) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 101
           at UnrealBuildTool.RulesCompiler.CreateEngineOrEnterpriseRulesAssembly(DirectoryReference RootDirectory, String AssemblyPrefix, IReadOnlyList`1 Plugins, Boolean bInstalled, RulesAssembly Parent) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 324
           at UnrealBuildTool.RulesCompiler.CreateEngineRulesAssembly() in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 267
           at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(List`1 AllGames, ProjectFile& EngineProject, ProjectFile& EnterpriseProject, Dictionary`2& GameProjects, Dictionary`2& ModProjects, Dictionary`2& ProgramProjects, Dictionary`2& TemplateGameProjects, Dictionary`2& SampleGameProjects) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2100
           at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Arguments) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 684
           at UnrealBuildTool.UnrealBuildTool.GuardedMain(String[] Arguments) in D:\Build\++UE4\Sync\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 899

Creating a blueprint project works. I tried to reinstall the version, reinstall visual studio, i have every SDK (windowd 10 and 8.1), the UE4 installer on VS, community edition. I verified the files of 4.20.

The error is "Illegal character in path", but i don't find any illegal characters! I just don't understand..

Thanks in advice!

Product Version: UE 4.20
Tags:
more ▼

asked May 18 '19 at 10:47 PM in C++ Programming

avatar image

ZindavLaBetrav
1 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question