Fusion Robots

by Acouya

Adds robots that use fusion generators to allow them to fly indefinitely, now with a reasonably late game position thanks to space age.

Content
11 days ago
2.0
10.1K
Logistics

b [Fixed] Cargo icon seems to draw under robot graphics

14 days ago
(updated 14 days ago)

Unlike Vanilla robots, both the Construction and Logistics version of the Fusion Robots don't display an icon for the item they're carrying. Instead, they just display a dark border around themselves, sort of. I've been trying to figure out what's going on for a while, and it finally hit me that the icon must be drawing UNDERNEATH the robot graphics... somehow. Icons for carried items have a heavy black drop shadow, which is what I think I'm seeing poking out from under the robot.

I've been wracking my brain trying to find a cause for this, but I'm coming up empty. I don't see anything in the graphics definitions for Flying Robots which even controls icon layering. As far as I can tell, everything is defined correctly on your side - other than maybe "cargo_centered" which seems to have been removed entirely in Factorio 2.0.7. I don't think this is relevant, though. Right now, I'm kind of out of ideas on how to explain this.

edit
Here's an image of what I mean:

Note how the robots flying left are normal, but the robots flying right have that thick black drop shadow? The ones going left are empty and heading to a warehouse off-screen. The ones going right are supplying my science labs, so they're the ones carrying Science Packs.

14 days ago

I'm aware of this issue but am in the same position of "I have no clue what went wrong here", and given that I'm not really all that experienced with modding I don't think I'm going to figure it out any time soon.

13 days ago

Roger that. I'll keep digging and ask around. If I turn anything up, you'll be the first to know :)

11 days ago

Did some digging as I was having this problem too - adding the line below to entities.lua resoved the issue

icon_draw_specification = {shift = {0, -0.2}, scale = 0.5, render_layer = "air-entity-info-icon"},

I added it before the "idle =" line

11 days ago

Yeah, I thought it would be something to do with layering. But if that's the case, how do Vanilla Flying Robots not have the same issue?

11 days ago

Vanilla robots have that set in their definition, I would've thought that when you extended from their class that it would've inherited it, but apparently not? I'm not sure why it works, just that it does lol sorry

11 days ago

That's done it, thanks a ton.

New response