Fabric Engine prevents C++ Project from being Created

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/Documents/Unreal Projects/Sun_OSC/Sun_OSC.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: Unable to instantiate instance of 'FabricUI' object type from compiled assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Unreal Build Tool creates an instance of your module's 'Rules' object in order to find out about your module's requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at FabricCore.FabricIncludePath() in c:\Program Files\Epic Games\UE_4.15\Engine\Plugins\Runtime\FabricForUnreal\Source\FabricCore\FabricCore.Build.cs:line 14
at FabricUI..ctor(TargetInfo Target) in c:\Program Files\Epic Games\UE_4.15\Engine\Plugins\Runtime\FabricForUnreal\Source\FabricUI\FabricUI.Build.cs:line 17
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at UnrealBuildTool.RulesAssembly.CreateModuleRules(String ModuleName, TargetInfo Target, FileReference& ModuleFileName)

Tagged:

Comments

  • halimhalim Posts: 2

    Well I'm having the same issue...

  • halimhalim Posts: 2
    edited September 14

    Ok, it seems that environment.bat does not set the system environment variables properly.
    Variables are being set within the cmd session (run in admin mode) but for some reason they are not being set at the main system level.
    Not sure if it is fabric related, I won't be surprised if that would be a windows thing.
    So I set the current system env vars manually:
    PATH
    PYTHONPATH
    FABRIC_EXTS_PATH
    FABRIC_DFG_PATH

    as they are being displayed by environment.bat

    It now seems to go a little further and at least generates the code, even if it still ends up failing with the following warnings:

    Warning: Plugin 'FabricForUnreal' does not list plugin 'ProceduralMeshComponent' as a dependency, but module 'FabricCppRuntime' depends on 'ProceduralMeshComponent'.
    Warning: Plugin 'FabricForUnreal' does not list plugin 'ProceduralMeshComponent' as a dependency, but module 'FabricCore' depends on 'ProceduralMeshComponent'.
    Warning: Plugin 'FabricForUnreal' does not list plugin 'ProceduralMeshComponent' as a dependency, but module 'FabricImporters' depends on 'ProceduralMeshComponent'.

Sign In or Register to comment.