Creating a project with a Chinese name? Error!

Hi,

I am unable to create a new project called 立方迷城 in the Unreal Engine.

I’ve been trying the same process with UE4 4.18 through 4.22 to find that I am unable to compile a C++ UE4 project in Visual Studio and I’m unsure why.

I receive the following error if I don’t change my class names from 立方迷城GameMode to TestGameMode:

/NewTest/???/Source/???/???GameMode.h(1): error : Missing UCLASS name

And I receive these errors after changing my class names:

1> [1/7] TestGameMode.gen.cpp
1>c1xx : fatal error C1083: Cannot open source file: ‘C:\Users\MY-PC\Documents\Unreal Projects\NewTest\绔嬫柟杩峰煄\Intermediate\Build\Win64\UE4Editor\Inc\绔嬫柟杩峰煄\TestGameMode.gen.cpp’: No such file or directory

1> [2/7] 绔嬫柟杩峰煄.cpp
1>c1xx : fatal error C1083: Cannot open source file: ‘C:\Users\MY-PC\Documents\Unreal Projects\NewTest\绔嬫柟杩峰煄\Source\绔嬫柟杩峰煄\绔嬫柟杩峰煄.cpp’: No such file or directory

1> [3/7] TestGameMode.cpp
1>c1xx : fatal error C1083: Cannot open source file: ‘C:\Users\MY-PC\Documents\Unreal Projects\NewTest\绔嬫柟杩峰煄\Source\绔嬫柟杩峰煄\TestGameMode.cpp’: No such file or directory

1> [4/7] 绔嬫柟杩峰煄.init.gen.cpp
1>c1xx : fatal error C1083: Cannot open source file: ‘C:\Users\MY-PC\Documents\Unreal Projects\NewTest\绔嬫柟杩峰煄\Intermediate\Build\Win64\UE4Editor\Inc\绔嬫柟杩峰煄\绔嬫柟杩峰煄.init.gen.cpp’: No such file or directory

I have changed my Windows 10 Region Locale to Chinese (Simplified, China), installed all Chinese language packs and fonts in Windows 10, and Chinese language packs in Visual Studio.

What am I doing wrong?

Thanks,
Jon

you can’t use special characters on project name nor class names only Alpha numeric are allowed ( and you can’t call it just “Game” nor “Project” if i recall correctly

Oh - In that case, how would I get the output .exe AND the root content folder name AND for Windows to recognize the final product to appear as a chinese name?

Would I need to hack UEBuildBinary.cs or something?

Cheers,
Jon

Make a simple batch script to that you use after packaging :slight_smile:

Surely the binaries wouldn’t be able to locate the renamed content folder though? Maybe I’m not understanding you correctly :slight_smile:

Yeah, i was more thinking of the main folder and exe on the root of the main folder ( which is what your user will look for, the rest is non of their concern you could name it either genericaly either same word in alpha character if possible, but user will have

c:/ProgramFiles/ZeJudgeStudio/立方迷城/立方迷城.exe

I see yeah, this is for China government approval so every instance of the original name must be changed. This may work so I’ll give it a go, but we may get flagged for the content folder name being inconsistent - but then again they may not know what the original English language name.

You can also change the process name in the project settings → Description → Project Name
also there you can set description, copyright, project displayed Title (for window name in alt tab / title bar )

i don’t know anything about regulation in china, but if folder, exe, title and process have correct name in Chinese + correct description/copyright, all the rest in internal and shouldn’t cause any problem