SickBoySB / cecommpatch

Clockwork Empires Community Patch
23 stars 12 forks source link

Default herd/cluster spawns can be outside of the map #186

Open SickBoySB opened 7 years ago

SickBoySB commented 7 years ago

Need to double check if ALL spawning has the possibility of being outside the map.

SickBoySB commented 7 years ago

Default spawn fixed for all biomes.

SickBoySB commented 7 years ago

Not completely fixed.

The embark lua has been handled, same with gamestart.... there's something else spawning things... just gotta find it. Stuff isn't necessarily spawning outside the map, but it shouldn't be spawning as close as it is.

SickBoySB commented 7 years ago

I think this may be an issue where when something spawns in water, it's pushed to a valid spot... but sometimes that spot is right on the edge of the map... such as 0,0 or surrounded by water.

SickBoySB commented 7 years ago

General worldgen (biomes.xml) ignores placement restrictions, though those don't seem to define obelisk clusters. It has the animal stuff though.

Hmm... if it's possible, logic may be needed to force despawning if something is trapped for X cycles. This is an extreme solution that could have all kinds of untold consequences, but the lag from impossible pathing may make it worth it.