I have had many issues before while trying to package my game. I am targeting mobile so keeping the package size down was a priority for me. One of the things that I remember doing was choosing specifically in preferences what I want packaged and what I want excluded. Some times I would get errors like yours. It has been a couple of months since I have done any developing. I am taking a break to write a novel. I am not an expert and do not pretend to be. I have however been able to flesh out a nice game in 6 months with no prior experience only using YouTube,Unreal Docs and Unreal Forums. I have an idea on what might be wrong here, but I don’t want to accidentally lead you down a rabbit hole. My packaging works fine. I will screenshot my asset manager and see if you notice a difference that is causing the error. Maybe that will help? It might be a moment. I don’t have a great system.
When I package my project or launch through the Project Launcher I get an error when cooking that says:
LogAssetManager: Error: Found multiple “Map” Primary Asset Type entries in “Primary Asset Types To Scan” config. Only a single entry per type is supported.
LogAssetManager: Error: Found multiple “PrimaryAssetLabel” Primary Asset Type entries in “Primary Asset Types To Scan” config. Only a single entry per type is supported.
I also get these warnings: LogInit: Display: CookResults: Warning: Unable to find package for cooking [Level1Name]
LogInit: Display: LogCook: Warning: Unable to find package for cooking [Level1Name]
LogInit: Display: CookResults: Warning: Unable to find package for cooking [Level2Name]
LogInit: Display: LogCook: Warning: Unable to find package for cooking [Level2Name]
I have gone to the Asset Manager in my project settings and made sure I only have 2 elements in my “Primary Asset Types to Scan” array. Both the elements are set to their default values; is of type “Map” the other “PrimaryAssetLabel”. Here is a screenshot of my asset manager settings:
I have added the two maps I want to include in the array called: “List of maps to include in a packaged build”. I double checked their names to make sure I did not make a typo. Those are also the only two maps in my entire project.
I have found that my “Primary Asset Types to Scan” array always had 4 elements in it when I loaded up the editor. The two extra elements in the array were duplicates of the first 2. I tried deleting them, then trying to run the Project Launcher, but the cook always failed. I then went into my unreal project through windows explorer and opened the config folder in that folder I opened the DefaultGame.ini file. Inside the file I found these two lines of code: