Author Topic: Zone bricks  (Read 3266 times)

Zone bricks fail to load lately:
when i try to load some saves with zone bricks with events i get an error saying that the function "LoadParameters" isnt defined and that causes the bricks to not function unless i duplicate and replant them.
from a quick search i found that its not defined in the zonebricks scripts so i guess its either from another mod or a default function. also i heard it was removed in some update. can anyone help me find a premanent fix for this, such as the source code for the function?

-Bump-
seems odd that i didnt get any replies for a few days considering the activity on the forums

People probably don't know an answer to your problem

Frankly I have no idea what could cause this

Try re-downloading zone bricks. If that doesn't work, give us your console log.

I am kind of working on some fixes to the zone brick mod, since a lot of it seems broken, such as it working when you are dead, which maybe it shouldn't.

the console log is unnecessary, all the errors i get is that the function "LoadParameters()" isnt defined.
looking at the zone bricks' scripts tells me that that function isn't defined anywhere (also checked the most recent download of it). that is either a problem with the mod itself, or what is more likely is that its a default function which was removed in an update (one of my friends told me that), or its a part of another required mod.

is zone bricks the only addon enabled?
is it the only addon in your folder?
try testing it with only the bricks and events and see if it gives the same error

is zone bricks the only addon enabled?
is it the only addon in your folder?
try testing it with only the bricks and events and see if it gives the same error

good idea, ill try that asap and post the results here.

you even got the event_Zones loaded?

you even got the event_Zones loaded?

well, as i said, they dont load correctly, but if i duplicate the zone brick with the events in it and replant it it works then, which means the events are enabled and are saved, but for some reason it cant make them work when loaded from a save, only when placed/edited by a player.
actually when thinking about it, this means the problem is with the brick itself, because resending the events/editing them has no effect, only the duplication and replanting of it will make events work with it.

fodn something, this only happens to the 1x4x5 zones. it doesnt happen for the 8x8x8 zones and i would assume it doesnt happen for the other cuboid zones too

further testing shows, all zones including the plate ones work, but only the 1x4x5 zone is broken at loading. considering its the most useful for what im doing, its pretty disappointing.

CONSOLE LOG OF THE ERRORS:*
Code: [Select]
Direct load saves/UTTT.bls, 3, 0, 1,
LOADING BRICKS: saves/UTTT.bls (ColorMethod 3)
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (36729) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (36736) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (61156) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (66640) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (83741) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
Add-Ons/Brick_Zones/Bricks.cs (421): Unknown command LoadParameters.
  Object (83996) fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> fxDTSBrick -> SceneObject -> NetObject -> SimObject
*those errors were caused by the only 1x4x5 zone bricks on that save.

tried disabling all addons other then brick_zones and event_zones but the exact same thing happens.
(even on the testing save which only has all the zone bricks and a 64x64 plate)

for your convinience, i will include the code around the error in the script:
Code: [Select]
datablock fxDTSBrickData (brickzoneWaterFallData : brick8xWaterData)
{
//brickFile = "./8x Zone Cube.blb";
category = "ZoneBricks";
subCategory = "Players/Bots";
uiName = "8x8 WaterFall";
iconName = "Add-Ons/Brick_Large_Cubes/8x Water";
    alwaysShowWireFrame = true;
};

datablock fxDTSBrickData (brickzone1x4x5 : brick1x4x5data)
{
category = "ZoneBricks";
subCategory = "Basic";
uiName = "1x4x5 Zone Brick";


   alwaysShowWireFrame = false;
};

datablock fxDTSBrickData (brickzoneLadderup)
{
brickFile = "./Ladder.blb";
category = "ZoneBricks";
subCategory = "Players/Bots";
uiName = "1x2x5 Ladder Helper";
iconName = "base/client/ui/brickicons/1x2x5";
    alwaysShowWireFrame = True;

};


datablock fxDTSBrickData (brickzone8x8 : brick8xCubeData)
{
category = "ZoneBricks";
subCategory = "Basic";
uiName = "8x8 Zone Cube";

   alwaysShowWireFrame = false;
isWaterBrick = true;
};

~~~~~~~~~~~~~~~~~
<some more code here>
~~~~~~~~~~~~~~~~~

/////////////////////////////////////////////////////////////////////////////////
function brickzoneWaterFallData::onplant(%data,%this)
{
brick8xWaterData::onPlant(%data,%this);
brickzoneWaterFallData::LoadParameters(%this);
}
function brickzoneWaterFallData::onLoadplant(%data,%this)
{
brick8xWaterData::onLoadPlant(%data,%this);
brickzoneWaterFallData::LoadParameters(%this);
}
function brickzoneWaterFallData::LoadParameters(%this)
{
%this.setZone(0, 0, "0 0 -7000", %this.client);
%this.setColliding(0);
%this.setRendering(1);
    %this.setRayCasting(0);
    %this.setShapeFX(2);
%this.schedule(100,"setZoneisWater",1,%this.client);
}
///////////////////////////////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////
function brickzone1x4x5::onplant(%data,%this)
{
Parent::onPlant(%this);
brickzone1x4x5::LoadParameters(%this);
}
function brickzone1x4x5::onLoadplant(%data,%this)
{
Parent::onLoadPlant(%this);
%this.LoadParameters(%this); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ERROR HERE
}
function brickzone1x4x5::LoadParameters(%this)
{
%this.setZone(0, 0, "0 0 0", %this.client);
%this.setColliding(0);
%this.setRendering(0);
    %this.setRayCasting(0);
}
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////
function brickzoneLadderup::onplant(%data,%this)
{
    Parent::onPlant(%this);
brickzoneLadderup::LoadParameters(%this);
}
function brickzoneLadderup::onLoadplant(%data,%this)
{
Parent::onLoadPlant(%this);
brickzoneLadderup::LoadParameters(%this);
}
function brickzoneLadderup::LoadParameters(%this)
{
%ForwardVector = vectorScale(%this.getForwardVector(), 1000);
    %x = getword(%ForwardVector, 0);
    %y = getword(%ForwardVector, 1);
    %z = getword(%ForwardVector, 2);
   
//swaped and inversed to get correct orientation.
    %this.setZone(0, 0, -%y SPC -%x SPC 3000, %this.client);
    %this.setZoneDrag(2, %this.client);
    %this.setColliding(0);
    %this.setRendering(0);
    %this.setRayCasting(0);
}
///////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////
function brickzone8x8::onplant(%data,%this)
{
Parent::onPlant(%this);
brickzone8x8::LoadParameters(%this);
}
function brickzone8x8::onLoadplant(%data,%this)
{
Parent::onLoadPlant(%this);
brickzone8x8::LoadParameters(%this);
}
function brickzone8x8::LoadParameters(%this)
{
%this.setZone(0, 0, "0 0 0", %this.client);
%this.setColliding(0);
%this.setRendering(0);
    %this.setRayCasting(0);
}
/////////////////////////////////////////////////////


Change the line with the error from %this.LoadParameters(%this); to brickzone1x4x5::LoadParameters(%this);

Change the line with the error from %this.LoadParameters(%this); to brickzone1x4x5::LoadParameters(%this);

Thanks! ill look and reply if it works.