BuildConfiguration.xml invalid child error

Hello! I’m new to UE4 and I want to improve my compile times as they do seem to take 1-7 minutes every time I make some changes. I read that you can modify your BuildConfiguration.xml file to do that. So I found mine under C:\Users\AppData\Roaming\Unreal Engine\UnrealBuildTool and I tweaked it to look like this:

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<BuildConfiguration>
<ProcessorCountMultiplier>2</ProcessorCountMultiplier>
</BuildConfiguration>
</Configuration>

But whenever I compile Visual Studio 2019 informs me: “warning : The element ‘BuildConfiguration’ in namespace ‘https://www.unrealengine.com/BuildConfiguration’ has invalid child element ‘ProcessorCountMultiplier’”. Am I doing something wrong here?

Your XML doesn’t conform to the schema. The schema is build in github source builds at CHECKOUT_DIRECTORY\Engine\Saved\UnrealBuildTool\BuildConfiguration.Schema.xsd.

It looks like you need either a LocalExecutor or ParallelExecutor element to contain ProcessorCountMultiplier. Try this:

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
  <ParallelExecutor>
    <ProcessorCountMultiplier>2</ProcessorCountMultiplier>
  </ParallelExecutor>
</Configuration>

Here’s the relevant part of the schema:

<?xml version="1.0" encoding="utf-8"?>
<schema elementFormDefault="qualified" targetNamespace="https://www.unrealengine.com/BuildConfiguration" xmlns="http://www.w3.org/2001/XMLSchema">
	<element name="Configuration">
		<complexType>
			<all>
<element minOccurs="0" maxOccurs="1" name="LocalExecutor">
					<complexType>
						<all>
							<element minOccurs="0" maxOccurs="1" name="ProcessorCountMultiplier" type="double" />
							<element minOccurs="0" maxOccurs="1" name="MaxProcessorCount" type="int" />
						</all>
					</complexType>
				</element>
				<element minOccurs="0" maxOccurs="1" name="ParallelExecutor">
					<complexType>
						<all>
							<element minOccurs="0" maxOccurs="1" name="ProcessorCountMultiplier" type="double" />
							<element minOccurs="0" maxOccurs="1" name="MaxProcessorCount" type="int" />
							<element minOccurs="0" maxOccurs="1" name="bStopCompilationAfterErrors" type="boolean" />
						</all>
					</complexType>
				</element>

I’m having this exact issue as well, did you figure it out?

@jimmyjimbo13 see my answer to the question below

Ah missed that, thanks!