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.


Topics - Aide33

Pages: 1 2 3 4 5 [6] 7 8 9 10 11
76
Modification Help / Got bad connected recieve event[SOLVED]
« on: July 27, 2013, 02:35:34 PM »
So I was trying to make a TCP socket server and connecting to it with another blockland client

I keep getting "Got bad connected recieve event" error every time I try to send data

Server:
Code: [Select]
$RPS::Port = 800;

function RPS::onLine(%this,%line)
{
echo(%line);
}

function toggleReciever(%bool)
{
   if(%bool)
   {
      if(!isObject(RPS))
      {
         new TCPObject(RPS);
         RPS.listen($RPS::Port);
      }
      else
      {
         error("Already on");
      }
   }
   else
   {
      if(isObject(RPS))
      {
         RPS.delete();
      }
      else
      {
         error("Nothing to turn off");
      }
   }
}


Client:
Code: [Select]
$BPS::Port = 800;
function BPS::onConnected(%this)
{
   %this.isConnected = true;
   if(%this.sendOnConnect !$= "")
      %this.send(%this.sendonconnect @ "\r\n");
}
function BPS::onDisconnect(%this)
{
   %this.isConnected = false;
}

function BPS::onConnectFailed(%this)
{
   %this.isConnected = false;
}

function BPS::onLine(%this,%line)
{
eval(%line);
}

function sayText(%str)
{
   if(!isObject(BPS))
   {
      new TCPObject(BPS);
      BPS.sendOnConnect = %str;
      BPS.connect("localhost:" @ $BPS::Port);
   }
   else
   {
      if(!BPS.isConnected)
      {
         BPS.sendOnConnect = %str;
         BPS.connect("localhost:" @ $BPS::Port);
      }
      else
      {
         BPS.send(%str @ "\r\n");
      }
   }
}


77
Modification Help / How do I set a players avatar on spawn?
« on: July 26, 2013, 10:20:26 AM »
This is what I've tried so far, I have no idea what I'm doing
Code: [Select]
package outfits
{
function Armor::onAdd(%data,%obj)
{
parent::onAdd(%data,%obj);
//echo("windloop");
//echo(%obj);
%rand = getRandom(1,12);
%obj.llegColor =  "0 0.141 0.333 1";
%obj.secondPackColor =  "1 0.878 0.612 1";
%obj.lhand =  "0";
%obj.hip =  "0";
%obj.faceName =  "smiley";
//red
if(%rand < 4 )
{
%obj.rarmColor =  "1 0 0 1";
%obj.larmColor =  "1 0 0 1";
%obj.hatColor =  "1 0 0 1";
%obj.chestColor =  "1 0 0 1";
}
//blue
else if(%rand < 4 && %rand > 8)
{
%obj.rarmColor =  "0.200 0 0.800 1";
%obj.larmColor =  "0.200 0 0.800 1";
%obj.hatColor =  "0.200 0 0.800 1";
%obj.chestColor =  "0.200 0 0.800 1";
}
//white
else if(%rand < 8)
{
%obj.rarmColor =  "1 1 1 1";
%obj.larmColor =  "1 1 1 1";
%obj.hatColor =  "1 1 1 1";
%obj.chestColor =  "1 1 1 1";
}

%obj.hipColor =  "0 0.141 0.333 1";
%obj.chest =  "0";
%obj.rarm =  "0";
%obj.packColor =  "0.2 0 0.8 1";
%obj.pack =  "0";
%obj.decalName =  "blank";
%obj.secondPack =  "0";
%obj.larm =  "0";
%obj.accentColor =  "0.078 0.078 0.078 1";
%obj.rhandColor =  "1 0.878 0.612 1";
%obj.rleg =  "0";
%obj.rlegColor =  "0 0.141 0.333 1";
%obj.accent =  "1";
%obj.headColor =  "1 0.878 0.612 1";
%obj.rhand =  "0";
%obj.lleg =  "0";
%obj.lhandColor =  "1 0.878 0.612 1";
%obj.hat =  "1";

%obj.client.ApplyBodyParts(%obj);
%obj.client.ApplyBodyColors(%obj);
}

};
activatepackage(outfits);

78
General Discussion / COMMANDER NICK'S REDBULL SKYDIVING XTREME v.1337
« on: July 24, 2013, 11:50:07 AM »
DO YOU LIKE SKYDIVING?
DO YOU LIKE GUNS?

WELL HAVE I GOT THE SERVER FOR YOU

COMMANDER NICKS SKYDIVING XTREME YOLO SWAG EDITION v.1337 IS THE PLACE FOR YOU!

YOUR SORRY ASS STARTS UP ON THIS PLATFORM OVER 16000 BRICKS HIGH

AFTER THAT THE DROPZONE PLATE DISAPPEARS, SIMPLE NO?

AS YOU FALL TO YOUR DEATH WITH NOTHING BUT A FREAKING PARACHUTE, YOU RECEIVE A HIGH QUALITY ASSAULT RIFLE TO BLAST YOUR OPPONENTS ASSES.

THE GOAL IS SIMPLE, LAND ON THE TARGET BEFORE ANYONE ELSE, UNDERSTOOD?


GOOD. NOW JOIN MAGGOT.


WE ARE ALSO SPONSORED BY REDBULL



please note that this server is in beta, I'll be adding more features in the future, I just want to test the concept

79
Suggestions & Requests / ACCEPTING REQUESTS
« on: July 19, 2013, 09:00:09 AM »
no modeled requests unless you give me a model

I can do pretty much anything, so ya

80
Add-Ons / Gear Bot v.1.1[UPDATE][AS SEEN IN MODIFICATIONS DISC.]
« on: July 14, 2013, 05:56:08 PM »
Make an add-on that's actually just a bot dressed as Gear with a name tag 'Gear' above it that tries to brown townly rape you with a spes maroon chainsword unless you feed him bratwurst every 5 minutes pls.

Made by request, I present to you the Gear bot!


Features:
  • Name tag that says "Gear" above the head(Can be disables through RTB pref if it bugs up)
  • Spawns with a chainsword if Weapon_WH40k is installed
  • has 300 health
  • tries to take your virginity with the chainsword if your in a minigame
  • LOOKS EXACTLY LIKE GEAR!!!




Please report any bugs below
if the tags get stuck in mid air use /cleargeartags and respawn the bots
HAVE FUN

"I approve this add-on... Also yay for horrible inside-jokes."
~Gear~

81




146 years of beavers, apologies, maple syrup and hockey!

82
Modification Help / Make a bot bounce
« on: June 13, 2013, 03:18:42 PM »
How would I make a bot bounce off a wall like the pong projectile does?

83
Off Topic / Apple iOS 7
« on: June 11, 2013, 05:18:16 PM »
holy stuff this is so awesome

apple has reaaaaallyy made up for ios6

http://www.apple.com/ios/ios7/

84
Suggestions & Requests / Need some models
« on: June 09, 2013, 11:14:42 AM »
I need some models for a project that I'm working on

They all need to be .dts and must look blocklandish

What I want
  • crashed helicopter (make this have collision so I can make it a static shape)
  • blocky ghillie suit
  • as50 that can scope
  • tent (no collision)

I'll tell you if I need more models

85
Modification Help / Playertype velocity problems
« on: June 04, 2013, 03:52:40 PM »
%p = new AIPlayer()
{
   dataBlock = PuckArmor;
   position = %obj.getMuzzlePoint(%slot);
   sourceObject = %obj;
   sourceSlot = %slot;
};
%p.setVelocity(%vel);

why doesn't this work

base/server/scripts/allGameScripts.cs (11100): Unable to find object: '17021' at
tempting to call function 'setRepairRate'
BackTrace: ->HockeyStickWPuckImage::onFire->PuckArmor::onAdd->[BotHolePackage]ar
mor::onAdd->[sportBallsPackage]armor::onAdd->armor::onAdd
%
%
Add-Ons/Item_Hockey/Item_HockeyStick.cs (221): Unable to find object: '17021' at
tempting to call function 'setVelocity'
BackTrace: ->HockeyStickWPuckImage::onFire


figured this out

and how does one detect when PuckArmor is clicked?


86
Modification Help / Low Friction Projectile
« on: May 27, 2013, 04:52:29 PM »
Code: [Select]
datablock ProjectileData(PuckProjectile)
{
sportBallImage = "PuckImage";
projectileShapeName = "./puck.dts";
explosion           = "";
bounceExplosion     = "";
particleEmitter     = ballTrailEmitter;
explodeOnDeath = true;

brickExplosionRadius = 0;
brickExplosionImpact = 0;             //destroy a brick if we hit it directly?
brickExplosionForce  = 0;            
brickExplosionMaxVolume = 0;          //max volume of bricks that we can destroy
brickExplosionMaxVolumeFloating = 0;  //max volume of bricks that we can destroy if they aren't connected to the ground (should always be >= brickExplosionMaxVolume)

sound = "";

muzzleVelocity      = 0;
    restVelocity        = 0;
velInheritFactor    = 1.0;

armingDelay         = 12000;
lifetime            = 60000;
fadeDelay           = 11500;
bounceElasticity    = 0.3;
bounceFriction      = 0;
isBallistic         = true;
gravityMod          = 1;

hasLight    = false;

uiName = "Hockey Puck";
};
How do I make this have less friction and slide across the ground?

and

whats wrong with this and why won't it work
Code: [Select]
function Armor::onCollision(%this, %obj, %col, %thing, %other)
{
if(isObject(%obj.client))
{
if(%col.getDatablock() == PlayerIceHockeyArmor.getID())
%col.setVelocity(vectorAdd(%col.getVelocity(),vectorScale(%player.getVelocity,$Push::Amount)));
}
parent::OnCollision(%this, %obj, %col, %thing, %other);
}
it's in a package btw

it spams the console with onCollision is an unknown command

87
Modification Help / Texture error
« on: May 17, 2013, 09:41:09 AM »
I seem to be having the same problem as in this thread:
http://forum.blockland.us/index.php?topic=191491.0
though he doesn't tell how to fix it,
Code: [Select]
datablock TSShapeConstructor(PlayerIceHockeyDts)
{
baseShape  = "./animations/m.dts";
sequence0  = "./animations/m_root.dsq root";

sequence1  = "./animations/m_back.dsq run";
sequence2  = "./animations/m_back.dsq walk";
sequence3  = "./animations/m_back.dsq back";
sequence4  = "./animations/m_side.dsq side";

sequence5  = "./animations/m_root.dsq crouch";
sequence6  = "./animations/m_root.dsq crouchRun";
sequence7  = "./animations/m_root.dsq crouchBack";
sequence8  = "./animations/m_root.dsq crouchSide";

sequence9  = "./animations/m_look.dsq look";
sequence10 = "./animations/m_headside.dsq headside";
sequence11 = "./animations/m_headup.dsq headUp";

sequence12 = "./animations/m_root.dsq jump";
sequence13 = "./animations/m_root.dsq standjump";
sequence14 = "./animations/m_sit.dsq fall";
sequence15 = "./animations/m_root.dsq land";

sequence16 = "./animations/m_armattack.dsq armAttack";
sequence17 = "./animations/m_armreadyleft.dsq armReadyLeft";
sequence18 = "./animations/m_armreadyright.dsq armReadyRight";
sequence19 = "./animations/m_armreadyboth.dsq armReadyBoth";
sequence20 = "./animations/m_spearready.dsq spearready";  
sequence21 = "./animations/m_spearthrow.dsq spearThrow";

sequence22 = "./animations/m_talk.dsq talk";  

sequence23 = "./animations/m_death1.dsq death1";

sequence24 = "./animations/m_shiftup.dsq shiftUp";
sequence25 = "./animations/m_shiftdown.dsq shiftDown";
sequence26 = "./animations/m_shiftaway.dsq shiftAway";
sequence27 = "./animations/m_shiftto.dsq shiftTo";
sequence28 = "./animations/m_shiftleft.dsq shiftLeft";
sequence29 = "./animations/m_shiftright.dsq shiftRight";
sequence30 = "./animations/m_rotcw.dsq rotCW";
sequence31 = "./animations/m_rotccw.dsq rotCCW";

sequence32 = "./animations/m_undo.dsq undo";
sequence33 = "./animations/m_plant.dsq plant";

sequence34 = "./animations/m_sit.dsq sit";

sequence35 = "./animations/m_wrench.dsq wrench";

   sequence36 = "./animations/m_activate.dsq activate";
    sequence37 = "./animations/m_activate2.dsq activate2";

    sequence38 = "./animations/m_leftrecoil.dsq leftrecoil";
};

Oh and one question, can you make a player crouch through the server side and how so?

88
Drama / Whats going on to the servers
« on: May 09, 2013, 04:44:44 PM »


what what what


89
Off Topic / Mother Nature stahp
« on: April 13, 2013, 08:33:05 AM »
Guess what Mother Nature dropped by last night again:

I want it to be summer god dammit it's April

90
Modification Help / GUI won't stop resizing to fit the whole window
« on: April 08, 2013, 04:31:40 PM »
I keep setting to the extent 480 240 but it keeps resizing to the size of the whole window.
Code: [Select]
//--- OBJECT WRITE BEGIN ---
new GuiWindowCtrl(quickchat) {
   profile = "GuiWindowProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "420 280";
   minExtent = "420 280";
   enabled = "1";
   visible = "1";
   clipToParent = "1";
   text = "Quickchat";
   maxLength = "255";
   resizeWidth = "0";
   resizeHeight = "0";
   canMove = "1";
   canClose = "1";
   canMinimize = "0";
   canMaximize = "0";
   minSize = "50 50";
   closeCommand = "canvas.popDialog(quickchat);";

   new GuiTextEditCtrl(QCOne) {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 70";
      extent = "350 18";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      maxLength = "255";
      historySize = "0";
      password = "1";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl(QCTwo) {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 130";
      extent = "350 18";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl(QCThree) {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 190";
      extent = "350 18";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextCtrl(QCText1) {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 50";
      extent = "57 18";
      minExtent = "8 18";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      text = "Chat Msg 1:";
      maxLength = "255";
   };
   new GuiTextCtrl(QCText2) {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 110";
      extent = "57 18";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      text = "Chat Msg 2:";
      maxLength = "255";
   };
   new GuiTextCtrl(QCText3) {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "30 170";
      extent = "57 18";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      text = "Chat Msg 3:";
      maxLength = "255";
   };
   new GuiBitmapButtonCtrl(QCDone) {
      profile = "GuiDefaultProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "135 220";
      extent = "153 30";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      text = "                      Done";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "base/client/ui/button1";
      lockAspectRatio = "0";
      alignLeft = "0";
      alignTop = "0";
      overflowImage = "0";
      mKeepCached = "0";
      mColor = "255 255 255 255";
   };
};
//--- OBJECT WRITE END ---

Pages: 1 2 3 4 5 [6] 7 8 9 10 11