New entity is transparent

Place to get help with not working mods / modding interface.
Bömmeli
Inserter
Inserter
Posts: 23
Joined: Wed Nov 19, 2025 7:44 pm
Contact:

New entity is transparent

Post 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.
Attachments
electromagnetic-lab_1.0.0.zip
(20.34 MiB) Downloaded 14 times
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 620
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: New entity is transparent

Post 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.
Bömmeli
Inserter
Inserter
Posts: 23
Joined: Wed Nov 19, 2025 7:44 pm
Contact:

Re: New entity is transparent

Post 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?
Post Reply

Return to “Modding help”