level 1
FredTruck
楼主
我如果直接打开这个FiveOneFive.uproject可以打开,
但是Generate Visual Studio project files的时候就出现了第二张图的error
(UE 论坛给了个答案)我上网搜索了下问题:https://forums.unreal
engine.com/development-discussion/c-gameplay-programming/12635-
plugin-development-couldn-t-find-module-rules-for-module-xyz?26787-Plugin-Development-Couldn-t-find-module-rules-for-module-XYZ=
于是去github上找找看有没有源码之类的,可惜没找到,只有作者的发布包,里面还没有编译系统模块文件,可能使用于蓝图工程,C++的作者就没想要适配的(我猜的我猜的我猜的)



错误如上(这里打码一遍字,让其他人上网能搜索到:ERROR:Couldn't find module rules file for module 'IM4U')。
解决方法:
1.在你放插件的目录下如Epic Games\UE_4.15\Engine\Plugins\IM4U新建一个Source文件夹,在里面新建一个IM4U.build.txt
2.在这个文件里面添加如下代码:
using UnrealBuildTool;
public class IM4U : ModuleRules
{
public IM4U(TargetInfo Target)
{
PublicIncludePaths.AddRange(
new string[] {
//"IM4U/Public"
// ... add public include paths required here ...
}
);
PrivateIncludePaths.AddRange(
new string[] {
//"IM4U/Private",
// ... add other private include paths required here ...
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
// ... add private dependencies that you statically link with here ...
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
}
}
3.将文件名IM4U.build.txt改成IM4U.build.cs(C#文件)
4.这时你右击你的工程文件*.uproject文件generate visual studio project files的时候就可以了
顺便我的UE4.15,sys:win10
2018年02月26日 13点02分
1
但是Generate Visual Studio project files的时候就出现了第二张图的error
(UE 论坛给了个答案)我上网搜索了下问题:https://forums.unreal
于是去github上找找看有没有源码之类的,可惜没找到,只有作者的发布包,里面还没有编译系统模块文件,可能使用于蓝图工程,C++的作者就没想要适配的(我猜的我猜的我猜的)



错误如上(这里打码一遍字,让其他人上网能搜索到:ERROR:Couldn't find module rules file for module 'IM4U')。解决方法:
1.在你放插件的目录下如Epic Games\UE_4.15\Engine\Plugins\IM4U新建一个Source文件夹,在里面新建一个IM4U.build.txt
2.在这个文件里面添加如下代码:
using UnrealBuildTool;
public class IM4U : ModuleRules
{
public IM4U(TargetInfo Target)
{
PublicIncludePaths.AddRange(
new string[] {
//"IM4U/Public"
// ... add public include paths required here ...
}
);
PrivateIncludePaths.AddRange(
new string[] {
//"IM4U/Private",
// ... add other private include paths required here ...
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
// ... add private dependencies that you statically link with here ...
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
}
}
3.将文件名IM4U.build.txt改成IM4U.build.cs(C#文件)
4.这时你右击你的工程文件*.uproject文件generate visual studio project files的时候就可以了
顺便我的UE4.15,sys:win10