This is something that has been bothering me for a very long time because I couldn't not find an answer to this issue.
In CityRPGX, and in many City RPG mods, there is a problem where bricks loaded do not load correctly with the associated datablocks.
Loaded lots, terminals, and such all do not function until they are replanted. I suspected the problem was a missing onLoad function, but I have been at a loss where to begin. Here is my half assed attempt to fix it.
package plantLots
{
function CityRPGXSmallLotBrickData::OnLoadPlant(%this,%brick,%a)
{
parent::OnLoadPlant(%this,%brick,%a);
%brick.setDatablock(%brick.getDatablock().CityRPGXLotTriggerData);
return;
}
function CityRPGXHalfSmallLotBrickData::OnLoadPlant(%this,%brick,%a)
{
parent::OnLoadPlant(%this,%brick,%a);
%brick.setDatablock(%brick.getDatablock().CityRPGXLotTriggerData);
return;
}
};
Anyone got any bright ideas?
Btw the package was activated, it just doesnt say in the code.