What is the best practice, or what are some good options, for creating buildings that will have behavior specified in control.lua and do not inherit from other buildings (i.e., not an assembling-machine)? For example, a dummy "deep mining machine" which can be placed on any land and creates random ores around it at specified intervals.
Some approaches I've seen are using the brown-asterisk and shipwreck decorations, but this requires modifying a number of rendering and layer properties. Is there a nice, non-functioning building/entity that could be deep-copied and then only need a change of name and graphic to serve as a dummy?
Best practice for new dummy buildings?
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Best practice for new dummy buildings?
if they don't do anything, and don't require power... a tree, or rock entity might work.
if you want it to require power, there's a new entity coming in 0.13 that might help.
if you want it to require power, there's a new entity coming in 0.13 that might help.
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
Re: Best practice for new dummy buildings?
Thanks. To check a bit further, I think the answer is 'no', but is there any way to create a chimera prototype- say, add an inventory to a mining drill?bobingabout wrote:if they don't do anything, and don't require power... a tree, or rock entity might work.
if you want it to require power, there's a new entity coming in 0.13 that might help.
Author of:
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: Best practice for new dummy buildings?
No, modular prototypes are apparently not a thing that is going to happen anytime soon. Sadly. Though you could probably request a particular feature that you'd like to mod in, once the current update cycle is done.Versepelles wrote:Thanks. To check a bit further, I think the answer is 'no', but is there any way to create a chimera prototype- say, add an inventory to a mining drill?bobingabout wrote:if they don't do anything, and don't require power... a tree, or rock entity might work.
if you want it to require power, there's a new entity coming in 0.13 that might help.
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
Re: Best practice for new dummy buildings?
Sad to hear, but the info is appreciated. Smoke and mirrors for the time being, then.Sean Mirrsen wrote:No, modular prototypes are apparently not a thing that is going to happen anytime soon. Sadly. Though you could probably request a particular feature that you'd like to mod in, once the current update cycle is done.Versepelles wrote:Thanks. To check a bit further, I think the answer is 'no', but is there any way to create a chimera prototype- say, add an inventory to a mining drill?bobingabout wrote:if they don't do anything, and don't require power... a tree, or rock entity might work.
if you want it to require power, there's a new entity coming in 0.13 that might help.
Author of: