Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Port

Pages: 1 ... 1012 1013 1014 1015 1016 [1017] 1018 1019 1020 1021 1022 ... 1041
15241
Modification Help / Re: miniGameCanDamage not being invoked + other stuff
« on: January 06, 2012, 11:54:04 AM »
I have tried this method for fixing miniGameCanDamage:
Code: [Select]
function fixMiniGameCanDamage()
{
%owner = new AIConnection()
{
name = "";
bl_id = -1;
};

%miniGame = createMiniGameSO( %owner, "Temporary Mini-Game", false, true );
%miniGame.endGame();

if ( isObject( %miniGame ) )
{
%miniGame.delete();
}

%owner.delete();
}

From this, I got an error somewhat like the following, and miniGameCanDamage also wasn't fixed:
ERROR: miniGameSO::addMember - object "something" is not a client.  This method is for adding clients to the minigame only.

I have also tried with a gameConnection, which you indeed can manually create server-sided. This works fine, except the server crashes when it attempts to create a mini-game with the virtual client. I'm now going to try this method again, except this time I'll prevent network-related actions on this virtual client.

15242
Modification Help / Re: Client Team Chat
« on: January 06, 2012, 10:47:55 AM »
I don't have the arguments at the moment, but the specific functions are NMH_Type::send, TeamChat and commandToServer.

15243
Modification Help / miniGameCanDamage not being invoked + other stuff
« on: January 06, 2012, 10:42:31 AM »
I have noticed something rather odd while trying to modify the mini-game system.

miniGameCanDamage( obj, col ) is not invoked (called, executed, whatever) when damage should be applied unless a mini-game is currently active or has ever been active. Is there anything I can do to make this function run at any time?



Another question: What is the best way to determine the client of an object of pretty much any type, including but not limited to players, bots, projectiles, explosions, bricks, items and vehicles?

15244
Add-Ons / Re: Public Building Baseplates (v1.5)
« on: January 06, 2012, 09:21:25 AM »
Okay, I'll work on toggling individual permissions instead of trust level.

15245
3D Modelling, Building and Mapping/Creating Interiors.

15246
Suggestions & Requests / Re: Side Scrolling Player
« on: January 06, 2012, 04:47:03 AM »
You can rotate the camera on the Z axis client-sided. Maybe some server+client mod? Although, that would let the client bypass it (not implying they couldn't before).

15247
Modification Help / Re: initContainerBoxSearch units
« on: January 06, 2012, 03:50:42 AM »
That is rather odd. I tried using 3 0.5 2.4, but players that are even approximately 6 studs away are killed too from this code:
Code: [Select]
datablock fxDTSBrickData( brickSawBladeShapeData : brick1x6x5Data )
{
category = "Wario Ware";
subCategory = "Micro-Games";
uiName = "Sawblade";

brickSizeX = 1;
brickSizeY = 6;
brickSizeZ = 4;
brickFile = "./1x6x4.blb";
};

function brickSawBladeShapeData::onPlant( %this, %obj )
{
%obj.sawBlade = new staticShape()
{
position = %obj.position;
rotation = rotateVector( %obj.rotation, 3 );
datablock = sawBladeShapeData;
};

missionCleanup.add( %obj.sawBlade );

%obj.setRendering( false );
%obj.setColliding( false );
%obj.setRayCasting( false );
}

function brickSawBladeShapeData::onRemove( %this, %obj )
{
if ( isObject( %saw = %obj.sawBlade ) )
{
%saw.delete();
}
}

datablock staticShapeData( sawBladeShapeData )
{
shapeFile = "Add-Ons/System_WarioWare/shapes/sawblade.dts";

doColorShift = true;
colorShiftColor = "0.4 0.4 0.4 1";
};

function sawBladeShapeData::onAdd( %this, %obj )
{
%start = getWords( %obj.getTransform(), 0, 2 );
%rotation = vectorNormalize( axisToEuler( getWords( %obj.getTransform(), 3, 6 ) ) );
%interval = 25;
%speed = 0.075;
%maxDistance = 8;

%rota = getWord( %rotation, 0 );
%rotb = getWord( %rotation, 1 );

if ( mAbs( %rota ) > mAbs( %rotb ) )
{
if ( %roab > 0 )
{
%rotation = 3;
}
else
{
%rotation = 1;
}
}
else
{
if ( %rotb > 0 )
{
%rotation = 2;
}
else
{
%rotation = 0;
}
}

switch ( %rotation )
{
case 0: %offset = vectorScale( "1 0 0", %speed );
case 1: %offset = vectorScale( "0 1 0", %speed );
case 2: %offset = vectorScale( "-1 0 0", %speed );
case 3: %offset = vectorScale( "0 -1 0", %speed );
}

%this.sawMove( %obj, %start, %offset, 0, %maxDistance, 1, %interval );
}

function sawBladeShapeData::onCollision( %this, %obj, %col )
{
if ( %col.getClassName() $= "player" )
{
%col.setVelocity( vectorScale( vectorSub( %col.getPosition(), %obj.getPosition() ), 6 ) );
%col.hideNode( "headSkin" );
%col.kill();
}
}

function sawBladeShapeData::sawMove( %this, %obj, %start, %offset, %index, %limit, %direction, %interval )
{
cancel( %obj.sawMove );
// echo( "sawBladeShapeData::sawMove - " @ %index SPC %direction SPC %offset SPC vectorAdd( %start, vectorScale( %offset, %index ) ) );

if ( !isObject( %obj ) )
{
return;
}

if ( vectorDist( %start, %obj.getPosition() ) >= %limit && %direction == 1 )
{
%direction = -1;
}

if ( %index <= 0 && %direction == -1 )
{
%direction = 1;
}

%obj.setTransform( vectorAdd( %start, vectorScale( %offset, %index ) ) );
initContainerBoxSearch( %obj.getPosition(), "3 0.5 2.4", $TypeMasks::PlayerObjectType );

while ( isObject( %col = containerSearchNext() ) )
{
%this.onCollision( %obj, %col );
}

%obj.sawMove = %this.schedule( %interval, sawMove, %obj, %start, %offset, %index + %direction, %limit, %direction, %interval );
}

15248
Just in case anyone else except Demian wants this but hasn't checked in the add-ons board:
http://forum.blockland.us/index.php?topic=181308.0

15249
Modification Help / Re: initContainerBoxSearch units
« on: January 06, 2012, 01:11:53 AM »
What exact value should I use for a 6x1x4 brick?

15250
Modification Help / Re: initContainerBoxSearch units
« on: January 05, 2012, 02:50:05 PM »
That topic does not specify what units it is in.

15251
Modification Help / initContainerBoxSearch units
« on: January 05, 2012, 02:28:35 PM »
What are the units for initContainerBoxSearch? They seem to be some strange thing like bounding boxes. For examples, 3 0.5 2, which should be the size of a 6x4 brick, seems to be some really huge thing like a 16x cube or something.

15252
Suggestions & Requests / Re: Wario Ware server
« on: January 05, 2012, 01:20:10 PM »
That looks great! I'll be testing that right away.

15253
Add-Ons / Re: Public Building Baseplates (v1.5)
« on: January 05, 2012, 11:24:30 AM »
Version 1.5 of this add-on has been released. Please re-download.

The changes are:
  • Added RTB preferences for controlling admin requirements and the utilized trust level.

15254
Add-Ons / Re: Public Building Baseplates
« on: January 05, 2012, 11:09:30 AM »
Fixed the OP. Changed "full" to "build" at the section explaining how they react.

Can you toggle some limitations like no wanding from server properties? Does it even have any?

Only "You" trust allows wanding. Although, you can wand your bricks built on these unless the baseplate is in some way supported by your bricks.

15255
Suggestions & Requests / Re: Wario Ware server
« on: January 05, 2012, 11:07:41 AM »
Well, I would prefer to use a barrel. Also, I know. I'll incorporate a word/color game in near future.
By the way, if Crystalwarrior keeps failing (no collision, really tiny and only visible from one side) keeps failing at modelling a sawblade (this should be for a staticShape), could you make one?

Pages: 1 ... 1012 1013 1014 1015 1016 [1017] 1018 1019 1020 1021 1022 ... 1041