OddItem

25k Downloads

Error when changing items file

Timfa2112 opened this issue ยท 2 comments

commented

Updated to a new 1.3.1 dev build, plugin worked fine, no errors.
Then i added the new 1.3 items in the items file, and it gives this error:

[OddItem] Enabling OddItem v0.9.5
2012-08-03 13:20:54 [WARNING] [OddItem] Error opening items.yml!
2012-08-03 13:20:54 [SEVERE] [OddItem] Configuration error!
2012-08-03 13:20:54 [SEVERE] java.lang.NullPointerException
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.bktree.BKTree.findBestWordMatch(BKTree.java:88)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.OddItem.getItemStack(OddItem.java:371)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.OddItem.getItemStack(OddItem.java:349)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.configuration.OddItemGroup.(OddItemGroup.java:54)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.configuration.OddItemGroup.valueOf(OddItemGroup.java:253)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.configuration.OddItemGroups.(OddItemGroups.java:39)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.configuration.OddItemGroups.valueOf(OddItemGroups.java:111)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.OddItemConfiguration.configure(OddItemConfiguration.java:103)
2012-08-03 13:20:54 [SEVERE] at info.somethingodd.OddItem.OddItemBase.onEnable(OddItemBase.java:37)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:357)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:263)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:245)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:564)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.Bukkit.reload(Bukkit.java:182)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
2012-08-03 13:20:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:490)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:862)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:822)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:804)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:105)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.ServerConnection.b(SourceFile:35)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:559)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
2012-08-03 13:20:54 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
2012-08-03 13:20:54 [INFO] [OddItem] 0 items with 0 aliases loaded.

My items file: http://www.mediafire.com/?lizk7k15bpldkz8

i added these: 24;1, 24;2, 123;0 to 133;0, 385;0 to 388;0.

commented

Resolved issue:

when starting a new line in notepad++, the program adds a tab instead of five spaces.
Plugin doesn't like this sudden change, and blows up.

commented

You can select "replace tabs by spaces" in preferences>language menu/tab settings.
Selecting YAML from the language menu will highlight indentation changes as errors.