target rules ModuleRule not working because bad namings
I was encountering the same bug
I was able to reproduce it repeatedly by first creating a "StrategyGame" from template, default name, with default location (nothing changed)
Then I create another one without changing defaults, this time it defaults to name "StrategyGame2" and again StrategyGame2.uproject and so forth
The first one "StrategyGame" when hitting "Compile" compiles c++ code just fine.
However when I try to hit Compile in "StrategyGame2"
I get the error mentioned similiar to the post
if I go through all the files like Build files, Target files, and folders, and rename some things a bit(such as adding the "2" to the right place, because it is still looking for "StrategyGame" instead of "StrategyGame2", I did manage to get it to correctly build right.
The relevant files changes. (I think I got them all)
It appears like some kind of variables aren't dynamic and need to reflect the project name, instead of the template's original name? or perhaps the "2" is getting truncated in some kind of reflection system? Not sure.
There is the problem, how to repro it, and how to 'temp' work around fix it.
asked Nov 28 '15 at 11:45 PM in Bug Reports
I have been able to reproduce your issue, and have entered a bug report (UE-23988). Thank you for your report, and for providing a workaround.
Have a great day,
answered Dec 01 '15 at 08:08 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here