T.H.U.D. - Alternate start


Start aboard a damaged space platform and make an emergency landing with T.H.U.D. Supports the starting planet chosen by Any Planet Start.

Content
2 hours ago
2.1
0
Factorio: Space Age Icon Space Age Mod
Planets Environment
Owner:
Krypt0n_C0R3
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
2 hours ago
Latest Version:
1.0.0 (2 hours ago)
Factorio version:
2.1
Downloaded by:
0 users

T.H.U.D. - Alternate start

Your first base is still falling out of the sky. Start aboard Last Chance, a damaged space platform on an emergency descent. After impact, salvage the wreck, repair its battered solar panels and use the surviving equipment to get your factory started.

  • The wreck has its own electrical network and a lab.
  • Gun turrets have a few magazines for the descent. The landed hub holds repair packs and firearm magazines for the crew.
  • THUD controls the descent and impact. The planet and the damage taken on the way down determine what survives.

How to start

Enable the mod and create a new Freeplay game. The default landing planet is Nauvis. With Any Planet Start enabled, choose your planet in its startup settings before creating the map.

Requires Factorio 2.1.21 or later, Space Age and T.H.U.D. 2.2.0 or later.

For mod authors

An add-on can supply its own starting platform. Add THUD-start >= 1.0.0 to dependencies in its info.json, then register a factory in on_init. The factory runs once when the intro starts and receives the starting LuaForce and the selected LuaPlanet.

remote.add_interface("example-start", {
  create_platform = function(force, planet)
    local platform = force.create_space_platform{
      name = "Pathfinder",
      planet = planet.name,
      starter_pack = "space-platform-starter-pack"
    }
    if not platform then return end

    local hub = platform.apply_starter_pack(true) or platform.hub
    if not hub then
      platform.destroy(1)
      return
    end

    hub.get_inventory(defines.inventory.hub_main).insert{name = "iron-plate", count = 20}
    return platform
  end
})

script.on_init(function()
  local ok, reason = remote.call(
    "thud-start", "register_platform_factory", "example-start", "create_platform"
  )
  if not ok then log(reason) end
end)

Return a newly created LuaSpacePlatform with a built hub and deck in orbit around the supplied planet. The factory controls the layout, equipment, damage and cargo. T.H.U.D. - Alternate start finds a landing site for that deck and handles the descent and player placement.

The first registered factory is used. Registration returns true on success or false and a reason if the slot is taken, the callback is missing or the intro has already begun. If the factory fails or its platform cannot start the descent, T.H.U.D. - Alternate start falls back to Last Chance. The factory should clean up any unfinished platform it creates without returning it.