By name, you mean datablock name or is the brick named?
Use echoes. Make it echo the name before the onAdd(); so you can know where the problem is.
what is the value of getting its name upon planting
i mean like what are you actually doing because there may be a better way to do it
function fxDTSBrick::loadDataBasedOnName(%this) { %name = %this.getName(); // your stuff}package brickNameThing { function fxDTSBrick::onLoadPlant(%this) { %this.schedule(1, loadDataBasedOnName); return parent::onLoadPlant(%this); }};activatePackage(brickNameThing);
serverLoadSaveFile_End is called when a save is done loading FYI. I don't think that it has any args.