Cosmic Social Distancing


Any planets closer than 3000km on the starmap are automatically moved apart.

Tweaks
2 months ago
2.0
6.62K
Factorio: Space Age Icon Space Age Mod
Environment
Owner:
thesixthroc
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
6 months ago
Latest Version:
1.2.0 (2 months ago)
Factorio version:
2.0
Downloaded by:
6.62K users

Cosmic Social Distancing

This mod adjusts the positions of planets to avoid any being closer than 3000km. This can be useful when having modded planets installed that do not account for each other’s positions.

It works by incrementally pushing apart pairs of planets until all are separated by at least 3000km.

Further details

  • The algorithm applies to all space locations, not just planets.
  • Planets of larger size than the default (i.e. magnitude >= 1) are given extra room, and conversely for smaller planets.
  • The base minimum distance is configurable in settings.
    • This parameter is a starmap measurement ‘on the screen’. When we say the default is 3000km we’re using a measurement scale implied by the length of the connections from Nauvis in vanilla Space Age.
  • Locations registered as the parent (or grandparent, ...) of another location in PlanetsLib are treated as exceptions; two such locations will not repel each other.
  • Locations with hidden=true or the PlanetsLib field sprite_only=true are also excluded.

See also


Documentation for modders

  • The algorithm is sensitive to the following fields on prototypes.
    • cosmic_social_distancing_ignore — Boolean — If true on a planet or space location, it is excluded it from the algorithm: it will not affect other locations and its position will be unchanged.