DRE2N / DungeonsXL

Create custom dungeons and adventure maps with ease!
https://www.spigotmc.org/resources/dungeonsxl.9488/
GNU General Public License v3.0
152 stars 84 forks source link

It doesn't saves the changes I do on /dxl edit #1058

Closed balbino-cpu closed 2 years ago

balbino-cpu commented 2 years ago

Description When I do /dxl edit and I edit the dungeon and do /dxl save it says "Map saved" but when I play it the changes aren't saved

Reproduce

  1. Create a Dungeon
  2. Save it
  3. Do /dxl edit to edit it
  4. Do the changes you want
  5. Do /dxl save to save it (I alredy tried to only do /dxl leave and save it automatically but doesn't work)
  6. It says "Map Saved"
  7. Play it, the changes arent there

Expected behavior It's expected to save the changes

Relevant configuration files

Main config.yml:

configVersion: 20
language: english
enableEconomy: false
groupAdaptersEnabled: false
chatEnabled: true
chatFormat:
  edit: '&2[Edit] &r%player_name%: '
  game: '&2[Game] %group_color%%player_name%: &r'
  group: '&2%group_color%[%group_name%] %player_name%: &r'
  spy: '&2[Chat Spy] %player_name%: &r'
tutorial:
  activated: false
  dungeon: tutorial
  startGroup: default
  endgroup: player
groupColorPriority:
- DARK_BLUE
- LIGHT_RED
- YELLOW
- LIGHT_GREEN
- PURPLE
- ORANGE
- BLACK
- LIGHT_BLUE
- DARK_GREEN
- DARK_RED
- LIGHT_GRAY
- CYAN
- MAGENTA
- DARK_GRAY
- PINK
announcementInterval: 30.0
sendFloorTitle: true
globalDeathMessagesDisabled: true
externalMobProviders: {}
resourcePacks: {}
maxInstances: 10
editInstanceRemovalDelay: 5
strictMovementCheckEnabled: true
secureMode:
  enabled: false
  openInventories: false
  dropItems: false
  checkInterval: 5.0
backupMode: ON_DISABLE_AND_SAVE
lobbyContainersEnabled: false
default:
  damageProtectedEntities:
  - ARMOR_STAND
  - ITEM_FRAME
  - PAINTING
  interactionProtectedEntities:
  - ARMOR_STAND
  - ITEM_FRAME

Dungeon config.yml

timeUntilKickOfflinePlayer: 120

timeToNextPlayAfterStart: 1

Shall players play the dungeon with their own items or do you want to use classes?

keepInventoryOnEnter: true

Shall players lose their items when they die (do not mix up this with "onEscape"!)?

keepInventoryOnDeath: true

Shall players keep their inventory when they finish the dungeon?

keepInventoryOnFinish: true

Shall players keep their inventory when they leave the dungeon without succeeding?

keepInventoryOnEscape: false

Sataniel98 commented 2 years ago

Is there an error message in the log?

balbino-cpu commented 2 years ago

Yes


[17:34:22] [Server thread/INFO]: BalMallacan issued server command: /dxl save
--
1985 | [17:34:22] [Server thread/WARN]: [Multiverse-Core] Hmm Multiverse does not know about this world but it's loaded in memory.
1986 | [17:34:22] [Server thread/WARN]: [Multiverse-Core] To let Multiverse know about it, use:
1987 | [17:34:22] [Server thread/WARN]: [Multiverse-Core] /mv import DXL_Edit_1 NORMAL
1988 | [17:34:22] [Server thread/ERROR]: Failed to save chunk 14,6
1989 | net.minecraft.server.v1_16_R3.ReportedException: Saving entity NBT
1990 | at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:1777) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1991 | at net.minecraft.server.v1_16_R3.Entity.a_(Entity.java:1638) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1992 | at net.minecraft.server.v1_16_R3.Entity.d(Entity.java:1646) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1993 | at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:568) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1994 | at net.minecraft.server.v1_16_R3.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:439) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1995 | at net.minecraft.server.v1_16_R3.PlayerChunkMap.saveChunk(PlayerChunkMap.java:1518) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
1996 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176) ~[?:?]
1997 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
1998 | at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
1999 | at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
2000 | at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
2001 | at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
2002 | at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
2003 | at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
2004 | at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
2005 | at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
2006 | at net.minecraft.server.v1_16_R3.PlayerChunkMap.save(PlayerChunkMap.java:937) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2007 | at net.minecraft.server.v1_16_R3.ChunkProviderServer.save(ChunkProviderServer.java:718) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2008 | at net.minecraft.server.v1_16_R3.ChunkProviderServer.close(ChunkProviderServer.java:739) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2009 | at org.bukkit.craftbukkit.v1_16_R3.CraftServer.unloadWorld(CraftServer.java:1239) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2010 | at org.bukkit.Bukkit.unloadWorld(Bukkit.java:618) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2011 | at de.erethon.dungeonsxl.world.DEditWorld.save(DEditWorld.java:113) ~[?:?]
2012 | at de.erethon.dungeonsxl.command.SaveCommand.onExecute(SaveCommand.java:53) ~[?:?]
2013 | at de.erethon.dungeonsxl.util.commons.command.DRECommandExecutor.onCommand(DRECommandExecutor.java:67) ~[?:?]
2014 | at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2015 | at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2016 | at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:826) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2017 | at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2185) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2018 | at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2000) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2019 | at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1953) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2020 | at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:49) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2021 | at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:7) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2022 | at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2023 | at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2024 | at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2025 | at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2026 | at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2027 | at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1266) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2028 | at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1259) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2029 | at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2030 | at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1333) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2031 | at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2032 | at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2033 | at java.lang.Thread.run(Thread.java:829) [?:?]
2034 | Caused by: java.lang.NullPointerException
2035 | at net.minecraft.server.v1_16_R3.Entity.save(Entity.java:1757) ~[patched_1.16.5.jar:git-Paper-"e04368045"]
2036 | ... 43 more
2037 | [17:34:22] [Server thread/INFO]: ThreadedAnvilChunkStorage (DXL_Edit_1): All chunks are saved
balbino-cpu commented 2 years ago

I found a solution. I think I can't put entities in the dungeons, I removed all the paintings and it works perfectly