Jump to content

Does ModuleAnimationGroup support resource consumption?


Recommended Posts

I have a number of add-on parts powered by ModuleAnimationGroup that I would like to, say, consume ElectricCharge at a specified rate whilst the (looped) animation is running

Are there additional stock parameters that I could specify in order to do this?

Link to comment
Share on other sites

I was looking at the module in monodevelop because I'm planning stuff with it as well and I can't see anything that would enable that, the perameters that are available for it are as follows:

tumblr_npl9deRwpl1r0o48lo1_400.png

and none seem to hint towards resource usage, this is probably because it seems generally designed for being referenced by other modules (like resource scanner and drill modules) which will handle the usage themselves.

Link to comment
Share on other sites

I was looking at the module in monodevelop because I'm planning stuff with it as well and I can't see anything that would enable that, the perameters that are available for it are as follows:

https://40.media.tumblr.com/17c5ab1b0d706ccb4feca659e10cf06d/tumblr_npl9deRwpl1r0o48lo1_400.png

and none seem to hint towards resource usage, this is probably because it seems generally designed for being referenced by other modules (like resource scanner and drill modules) which will handle the usage themselves.

Ah, I see. Might be time for me to make a feature request ;)

Link to comment
Share on other sites

Ah, I see. Might be time for me to make a feature request ;)

ohh please do! there's finally a more complex stock animation module and all it seems to be useful for is use with resource modules and asthetic purposes

although I am currently having a great time trying to battle with Blender to get two animations onto a model so that I can make use of both the activate and running animations of the module. (I have honestly never got this frustrated with Blender haha)

Link to comment
Share on other sites

I got a response from RoverDude, and he essentially said that he has no plans to add resource consumption directly to ModuleAnimationGroup - instead, plugin authors will need to use the IAnimatedModule in order to write a PartModule that does so.

Link to comment
Share on other sites

  • 3 weeks later...

Correction:

The stock ISRU provides an example of a part with a looping animation that also consumes/produces resources, using ModuleResourceConverter for the latter. As RoverDude later explained, all I have to do is to only have resource inputs, omit most of the unnecessary fields, and I should have what I originally wanted without the need for custom plugin coding.

Link to comment
Share on other sites

Correction:

The stock ISRU provides an example of a part with a looping animation that also consumes/produces resources, using ModuleResourceConverter for the latter. As RoverDude later explained, all I have to do is to only have resource inputs, omit most of the unnecessary fields, and I should have what I originally wanted without the need for custom plugin coding.

That's really great news! This could open up a lot of possibilities.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...