Rocket Silo Automatic Requests

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Loup&Snoop
Inserter
Inserter
Posts: 22
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Rocket Silo Automatic Requests

Post by Loup&Snoop »

04-29-2025, 12-47-55.png
04-29-2025, 12-47-55.png (252.36 KiB) Viewed 215 times
Right now, I don't see any way to read or write to the value of this checkbox on a given rocket silo entity, nor a way to force it in the prototype. I am making a mod where rocket silos on one planet can export things, but cannot be allowed to make automatic logi bot requests because it can cheese my planet’s core mechanic.

What I have tried/considered:
-Disable Logistic Point: I can disable the requester logistic point from the silo to get the desired behavior, but that leaves a checkbox that will confuse the player into thinking the functionality works like normal.
-Setting RocketSiloPrototype logistic trash slots to 0 removes the GUI and logi bot requests, but that also causes the silo to be unable to automatically export ANY items (even in non-automatic mode). All launches in this scenario must be done 100% manually. If this is a bug, then fixing it would work.
-Relative GUI: The best I can do is leave a message that tells the player that the checkbox must be off.
-Localization string change: That changes it for all silos (not just my custom silo), and still leaves a checkbox that does nothing.

Any of these additions would work for me:
From best to worst:
-RocketSiloPrototype.logistic_trash_slots = 0 still lets silo automatically send a rocket that is manually filled with cargo.
-LuaEntity gets silo_automatic_requests as a bool with read/write access.
-RocketSiloPrototype gets a bool to lock its automatic logistic capabilities to one value. Or to disable its ability to interface with logibots.
-(workaround for conveyance) RocketSiloPrototype gets an optional Sprite field for its own “out of network” icon triggered by “render_out_of_logistic_network”.
Genhis
Factorio Staff
Factorio Staff
Posts: 817
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: Rocket Silo Automatic Requests

Post by Genhis »

A nicely written interface request! The easiest thing is to add the read/write access, which is what I did for 2.0.48 - LuaEntity::use_transitional_requests. It's not ideal for your use case, but I was worried about breaking something else if I tried to make the automatic delivery logic not rely on the requester logistic point. Maybe another time.
Last edited by Genhis on Wed May 07, 2025 3:05 pm, edited 1 time in total.
Reason: removed inaccurate information
Loup&Snoop
Inserter
Inserter
Posts: 22
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Re: Rocket Silo Automatic Requests

Post by Loup&Snoop »

Thanks! I appreciate it.

Even if it isn’t exactly what I wanted for my use case, I can at least now detect it on_gui_close and on_gui_checked_state_changed, change it back, play error SFX, and print an error telling the player that they can’t do that. This should be more than enough for me to do my thing.
Post Reply

Return to “Modding interface requests”