Packaged Project Adding "_C" to Levels Causing Issues

Hi all,

I’m having (another) issue in Unreal. I have a project setup that loads all assets within a directory into an array, these assets are all level so the idea is that I can load each one in sequence by incrementing an integer variable.

Everything works perfectly within the editor, but once I package the game I ran into issues; using printString, I found that the array seems to be populated with duplicates of each map but with “_C” added to the end.

So my array ends up looking something like:

M00
M00_C
M01
M01_C
etc.

This seems to make the project reload the same level once before moving onto the next.

Any ideas what may be causing this and how to resolve the issue?

Thanks, (a frustrated student trying to program part of their dissertation)