Cannot add code to ShooterGame project or make new modules. Any solution?
I created a derivative of ShooterGame called Lastim. When I go to File -> Add Code to Project and try to add code to /Lastim/Source/ShooterGame/, I get the following error and I the Create Class button is greyed out: All source code must exist within a valid module folder in the projects source path, e.g. C:... (it cuts off after /Unreal Projects/
If I change the path to /Lastim/Source/Lastim/, I get the following error highlighted in red above the name and path boxes: The selected module path does not exist on disk: ...
If I manually create a /Lastim/ folder in /Lastim/Source/, I can add the class, but the module does not compile. I have tried adding a Lastim module using different tutorials on AnswerHub and the web, but I have yet to have success. Regardless, shouldn't it recognize ShooterGame as a place to add code anyway? Reinstalling did not solve anything.
I created an unaltered ShooterGame project just called ShooterGameX, and I have the exact same issues (just replace Lastim with ShooterGameX). I can only edit classes already in ShooterGame. I did not have this issue when following Epic's tutorial, Introduction to UE4 Programming.
While I am an amateur programmer, I am totally stuck, and I hope that someone can help me add classes to ShooterGame and/or make a Lastim module. I am using Windows 8.1, 64-bit.
The validation in the class wizard assumes that all the modules in your game will have a name based upon (starting with) your game name, eg, Lastim, LastimEditor, LastimSplashScreen, etc.
Clearly ShooterGame is not at all based upon Lastim, so this validation fails. You're going to need to rename the ShooterGame module (and any references in .Target.cs .Build.cs and .uproject files) to be Lastim before the class wizard will work.
How did you create your Lastim project? If it was via some sort of wizard then we should make sure that it renames the game modules correctly for you, if you just renamed it on disk, well... there's not much we can do about that.
You probably are having issues with the header. Try changing the include"example.h" to include "/foldername/example.h"
answered Jul 08 '14 at 11:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here