StephanToGo / Minecraft-Pocket-Edition

Server and more...
25 stars 11 forks source link

HungerGames #2

Closed BobbyTowers closed 9 years ago

BobbyTowers commented 9 years ago

Im getting this error when building phar

[21:11:57] [Server thread/INFO]: Loading pocketmine.yml... [21:11:57] [Server thread/INFO]: Loading server properties... [21:11:57] [Server thread/INFO]: Selected English (eng) as the base language [21:11:57] [Server thread/INFO]: Starting Minecraft: PE server version v0.11.0 alpha [21:11:57] [Server thread/INFO]: Opening server on 0.0.0.0:19136 [21:11:58] [Server thread/INFO]: This server is running PocketMine-MP version 1.5dev-1258 "活発(Kappatsu)フグ(Fugu)" (API 1.12.0) [21:11:58] [Server thread/INFO]: PocketMine-MP is distributed under the LGPL License [21:11:59] [Server thread/INFO]: Loading DevTools v1.10.0 [21:11:59] [Server thread/INFO]: Enabling DevTools v1.10.0 [21:11:59] [Server thread/INFO]: Loading source plugin SurvivalHiveHungergames v1 [21:11:59] [Server thread/INFO]: [DevTools] Registered folder plugin loader [21:11:59] [Server thread/INFO]: Enabling SurvivalHiveHungergames v1 [21:11:59] [Server thread/INFO]: [SurvivalHiveHungergames] SurvivalHive Hungergames loaded! [21:11:59] [Server thread/INFO]: Preparing level "world" [21:12:01] [Server thread/INFO]: Starting GS4 status listener [21:12:01] [Server thread/INFO]: Setting query port to 19136 [21:12:01] [Server thread/INFO]: Query running on 0.0.0.0:19136 [21:12:01] [Server thread/INFO]: Default game type: Survival Mode

makeplugin SurvivalHiveHungergames [21:12:13] [Server thread/INFO]: [DevTools] Adding config.yml [21:12:13] [Server thread/INFO]: [DevTools] Adding plugin.yml [21:12:13] [Server thread/INFO]: [DevTools] Adding src/main/minigame.php [21:12:13] [Server thread/INFO]: Phar plugin SurvivalHiveHungergames v1 has been created on C:\Users\BobbyFoo\Downloads\PocketMine-MP\plugins\DevTools/\SurvivalHiveHungergames_v1.phar stop [21:12:17] [Server thread/INFO]: [CONSOLE: Stopping the server] [21:12:17] [Server thread/INFO]: Disabling DevTools v1.10.0 [21:12:17] [Server thread/INFO]: Disabling SurvivalHiveHungergames v1 [21:12:17] [Server thread/NOTICE]: UndefinedVariableException: "Undefined variable: level" (E_NOTICE) in "/SurvivalHiveHungergames/src/main/minigame" at line 2056 [21:12:17] [Server thread/INFO]: Unloading level "world" [21:12:17] [Server thread/INFO]: Stopping other threads bin\php\php.exe: Segmentation fault

AndreyNazarchuk commented 9 years ago

Then define $level on line 2055

StephanToGo commented 9 years ago

it is

$level = $this->arena3name; please check your config file from plugin...

i udpdated the source code... please try it with this -> new default config -> levels/arenas will now load automaticly

Jelly9912 commented 9 years ago

My server using devtools and zip plugin loader and your hunger games plugin and when i join on server then was stopped

Jelly9912 commented 9 years ago

Ok, now i can join but ..."Undefined offset: 1" (E_NOTICE) in "myzip:///SurvivalHiveHungergames.zip#SurvivalHiveHungergames/src/main/minigame" at line 149 12:02:24 [CRITICAL] Could not execute task main\sgworldborder: Undefined offset: 1 12:02:24 [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 1" (E_NOTICE) in "myzip:///SurvivalHiveHungergames.zip#SurvivalHiveHungergames/src/main/minigame" at line 149 12:02:26 [CRITICAL] Could not execute task main\sgworldborder: Undefined offset: 1 12:02:26 [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 1" (E_NOTICE) in "myzip:///SurvivalHiveHungergames.zip#SurvivalHiveHungergames/src/main/minigame" at line 149 12:02:28 [CRITICAL] Could not execute task main\sgworldborder: Undefined offset: 1 12:02:28 [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 1" (E_NOTICE) in "myzip:///SurvivalHiveHungergames.zip#SurvivalHiveHungergames/src/main/minigame" at line 149 12:02:30 [CRITICAL] Could not execute task main\sgworldborder: Undefined offset: 1 12:02:30 [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 1" (E_NOTICE) in "myzip:///SurvivalHiveHungergames.zip#SurvivalHiveHungergames/src/main/minigame" at line 149

And when the time counts down to the start of the game, nothing happens. You can tell me, how i should do this step by step?

mariusbjornor commented 9 years ago

I would recommend to use plugin from folder or phar file.. Be aware that you may need to edit the preloaded config file. This is since the preloaded config file uses its own arena coordinates.. You can manually point in your arena coordinates in config file. Also if you dont edit the config file and join server and spawn WAY OUTSIDE the arena coordinates, server may crash.

mariusbjornor commented 9 years ago

Example of config file arena settings: Lobby: hungergames <-- This is lobby name and can be changed into a world you already have created. LobbyPos1: "106,64,152" <-- This coordinate you can change and restart server LobbyPos2: "150,75,104" <-- This coordinate you can change and restart server

If you spawn a player outside, ex in location 160,75,104 (thats 10 outside) It may cause problem, since the plugin only bounce player back 3-5 blocks.

To test if server work with plugin i recommend testing with arena coordinates like this: Lobby: hungergames LobbyPos1: "-500,0,-500" LobbyPos2: "500,128,500" Arena1: arena1 Arena1Pos1: "-500,0,-500" Arena1Pos2: "500,128,500" Arena2: arena2 Arena2Pos1: "-500,0,-500" Arena2Pos2: "500,128,500" Arena3: arena3 Arena3Pos1: "-500,0,-500" Arena3Pos2: "500,128,500" Arena4: arena4 Arena4Pos1: "-500,0,-500" Arena4Pos2: "500,128,500" Arena5: arena5 Arena5Pos1: "-500,0,-500" Arena5Pos2: "500,128,500"

Then there is barely chance that you spawn outside..

Jelly9912 commented 9 years ago

How many i can set positions on one arena ?

mariusbjornor commented 9 years ago
you only set two positions on each arena. one in each opposite corner.. (1)here ___
__ here (2)

see what i meen?

In corner 1 you do X and Z your own and Y=0 <--- Lowest pos in a world In corner 2 you do X and Z your own and Y=128 <--- Highest pos in a world

ex. X,Y,Z pos1: -500,0,-500 pos2: 500,128,500

then you will get an arena of 1000 blocks wide and 1000 blocks long and hight will be from 0-128

Jelly9912 commented 9 years ago

Ok thx, now i understand :D

mariusbjornor commented 9 years ago

@SurvivalHive you can close this issue now....

Jelly9912 commented 9 years ago

This is not mine issue :P

mariusbjornor commented 9 years ago

That i know @Taytan9912 :+1:

Jelly9912 commented 9 years ago

I'm blind 😂