I have a game project that works fine when I run the project in the UE4 editor and play the game. However with it working now, I am needing to launch the game as a process. To launch the process, I am using this process name (with quotes):
This scheme worked perfectly on a similar project running in 4.7. However for this project, my GameMode is a game mode I wrote in C++. Works completely fine when running in the editor. However when I run it by launching the process with command line arguments, the game mode I specify is not being used, but rather the default GameMode is being used. Based on this working in 4.7 I believe it to be a bug specific to 4.8. Does anyone have any suggestions??
I have confirmed that the issue is not specific to 4.8. I put the same C++ GameMode class (“TestGameMode”) in my 4.7 project and it did the same thing. It uses the TestGameMode when running the game from the editor, but when the editor is launched with command arguments to run the game, the game is run but the TestGameMode class isn’t used.
Again, when I design a GameMode class in Blueprints and launch the game as a process using command line arguments, the correct game mode is used. It only doesn’t use the game mode when the game mode is designed in C++ AND it is launched as a process using command line/DOS prompt, it works if it’s a C++ game mode and run in the already-running editor.
FYI, I have this working now in 4.8. Honestly I don’t remember what I changed to get it working… If someone is having the same problem let me know and I will gladly go back and look more closely at what I had to change to get it working.