Translated Question:
When I build the editor from source and try to run, there’s a compile error in the shader, and the editor crashes on load.
I looked into it, and when writing the shader USF file to the preprocessor (MCPP), some of the shader files have an error that says “Unknown encoding: jp”, and the Engine side treats this as an error.
To fix this, inside of \Engine\Source\Developer\ShaderPreprocessor\Private\ShaderPreprocessor.cpp, if I change the contents of the MCPP warning filter function static bool FilterMcppError(const FString& ErrorMsg) to be:
static bool FilterMcppError(const FString& ErrorMsg)
{
const TCHAR* SubstringsToFilter[] =
{
TEXT("Unknown encoding: jp"), // この行を追加
TEXT("with no newline, supplemented newline"),
TEXT("Converted [CR+LF] to [LF]")
};
}
The shader compile stops failing.
This is the first time I built the editor, so there might have been some kind of incorrect setup…
Is anyone else getting this kind of error?