Code 6 Issue

so I wanted to get into Satisfactory Modding but get punched in the Face when trying to Build FactoryGame for the first time. Pretty much followed the Docs to the tea. heres the Log, its rlly short since it basically fails like 2 seconds into the build:
Solution:
default options from game dev and c++ desktop workload + additionally: MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.34-17.4)(Out of Support) .NET 6.0 Runtime (Out of support)...
Jump to solution
13 Replies
Rovetown
RovetownOP3w ago
1>Creating makefile for FactoryEditor (no existing makefile)
1>[FactoryEditor] FactoryGame: IsPublicBuild: 1 WithCheats: 0
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\Wwise\Source\WwiseReconcile\WwiseReconcile.Build.cs : warning : Modules must specify an explicit precompiled header (eg. PrivatePCHHeaderFile = "Private/Widgets/ProjectedResultColumn.h") from UE 4.21 onwards.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\VisualStudioTools\Source\VisualStudioBlueprintDebuggerHelper\VisualStudioBlueprintDebuggerHelper.Build.cs : warning : Modules must specify an explicit precompiled header (eg. PrivatePCHHeaderFile = "Private/VisualStudioBlueprintDebuggerHelperModule.h") from UE 4.21 onwards.
1>Parsing headers for FactoryEditor
1>Creating makefile for FactoryEditor (no existing makefile)
1>[FactoryEditor] FactoryGame: IsPublicBuild: 1 WithCheats: 0
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\Wwise\Source\WwiseReconcile\WwiseReconcile.Build.cs : warning : Modules must specify an explicit precompiled header (eg. PrivatePCHHeaderFile = "Private/Widgets/ProjectedResultColumn.h") from UE 4.21 onwards.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\VisualStudioTools\Source\VisualStudioBlueprintDebuggerHelper\VisualStudioBlueprintDebuggerHelper.Build.cs : warning : Modules must specify an explicit precompiled header (eg. PrivatePCHHeaderFile = "Private/VisualStudioBlueprintDebuggerHelperModule.h") from UE 4.21 onwards.
1>Parsing headers for FactoryEditor
1> Running Internal UnrealHeaderTool E:\Modding\Satisfactory\SatisfactoryModLoader\FactoryGame.uproject E:\Modding\Satisfactory\SatisfactoryModLoader\Intermediate\Build\Win64\FactoryEditor\Development\FactoryEditor.uhtmanifest -WarningsAsErrors -installed
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(32): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(41): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(65): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\AbstractInstance\Source\AbstractInstance\Public\AbstractInstanceManager.h(83): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'UAkInstancedGeometryComponent'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\AbstractInstance\Source\AbstractInstance\Public\InstanceData.h(92): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'AkInstancedMeshType'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(13): error : Unable to find 'struct' with name 'FAkBusMeteringInfo'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(40): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'EAkMeteringFlags'
1> Running Internal UnrealHeaderTool E:\Modding\Satisfactory\SatisfactoryModLoader\FactoryGame.uproject E:\Modding\Satisfactory\SatisfactoryModLoader\Intermediate\Build\Win64\FactoryEditor\Development\FactoryEditor.uhtmanifest -WarningsAsErrors -installed
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(32): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(41): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\Environment\FGFoliageDestructionData.h(65): Deprecation: Specifier 'AdvancedDisplay' has a value which is unused, future versions of UnrealHeaderTool will flag this as an error.
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\AbstractInstance\Source\AbstractInstance\Public\AbstractInstanceManager.h(83): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'UAkInstancedGeometryComponent'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Plugins\AbstractInstance\Source\AbstractInstance\Public\InstanceData.h(92): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'AkInstancedMeshType'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(13): error : Unable to find 'struct' with name 'FAkBusMeteringInfo'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(40): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'EAkMeteringFlags'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(29): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'EAkMeteringFlags'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGElevatorTypes.h(40): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'AkInstancedMeshType'
1>Total of 0 written
1>Total execution time: 1.43 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""E:\Unreal Engine - CSS\Engine\Build\BatchFiles\Build.bat" FactoryEditor Win64 Development -Project="E:\Modding\Satisfactory\SatisfactoryModLoader\FactoryGame.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "FactoryGame.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
========== Build completed at 14:42 and took 02,035 seconds ==========
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGAudioMeteringSubsystem.h(29): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'EAkMeteringFlags'
1>E:\Modding\Satisfactory\SatisfactoryModLoader\Source\FactoryGame\Public\FGElevatorTypes.h(40): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'AkInstancedMeshType'
1>Total of 0 written
1>Total execution time: 1.43 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""E:\Unreal Engine - CSS\Engine\Build\BatchFiles\Build.bat" FactoryEditor Win64 Development -Project="E:\Modding\Satisfactory\SatisfactoryModLoader\FactoryGame.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "FactoryGame.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
========== Build completed at 14:42 and took 02,035 seconds ==========
FICSIT-Fred
FICSIT-Fred3w ago
Note: the "exit code 6" message which appears in build logs is very vague - it indicates that building C++ failed for some other reason. If you'd like help with this error, make sure that you also share the rest of the build output as described here (or from the Alpakit Log tab if you're getting this at mod package time) https://docs.ficsit.app/satisfactory-modding/latest/Development/BeginnersGuide/project_setup.html#_the_command_exited_with_code_6 -# Responding to exitcode6moreinfoneeded triggered by @Rovetown
Rovetown
RovetownOP3w ago
Im on WIndows 11, with the VS Setup from the SML Config provided by the Docs. Fresh Clean VS 22 install, all steps done without issue.
Rex
Rex3w ago
Looks like you didn't integrate Wwise It's complaining about missing definitions from Wwise
Rovetown
RovetownOP3w ago
weird it did integrate to my knowledge. gonna do it again then... it shows as integrated though inside wwise redid the wwise integration, seems to have again worked
Rovetown
RovetownOP3w ago
No description
Rovetown
RovetownOP3w ago
Same Error Message
Rex
Rex3w ago
Try generating project files again The step about right clicking the .uproject file and generating visual studio files
Rovetown
RovetownOP3w ago
Did that, same issue... ima just start over from the githubs .exe step and fully clean reinstall vs22 again
Rex
Rex3w ago
I don't think you need to restart everything Try restarting the project setup, i.e. redownload the SML GitHub repo and go from there
Rovetown
RovetownOP3w ago
k ill try that
Solution
Rovetown
Rovetown3w ago
default options from game dev and c++ desktop workload + additionally: MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.34-17.4)(Out of Support) .NET 6.0 Runtime (Out of support) .NET Framework 4.8.1 SDK ---------------------------------- Redid the Project and went from there. Reinstalled Wwise 2023.1.3.8471. Re-integrated Wwise and Generated Soundbanks for all platforms. Then Generated Project Files. Opened the solution with VS22. Besides a warnign that can be ignored, opening was fine. I ignored the extra components notification. I set the build to Development Editor Win64. i selected the FactoryGame, made it my startup project. I then selected the FactoryGame again and selected Build. seems something in the vs22 install had an issue - build now runs. my guess is that the config on the docs selects some additional components besides whats written in the manual install, which will result in build fails. i confirmed this on my laptop which has a fresh win 11 install. did the same thing again there but with the config from the docs - same error as mentioned.
Robb
Robb2w ago
@Mircea sounds like the vsconfig needs to be updated

Did you find this page helpful?