Author Topic: Stopping gencircle mod  (Read 1373 times)

if you posted the code so I could see it then I could help you with that
Code: [Select]
deActivatePackage("circlecmd");
package circlecmd
{
function NMH_Type::send( %this )
{
%value = %this.getValue();
%length = strLen( $MessagePrefix );
if(strlwr(getWord(%value, 0)) $= "gencircle")
{
genCircle(getWord(%value, 1));
%this.setValue( "" );
}
else if(strlwr(getWord(%value, 0)) $= "gencirclein")
{
genCircleIn(getWord(%value, 1));
%this.setValue( "" );
}
else if(strlwr(getWord(%value, 0)) $= "gencircleout")
{
genCircleOut(getWord(%value, 1));
%this.setValue( "" );
}
parent::send( %this );
}
};
activatePackage("circlecmd");

function between(%num, %min, %max)
{
if(%num >= %min & %num <= %max)
{
return 1;
}
else
{
return 0;
}
}

function genCircle(%sizeb, %xx, %yy, %curx, %cury, %brickpos)
{
%oldbrickpos = %brickpos;
if(%xx $= "")
{
%xx = 0.5;
%yy = 0.5;
}
if(%sizeb > 0)
{
%size = %sizeb-1;
if(%brickpos $= "")
{
%brickpos = "0 0 0";
}
if(%curx $= "")
{
%curx = 0;
%cury = 0;
}
if(%curx > %size)
{
%cury++;
%curx = 0;
}
%dist = VectorDist(%size/2 SPC %size/2 SPC 0, %curx SPC %cury SPC 0);
if(between(%dist, %size/2-%xx, %size/2+%yy))
{
%change = vectorSub(%brickpos, %curx SPC %cury SPC 0);
%brickpos = %curx SPC %cury SPC 0;
commandToServer('supershiftbrick', -getWord(%change, 0), getWord(%change, 1), 0);
plantBrick(1);
plantBrick(0);
}
if(%cury <= %size)
{
schedule(5, 0, genCircle, %sizeb, %xx, %yy, %curx+1, %cury, %brickpos);
}
else
{
commandToServer('superShiftBrick', -getWord(%brickpos, 0), getWord(%brickpos, 1), 0);
}
}
}

function genCircleOut(%size)
{
genCircle(%size, 0.5, 10000000);
}

function genCircleIn(%size)
{
genCircle(%size, 10000000, 0.5);
}

"placed the brick"

so is it client-sided or not?
if it is this would work

It is client sided, but I have a Mac that has no numpad at all, not even the one that is supposed to be in the general vicinity around J and K that requires numlock to be on. And i don't have a numlock button so thats out of the question.

It is client sided, but I have a Mac that has no numpad at all, not even the one that is supposed to be in the general vicinity around J and K that requires numlock to be on. And i don't have a numlock button so thats out of the question.

Then press the key bound to "Cancel Ghost Brick"?

Then press the key bound to "Cancel Ghost Brick"?
it would still be sending commands to shift bricks and everything until it finishes

so it would be a solution if you wanted to stop building anything but it wouldn't help if you just wanted to stop building the circle

and unfortunately this mod is badly coded and so the only way to stop it ingame is to break it

place a bunch of baseplates where you want the circle to go and generate the circle on the baseplates so if it were to generate off the baseplates it would be floating, so it wouldnt place.

place a bunch of baseplates where you want the circle to go and generate the circle on the baseplates so if it were to generate off the baseplates it would be floating, so it wouldnt place.
thats what I did

it would still be sending commands to shift bricks and everything until it finishes

so it would be a solution if you wanted to stop building anything but it wouldn't help if you just wanted to stop building the circle

and unfortunately this mod is badly coded and so the only way to stop it ingame is to break it
thats exactly what happened when i tried what Port said.