SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedLibraries & compatibility

Midnighttigger's Library

by Midnighttigger · for Factorio

Enhanced definability for orbits of planet's/space-location's with some library functions as well related to energy consumption and pollution

2.5KDownloads
23 mo agoLast updated
MITLicense
2.0Latest game version

About Midnighttigger's Library

From Factorio Mod Portal

Enhanced definability for orbits of planet's/space-location's with some library functions as well related to energy consumption and pollution

Read

will probably be deprecated in favour of https://mods.factorio.com/mod/PlanetsLib

First Description

  • Github: https://github.com/Midnighttigger/MT-lib
  • You may contact me on discord, the username is "Midnighttigger" and im on the official factorio discord

Defining Planet/Space Location orbital properties:

  • orbit = {
  • parent = {
  • type=<("space-location") or ("planet")>
  • name=<name of the planet it is orbiting e.g. "nauvis">

}

  • polar = {<distance from parent>,<bearing from parent in radians>}
  • eccentricity = <default is 0 which means its a circular orbit, greater than 0 and below 1 means the orbit is elliptical>
  • periapsis = <bearing of the closest approach in radians, mandatory for elliptical orbits and pointless for circular orbits, the distance in the polar property is taken as the closest approach distance for elliptical orbits>
  • no_sprite = <basically doesnt draw on orbit if true and defaults to false>
  • sprite = <sprite shifted, scaled and placed in the starmap in order to make an orbit making moon orbits possible and even extra star systems! It may be layered or singular and a how should be in a gallery or __MT-lib__/graphics/orbits/orbit_image_tutorial.png (sorry for the bad drawing)>
  • sprite_scale = <what to scale the sprite by in the orbit for more fine tuning, default is 1 (no effect)>

}

The following 4 are only definable for type="space-location":

  • unlandable = <defaults to false, if true you wont be able to have a space route there or a space platform but the starmap_icon is placed on the starmap automatically>
  • is_background = <defaults to false, if true the starmap_icon is taken as a sprite and will scale that by the provided magnitude, places on background>
  • is_sprite = <defaults to false, if true the starmap_icon is taken as a sprite and will scale that by the provided magnitude, places on foreground>
  • barycentre = <defaults to false, if true no location will register on the starmap, not even the icon. Useful for Binary orbits such as pluto & charon>

Highlights

From source data

Game versions

Built for Factorio 2.0.

Footprint

Rated a light load on a server.

License

Published under MIT.

Midnighttigger's Library on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.2.3, released 2024-12-31

Run Midnighttigger's Library on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Runs on your server

From source side support

Factorio Mod Portal lists Midnighttigger's Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.0

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓AuthorMidnighttigger, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Midnighttigger's Library, answered

Generated from the mod’s own source data.

Do my players need to install Midnighttigger's Library?

Factorio Mod Portal lists Midnighttigger's Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Midnighttigger's Library is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Midnighttigger's Library on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Midnighttigger's Library in one click.