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

相关推荐
qxl_7999152 小时前
Windows 显卡掉线无报警|模型推理全套防呆方案(实操完整版)
windows·stm32·单片机·推理显卡掉线误报警防呆
counterxing3 小时前
我整理了一个免费开发资源目录,还做成了 CLI 和 MCP
前端·agent·ai编程
Javatutouhouduan8 小时前
2026Java面试的正确打开方式!
java·高并发·java面试·java面试题·后端开发·java编程·java八股文
JAVA面经实录9178 小时前
Java初级最终完整版学习路线图
java·spring·eclipse·maven
子兮曰9 小时前
Bun v1.3.14 深度解析:Image API、HTTP/3、全局虚拟存储与五十项变革
前端·后端·bun
Cat_Rocky9 小时前
k8s-持久化存储,粗浅学习
java·学习·kubernetes
知识领航员10 小时前
蘑兔AI音乐深度实测:功能拆解、实测表现与适用场景
java·c语言·c++·人工智能·python·算法·github
释怀°Believe10 小时前
Spring解析
java·后端·spring
kyriewen10 小时前
今天,百年巨头一次砍了9200人,而一个离职科学家的实话让全网睡不着觉
前端·openai·ai编程
ooseabiscuit10 小时前
Laravel4.x:现代PHP框架的奠基之作
java·开发语言·php