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

Pages: [1] 2 3 4
1
It works!!!
Thanks everyone for all the help!

2
I've gotten it to spawn all the bricks, but now I have another problem

The missing blocks were regular bricks that I destroyed, the remaining are glitch bricks that I can't hit with a hammer and I can fly through

Quote
Find out what the plant error returns
all the broken ones return '1' for overlap, but they aren't overlapping anything
how do I fix this??

3
Quote
Echo the place position. It may not be planting in the right area, as I have said.
The position I'm placing it at or the position of the block AFTER I place it?

Either way it's the same as the corresponding 'Layer Position:'

4
Quote
You're not under standing what I'm saying. Look at the spawn position. The Z is screwed up.

When I get the spawn position, I add the Z position (70000) to the end of it

%pos is a 2d vector, X and Y
then I have Z_Offset which is 70000 that I add to the end of it

Spawn Position: X Y is just the 2d vector I'm grabbing from the SpawnData
Layer Position: is the actual position that it was planted at

Code: [Select]
%dirt.place(%pos SPC $Z_Offset); // <<<<

5
Quote
Uh, you have spawn positons under 0, that's why. The Z is not the same for most of your spawn objects. Bricks refuse to plant when under 0
What? No, the positions are X Y Z

Layer Position: -1.5 0.5 70000
so this is
X: -1.5, Y: 0.5, Z: 70000

6
I checked it, and the console says it's planting all of them.

this is from the console

Loops: < what $spc is equal to
Spawn Position: < The position that it's grabbing from SpawnData
Layer Position: < The position that the brick was planted at
#: < brick plant error

Code: [Select]
Loops: 64
Spawn Position: -1.5 0.5
Layer Position: -1.5 0.5 70000
2
Spawn Position: -13.5 -9.5
Layer Position: -13.5 -9.5 70000
2
Spawn Position: 0.5 -1.5
Layer Position: 0.5 -1.5 70000
1
Spawn Position: 0.5 0.5
Layer Position: 0.5 0.5 70000
1
Spawn Position: 0.5 4.5
Layer Position: 0.5 4.5 70000
2
Spawn Position: -3.5 4.5
Layer Position: -3.5 4.5 70000
2
Spawn Position: -5.5 4.5
Layer Position: -5.5 4.5 70000
1
Spawn Position: -7.5 4.5
Layer Position: -7.5 4.5 70000
2
Spawn Position: -9.5 4.5
Layer Position: -9.5 4.5 70000
1
Spawn Position: -1.5 -9.5
Layer Position: -1.5 -9.5 70000
2
Spawn Position: -3.5 -9.5
Layer Position: -3.5 -9.5 70000
1
Spawn Position: -5.5 -9.5
Layer Position: -5.5 -9.5 70000
2
Spawn Position: -7.5 -9.5
Layer Position: -7.5 -9.5 70000
1
Spawn Position: -9.5 -9.5
Layer Position: -9.5 -9.5 70000
2
Spawn Position: -11.5 -9.5
Layer Position: -11.5 -9.5 70000
1
Spawn Position: 0.5 -3.5
Layer Position: 0.5 -3.5 70000
2
Spawn Position: -13.5 -7.5
Layer Position: -13.5 -7.5 70000
1
Spawn Position: -11.5 -7.5
Layer Position: -11.5 -7.5 70000
1
Spawn Position: -9.5 -7.5
Layer Position: -9.5 -7.5 70000
1
Spawn Position: -7.5 -7.5
Layer Position: -7.5 -7.5 70000
1
Spawn Position: -5.5 -7.5
Layer Position: -5.5 -7.5 70000
1
Spawn Position: -3.5 -7.5
Layer Position: -3.5 -7.5 70000
1
Spawn Position: -1.5 -7.5
Layer Position: -1.5 -7.5 70000
1
Spawn Position: -3.5 -5.5
Layer Position: -3.5 -5.5 70000
2
Spawn Position: -5.5 -5.5
Layer Position: -5.5 -5.5 70000
1
Spawn Position: -1.5 -5.5
Layer Position: -1.5 -5.5 70000
1
Spawn Position: -7.5 -5.5
Layer Position: -7.5 -5.5 70000
2
Spawn Position: -9.5 -5.5
Layer Position: -9.5 -5.5 70000
1
Spawn Position: -11.5 -5.5
Layer Position: -11.5 -5.5 70000
2
Spawn Position: -13.5 -5.5
Layer Position: -13.5 -5.5 70000
1
Spawn Position: 0.5 -5.5
Layer Position: 0.5 -5.5 70000
1
Spawn Position: 0.5 -7.5
Layer Position: 0.5 -7.5 70000
1
Spawn Position: -13.5 -3.5
Layer Position: -13.5 -3.5 70000
1
Spawn Position: -11.5 -3.5
Layer Position: -11.5 -3.5 70000
1
Spawn Position: -9.5 -3.5
Layer Position: -9.5 -3.5 70000
1
Spawn Position: -7.5 -3.5
Layer Position: -7.5 -3.5 70000
1
Spawn Position: -5.5 -3.5
Layer Position: -5.5 -3.5 70000
1
Spawn Position: -3.5 -3.5
Layer Position: -3.5 -3.5 70000
1
Spawn Position: -1.5 -3.5
Layer Position: -1.5 -3.5 70000
1
Spawn Position: -1.5 -1.5
Layer Position: -1.5 -1.5 70000
1
Spawn Position: -3.5 -1.5
Layer Position: -3.5 -1.5 70000
1
Spawn Position: -5.5 -1.5
Layer Position: -5.5 -1.5 70000
2
Spawn Position: -7.5 -1.5
Layer Position: -7.5 -1.5 70000
1
Spawn Position: -9.5 -1.5
Layer Position: -9.5 -1.5 70000
2
Spawn Position: -11.5 -1.5
Layer Position: -11.5 -1.5 70000
1
Spawn Position: -13.5 -1.5
Layer Position: -13.5 -1.5 70000
2
Spawn Position: 0.5 -9.5
Layer Position: 0.5 -9.5 70000
1
Spawn Position: -11.4 4.5
Layer Position: -11.4 4.5 70000
2
Spawn Position: -13.5 4.5
Layer Position: -13.5 4.5 70000
1
Spawn Position: -13.5 2.5
Layer Position: -13.5 2.5 70000
1
Spawn Position: -13.5 0.5
Layer Position: -13.5 0.5 70000
1
Spawn Position: -11.5 0.5
Layer Position: -11.5 0.5 70000
1
Spawn Position: -11.5 2.5
Layer Position: -11.5 2.5 70000
1
Spawn Position: -9.5 2.5
Layer Position: -9.5 2.5 70000
1
Spawn Position: -9.5 0.5
Layer Position: -9.5 0.5 70000
1
Spawn Position: -7.5 0.5
Layer Position: -7.5 0.5 70000
1
Spawn Position: -7.5 2.5
Layer Position: -7.5 2.5 70000
1
Spawn Position: -5.5 2.5
Layer Position: -5.5 2.5 70000
1
Spawn Position: -5.5 0.5
Layer Position: -5.5 0.5 70000
1
Spawn Position: -3.5 0.5
Layer Position: -3.5 0.5 70000
1
Spawn Position: -3.5 3.5
Layer Position: -3.5 3.5 70000
1
Spawn Position: -1.5 2.5
Layer Position: -1.5 2.5 70000
1
Spawn Position: 0.5 2.5
Layer Position: 0.5 2.5 70000
1
Spawn Position: -1.5 4.5
Layer Position: -1.5 4.5 70000
1

7
Then why wouldn't it place more than half the blocks? And also why are the blocks glitchy?

8
Why would it give me float or overlap errors? Can't I place blocks where ever I want?

9
I'm trying to spawn in a set of bricks usin (new fxDTSbrick()), but only half of them show up for some reason
so I decided to do echo(%brick.plant()); when planting the brick
and I got two numbers
sometimes it echoed 1, sometimes 2
what do they mean?

I need help because most of the bricks that do spawn in are glitchy anyway

Code: [Select]
// i have an array of vector3s to be the positions to spawn the bricks at
// $spc is the count of spawn dirt
for(%i = 0; %i < $spc; %i++)
{
%pos = SpawnData.SpawnPos[%i];
if(getWord(%pos, 0) !$= "")
{
                // i have a set of script objects that act as the base for different blocks
                // $Z_Offset is just how high I want the bricks, it's set to 70000
%dirt = getDirtType("0 0" SPC $Z_Offset); // automatically get the first layer of dirt
%dirt.place(%pos SPC $Z_Offset);
}else{
warn("Spawn Position doesn't exist... ignoring...");
}
}

function KM_Layer::place(%this, %pos)
{


%brick = new fxDTSbrick()
{
datablock = "brick4cube1data";
position = %pos;
rotation = "0 0 0 0";
scale = "1 1 1";
angleID = "0";
colorfxid = 0;
shapefxID = "0";
isPlanted = 1;
scale = "1 1 1";
stackBL_ID = getNumKeyID();

            
name = %this.name;
health = %this.health;
type = %this;
colorID = %this.color;
printID = %this.print;
};

OrePosData.orePos[%pos] = 1;
echo("Layer Position:" SPC %pos);

echo(%brick.plant());
BrickGroup_1337.add(%brick);
}

It's supposed to be an 8x8 grid of dirt, but instead only a few are planted

The green blocks aren't being loaded by my script, those are a blockland save



me flying in the blocks


10
Modification Help / Re: How to make a brick group
« on: August 12, 2016, 10:57:25 PM »
Thank you!

11
Modification Help / Re: How to make a brick group
« on: August 12, 2016, 09:48:38 PM »
Quote
By the looks of it you're missing some BLB formatting for your brick.  This link should help you add collision to your brick.

That's not the problem
brick4cube1data is from a default brick pack, Modter4xPack or something

12
Modification Help / [SOLVED] How to make a brick group
« on: August 12, 2016, 09:41:47 PM »
I know there are topics on this already but none of them helped me

I'm trying to make a brick group for my game

Code: [Select]
$brick_group = new SimGroup(BrickGroup_1337 : BrickGroup_888888)
{
    bl_id = "1337";
    isPublicDomain = 0;
};
mainBrickGroup.add($brick_group);

%brick = new fxDTSbrick()
{
    datablock = "brick4cube1data";
    position = "60 10 0";
    angleID = "0";
    rotation = "0 0 0 0";
    scale = "1 1 1";
    colorID = 1;
    printID = 1;
    colorFxID = "0";
    shapeFxID = 0;
    isPlanted = 1;
};
%brick.plant();
$brick_group.add(%brick);

and it spawns the brick but I can't collide with it and I can't use tools on it

13
Modification Help / Re: If statement isn't working
« on: August 12, 2016, 05:05:37 AM »
Quote
please do not check true/false values using $=
the $= operator is a string equals
torquescript treats true or false as 1 or 0

When I make $buy false
Code: [Select]
if($buy $= true)
    {
BuyPick();
    }

doesn't run

and also I was using $buy for a function loop and didn't get rid of the variable

I'll try changing the true/false anyway

14
Modification Help / If statement isn't working
« on: August 12, 2016, 03:44:49 AM »
Code: [Select]
//#######################################
//#
//# Made by Brighten
//# Version 0.0.1
//#
//#######################################

$version = "0.0.1";

$KB_AB_active = true;
newChatHud_AddLine("\c4KipBot Auto Buy Version:" SPC $version SPC "activated");
$buy = false;

package KB_UM_Pack
{

function clientCmdBottomPrint(%text, %time, %a)
{
echo("Bottom Print");
echo("Text:" SPC %text);
Parent::clientCmdBottomPrint(%text, %time, %a);
if(!$kb_ab_active)
return;
%nextPick = getWord(%text, 16);
%nextPick = stripchars(%nextPick, "$,");
%currentMoney = stripchars(getWord(%text, 2), "$,");

echo("Next Pick:" SPC %nextPick);
echo("Current Money:" SPC %currentMoney);
$buy = true;
                // VVVVVVVVVVVVVVVVVVVVVVVv
if(%currentMoney < %nextPick) // This if is definitely the problem
{
$buy = false;
}
if($buy $= true)
{
BuyPick();
}


}

};
activatePackage(KB_UM_Pack);

function BuyPick()
{
commandToServer('upgradePickS');
newChatHud_AddLine("\c4[KipBot] \c2auto bought a pick level");
}

function toggleKBAB()
{
if($kb_ab_active)
{
$kb_ab_active = false;
newChatHud_AddLine("\c4KipBot Auto Buy is \c0DISABLED");
}else if(!$kb_ab_active)
{
$kb_ab_active = true;
newChatHud_AddLine("\c4KipBot Auto Buy is \c2ENABLED");
}
}

output
>Next Pick: 1582
>Current Money; 1360;

for some reason it isn't checking it properly.
I don't know whats wrong, please help

15
General Discussion / Blockland needs better spam protection
« on: August 10, 2016, 12:30:08 AM »
So I was playing happily on Honor's HonorMining when



spam for 5 minutes straight
spam protection needs to check for too many messages in a row from a single user or maybe instead of checking for the same exact message check for patterns or something i don't know, but this is really annoying and easy to do

more from the same user


His BLID is 202886

Pages: [1] 2 3 4