Comments (18)
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.
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.
Are you testing alone? I know the plugin has bugs with Genisys.
from hungergames-updated.
I tried it with pocketmine and got same issue
from hungergames-updated.
I'll get the error in a bit
from hungergames-updated.
[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.
Try this release: https://github.com/InfinityGamers/HungerGames-UPDATED/releases/tag/Build%2316-fixed
from hungergames-updated.
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.
Alright. I'm going to have to focus on this plugin cause new bugs keep appearing.
from hungergames-updated.
Ok thanks
from hungergames-updated.
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.
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.
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.
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.
Alright, thanks !
from hungergames-updated.
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.
Thank you!!! Much appreciated.
from hungergames-updated.
No problem.
from hungergames-updated.
Related Issues (20)
- Help!!! HOT 7
- request HOT 2
- Inventory issues HOT 1
- Map Reset Doesn't work, no matter what HOT 3
- Adding Items to each game. HOT 2
- please update HOT 1
- EXCEPTION HOT 1
- Update to 3.0.0+ HOT 1
- client crash
- improvement suggestion
- Player Move issue
- Crash!
- Joining world causes server crash HOT 1
- Game stopping after gametime has passed. HOT 1
- Support for Plugin HOT 3
- The Server crashes after the death match!!! HOT 4
- Crash /hg add HOT 1
- SUGGESTION
- Question HOT 6
- Hunger games
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hungergames-updated.