I’m getting the infamous Array of size 0 error when opening the packaged build of my game. I tried deleting the Intermediate and Binaries folders before packaging but nothing changed.
Can anyone help me track this down? Is there a standard operating procedure for doing this that I’m not aware of?
When you package you have everything - before packaging head over to Window → Debugging Tools? → Output Log
This may come in handy in every day use as well
When packaging fails you will get at the end (but not the VERY end) an URL with generated file with more info
Mostly there’s not to much to catch out or it’s hard to understand
Just to mention my lil story - I couldn’t build a game until I manually recreated parts (removed and placed exactly same stuff back) that gave me errors and for whatever reason it was gone
That happens to me mostly if I change something in the code that includes changing References to some Actors/Components
I cannot tell what your issue is but the Output Log will show you the path to the generated error file
One more tip - create a blank project without any content
Migrate your project there (easiest method is to migrate a Level as it will take everything it contains so if you place your Player there it will get migrated as well)
Go to Project Settings to fix missing stuff (new project doesn’t have axis/input mappings, selected GameMode or level etc)
Save everything, run the game once to see if it’s all looking okay
Correct me if I’m wrong, but I don’t think his errors come from the packaging itself / automation tool, but rather it is a crash that happens when running the shipping build.
When I compile source code, .exe and .pdb files are generated in Binaries/Win64/ folder, even for shipping.