Page 1 of 1

New entity is transparent

Posted: Tue Jun 16, 2026 10:20 am
by Bömmeli
Hey Guys,

based on UltraMurlock's Standalone Electromagnetic Plant Mod, I created an Electromagnetic Lab Mod for the base game. It's a highly productive but expensive lab, using images and sounds from the Electromagnetic Plant.

I've done a short test so far, and it seems that the mod works as intended. Except one point: The new lab is transparent when hold or placed, but icons and tech images are loaded. In the lua files, I've just edited the path to the new mod name, so I thought it should work. But obviously... it doesn't :oops:

What I'm missing? Is it because the entity is no longer an assembling machine?

Thank you for your time and help.

Re: New entity is transparent

Posted: Tue Jun 16, 2026 1:34 pm
by Silari
Without looking at the mod, I'd say the most likely cause is that you're trying to use the graphics_set property, which assembling machines (and thus EM plants) have, while labs actually use off_animation and on_animation for their graphics instead.

Re: New entity is transparent

Posted: Tue Jun 16, 2026 1:49 pm
by Bömmeli
Hello Silari,

thank you for your reply. You're completely right. The mod I used as base uses graphics_set for the animation - and a lot of lua code to do so.

The off_animation/on_animation looks much simpler. Is it possible to convert the code for the plant to a lab, or should I use other graphics instead?