Item problems - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Item problems (/thread-393.html) Pages:
1
2
|
Item problems - distroyed123 - 03-14-2012 in the part where you type in /i or /item number or a name is messing up, i might have messed something up but i cant find it and it helps when some one else looks it over Thanks in advance!!! Quote:function HandleItemCommand( Split, Player )BELOW IS THE ERROR! 20:53:59] Entity #35 (cPlayer) at [19 0 13] spawning for player "justin" [20:53:59] Spawning player "justin" at {309.59, 60.00, 218.83} [20:54:08] 1. Stack size: 0 [20:54:08] 2. Stack size: 1 [20:54:08] 3. Stack size: 2 [20:54:08] Calling bound function! [20:54:08] -- Plugins/Core.lua:359: attempt to call global 'isValidItem' (a nil value) [20:54:08] error. Stack size: 0 [20:54:21] 1. Stack size: 0 [20:54:21] 2. Stack size: 1 [20:54:21] 3. Stack size: 2 [20:54:21] Calling bound function! [20:54:21] -- Plugins/Core.lua:348: attempt to call global 'isValidItem' (a nil value) [20:54:21] error. Stack size: 0 [20:54:24] Received d/c packet from "justin" [20:54:24] Deleting client "justin" [20:54:24] ClientHandle at 0468B008 destroyed [20:54:24] Destroying entity #35 [20:54:24] DESTROY WINDOW [20:54:24] DESTROY WINDOW [20:54:24] Deleting entity 35 at pos {309.59, 218.83} ~ [19, 13]; ptr 04231D08 RE: Item problems - FakeTruth - 03-14-2012 It should be IsValidItem with capital I RE: Item problems - distroyed123 - 03-15-2012 (03-14-2012, 08:52 PM)FakeTruth Wrote: It should be IsValidItem with capital IRofl, thanks but im having another issue now its not showing players in game and is failing to call the GetAllPlayers function Code: [23:51:19] Streaming chunks centered on [26, 13] Code: function HandlePlayerListCommand( Split, Player ) now im not sure if that is a reason why its messing up but in game when someone joins it dosnt show them in game or on the list when you press tab, but the server acknowledges them being there and it ticks and what not. if i try to warp them to me, give them something, or teleport to them i cant. it says the player cannot be found, or it just dosnt do anything i turned off all the plugins other than the ones contained within the core.lua by the way thats the segment thats calling the error so far the map also only generates the beginning area, it dosnt go beyond that it just drops off to nothing RE: Item problems - xoft - 03-15-2012 Whoa, slow down, too many problems in a single sentence, how are we to answer to all of them? First of all, what revision of MCS are you using? World::GetAllPlayers() has been deprecated for some time (rev ~250) and is actually not implemented anymore in the recent versions of MCS (since rev 260), simply because it's incompatible with multithreading. You should be using World::ForEachPlayer() with a callback Lua function as a parameter. There should be an example of this in the Core plugin. Player entities not showing to other players is a known bug and is being worked on. World not being generated is weird, that hasn't happenned to anyone yet. Can you confirm that it's actually not generating? The server log should contain messages "Generating chunk [X, Z]" if it actually generates the chunks. Also, there's a new Flat generator that, by default, generates a flat plain very low, aren't you seeing that instead? RE: Item problems - FakeTruth - 03-15-2012 You're using a deprecated Core plugin, grab a new one from the repository RE: Item problems - distroyed123 - 03-16-2012 yea im sure its not generating the flat, the logs show its not generating as well. when starting up a new mab after deleting the other one it loads the starting area of the spawn and i can do what ever i want in that but the world drops off to nothingness, ie infinite drop off all the way down and then past bedrock. which version of the server is the best to have right now. DL link? and hah i know i havnt been here in a while im trying to get caught up =P so if its out of date im sorry LOL. i think i downloaded the R300 but its SoooO unstable crashes alot. player seeing player bug dont know if it helps but if player joins>i cant see them they can see me>i relog>i see them standing still(while there moving around and such) i can punch and kill them while there standing still and kill thm while there running around elsewhere and they will die/get hurt.>then if they relog its vise versa RE: Item problems - xoft - 03-16-2012 Rev 300 is pretty outdated, we're at rev 415 now. However, there hasn't been a "stable build" since rev 236. We're providing nightly builds for Windows and they mostly work, and mostly better than the last stable, but there are still known (and unknown) problems. Forum thread https://forum.cuberite.org/showthread.php?tid=354 has the nightbuild download link. RE: Item problems - distroyed123 - 03-17-2012 thanks, Zoft +thanks In the downloaded .7z the plugins for the core are all separated in the core folder, to i have to combine them all into the main.lua then call the main.lua plugin in the settings, or would it allow me to call them individually? RE: Item problems - FakeTruth - 03-17-2012 It's the new plugin style. You put the folder name in the settings.ini now, see the example settings RE: Item problems - distroyed123 - 03-17-2012 (03-17-2012, 02:44 AM)FakeTruth Wrote: It's the new plugin style. You put the folder name in the settings.ini now, see the example settings alright. a thing to note/mention for the future RUN the server with ADMIN rights!! lolzz idk why without it on my machine win7x64 it wount access the folder the plugin are in when in default. when in admin it does. |