x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

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: https://answers.unrealengine.com/questions/18770/shootergame-strategygame-wont-open-in-an-editor-bu.html: 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: https://wiki.unrealengine.com/Generate_Visual_Studio_Project , 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.

Product Version: Not Selected
Tags:
more ▼

asked Mar 28 '14 at 09:53 PM in C++ Programming

avatar image

DarkInfiktrator
11 5 8 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I replied to you on the other answer (https://answers.unrealengine.com/questions/16760/how-to-compile-the-shooter-game-sample-manually.html), 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.

more ▼

answered Mar 29 '14 at 02:00 PM

avatar image

hd_
18 1 2

avatar image DarkInfiktrator Mar 29 '14 at 02:28 PM

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

avatar image hd_ Mar 30 '14 at 03:31 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Mar 29 '14 at 05:44 AM

avatar image

nebelwerfer
74 7 13 12

avatar image DarkInfiktrator Mar 29 '14 at 01:21 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question