ItemCraft plugin problem

Discussion in 'Plugin Development' started by Matyas, Nov 2, 2011.

Thread Status:
Not open for further replies.
  1. Hello !
    I have made my IC plugin (Item Craft Plugin)
    When i start my server, i have this error:
    Code:
    [INFO] Error executing script file: plugin: threw com.asdaarg.bukkit.itemcraft.ScriptMan$CustomError: IOException:[com.asdaarg.bukkit.itemcraft.ICUtil.pluginYML(ICUtil.java:35)
     com.asdaarg.bukkit.itemcraft.ItemCraft$Plugin.<init>(ItemCraft.java:46)
     com.asdaarg.bukkit.itemcraft.ICS.plugin(ICS.java:433)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     java.lang.reflect.Method.invoke(Unknown Source)
     com.asdaarg.bukkit.itemcraft.ScriptMan$cmdMetSV.exec(ScriptMan.java:173)
     com.asdaarg.bukkit.itemcraft.ScriptMan$cmdList.exec(ScriptMan.java:100)
     com.asdaarg.bukkit.itemcraft.ScriptMan.load2(ScriptMan.java:1169)
     com.asdaarg.bukkit.itemcraft.ICS.include(ICS.java:374)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     java.lang.reflect.Method.invoke(Unknown Source)
     com.asdaarg.bukkit.itemcraft.ScriptMan$cmdMetSV.exec(ScriptMan.java:173)
     com.asdaarg.bukkit.itemcraft.ScriptMan$cmdList.exec(ScriptMan.java:100)
     com.asdaarg.bukkit.itemcraft.ScriptMan.load2(ScriptMan.java:1169)
     com.asdaarg.bukkit.itemcraft.ICInit.init(ICInit.java:134)
     net.minecraft.server.MinecraftServer.init(MinecraftServer.java:109)
     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
     net.minecraft.server.ThreadServerApplication.run(SourceFile:417)]
    My init.ic:
    Code:
    "com.asdaarg.bukkit.itemcraft" package use
    "net.minecraft.server" package use
    
    #uncomment to not use entity id packet mod
    #false setEntityIDPacketMod
    
    #uncomment to not use ModLoaderMP
    #false setPacket230OnLogin
    
    "PluginArcadia.ic" include
    "plugins.ic" include
    
    
    ## Uncomment to use GUI
    
    #"ItemCraft" class
    #"ICS" class
    #GUI
    false setPacket230OnLogin
    My plugins.ic:
    Code:
    ## Uncomment Plugins you want to use:
    #"ICKSlopes.jar" plugin
    #"ICFancyPack.jar" plugin
    #"ICMCreatures.jar" plugin
    #"ICNTrees.jar" plugin
    #"ICSGlass.jar" plugin
    #"ICJanino.jar" plugin
    #"ICJode.jar" plugin
    #"ICTranslator.jar" plugin
    ## If you wish to change settings and ids, put those commands before the plugin is loaded
    "PluginArcadia" plugin
    PluginAcradia.ic:
    Code:
    "BlockPaille" 201 setID
    and my plugin.yml
    Code:
    name: PluginArcadia
    main: net.minecraft.server.mod_arcadia
    version: 0.1
    
    Screen of the code: Click Here
    Can you help me ?

    Matyas.
     
  2. Offline

    Syrome

    Your plugin.yml is missing two lines. It has to look like this:
    Code:
    name: ICKSlopes
    main: net.minecraft.server.mod_Kaevator_Slopes
    version: 0.2
     
  3. Offline

    Syrome

    I've looked up your error in the ItemCraft source:
    Code:
    try {
    JarFile jar = new JarFile(new File(f));
    JarEntry entry = jar.getJarEntry("plugin.yml");
    if (entry == null)throw new ScriptMan.CustomError("Jar does not contain plugin.yml");
    InputStream stream = jar.getInputStream(entry);
    PluginDescriptionFile description = null;
    try {
    description = new PluginDescriptionFile(stream);
    } catch (InvalidDescriptionException ex1) {
    Logger.getLogger(ScriptMan.class.getName()).log(Level.SEVERE, null, ex1);
    }
    stream.close();
    jar.close();
    return description;
    } catch (IOException ex2) {throw new ScriptMan.CustomError("IOException");
    It's because of your plugin.yml but I can't see any errors in it...
    Maybe something denied the access to it?
     
Thread Status:
Not open for further replies.

Share This Page