[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;}

相关推荐
karry_k1 小时前
MyBatis批量insert-select踩坑:useGeneratedKeys=true 可能让PostgreSQL返回大量插入结果
java·后端
妙码生花1 小时前
从 PHP 到 AI + Golang,程序员自救转型手记(十九):点选验证码代码逐行目检
前端·后端·go
karry_k1 小时前
PostgreSQL 在 MyBatis 中执行正常 SQL 失效:一次 DELETE USING 踩坑记录
java·后端
Awu12272 小时前
⚡从零开发 Agent CLI(五)实现一个可治理、可扩展的工具系统
前端·人工智能·claude
咪库咪库咪2 小时前
Vue3-生命周期
前端
莪_幻尘3 小时前
你的 AI Skill 越多越蠢?Token 上下文爆炸的求生指南
前端·ai编程
lichenyang4533 小时前
从 has.echo 到异步 API 注册表:一次 ASCF API 回调不触发的排查复盘
前端
林瞅瞅3 小时前
Nuxt3 项目部署 Nginx 防盗链后特定 JS 文件 403 问题修复方案
前端
kyriewen4 小时前
别再每次都 Google 了:我整理了前端日常最常踩的 10 个 Git 坑,附速查表
前端·javascript·git
一颗奇趣蛋4 小时前
Web 视频开发完全指南:从入门到精通
前端