When I'm packing a project, on version 5.6.1, this error occurs. I searched all over the Internet, but I didn't find any similar information. I don't know what to do...

Hi (I don’t know English well in advance) When I’m packing a project, on version 5.6.1, this error occurs. I searched all over the Internet, but I didn’t find any similar information. I don’t know what to do…

Warning: Visual Studio 2022 compiler is not a preferred version
Determining max actions to execute in parallel (14 physical cores, 28 logical cores)
Requested 2 process count multiplier: limiting max parallel actions to 28
Requested 1.5 GB memory per action, 15.9 GB available: limiting max parallel actions to 10
Using Parallel executor to run 3 action(s)
------ Building 3 action(s) started ------
[1/3] Resource Default.rc2
../Build/Windows/Resources/Default.rc2(76) : error RC2104 : undefined keyword or key name:
\UE_STRINGIZE

Total time in Parallel executor: 0.39 seconds

Result: Failed (OtherCompilationError)
Total execution time: 30.27 seconds
Took 31,98s to run dotnet.exe, ExitCode=6

(It says that the version of VS that is not very suitable is installed, but I also installed the one that the developers recommend. And it didn’t help either…)

I’m guessing you named your project in some other language than English.
The error seems to be coming from the value

VALUE "ProductName", BUILD_PROJECT_PRODUCT_NAME

inside of the Default.rc2 file in the engines build for windows.

I highly doubt UE_STRINGIZE is the problem here directly. It’s by default defined within PreprocessorHelpers.h inside of the engine.

So the problem occurs when the engine runs some preparing code during the preprocessing phase of the project. It probably gets to the project name and fails to convert whatever local text encoding you are using.

Unreal has a lot of problems with non-english names for projects and subsequently project directories. I’ve seen this happen with other languages on the forum like Russian and Chinese encoding.

Try creating a project with an English name and see if this error persists.

1 Like

Wow, thanks a lot! It worked, I didn’t think it would be so easy.

1 Like