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

相关推荐
我不只是切图仔12 小时前
我只是想给网站加个注册验证码,咋就那么难!
前端·后端
野犬寒鸦12 小时前
力扣hot100:相交链表与反转链表详细思路讲解(160,206)
java·数据结构·后端·算法·leetcode
你是人间五月天12 小时前
sentinel实现控制台与nacos数据双向绑定
windows·sentinel
该用户已不存在12 小时前
macOS是开发的终极进化版吗?
前端·后端
小豆包api13 小时前
小豆包AI API × Nano Banana:3D手办 + AI视频生成,「动起来」的神级玩法!
前端·api
ytadpole13 小时前
揭秘设计模式:工厂模式的五级进化之路
java·设计模式
计算机毕业设计木哥13 小时前
计算机毕设选题:基于Python+Django的B站数据分析系统的设计与实现【源码+文档+调试】
java·开发语言·后端·python·spark·django·课程设计
失散1313 小时前
分布式专题——1.2 Redis7核心数据结构
java·数据结构·redis·分布式·架构
布列瑟农的星空13 小时前
大话设计模式——观察者模式和发布/订阅模式的区别
前端·后端·架构
龙在天13 小时前
Vue3 实现 B站 视差 动画
前端