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 - Kyuande

Pages: 1 ... 394 395 396 397 398 [399] 400 401
5971
Off Topic / Re: Port fowarding help.
« on: July 16, 2015, 12:21:12 AM »
ty bb

I also just noticed in the OP's picture it says that it is disabled.

5972
Off Topic / Re: Port fowarding help.
« on: July 16, 2015, 12:18:09 AM »
Steps:
1. Run cmd.
2. Type ipconfig, find this:

3. On the cmd, also find your default gateway (which you have already done)
4. Make sure your server has the same port by doing echo($Server::Port);, also make sure UPnP is disabled.
5. When port forwarding, make sure you only do the same range with UDP. (Ex: I have 2 servers)

(Optional) 6. If you want to have a better chance of people connecting, try port triggering. People can send challenge requests and even ping my server after I port triggered. I don't think you need to make it UDP only, since "both" works fine for me.



5973
Add-Ons / Re: Commands Manager GUI [My First Add-On Ever]
« on: July 15, 2015, 11:11:49 PM »
It only sends the important stuff for the client to recognize. I haven't seen UI names sent. Just checked it, it seems things can have UI names, that's how the client uses the tool menu for names.
Tested some code by messing with default functions, it worked.
Echoes the group id found, class name and the UI name.
for(%i=0;%i<getDatablockGroupSize();%i++)if(getDataBlock(%i).uiName !$= "") echo(%i @ "(" @ getDataBlock(%i).getClassName() @ ") - " @ getDataBlock(%i).uiName);

Datablock UI names are sent, but not the actual name. You can still see if the duplicator/fill can exists on the server, though.

Edit #2: Yep!

function WeaponExists(%name)
{
   for(%i=0;%i<getDatablockGroupSize();%i++)
      if(getDataBlock(%i).uiName $= %name)
         return true;
   return false;
}



5974
Help / Re: How do I prevent players from spawning items?
« on: July 15, 2015, 09:49:28 PM »
If you want them to be completely erased, here are the 2 functions that possibly could prevent it.
function fxDtsBrick::SpawnItem(){}
function fxDtsBrick::SetItem(){}

5975
Off Topic / Re: New puppy emotions
« on: July 15, 2015, 09:42:47 PM »
You like the puppy so much :)

5976
Modification Help / Re: How do i detect the Sub catergory of a brick?
« on: July 15, 2015, 09:37:38 PM »
I'm kinda confused on what you're really trying to find. What are you looking for?

5977
Modification Help / Re: How do i detect the Sub catergory of a brick?
« on: July 15, 2015, 04:19:52 PM »
?? i already can find out if its hitting a brick type i need to see if its a brick sub category
Basically the datablock has the info of the category, ui name, and the place sub category.

5978
Drama / Re: Just your typical Boss Battles badmins
« on: July 15, 2015, 01:37:53 PM »
Oops, double quoted the wrong person.

5979
Drama / Re: Just your typical Boss Battles badmins
« on: July 15, 2015, 01:37:19 PM »
seriously what do you have against trinko, I've seen you mention your distaste for him being admin a while back
seriously what do you have against trinko, I've seen you mention your distaste for him being admin a while back
There's nothing wrong with him being an admin, there's probably someone way worse than him if you think of that?

5981
Hm, have you tried to open the file while blockland is up? (Not opening in blockland)

5982
There's a chance you might not have closed the object's read/write stream correctly. Have you looked at that?

5983
Modification Help / Re: Trigger isn't following the static shape?
« on: July 15, 2015, 04:08:49 AM »
I'll post some code tomorrow.

5984
Modification Help / Re: Get Vector's Axis Angle
« on: July 15, 2015, 04:06:27 AM »
These are from Boodals, are any of these functions good for your needs?

function eulerToVector(%ang)
{
   if(getWordCount(%ang) == 2) //Support for giving pitch and yaw, but not roll.
      %ang = getWord(%ang, 0) SPC "0" SPC getWord(%ang, 1);

   %yaw = mDegToRad(getWord(%ang, 2));
   %pitch = mDegToRad(getWord(%ang, 0));
   %x = mSin(%yaw) * mCos(%pitch) * -1;
   %y = mCos(%yaw) * mCos(%pitch);
   %z = mSin(%pitch);
   return %x SPC %y SPC %z;
}

function axisToVector(%ang)
{
   return eulerToVector(axisToEuler(%ang));
}

function vectorToEuler(%vec)
{
   %vec = vectorNormalize(%vec);
   %yaw   = mRadToDeg(mATan(getWord(%vec, 0) * -1, getWord(%vec, 1)));
   %pitch = mFloatLength(mRadToDeg(mATan(getWord(%vec, 2), vectorLen(getWords(%vec, 0, 1)))), 3);
   return %pitch SPC "0" SPC %yaw;
}

function vectorToAxis(%vec)
{
   return eulerToAxis(vectorToEuler(%vec));
}

function vectorRotateVector(%vec1, %vec2)
{
   return vectorRotateAxis(%vec1, vectorToAxis(%vec2));
}

function vectorRotateEuler(%vec, %euler)
{
   return vectorRotateAxis(%vec, eulerToAxis(%euler));
}

function vectorRotateAxis(%vec, %axis)
{
   %u["x"] = getword(%axis,0);
   %u["y"] = getword(%axis,1);
   %u["z"] = getword(%axis,2);

   %angl = getword(%axis,3) * -1;
   %cos = mcos(%angl);
   %sin = msin(%angl);

   %a[1,1] = %cos + (%u["x"] * %u["x"] * (1 - %cos));
   %a[1,2] = (%u["x"] * %u["y"] * (1 - %cos)) - (%u["z"] * %sin);
   %a[1,3] = (%u["x"] * %u["z"] * (1 - %cos)) + (%u["y"] * %sin);

   %a[2,1] = (%u["y"] * %u["x"] * (1 - %cos)) + (%u["z"] * %sin);
   %a[2,2] = %cos + (%u["y"] * %u["y"] * (1 - %cos));
   %a[2,3] = (%u["y"] * %u["z"] * (1 - %cos)) - (%u["x"] * %sin);

   %a[3,1] = (%u["z"] * %u["x"] * (1 - %cos)) - (%u["y"] * %sin);
   %a[3,2] = (%u["z"] * %u["y"] * (1 - %cos)) + (%u["x"] * %sin);
   %a[3,3] = %cos + (%u["z"] * %u["z"] * (1 - %cos));

   %x = getWord(%vec, 0);
   %y = getWord(%vec, 1);
   %z = getWord(%vec, 2);

   %newx = (%a[1,1] * %x) + (%a[1,2] * %y) + (%a[1,3] * %z);
   %newy = (%a[2,1] * %x) + (%a[2,2] * %y) + (%a[2,3] * %z);
   %newz = (%a[3,1] * %x) + (%a[3,2] * %y) + (%a[3,3] * %z);

   %pos = %newx SPC %newy SPC %newz;
   return %pos;
}


Topic is here: http://forum.blockland.us/index.php?topic=259991.msg7598994#msg7598994

5985
Well, I did some debugging, the trigger does exists because it says I enter it. It doesn't say the static shape entering it though, (usually it talks if it isn't a player).

Pages: 1 ... 394 395 396 397 398 [399] 400 401