Author Topic: 125,000 lattices and 125,000 1x1 bricks  (Read 4132 times)

I chose a 50x50x50 cube since the nearest rational cube root of 128,000 is 50.

Lattices
My computer could not handle 125,000 lattices and Blockland crashed.
Try it out yourself and see if your computer can handle it!

1x1







To do this on your own:

Save this as base/brick.cs:
Code: [Select]
function PlaceBrick(%pos, %db, %brickgroup)
{
    %x = getWord(%pos, 0);
    %y = getWord(%pos, 1);
    %z = getWord(%pos, 2);
    %color = 8;
    %colorfx = 0;
    %health = 10;
   
    %brick = new fxDTSBrick()
    {
datablock = %db;
position = %pos;
rotation = "0 0 0 0";
colorID = 0;
scale = "1 1 1";
angleID = 0;
colorfxID = 0;
shapefxID = 0;
isPlanted = 1;
    };

    %brickgroup.add(%brick);
    $server::BrickCount++;
    return %brick;
}

function servercmdspambricks(%client, %val)
{

    if(%val $= "lattice")
for(%z = 0; %z < 50; %z++)
    for(%y = 0; %y < 50; %y++)
for(%x = 0; %x < 50; %x++)
    PlaceBrick(%x SPC %y SPC (%z*3)+1.5, brick2x2x5girderData, %client.brickgroup);

    else if(%val $= "1x1")
for(%z = 0; %z < 50; %z++)
    for(%y = 0; %y < 50; %y++)
for(%x = 0; %x < 50; %x++)
    PlaceBrick(%x/2 SPC %y/2 SPC (%z*0.6)+0.3, brick1x1Data, %client.brickgroup);


}
Type this into the console: exec("base/brick.cs");
Type this into the chatbox: /spambricks [type]
Where [type] can be "lattice" or "1x1"
« Last Edit: January 17, 2010, 03:57:42 PM by Kalphiter »

Script didn't work. It gave me an error report.

Script didn't work. It gave me an error report.
You copied it wrong.

Script didn't work. It gave me an error report.

Best to go into non-dedi and press ` then copy

It's goingto take a good while to plant those 125,000 bricks

 :cookieMonster:

Ha, I get a steady 18 - 19,5 fps with the block of 1x1s

Ha, I get a steady 18 - 19,5 fps with the block of 1x1s
I'd probably get like a 5-7 fps at tops with that many 1x1's
My comp is stuff D:

Yes.
PC: Intel E7500@2.93GHz, 4gbs of Patriot 1333MHz ram, 500watt PSU, nVidia GTS 250 256Bit 512MBs.
Nao Fap.

I'll try it out later.
Also, inb4 TheArchitect brags about his computer

I'll try it out later.
Also, inb4 TheArchitect brags about his computer
inb4Inv3rted too.
inb4everyone rich as well.

Will try tomorrow.
CPU: Core 2 Duo E7300 3.0 GHz
4GB RAM
650w PSU
9800GT with 16xQ AA

1x1 next to each other hides faces reducing the lag.

1x1 next to each other hides faces reducing the lag.
Oh yeah, forgot about that. So literally all unseen bricks are unrendered.

Yes.
PC: Intel E7500@2.93GHz, 4gbs of Patriot 1333MHz ram, 500watt PSU, nVidia GTS 250 256Bit 512MBs.
Nao Fap.

Those specs aren't that great...

I recoppied it and now it says unable to find object brickgroup 6643 with the lattices.
                                                                                        attempting to call function add
Blockland just stops responding after that.
« Last Edit: January 17, 2010, 03:58:35 PM by awasp1 »

Wow. Don't I feel poor D: