Author Topic: How to properly create a new brickgroup that persists on server reset [SOLVED]  (Read 522 times)

I'm trying to create a brickgroup using this code:

   if (!isObject(BrickGroup_888999))   
   {
      new SimGroup(BrickGroup_888999 : BrickGroup_888888);
      mainBrickGroup.add(BrickGroup_888999);
      BrickGroup_888999.bl_id = 888999;
      BrickGroup_888999.isPublicDom ain = 1;
   }


However, the brick's BLID and brickgroup ID seems to be conflicting...





How do I fix this? I want this to work so that on server reset or build load, the bricks involved will have the BLID of 888999. Currently if i save and reload, the bricks will continue to say they're part of brickgroup_888888, and the admin menu seems to agree (clearing the lower BLID_888888 group actually clears brickgroup_888999, just fyi)
« Last Edit: February 23, 2016, 07:08:53 PM by Conan »

Call .dump() on your brickgroup and you'll see that you forgot to change the name too.

Thanks. That really was confusing me for some reason.

Just for anyone else who might come across the topic:


Tagged Fields:
  abandonedTime = "0"
  bl_id = "4928"
  chainDeleteSchedule = "0"
  client = "15139"
  isPublicDomain = "0"
  name = "Conan"

keywords: brickgroup settings, brickgroup fields, brick set variables, brick set blid, bl id
« Last Edit: February 23, 2016, 07:10:31 PM by Conan »