Loading structures in game with structure_template_feature works great if no entities are included in the structure_block save.
However, If the Include Entities switch is turned on structures will crash the game when loaded.
I am including as an example a test structure saved twice. Once with Include Entities On, Then with Include Entities Off. (this is the only difference)
Entities in the structure include cows, sheep, rabbits, villager and an armor stand. I have done multiple tests and it does not matter which entities are in the structure. Any entity makes it crash the game.
If more examples are needed or you want to play around with variations this site creates add-ons from mcstructure files real quick. https://bedrockdownloads.com/structures.aspx
Linked issues
is duplicated by 4
Attachments
Comments 23
this is still an issue that crashes beta 1.15.0.53. I do have some additional information to provide based upon testing.
I was successful in loading these structures in some worlds without crashing right away. ultimately the game would crash while flying around though.
I was also able to create a void world by overriding the standard biomes and structures with entities load perfectly without crashing...
based upon the tests above and others conducted with different game modes to eliminate entities and such i concluded that it is not the structure file that makes it crash.
It would seem the game crashes when a structure (having entities) is loaded in a chunk that already contains entities. If the chunk does not have entities the structure loads just fine.
hope it helps
Looks like new structures were added to game using the old nbt method. where does fixing the mcstructures fit in roadmap ?
Beta 1.16.200.56 Using test_house_entities.mcpack attached..
Still Crashes game on Windows 10
Still works fine on Android
Wow just realized its been 9 months.
Beta 1.16.200.57 Using test_house_entities.mcpack attached..
Still Crashes game on Windows 10
Still works fine on Android
Beta 1.16.210.50 Using test_house_entities.mcpack attached..
Still Crashes game on Windows 10
Still works fine on Android
Crash report if this helps.
11.12 00:07:27 [Server] INFO terminate called after throwing an instance of 'std::bad_function_call'
11.12 00:07:27 [Server] INFO what(): bad_function_call
11.12 00:07:27 [Server] INFO [INFO] Package: com.mojang.minecraft.dedicatedserver
11.12 00:07:27 [Server] INFO Version: 1.16.200.2
11.12 00:07:27 [Server] INFO OS: Linux
11.12 00:07:27 [Server] INFO Server start: 2020-12-10 19:07:13 UTC
11.12 00:07:27 [Server] INFO Dmp timestamp: 2020-12-11 06:07:27 UTC
11.12 00:07:27 [Server] INFO Upload Date: 2020-12-11 06:07:27 UTC
11.12 00:07:27 [Server] INFO Session ID: 78f25228-5e28-4737-bb3e-2828da9d04f2
11.12 00:07:27 [Server] INFO Commit hash:
11.12 00:07:27 [Server] INFO Build id: development
11.12 00:07:27 [Server] INFO CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
11.12 00:07:27 [Server] INFO Crash
11.12 00:07:27 [Server] INFO [INFO] at gsignal (UnknownFile:?)
11.12 00:07:27 [Server] INFO at abort (UnknownFile:?)
11.12 00:07:27 [Server] INFO at std::function<EventResult [gsl::not_null<ActorEventListener*>]>::operator[][gsl::not_null<ActorEventListener*>] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at EventCoordinator<ActorEventListener>::processEvent[std::function<EventResult [gsl::not_null<ActorEventListener*>]>] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at ActorEventCoordinator::sendActorEquippedArmor[Actor&, ItemInstance const&, ArmorSlot] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Actor::setArmor[ArmorSlot, ItemStack const&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Mob::_loadArmor[ListTag const*] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Mob::readAdditionalSaveData[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at VillagerBase::readAdditionalSaveData[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at Actor::load[CompoundTag const&, DataLoadHelper&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at ActorFactory::loadEntity[CompoundTag*, DataLoadHelper&, DimensionHeightRange const&, LevelChunk const*] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplate::_placeEntitiesInWorld[BlockSource&, DataLoadHelper&, bool] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplate::placeInWorld[BlockSource&, BlockPalette const&, BlockPos const&, StructureSettings const&, StructureTelemetryServerData*, bool] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at WorldBlockTarget::placeStructure[BlockPos const&, StructureTemplate&, StructureSettings&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at StructureTemplateFeature::place[IBlockWorldGenAPI&, BlockPos const&, Random&, RenderParams&] const (UnknownFile:?)
11.12 00:07:27 [Server] INFO at BiomeDecorationSystem::decorate[LevelChunk&, BlockSource&, Random&, gsl::span<BiomeDecorationFeature, -1l>] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at BiomeDecorationSystem::decorate[Biome&, LevelChunk&, BlockSource&, Random&] (UnknownFile:?)
11.12 00:07:27 [Server] INFO at OverworldGenerator::postProcess[ChunkViewSource&] (UnknownFile:?)
11.12 00:07:28 [Multicraft] Server shut down (running)
11.12 00:07:28 [Multicraft] Restarting crashed server in 300 seconds
11.12 00:07:28 [Multicraft] Looks like a crash, check the server console. Return value: 1
11.12 00:07:28 [Multicraft] Server stopped
Did you create those structure files from that site? https://bedrockdownloads.com/structures.aspx
Because they tell you right on the front page that you can't save entities with it...