Cook和cooker:虚幻错误:游戏目标需要-cook或-cookonthefly

在虚幻引擎 4.26.2 上,我试图为 Win64 打包一个蓝图 / C ++ 混合项目。

但是,我遇到了以下错误:

LogMainFrame: Project does not require temp target
LogLauncherProfile: Found promoted target with matching version at ../../../Engine/Binaries/Win64/UE4Game-Win64-Shipping.target
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject="C:/Users//Documents/Unreal Projects/foo.uproject" BuildCookRun -nocompileeditor -installed -nop4 -project="C:/Users//Documents/Unreal Projects/foo.uproject" -coo
k -stage -archive -archivedirectory=C:/Users//Desktop/Win32UnrealBuilds -package -ue4exe="C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\Win64\UE4Editor-Cmd.exe" -ddc=InstalledDerivedDataBackendGraph -pak -prereqs -nodebuginfo -targetplatform=Win64 -clientconfig=Shipping -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for C:\Users\\Documents\Unreal Projects\foo.uproject
UATHelper: Packaging (Windows (64-bit)): ERROR: Game target not found. Game target is required with -cook or -cookonthefly
UATHelper: Packaging (Windows (64-bit)):        (see C:\Users\\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\Log.txt for full exception trace)
PackagingResults: Error: Game target not found. Game target is required with -cook or -cookonthefly
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

完整异常跟踪的相关部分是:

BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\\Documents\Unreal Projects\foo.uproject
InternalUtils.SafeFileExists: SafeFileExists C:\Users\\AppData\Local\Temp\UAT\C+Program+Files+Epic+Games+UE_4.26\Rules\UATRules24283721.dll=False
DynamicCompilation.RequiresCompilation: Compiling C:\Users\\AppData\Local\Temp\UAT\C+Program+Files+Epic+Games+UE_4.26\Rules\UATRules24283721.dll: Assembly does not exist
...
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

是否有一个传统的原因“找不到游戏目标”被击中?

1

虽然不清楚为什么它的工作,复制默认的 projectname.Target.cs 文件在Source目录和重命名它 projectnameGame.Target.cs(并改变该文件的内部类名匹配)似乎做的伎俩。现在有3Target.cs文件在Source目录。

projectname.Target.cs

projectnameGame.Target.cs

projectnameEditor.Target.cs

在这一点上,一切都再次工作...这似乎很奇怪,但它的工作原理!

本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处

(421)
Escapement欧米茄co-axial:小 o和欧米茄符号(lil omega)
上一篇
Crypt 32:在动态链接库CRYPT32.dll中找不到过程入口点 CryptStringToBinaryW
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(1条)