ShooterGame / StrategyGame can't generate Visual Studio projects (so they can't run after)

Greetings everyone and thank you for this awesome Engine. My friend got UE4 and we are both discovering it. His english is not good enough, that is why I am speaking of his behalf. Well, it seems we are encountering the same problem as here: ShooterGame / StrategyGame won't open in an editor built from source - Community & Industry Discussion - Epic Developer Community Forums we can not open ShooterGame and StrategyGame and we got the same message: ‘ShooterGameLoadingScreen’ could not be found. Please ensure that this module exists and that it is compiled." After running the RegisterShellCommands.bat as an admin, we got the “Generate Visual Studio Files.” by right clicking on ShooterGame.uproject and StrategyGame.uproject and according to this: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums , we should get the sln file of the game and then start the steps that you mentionned. Unfortunately, the VS project wasn’t created "Just above your Strategy Game project, you should see a new file for Visual Studio. Open it up to take a peek at all of the C++ code behind your game! " like how the tutorial indicates. So If we didn’t get the sln file, then we can not continue the following steps to make the project run. Can you please help us? Thanks.

i had the same problem, and it was the enginelauncher program that caused it. you might have noticed that as soon as you click generate visual studio files, the blue colored engine launcher pops up.

i had the engine files etc, moved to another location. thus the enginelauncher tried to download it again, but could not do it, as i didnt have enough disk space. for some reason this whole debacle also stopped tgenerating the visual studio files.

try making enough room on the partition on which the enginelauncher wants to download the engine, and see if it enginelauncher.exe fires up without problems.

Can you please explain step, by step how you did it please? We are new here! We don’t mind space. Also where is enginelauncher.exe located? Because we clicked generate visual studio files, jusr the prompt command popped and instantly disappeared and even the Unreal Engineicon disappered from the uproject file.

I replied to you on the other answer (How to Compile the Shooter Game Sample Manually? - Programming & Scripting - Unreal Engine Forums), but to repeat:


I was having a similar problem, after I had built my own version of the editor I wanted to try working with ShooterGame and StrategyGame. Using ‘Generate Solution’ worked once, but it generated paths to the installed version, and subsequent uses weren’t working.

The solution: Call the GenerateProjectFiles.bat manually. You could also try the method listed by badsensation, however this is what I used (call from cmd):

"*build location*\UnrealEngine\Engine\Build\BatchFiles\GenerateProjectFiles.bat" -project="%UserProfile%\Documents\Unreal Projects\ShooterGame\ShooterGame" -game -engine

You will need to change build location to the location where your source built engine is. Also, this is assuming the location for your ShooterGame project is in the documents folder as listed. If not, change the project variable so that the format is:
-project=“path_to_project\ProjectName”
If you do it right, there won’t be an error. If you do it wrong, you might get an exception complaining about no source directory found.

Once you have your solution, you will need to change the build to “Development Editor”, as the advice above suggests. This will allow you to build the appropriate missing files, which will appear in ShooterGame/Binaries/Win64 (if you are working with a Win64 build) as several UE4Editor-* files.

Hi hd_, we tried your command method, we got in the prompt command: Setting up Unreal Engine 4 project files… Discovering modules, targets and source code for game… UnrealBuildTool Exception: ERROR: Directory ‘nameofthepc\Documents\Unreal Projects\ShooterGame’ is missing ‘Source’ folder.
GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files

Well when you go to ShooterGame directory, is there actually a Source directory there?