Cuberite Forum
Working on Portals, related questions - 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: Working on Portals, related questions (/thread-551.html)

Pages: 1 2 3 4 5


RE: Working on Portals, related questions - xoft - 09-07-2012

That has been addressed in rev 841, so rev 842 should be good.


RE: Working on Portals, related questions - Taugeshtu - 09-07-2012

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?


RE: Working on Portals, related questions - FakeTruth - 09-07-2012

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


RE: Working on Portals, related questions - Taugeshtu - 09-07-2012

Al right, this is totally cool:
http://rghost.ru/40225174/image.png
One leftclick, one rightclick. WHY, for Random sake, second fantom rightclick appears?!


RE: Working on Portals, related questions - NiLSPACE - 09-07-2012

ye i had that to when i tried your uploaded version :O


RE: Working on Portals, related questions - FakeTruth - 09-07-2012

(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


RE: Working on Portals, related questions - Taugeshtu - 09-07-2012

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)


RE: Working on Portals, related questions - NiLSPACE - 09-07-2012

are you sure? look at the coords they are to far away to rightclick in the air.


RE: Working on Portals, related questions - xoft - 09-07-2012

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


RE: Working on Portals, related questions - FakeTruth - 09-07-2012

(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