Cosmic Social Distancing


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

Tweaks
14 days ago
2.0
4.81K
Factorio: Space Age Icon Space Age Mod
Environment
Owner:
thesixthroc
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
4 months ago
Latest Version:
1.2.0 (14 days ago)
Factorio version:
2.0
Downloaded by:
4.81K 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.

The mod works by incrementally pushing apart pairs of planets until all are separated by at least this distance.

Further details

  • The algorithm also applies to other space locations beyond 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.