Hey! I made a procedural generation system using actors and following a tutorial and it worked fine but when you were leaving that level and entering in the same level again the chunks weren’t saving. So i made a simple chunk saving system. The problem now is that when you leave the level and enter in the same level again the saved chunks get overlapped by new generated chunks and if you leave and enter again new chunks will generate overlapping the last chunks and the same when you repeat the proccess until there are too many overlapping chunks and the game crashes. The question is: Can someone help me? or should i rewrite the entire procedural generation code?
Blueprints:
Procedural Generation: Event Graph
Procedural Generation: SpawnChunk Function
Procedural Generation: SetupNavMesh Function
Procedural Generation: GetChunkCoords Function
Level Blueprint:
Function Library: LoadLevelByInstance
Function Library: SaveLevel
Thanks in advance <3