Skip to main content
Participant
Feb 8, 2025 9:45 AM UTC
Open for Voting

Substance in UE5: Build failed

Using Unreal Engine 5.5.3 on windows 11 and Substance in UE5 Plugin 5.5.1, when doing a recompile for my C++ code, the build fails related to "SubstanceCore".

I have to disable the plugin to be able to build the project.

 

---------- Creating patch ----------
Running C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\Build.bat -Target="TestProjectCPPEditor Win64 Development -Project=""C:/Users/rhaam/Documents/Unreal Projects/TestProjectCPP/TestProjectCPP.uproject""" -LiveCoding -LiveCodingModules="C:/Program Files/Epic Games/UE_5.5/Engine/Intermediate/LiveCodingModules.json" -LiveCodingManifest="C:/Program Files/Epic Games/UE_5.5/Engine/Intermediate/LiveCoding.json" -WaitMutex -LiveCodingLimit=100
  Using bundled DotNet SDK version: 8.0.300
  Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="TestProjectCPPEditor Win64 Development -Project=""C:/Users/rhaam/Documents/Unreal Projects/TestProjectCPP/TestProjectCPP.uproject""" -LiveCoding -LiveCodingModules="C:/Program Files/Epic Games/UE_5.5/Engine/Intermediate/LiveCodingModules.json" -LiveCodingManifest="C:/Program Files/Epic Games/UE_5.5/Engine/Intermediate/LiveCoding.json" -WaitMutex -LiveCodingLimit=100
  Log file: C:\Users\rhaam\AppData\Local\UnrealBuildTool\Log.txt
  Creating makefile for TestProjectCPPEditor (.uproject file is newer)
  Compiled assembly file 'C:\Users\rhaam\AppData\Local\UnrealEngine\Intermediate\Build\BuildRules\MarketplaceRules.dll' appears to be for a newer CLR version or is otherwise invalid.  Unreal Build Tool will try to recompile this assembly now.  (Exception: Bad IL format. The format of the file 'C:\Users\rhaam\AppData\Local\UnrealEngine\Intermediate\Build\BuildRules\MarketplaceRules.dll' is invalid.)
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Ultimate6d2628bd839dV6\Source\MaterialAssignment\MaterialAssignment.Build.cs(6,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'MaterialAssignment'
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Ultimate6d2628bd839dV6\Source\ObjectDistribution\ObjectDistribution.Build.cs(6,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'ObjectDistribution'
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Ultimate6d2628bd839dV6\Source\ObjectDistribution\ObjectDistribution.Build.cs(8,9): error CS0111: Type 'ObjectDistribution' already defines a member called 'ObjectDistribution' with the same parameter types
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Ultimate6d2628bd839dV6\Source\MaterialAssignment\MaterialAssignment.Build.cs(8,9): error CS0111: Type 'MaterialAssignment' already defines a member called 'MaterialAssignment' with the same parameter types
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Substanc8f08b879e842V26\Source\SubstanceEditor\SubstanceEditor.Build.cs(19,3): warning CS0618: 'ModuleRules.bEnforceIWYU' is obsolete: 'Deprecated in UE5.2 - Use IWYUSupport instead.'
  C:\Program Files\Epic Games\UE_5.5\Engine\Plugins\Marketplace\Substanc8f08b879e842V26\Source\SubstanceCore\SubstanceCore.Build.cs(46,3): warning CS0618: 'ModuleRules.bEnforceIWYU' is obsolete: 'Deprecated in UE5.2 - Use IWYUSupport instead.'
  Total execution time: 1.61 seconds
  Expecting to find a type to be declared in a module rules named 'SubstanceCore' in 'Unknown Assembly'.  This type must derive from the 'ModuleRules' type defined by UnrealBuildTool.
Build failed.

 

2 replies

Adobe Employee
Feb 12, 2025 9:11 PM UTC

Hi @ottpossum Could you please try running the plugin from the project directory of a C++ project instead of from the engine folder?
To do that:

  • Copy the Substance folder from /Users/Shared/Epic Games/UE_5.x/Engine/Plugins/Marketplace on Mac, or C:\Program Files\Epic Games\UE_5.x\Engine\Plugins\Marketplace on Windows
  • Go to the directory of you C++ project
  • Creteate a Plugins folder, and within that folder create a Runtime folder
  • Paste the Substance folder in the Runtime folder
  • Start the project and try enable the plugin.

 

Let us know if that resolves the issue.

 

Best,
Aldo

Translate
Community Manager
Feb 11, 2025 12:02 AM UTC

Hi, thanks for reporting this. Does this issue occur in older versions of the application as well?

Translate