So I downloaded the Strategy Game example project off of the marketplace but it did not create a Visual Studio Solution for the code.
Is there a way to generate the .sln file for Visual Studio from the Editor without having to add a new source file that will just get deleted later?
It seems if a “Source” directory exists with code files (in the case of the example projects off the marketplace), then “Generate Visual Studio Files” works for exactly what I need.
However, if no source files exists, you have to add a new source file (which makes sense anyway).
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.
Personally I’m using a relative path for the the .bat file, you’ll probably want to use an absolute path. Also, If you’re just compiling the game code and aren’t modifying the engine code, you can skip adding the “-Engine” parameter.
Note that not all marketplace projects have code - Swing Ninja for example. When you try and generate the code files for these it will complain and fail as these are done in Blueprints not C++. You can however add code to the project by the methods suggested above.