Page 1 of 1

Manual rocket launch with products? (And hiding launch products in tooltip)

Posted: Wed Mar 12, 2025 12:36 am
by Sapphire
I want to implement an Easter egg which involves launching a cat into space.
(I'm porting this mod: https://mods.factorio.com/mod/petcat)

There are 2 problems I am having:
  1. It looks like manual-mode items cannot have products. When trying to launch it, the launch button is greyed-out, with the tooltip stating that there is not enough room in the cargo landing pad. I've noticed this even happens to the vanilla satellite if I change its mode as well.
  2. I want to be able to hide the rocket launch products from the tooltip when hovering over the item. (Y'know, to not give it away)
Is there any way to accomplish either of these things?

The current item definition looks like this:

Code: Select all

local cat_item = {
    type = "item",
    name = "cat",
    icon = "__petcat__/graphics/cat_icon.png",
    icon_size = 128,
    stackable = false,
    stack_size = 1,
    flags = {"not-stackable"},
    place_result = "cat",
    subgroup="defensive-structure",
    rocket_launch_products = {{type="module", name="mouse", amount=1}},
    send_to_orbit_mode = "manual"
}
The launch products do work correctly if I set the mode to "automated", but then it shows in the tooltip for the rocket silo's inventory slot as a launch-able item, which also ruins the surprise. I also don't want it to be automatically launch-able anyway.