Cuberite Forum

Full Version: Working on Portals, related questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
That has been addressed in rev 841, so rev 842 should be good.
New problem:
Code:
local _check_cuboid = cCuboid()
_check_cuboid = cCuboid:Sort(_check_cuboid)
results:
Quote:Plugins/Portal/portal_functions.lua:104: error in function 'Sort'.
argument #1 is 'class cCuboid'; 'cCuboid' expected.
What I did wrong?
You're using Sort as if it is a static function (calling on a class), while you should actually call it on a cCuboid object.

So you should use _check_cuboid:Sort() instead


Also, all this function does is make sure the p1 coordinates are all lower values than the p2 coordinates. This will make sure the IsInside() functions work
Al right, this is totally cool:
http://rghost.ru/40225174/image.png
One leftclick, one rightclick. WHY, for Random sake, second fantom rightclick appears?!
ye i had that to when i tried your uploaded version :O
(09-07-2012, 05:17 AM)Taugeshtu Wrote: [ -> ]Al right, this is totally cool:
http://rghost.ru/40225174/image.png
One leftclick, one rightclick. WHY, for Random sake, second fantom rightclick appears?!

Looks like the client thinks you're rightclicking in the air. I blame Notch
Quote:Looks like the client thinks you're rightclicking in the air. I blame Notch
I suggest to correct it on serverside. Or we may log rightclick packets (somehow) to see if this is really client's fault.

BTW, when I used r836 there was clearly just one rightclick. (probably, server hanged after itBig Grin)
are you sure? look at the coords they are to far away to rightclick in the air.
Actually, that is fully documented - when using tools, the client sends another packet with coords all set to -1. Same thing happens with lava buckets (resulting in the server placing the lava at [-1, 255, -1])
Rev 836 had problems parsing rightclicks, so the second rclk actually never made it to the serverTongue
(09-07-2012, 05:29 AM)STR_Warrior Wrote: [ -> ]are you sure? look at the coords they are to far away to rightclick in the air.

When clicking in the air all coords are -1
Pages: 1 2 3 4 5