31
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.
function Chunky::loadChunk(%this, %id)
{
announce("calling load" SPC %id);
%file = strreplace(%id, " ", "/");
%id = strreplace(%id, " ", "_");
%id = strreplace(%id, "-", "_");
if(%id $= "")
{
return false;
}
%seed = $Blockscape::Perlin.seed;
if(%seed $= "")
{
BS_createPerlin();
%seed = $Blockscape::Perlin.seed;
if(%seed $= "")
{
error("Chunky::loadChunk(int id): Unable to fetch perlin seed");
return;
}
}
announce("seed is" SPC %seed);
%file = "base/server/blockscape/chunky/" @ %seed @ "/" @ %file @ ".cs";
if(!isFile(%file))
{
return false;
}
announce("file is" SPC %file);
exec(%file);
%obj = "Chunky_Chunk_" @ %id;
announce("obj is" SPC %obj);
if(isObject(%obj))
{
%obj.chainMethodCall("setTrusted", 1);
%obj.chainMethodCall("plant");
announce("yep, it's defo an object mang");
return true;
}
return false;
}
//--- OBJECT WRITE BEGIN ---
new ScriptGroup(Chunky_Chunk_2_1) {
chain_schedule = "61235";
new fxDTSBrick() {
position = "64 32 20000";
rotation = "1 0 0 0";
scale = "1 1 1";
dataBlock = "BrickBlockscapeData";
angleID = "0";
colorID = "49";
printID = "0";
colorFxID = "0";
shapeFxID = "0";
isBasePlate = "0";
isPlanted = "1";
client = "-1";
stackBL_ID = "888888";
maxDamage = "10";
blockType = "Cobblestone";
};
...
Basically a window popped up and say something along the lines of "blockland.exe - buffer overrun detected - terminating" (from memory of seeing it).
The way I cause it is if I have a long history of functions in the console window and press the up arrow about 6-8 times, it will crash with the error.
%h = %hash & 15;
%u = %h < 8 ? %x : %y;
%v = %h < 4 ? %y : (%h == 12 || %h == 14 ? %x : %z);
return ((%h & 1) == 0 ? %u : -%u) + ((%h & 2) == 0 ? %v : -%v);
WHAT IS THAT. WHY.This is a Blockland save file. You probably shouldn't modify it cause you'll screw it up.
1
ADDON Brick_Sup_Brix Super Brick
ADDON Brick_ExtremeRounds 64x64 Orb
1.000000 0.000000 0.000000 1.000000 (beginning of colour stuff)
1.000000 0.137255 0.000000 1.000000