Option/Method for rotated Assembly-Animation ?

Place to get help with not working mods / modding interface.
Post Reply
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Option/Method for rotated Assembly-Animation ?

Post by YuokiTani »

know someone a option or code to trigger a rotated assembly-animation ?

i know for generators is it possible, accumulators have charge, uncharge-animations and idle is possible i think, but for assembly ?

i know thats not a real problem ^^ - but i want it correct.

the screen shows a gearbox with spinning gears at working condition, but then rotation is needed inputs don't match.
i know i can make a different input/output solution but rotation would help with other assemblys too.
the right is wrong, left matches gfx with inputs.
Image

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Option/Method for rotated Assembly-Animation ?

Post by FreeER »

You can specify directions in assembling-machine animations just like you can the mining-drill animation. Factorio checks the animation table for a 'north' table, if it doesn't find one it uses the given animation for all four directions. The same happens if you give the north animation table, it will use the north animation for any non-given directions (though it'll use east for a missing west if east was given).

You can do the same, at least that would be my assumption of their use, in working_visualisations by using north_position, west_position, south_position, and east_position to specify where the working_visualisations animation should go when the entity is rotated in that direction. You could also specify north_animation, west_animation, south_animation, and east_animation in working_visualisations.

Hope that info helps :)

YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: Option/Method for rotated Assembly-Animation ?

Post by YuokiTani »

FreeER wrote: Hope that info helps :)
Thank You ! - Mr. FreeER - this helps a lot.

(now i can bump gfx and animations even more ;) )

*edit
works perfect
Image

what do you think - is there a solution for the pipes ?
but maybe it's easier to misuse assembly-machines ^^

mrtux
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Thu Dec 04, 2014 10:04 pm
Contact:

Re: Option/Method for rotated Assembly-Animation ?

Post by mrtux »

This looks nice. :) Where do you use it?
If only my thesis could be done in Factorio …

YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: Option/Method for rotated Assembly-Animation ?

Post by YuokiTani »

mrtux wrote:This looks nice. :) Where do you use it?
It's used in my mod-addon yi-engines - because it's alpha-status it's not a head-topic in my mod-thread (and download hidden in posts).
but if you want to see more action from this mod-addon you can visit my youtube-channel

Post Reply

Return to “Modding help”