Can't package game UE4 4.12

After uninstalling and reinstalling Visual Studio I got an error at the end, not sure if this relates to my problem…?

Hello everyone, very new to Unreal Engine or any game engine to be honest besides lightly touching Construct 2. Ok so I was working on a project and everything was working out great until I try to package…

I followed a few tutorials just to be safe and it seemed pretty straight forward, my project was 100% blueprint but then got a message saying I need Visual Studio… Its no problem but if its needed to package a game in ue4 it should just be installed along with the engine… Ok then after installing I try to package and I get another error message saying im missing common files or something in Visual Studio… another thing that should be set on by default if its needed to package a game…

After going to update VS to add the common files it starts the packaging and everything is looking promising until about 1 minute goes by, then I get another error… I have the log file here. Please someone help me out…this is really messing up my motivation…

NOTE: This is happening with my current project and newly created ones…

Thank you in advance! <3

LOG FILE ATTACHED

link text

From everything im reading on how so many people have all these packaging issues I feel like this is a tactic by Epic Games to reduce how many crappy are out there…

It’s not a tactic, Epic wants your success. Game Engines are complicated and there are many parts in the chain, add in that they need to run on many configurations and versions and there will always be some issues, regardless of what game engine it is, or one you made yourself. Be patient.

When I am debugging packaging problems I try to take care of any warnings. I’ve found they are more than warnings. You are missing at least one file that it’s looking for.

Can’t find file ‘/Game/Metro_Station/Meshes/Vending_Machine’

That may just be a warning, or it could be causing your error.

From this line:

IO.IOException: The process cannot access the file WindowsNoEditor\MyProject.exe’ because it is being used by another process.

I’d wonder if you have 2 instances of the Editor open. Something is hanging on to it, either Visual Studio or something else. If it’s not obvious try restarting Windows.

Hello AnthonyG86,

Starting at the root of the problem, if your project is Blueprint Only yet you’re being required to use Visual Studio to package, there are two possibilities for this. First, you may be packaging for a platform that requires Visual Studio such as Android. If you’re packaging for Windows, this shouldn’t be the case. Secondly, you may be using a plugin that requires being recompiled whenever you package. The most common that I see in these cases is the Substance plugin. Please try removing any of these plugins or disabling them.

As for the errors in your logs, it seems that there are multiple assets that it is failing to find but the major one that is stopping the process is:

The process cannot access the file WindowsNoEditor\MyProject.exe’ because it is being used by another process.

As mentioned, this is indicating that something is open that shouldn’t be. In this case, since it’s the .exe for the package game, it seems like you packaged successfully at some point and opened the packaged product. It seems that the process is still open, which stops the .exe from being overwritten. Please try closing the process or simply packaging to a different location so no overwriting is necessary.

We haven’t heard from you in a while, AnthonyG86. Are you still experiencing this problem? If so, have you tried what I suggested in my previous comment? What were the results? In the meantime I’ll be marking this as resolved for tracking purposes. If you would like to continue, please leave a comment.