Visual Studio launches Engine instead of game

Hello !

For some reason an issue started happening when I’m launching my project.

It seems like Visual Studio is trying to launch the Engine instead of the game, even though the game is setup as the startup project.

I’m compiling in “DebugGame Editor” for “Win64”

I’ve attached the output logs from VS.

Because its trying to launch the engine, its complaining about some pluging not being built, but these plugins are disabled in the .uproject

If I build them to get the engine to run, I get the basic unreal engine loading screen and then it open the project selection window.

Before this issue started happening, I could see the project loading screen and then it was directly opening the project.

This issue started happening after I compiled in “Test” and launched to capture some perfs with Unreal Insights.

Steps to Reproduce

Bonjour Alexandre,

When working at the editor level, the project modules are compiled as DLLs that are loaded by the editor. I’m assuming here that you are using the default settings based on the content of the log.

I suspect that there might be a problem with the project settings (the VS project). If you look in the Debugging panel for the DebugGame_editor target, you should make sure that the “Command Arguments” field contains the name of the project as the argument.

Can you please share the log file if this doesn’t help?

Martin

I’m not familiar with this extension but I would recommend that you have a look at UnrealVS. It a custom solution that offer a couple of extra Unreal related features including the management of commandline argument from a toolbar.

https://dev.epicgames.com/documentation/en\-us/unreal\-engine/using\-the\-unrealvs\-extension\-for\-unreal\-engine\-cplusplus\-projects

Hey Martin !

Thanks for the answer, it was indeed the command arguments that were empty.

It’s because I installed the extension “Smart Command Line Arguments” and somehow it messed up with this.