[UBT Bug] No longer able to compile plugins in standalone since 5.3

from :UBT Bug No longer able to compile plugins in standalone since 5.3 - Pipeline & Plugins - Epic Developer Community Forums

Hacking around I managed to both a) identify the problem plugins, and b) make the build tool immune to this crash.

我设法识别了问题插件,并使构建工具免受此崩溃的影响。

  1. Open C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.sln in Visual Studio
    打开 Visual Studio 中的 C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.sln
  2. Make Configuration/ModuleRules.cs writable
    设置 Configuration/ModuleRules.cs 可写
  3. Find the IsValidForTarget method
    找到 IsValidForTarget 方法
  4. Replace the first line of code with the code below.
    将第一行代码替换为以下代码。
  5. Compile with Build → Build Solution (make sure it completes ok and says it's updated the C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll file.
    编译时使用构建 → 构建解决方案(确保它完成并显示已更新 C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll 文件)。
  6. Attempt to build your project/plugin again
    尝试再次构建您的项目/插件
  7. Look in the "C:\Users_yourusername \AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4" or similar folder for the .txt file with the long name.
    查看"C:\Users_yourusername
    \AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4"或类似文件夹中的长名.txt 文件。
  8. In it search for "Does not support" and see if the new code has triggered. The start of the line will tell you the plugin.
    在搜索"不支持"并查看新代码是否已触发。行的开头会告诉你插件。
复制代码

IEnumerable supportedTargetTypes = new TargetType[] { }; try{supportedTargetTypes = moduleType .GetCustomAttributes().SelectMany(x => x.TargetTypes).Distinct();}catch{string module_name = (moduleType != null) ? moduleType.Name : ""; invalidReason = $"TargetType '{targetRules.Type}' : Failed to get SupportedTargetTypesAttribute from '{module_name}'"; return false;}

相关推荐
cidy_987 分钟前
OptMem 使用教程
前端
摇滚侠12 分钟前
《SpringBoot 3:入门与应用实战》第 15 章 生产级特性 监控指标 Metrics 阅读笔记
java·spring boot·笔记
杉氧12 分钟前
用 Compose 挑战交互与动效天花板:ComposeCraftLab 开源实验室全解析
android·前端·kotlin
Canace20 分钟前
AI 生成到 90% 突然断了:你的解决方案是?
前端·人工智能
TinssonTai23 分钟前
Vite 8 版 Chrome 插件全家桶,popup/options/sidepanel 一次集齐
前端·vue.js
玉鸯27 分钟前
让 Agent 面向用户:AG-UI 协议构建 Agent 前端
前端·python·agent
弹简特38 分钟前
【Java项目-企悦抽】11-用户与认证模块-实现用户登录03(结束登录功能)-完成测试+对接前端+登录拦截器
java·开发语言
趣味科技40 分钟前
记录修复EAGET忆捷移动硬盘损坏
windows·数据分析·硬件工程
程序员黑豆42 分钟前
鸿蒙应用开发 @Extend 装饰器使用教程
前端·harmonyos
杨先生哦1 小时前
【2026热端攻防系列 10/12】前端凭据安全深度攻防:Cookie/Storage劫持、会话固定、凭据泄露与浏览器最新加固方案
前端·笔记·安全·web安全