Cargo bay inserters

by Quezler

Inserters will be able to interact with cargo bays on platforms and planets.

Tweaks
4 months ago
2.0
3.95K
Logistics Storage Cheats

g Cargo Bays are invulnerable

4 months ago

Cargo Bays are Invulnerable to Asteroid damage with this Mod installed, which is awesome/terrible for spaceship defense. I have opened a Bug Report since this seems to be a Base Game bug that the Damage just "disappears".... there are no changes to Resistances, Health, or other stats in this Mod. The "linking" logic seems sound, given the proxy-container API primitive. https://forums.factorio.com/viewtopic.php?p=669164

Thanks for the mod!

-Eugene

4 months ago

My reaction on my modding discord:

ah yes the asteroids when they hit a tile will do a heuristic search for entities on them and will try to damage the entities in whatever order it finds regardless of collision mask and entities with destructible set to false (what i often do for compound entities) just absorb all the damage without passing anything on to other entities on the tile
something i researched when making the shield generator mod which released before it 👀

4 months ago

my reaction on the factorio forum:

Hi, this issue is completely due to the mod and should have been send to that mod's author (me) instead of the forum, this should be moved to not a bug.

Now let me explain what is happening:

When an asteroid collides with a space platform tile the "heuristic entity search" goes through all the entities who's collision boxes encroach on that tile, the order of which seems completely unpredictable or at the very least undefined.

The proxy container gets a subtle deconstructible = false applied to it in the control stage, and if the order in which the asteroid tries to damage the entities comes across the proxy first it'll absorb all damage, it does not care about any sort of collision mask whatsoever.

The simple solution would be for me to decrease the collision box to not be around the edges of the cargo bay so the asteroid will only hit normal entities first, but that would also interfere with inserters, i'll have to modify the mod so the proxy can be damaged and revive itself the next tick so practically all damage -1 will end up hitting the cargo bay as it should.

4 months ago

Hello,

Thank you for reading. I reported the Issue to the Factorio Forums first as it appeared (to me) to be an Engine Bug - the Damage Indicator was increasing, but the Damage "went nowhere"..... This all was originally trying to track down a mismatch in Damage reported data while benchmark testing Railguns vs Rockets for UPS performance. My expectation (now revised) is that the Damage Counter only increases when an entity actually takes Damage; I was using this in a Circuit condition to detect when a Platform had "failed". Adding this Mod to the mix made for easier Logistics, but it totally broke the Damage Counter mechanism. :-D

I reviewed the Mod Code myself to try to determine what was going-on, but I did not spot the usage of "proxy_container.destructible = false"; I was focusing upon the storage.deathrattles[] array, as it seemed like some sort of Handler for exactly this event.... but it was never firing to begin with.

Thank you again for reading - and producing so many micro-mods that "do their job", without huge Library mod requirements or unnecessary side-effects. I look forward to the next Mod version. :-)

-Eugene

4 months ago

Hello,

Loaded my Testing Scenario with Mod Version 1.0.3, after ~1000 Ticks:

Space Platform was destroyed by Big oxide asteroid en route from Fulgora to Aquilo.

Success. :-)

-Eugene

4 months ago

would this be 100% a bug on the mod? if keeping the indestructible entity by setting?

4 months ago

the invisible entity the inserter used to interact with was invisible, now it can die so the asteroid can hit stuff.

4 months ago

wait so only a bug for inserters? not the proxy bays

4 months ago

honestly i don't quite understand your last two messages, the issue of this thread is fixed so im not sure what you're inquiring about.

4 months ago
(updated 4 months ago)

Migrate indestructible cargo bay proxies

keep them still indestructible which had to do with this change no?

4 months ago

that commit message means that pre-existing cargo bays on platforms are able to receive asteroid damage again, so that its not just fixed for new ones.

4 months ago

Tho was this 100% a bug or could it also have been used as a feature? which could of maybe be a setting? if not just totally a bad bug and i have misunderstood the fix?

4 months ago

if you want space platforms to not receive any damage from asteroids just install https://mods.factorio.com/mod/shield-generator instead.

4 months ago

Ok my bad

New response