Giter Site home page Giter Site logo

Comments (18)

xBeastMode avatar xBeastMode commented on June 17, 2024 1

Yeah, back when I first wrote HG the code was horrible that's why I had to rewrite it but I don't know why the Loader class is in the wrong path.

What I will do is refactor the plugin, doing changes to the paths. I'll try to finish as soon as possible.

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024 1

Thanks, I actually found the error now and it's something with the Msg class. Can't believe I couldn't see it. This should fix it: c2501e6

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

Are you testing alone? I know the plugin has bugs with Genisys.

from hungergames-updated.

xXSirGamesXx avatar xXSirGamesXx commented on June 17, 2024

I tried it with pocketmine and got same issue

from hungergames-updated.

xXSirGamesXx avatar xXSirGamesXx commented on June 17, 2024

I'll get the error in a bit

from hungergames-updated.

xXSirGamesXx avatar xXSirGamesXx commented on June 17, 2024

[15:10:13] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'HungerGames vBuild#16': Class hungergames\lib\utils\Loader not found on hungergames\EventListener
[15:10:13] [Server thread/CRITICAL]: ClassNotFoundException: "Class hungergames\lib\utils\Loader not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

that's the issue I get when I try to join the hunger games

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

Try this release: https://github.com/InfinityGamers/HungerGames-UPDATED/releases/tag/Build%2316-fixed

from hungergames-updated.

xXSirGamesXx avatar xXSirGamesXx commented on June 17, 2024

doesn't work, similar issue

[17:20:03] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerQuitEvent' to 'HungerGames vBuild#16': Class hungergames\lib\utils\Loader not found on hungergames\EventListener
[17:20:03] [Server thread/CRITICAL]: ClassNotFoundException: "Class hungergames\lib\utils\Loader not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

Alright. I'm going to have to focus on this plugin cause new bugs keep appearing.

from hungergames-updated.

xXSirGamesXx avatar xXSirGamesXx commented on June 17, 2024

Ok thanks

from hungergames-updated.

markkrueg avatar markkrueg commented on June 17, 2024

I am experiencing this bug also. Has anyone been able to get this plugin running?

Just to recap; setting up the HG works smoothly until you get to the point of testing the actual game. When a player taps the sign, console says:

[Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'HungerGames vb16a5if': Class hungergames\lib\utils\Loader not found on hungergames\EventListener
[Server thread/CRITICAL]: ClassNotFoundException: "Class hungergames\lib\utils\Loader not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

When that player gives up and disconnects, console says:

[Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerQuitEvent' to 'HungerGames vb16a5if': Class hungergames\lib\utils\Loader not found on hungergames\EventListener
[Server thread/CRITICAL]: ClassNotFoundException: "Class hungergames\lib\utils\Loader not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

I'm curious why it thinks the path is hungergames\lib\utils\Loader when the path is really hungergames\Loader; did the path change at some point and something is still configured the old way?

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

Who knows it might just be a problem in the phar. I know for a fact that it has to do with the Compiler. I'm currently refactoring this plugin to fix this bug and add more features to it.

from hungergames-updated.

markkrueg avatar markkrueg commented on June 17, 2024

It also exhibits this error when running from source using DevTools.

I have been able to get build #10 working....but it seems a lot more primitive. Also the wrong person seems to win the HG :-)

from hungergames-updated.

markkrueg avatar markkrueg commented on June 17, 2024

Thanks for all the work you are putting into this!

While you work on your refactor; I'll keep working on trying to find a temporary workaround for this bug. If you happen to hit on any potential fixes; you can always just post code snippets here and I will test it for you. The non-profit server I help out with has suddenly gotten very excited about Hunger Games :-)

Anyway, thanks again!

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

Alright, thanks !

from hungergames-updated.

markkrueg avatar markkrueg commented on June 17, 2024

Here are more details of what happens when a player taps the sign:

[11:31:01] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'HungerGames': Class hungergames\lib\utils\Loader not found on hungergames\EventListener
[11:31:01] [Server thread/CRITICAL]: ClassNotFoundException: "Class hungergames\lib\utils\Loader not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
[11:31:01] [Server thread/DEBUG]: #0 (): BaseClassLoader->loadClass(string hungergames\lib\utils\Loader)
[11:31:01] [Server thread/DEBUG]: #1 /HungerGames_45a81d4_source/src/hungergames/lib/utils/Msg(118): spl_autoload_call(string hungergames\lib\utils\Loader)
[11:31:01] [Server thread/DEBUG]: #2 /HungerGames_45a81d4_source/src/hungergames/lib/utils/Msg(36): hungergames\lib\utils\Msg::getConfigMessages(boolean)
[11:31:01] [Server thread/DEBUG]: #3 /HungerGames_45a81d4_source/src/hungergames/lib/utils/Msg(25): hungergames\lib\utils\Msg::initHGMessages(boolean)
[11:31:01] [Server thread/DEBUG]: #4 /HungerGames_45a81d4_source/src/hungergames/lib/mgr/GameManager(321): hungergames\lib\utils\Msg::getHGMessage(string hg.message.join)
[11:31:01] [Server thread/DEBUG]: #5 /HungerGames_45a81d4_source/src/hungergames/EventListener(70): hungergames\lib\mgr\GameManager->addWaitingPlayer(pocketmine\Player Player(1), boolean 1)
[11:31:01] [Server thread/DEBUG]: #6 /src/pocketmine/plugin/MethodEventExecutor(36): hungergames\EventListener->onInteract(pocketmine\event\player\PlayerInteractEvent object)
[11:31:01] [Server thread/DEBUG]: #7 /src/pocketmine/plugin/RegisteredListener(96): pocketmine\plugin\MethodEventExecutor->execute(hungergames\EventListener object, pocketmine\event\player\PlayerInteractEvent object)
[11:31:01] [Server thread/DEBUG]: #8 /src/pocketmine/plugin/PluginManager(675): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object)
[11:31:01] [Server thread/DEBUG]: #9 /src/pocketmine/level/Level(1662): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerInteractEvent object)
[11:31:01] [Server thread/DEBUG]: #10 /src/pocketmine/Player(2449): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 Vector3(x=174,y=71,z=290), pocketmine\item\ItemBlock Item Air (0:0)x0, integer 5, double 1, double 0.9463, double 0.4342, pocketmine\Player Player(1))
[11:31:01] [Server thread/DEBUG]: #11 /src/pocketmine/network/mcpe/protocol/UseItemPacket(61): pocketmine\Player->handleUseItem(pocketmine\network\mcpe\protocol\UseItemPacket object)
[11:31:01] [Server thread/DEBUG]: #12 /src/pocketmine/Player(3355): pocketmine\network\mcpe\protocol\UseItemPacket->handle(pocketmine\Player Player(1))
[11:31:01] [Server thread/DEBUG]: #13 /src/pocketmine/network/mcpe/protocol/BatchPacket(74): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\UseItemPacket object)
[11:31:01] [Server thread/DEBUG]: #14 /src/pocketmine/Player(3355): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\Player Player(1))
[11:31:01] [Server thread/DEBUG]: #15 /src/pocketmine/network/mcpe/RakLibInterface(135): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[11:31:01] [Server thread/DEBUG]: #16 /src/raklib/server/ServerHandler(96): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 10.10.10.135:19132, raklib\protocol\EncapsulatedPacket `...........0x.c.ebTR...~.................tC.B..N..&:30......, integer 0)
[11:31:01] [Server thread/DEBUG]: #17 /src/pocketmine/network/mcpe/RakLibInterface(76): raklib\server\ServerHandler->handlePacket(boolean)
[11:31:01] [Server thread/DEBUG]: #18 /src/pocketmine/network/Network(170): pocketmine\network\mcpe\RakLibInterface->process(boolean)
[11:31:01] [Server thread/DEBUG]: #19 /src/pocketmine/Server(2376): pocketmine\network\Network->processInterfaces(boolean)
[11:31:01] [Server thread/DEBUG]: #20 /src/pocketmine/Server(2149): pocketmine\Server->tick(boolean)
[11:31:01] [Server thread/DEBUG]: #21 /src/pocketmine/Server(2032): pocketmine\Server->tickProcessor(boolean)
[11:31:01] [Server thread/DEBUG]: #22 /src/pocketmine/Server(1652): pocketmine\Server->start(boolean)
[11:31:01] [Server thread/DEBUG]: #23 /src/pocketmine/PocketMine(493): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///Applications/PMMP_HG/PocketMine-MP.phar/, string /Applications/PMMP_HG/, string /Applications/PMMP_HG/plugins/)
[11:31:01] [Server thread/DEBUG]: #24 (1): require_once(string phar:///Applications/PMMP_HG/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

from hungergames-updated.

markkrueg avatar markkrueg commented on June 17, 2024

Thank you!!! Much appreciated.

from hungergames-updated.

xBeastMode avatar xBeastMode commented on June 17, 2024

No problem.

from hungergames-updated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.