Why does my packaged game instantly quit?

Hi,

I built something fairly simple with Blueprints from a blank project that works well when playing in Editor and as Stand Alone (still from editor).

After having packaged it for Windows, when trying to run game stand-alone - it boots up, splash loads and then second game starts window just closes itself.

I have no idea if it’s crashing or shutting down on purpose. At least, I don’t get any crash-pop-up.

Any idea why? Is this a common thing?

Thanks,

You should add this as a comment instead on an answer. It helps keep things neat and tidy!

I should add that when I package demo-projects, they run just fine.

Could you attach your game’s log file?

Where’s that generated?

it will be in your project’s \Saved\ folder. latest log file is one without date/time details in its name. you can just sort all files by their last modified date and pick newest one.

Oh! You meant from editor. Yeah, sure:
https://dl.dropboxusercontent.com/u/206884/GradeYes.log

But as I said, it works fine in Editor and when packaging I’m met with a “SUCCESS!”-message.

Thanks,

Sorry, I meant log file that is generated by packaged project you’re launching. It should also have a ‘Saved’ folder. We need to see if there is anything useful in log. Usually it will indicate why it is shutting down engine.

Editor log file that you posted looks ok. Thanks!

Ah, nope. There’s no /Save/ or log-file in packaged directory.
In root there is /Engine/ and /[Project Name]/, and none of these contain anything of sort anywhere.

Agreed with what Jestersheepy has said.

game usually instantly quits if there is an issue in blueprint that would cause a infinite loop.

Try running game in editor with Output log window up, you’ll see a message there if your Blueprint executed an infinite loop which caused game to exit.

-W

game usually instantly quits if there is an issue in blueprint that would cause a infinite loop.

There’s no warning for that in Output Log, nor is there one in blueprints. :frowning:

Could you post a picture of your Blueprints for us to look at? Is there anything else unique about process you took? If you start a new project with a copied Blueprint, does that crash as well?

That’s all in my controller-class. However, I’ve tried disabling each block and re-building. Doesn’t work.
I’ve even tried to build game with other GameInfo and Controller-classes assigned. No luck.

I had to add

[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/Game/Maps/Menu

to my defaultengine.ini in my project folder in order to tell engine what map to load

Double check your default map. You can find what it’s set to in Edit > Project Settings > Maps & Modes. What you’re seeing is possibly due to renaming or deleting map that is specified in default game map option.

-Max B.

@Arcade

We haven’t heard back from you yet on this issue. For tracking purposes, we’re marking this answered. If you are still experiencing issues, please respond back so we can help you with your issue!

Thanks

-Max B.