09-07-2012, 04:32 AM
09-07-2012, 04:50 AM
New problem:
results:
Code:
local _check_cuboid = cCuboid()
_check_cuboid = cCuboid:Sort(_check_cuboid)
Quote:Plugins/Portal/portal_functions.lua:104: error in function 'Sort'.What I did wrong?
argument #1 is 'class cCuboid'; 'cCuboid' expected.
09-07-2012, 04:52 AM
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
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
09-07-2012, 05:17 AM
Al right, this is totally cool:
http://rghost.ru/40225174/image.png
One leftclick, one rightclick. WHY, for Random sake, second fantom rightclick appears?!
http://rghost.ru/40225174/image.png
One leftclick, one rightclick. WHY, for Random sake, second fantom rightclick appears?!
09-07-2012, 05:22 AM
ye i had that to when i tried your uploaded version :O
09-07-2012, 05:25 AM
(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
09-07-2012, 05:29 AM
Quote:Looks like the client thinks you're rightclicking in the air. I blame NotchI 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 it

09-07-2012, 05:29 AM
are you sure? look at the coords they are to far away to rightclick in the air.
09-07-2012, 05:39 AM
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 server
Rev 836 had problems parsing rightclicks, so the second rclk actually never made it to the server

09-07-2012, 05:44 AM
(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