Discovered a Strange Spawn Bug (workaround included)

Terrabull

Veteran Member (Done that)
Reaction score
38
Here is a note to all developers. The Hatchery Larva Spawn behavior has a strange limitation. The number of possible spawns is limited not only to the number you place in the limit field, but also to the number of "offsets" you define. Similarly, it will spawn nothing without any offsets set.
When the behavior spawns a building, it takes one of the offsets at random. It then temporarily removes that offset from it's list, and when the unit dies it replaces it on the list.
Because of this limitation, when every offset has a unit spawned to it the building acts just like there are no offsets in it's list, meaning it ceases to function.
The basic way to prevent this from being an issue is to add a timed life to the unit, or otherwise ensure that the units it spawns will not live long enough to fill the number of offsets.
 

Advice D.

New Member
Reaction score
11
Well, since the used offsets are temporarily removed, why not create additional offsets with the same positions/values (or maybe slightly different just in case it tries to create units directly on top of each other or something) so that you have more offsets and thus more spawnable units but with the same positions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top