Author Topic: Custom Bricks won't load when I load a map? [Still not fixed]  (Read 1331 times)

Hello, as the title says the bricks that I've made never seem to load when I load a save file.

Am I doing something wrong? I use the format for all of my bricks except the variables at the end.

Code: [Select]
//Small Lot
datablock fxDTSBrickData (CitySmallLot){
brickFile = "base/data/bricks/baseplates/16x16F.blb";

canCover = false;

category = "City";
subCategory = "Lots";
uiName = "Small Lot";
iconName = "base/client/ui/brickIcons/16x16 Base";
        isCityLand = true;
};

This is a big problem when I restart the server, help will be greatly appreciated.
« Last Edit: January 27, 2015, 02:38:00 AM by Tetro Block »

your brick is automagically being executed before your bricks are loaded, yes?

Bricks are saved by their UI Name and loaded via UI Name lookup at load time. The only reason bricks would improperly load is if a datablock with that UI Name does not exist at load time.

Bricks are saved by their UI Name and loaded via UI Name lookup at load time. The only reason bricks would improperly load is if a datablock with that UI Name does not exist at load time.

Oh that explains a lot, Guess I'll have to put it in a zip folder after-all, thanks trinick.
« Last Edit: January 27, 2015, 02:40:15 AM by Tetro Block »


Hey I had the solution first, jerk.
Well if you did you didn't post it

Well if you did you didn't post it
I was making him realize his own mistake by having him check if his bricks existed before the load.

see quote of me asking the question:
Quote
your brick is automagically being executed before your bricks are loaded, yes?

Oh that explains a lot, Guess I'll have to put it in a zip folder after-all, thanks trinick.
What? That has nothing to do with zip files. Pretty much the only reason for zip files are to share them with other people.

Related, if you ever have to load a new brick datablock later on in a running server just call createuinametable(); to update the list and you'll be able to load saves with it.

What? That has nothing to do with zip files. Pretty much the only reason for zip files are to share them with other people.
Really? I thought putting it in a zip file meant it loads with all the other add-ons, which it did.

OT: Unfortunately when I loaded the map they still failed to load, yes they load for clients it's just when I load the map they fail to load.