1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Plugin wont load

Discussion in 'Development' started by Indexfire, Sep 14, 2017.

  1. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    It gives this error I tried changing yml but same
    Code:
    [19:13:20] [Server thread/ERROR]: Could not load 'E:\Pocketmine-MP\plugins\MegaWalls.phar' in folder 'E:\Pocketmine-MP\plugins\': yaml_parse(): reading error encountered during parsing: invalid leading UTF-8 octet (line 1, column 1)
    [19:13:20] [Server thread/CRITICAL]: ErrorException: "yaml_parse(): reading error encountered during parsing: invalid leading UTF-8 octet (line 1, column 1)" (EXCEPTION) in "src/pocketmine/plugin/PluginDescription" at line 61
    [19:13:20] [Server thread/DEBUG]: #0 (): pocketmine\{closure}(integer 2, string yaml_parse(): reading error encountered during parsing: invalid leading UTF-8 octet (line 1, column 1), string phar://E:/Pocketmine-MP/PocketMine-MP.phar/src/pocketmine/plugin/PluginDescription.php, integer 61, array Array())
    [19:13:20] [Server thread/DEBUG]: #1 src/pocketmine/plugin/PluginDescription(61): yaml_parse(string Mob handling..   usage: /mysterydf{NH.j..5&g<=.j....GBMB)
    [19:13:20] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PharPluginLoader(88): pocketmine\plugin\PluginDescription->__construct(string Mob handling..   usage: /mysterydf{NH.j..5&g<=.j....GBMB)
    [19:13:20] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(213): pocketmine\plugin\PharPluginLoader->getPluginDescription(string E:\Pocketmine-MP\plugins\MegaWalls.phar)
    [19:13:20] [Server thread/DEBUG]: #4 src/pocketmine/Server(1993): pocketmine\plugin\PluginManager->loadPlugins(string E:\Pocketmine-MP\plugins\)
    [19:13:20] [Server thread/DEBUG]: #5 src/pocketmine/command/defaults/ReloadCommand(49): pocketmine\Server->reload()
    [19:13:20] [Server thread/DEBUG]: #6 src/pocketmine/command/SimpleCommandMap(237): pocketmine\command\defaults\ReloadCommand->execute(pocketmine\command\ConsoleCommandSender object, string reload, array Array())
    [19:13:20] [Server thread/DEBUG]: #7 src/pocketmine/Server(1953): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string reload)
    [19:13:20] [Server thread/DEBUG]: #8 src/pocketmine/Server(1938): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string reload)
    [19:13:20] [Server thread/DEBUG]: #9 src/pocketmine/Server(2470): pocketmine\Server->checkConsole()
    [19:13:20] [Server thread/DEBUG]: #10 src/pocketmine/Server(2239): pocketmine\Server->tick()
    [19:13:20] [Server thread/DEBUG]: #11 src/pocketmine/Server(2118): pocketmine\Server->tickProcessor()
    [19:13:20] [Server thread/DEBUG]: #12 src/pocketmine/Server(1700): pocketmine\Server->start()
    [19:13:20] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(553): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://E:/Pocketmine-MP/PocketMine-MP.phar/, string E:\Pocketmine-MP\, string E:\Pocketmine-MP\plugins\)
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Can you send us the yml file?
    Also, did you used MICROSOFT TEXT EDITOR to edit the file?
     
  3. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    NO OMG FUCK MICROSOFT





    YEdit Eclipse Plugin
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    It tells you where to look right there...
     
  5. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    And where on earth is that?
     
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Code:
    (line 1, column 1) of plugin.yml
     
    NickTehUnicorn likes this.
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    are you making sure to not use utf-8 encoding?
     
  8. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    Err the only thing there in plugin.yml is
    Code:
    main: endermystery\endermysteryteam\EnderMystery
    Apparently everything was fine, the command to spawn a Wither (Server Stress Test) malfunctioned when i forgot to define the spawn function and i thought ok only one error but as soon as i added the function this came up
     
  9. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    Eh well havent thought of that but all my other plugins work and im doing the exact same thing with this one (first plugin with mobs)

    Also note that this plugin worked UNTIL i added the function to spawn Wither
     
  10. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    The first time you try to make mobs on pocketmine this kinda shit happens :(
     
  11. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You are understanding it the opposite way... YAML expects UTF-8 (UTF-16 BE/LE are OK too, but BOM is required), and the file does not contain valid UTF-8 characters.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.