OtherDrops

50 - Severe Error

What steps will reproduce the problem?
place this into your otherdrops-drops.yml
   PIG@SADDLED:
     - dropgroup: piggysaddled
       drops:
           - drop: DEFAULT
           - drop: SADDLE

What is the expected output? What do you see instead?
I expect to see no error, but this one appears:
2012-01-25 16:13:13 [SEVERE] Error occurred while enabling OtherDrops v2.1.2 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockMappingStart
while parsing a block mapping
 in "<reader>", line 9, column 3:
      CAULDRON@3:
      ^
expected <block end>, but found BlockMappingStart
 in "<reader>", line 288, column 4:
       PIG@SADDLED:
       ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
    at org.bukkit.util.config.Configuration.load(Configuration.java:90)
    at com.gmail.zariust.otherdrops.OtherDropsConfig.loadDropsFile(OtherDropsConfig.java:237)
    at com.gmail.zariust.otherdrops.OtherDropsConfig.loadConfig(OtherDropsConfig.java:202)
    at com.gmail.zariust.otherdrops.OtherDropsConfig.load(OtherDropsConfig.java:130)
    at com.gmail.zariust.otherdrops.OtherDrops.onEnable(OtherDrops.java:250)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1059)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:444)
    at org.bukkit.Bukkit.reload(Bukkit.java:188)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:382)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:573)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:550)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

What version of the product are you using?
I'm using CB #1810 and OtherDrops 2.1.2

Please provide any additional information below.
If I remove the PIG@SADDLED it's gone, so the Cauldron error is a false positive, but I don't know why the pig@saddled won't work. Can you maybe have a look at it? Appeard after 2.1 I think.

Several other suggestions/problems:
Enderman are not able to be used in "DROP:"
MAGMA_CUBE@x should be added.
And I'm not able to get this to work:
    MONSTER_EGGS:
      - tool: ALL
        drop: {WOLF@ANGRY/2.7%, PIG_ZOMBIE@1200/2.7%, BLAZE/2.7%, CAVE_SPIDER/2.7%, CREEPER/2.7%, CREEPER@POWERED/2.7%, MAGMA_CUBE/2.7%, SILVERFISH/2.7%, SKELETON/2.7%, SLIME@HUGE/2.7%, SPIDER, ZOMBIE/2.7%, CHICKEN/10%, COW/10%, MOOSHROOM/10%, PIG/10%, SHEEP/10%, VILLAGER/10%, GIANT/5%}
        world: world

That was working in 2.0-beta12 or something like that but doesn't work since update. Can you tell me if I have to change the percentages in a way? Am I able to set any chance on mobs in a drop{xx}? I also tried higher percentages but nothing changed :D Even when placing no percentage does sometimes make no mob spawn...

User When Change
ZariusT Feb 05, 2012 at 12:43 UTC
ZariusT Feb 05, 2012 at 12:42 UTC
ZariusT Feb 03, 2012 at 05:48 UTC
ZariusT Jan 25, 2012 at 16:12 UTC
Folas1337 Jan 25, 2012 at 15:56 UTC Changed description:
  And I'm not able to get this to work:
      MONSTER_EGGS:
        - tool: ALL
-         drop: {WOLF@ANGRY/2.7%, PIG_ZOMBIE@1200/2.7%, BLAZE/2.7%, CAVE_SPIDER/2.7%, CREEPER/2.7%, CREEPER@POWERED/2.7%, MAGMA_CUBE/2.7%, SILVERFISH/2.7%, SKELETON/2.7%, SLIME@HUGE/2.7%, SPIDER, ZOMBIE/2.7%, CHICKEN/10%, COW/10%, MOOSHROOM/10%, PIG/10%, SHEEP/10%, VILLAGER/10%, GIANT/20%}
+         drop: {WOLF@ANGRY/2.7%, PIG_ZOMBIE@1200/2.7%, BLAZE/2.7%, CAVE_SPIDER/2.7%, CREEPER/2.7%, CREEPER@POWERED/2.7%, MAGMA_CUBE/2.7%, SILVERFISH/2.7%, SKELETON/2.7%, SLIME@HUGE/2.7%, SPIDER, ZOMBIE/2.7%, CHICKEN/10%, COW/10%, MOOSHROOM/10%, PIG/10%, SHEEP/10%, VILLAGER/10%, GIANT/5%}
          world: world
  That was working in 2.0-beta12 or something like that but doesn't work since update. Can you tell me if I have to change the percentages in a way? Am I able to set any chance on mobs in a drop{xx}? I also tried higher percentages but nothing changed :D Even when placing no percentage does sometimes make no mob spawn...
Folas1337 Jan 25, 2012 at 15:55 UTC Changed description:
  Please provide any additional information below.
  If I remove the PIG@SADDLED it's gone, so the Cauldron error is a false positive, but I don't know why the pig@saddled won't work. Can you maybe have a look at it? Appeard after 2.1 I think.

+
+
+ Several other suggestions/problems:
+ Enderman are not able to be used in "DROP:"
+ MAGMA_CUBE@x should be added.
+ And I'm not able to get this to work:
+     MONSTER_EGGS:
+       - tool: ALL
+         drop: {WOLF@ANGRY/2.7%, PIG_ZOMBIE@1200/2.7%, BLAZE/2.7%, CAVE_SPIDER/2.7%, CREEPER/2.7%, CREEPER@POWERED/2.7%, MAGMA_CUBE/2.7%, SILVERFISH/2.7%, SKELETON/2.7%, SLIME@HUGE/2.7%, SPIDER, ZOMBIE/2.7%, CHICKEN/10%, COW/10%, MOOSHROOM/10%, PIG/10%, SHEEP/10%, VILLAGER/10%, GIANT/20%}
+         world: world
+
+ That was working in 2.0-beta12 or something like that but doesn't work since update. Can you tell me if I have to change the percentages in a way? Am I able to set any chance on mobs in a drop{xx}? I also tried higher percentages but nothing changed :D Even when placing no percentage does sometimes make no mob spawn...
Folas1337 Jan 25, 2012 at 15:17 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 4 comments
  • Avatar of ZariusT ZariusT Feb 05, 2012 at 12:42 UTC - 0 likes

    Given time passed I'll assume this has been fixed - please reopen if you're still having issues.

    BFAK:29094,007bd3b9c7cf630d7476ff7167537f6c25a18c7cb0a513a3ca0e0730674ba6c5

  • Avatar of ZariusT ZariusT Jan 25, 2012 at 22:05 UTC - 0 likes

    @Folas1337: Go

    If you're still getting the YAML error you posted above then OtherDrops has stopped completely. You need to make sure all block entries line up (eg. they all have 3 spaces in front).

    If you're not getting any errors at all I'm not sure why it wouldn't work - perhaps put verbosity temporarily on highest to get a lot more debug messages?

    Oh, and when you post config examples it's easier to read if you enclose it in tags (replacing each ( with < and ) with >): ((code yaml)) ... config stuff here ... ((/code))

  • Avatar of Folas1337 Folas1337 Jan 25, 2012 at 16:22 UTC - 0 likes

    Somehow even this one: DIRT: - drop: NOTHING - drop: DIAMOND doesn't even work at the moment (with and without NOTHING), so maybe my file is somehow corrupted or anything XD I'll test a little more and see if that was my fault ;)

  • Avatar of ZariusT ZariusT Jan 25, 2012 at 16:11 UTC - 0 likes

    Cauldron just happens to be the first entry in your file I guess. The clue is that cauldron is "column 3" and pig@saddled is column 4 - it's just an extra space that's put it out of alignment and the YAML parser can't read it.

    Enderman work for me - "drop: ENDERMAN" or "drop: ENDERMAN@STONE" for carrying stone.

    MAGMA_CUBE@TINY/SMALL/LARGE/HUGE is already added (uses same names as SLIME) - I just haven't updated the documentation.

    'Tis late and I must sleep - I'll look at the MONSTER_EGGS config issue later...

  • 4 comments

Facts

Last updated
Feb 05, 2012
Reported
Jan 25, 2012
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees