Is there a limit to number of entities in the world scene?

Users who are viewing this thread

sinkpoint

Recruit
Hi I'm debugging a crash when adding towns to the world scene with Calradia Expanded.
The mod has 145 towns, when adding more town game entities to the scene xml, loading the Sandbox mode in game will simply crash with access violation, indicating some type of memory error.

I noticed it has nothing to do with capsule placement or town definitions.
The scene file loads fine in the world editor, but will not load in the game.
So I'm wondering if there's a limit on world entity items in-game.

To reproduce the crash:

With the default scene file in Sandbox module:
Make a copy "town_K4" of game_entity group, and rename it. Load the game, start Sandbox game mode, everything is fine.

With Calradia Expanded 1.7 beta:
Make a copy "town_K4" of game_entity group, and rename it. Load the game, start Sandbox game mode, crash.
 
your settlement_distance_cache needs to contain the new settlement as well. Probably need a custom version of the settlements script that creates it. Or copy the one it creates in Native or Sandbox folder, i forget where exactly.
 
Back
Top Bottom