stijnwop / manureSystem

Manure System modification for Farming Simulator 2022
GNU General Public License v3.0
97 stars 58 forks source link

Placeable Connection Animations? #208

Open Bullitt33 opened 4 months ago

Bullitt33 commented 4 months ago

I was curious if it was still possible to do a connection animation on placeables like we did in FS19? Below is an example from one of my mods in 19. I tried setting a placeable up in 22 with the same means of coding for the animation portion using the "manureFlowAnimationIndex" but it hard locked the game up as soon as I connected the hose no errors printed in the log.

manureSystem hasConnectors="true" hasPumpMotor="false" hasFillArm="false" manureSystemConnectors connector type="COUPLINGFERTILIZER" node="0|3|1|1" manureFlowAnimationIndex="1" connector type="COUPLINGFERTILIZER" node="0|4|1|1" manureFlowAnimationIndex="2" manureSystemConnectors

JoPi1998 commented 4 months ago

Both the lock animation and the manure flow animation are still possible in FS22. The entries look like this: lockAnimationIndex="TYPE_INTEGER" manureFlowAnimationIndex="TYPE_INTEGER"

Bullitt33 commented 4 months ago

Any idea why it would not work then?

Animation is very simple 1 node starting rotation of 0 0 0 and ending 0 -90 0. When I hooked the hose up it never moved and locked the game up

JoPi1998 commented 4 months ago

Does this also happen if you use "lockAnimationIndex"? Anyways, can you share the xml file so I can have a look at it?

Bullitt33 commented 4 months ago

xmls.zip

Here is the xml and the moddesc. Using lockAnimationIndex it now works but once the hose is attached to it you can not detach the hose

JoPi1998 commented 4 months ago

It sounds like that you have to use both, the "lockAnimationIndex" and the "manureFlowAnimationIndex", if you want to have connector animations for your placeable. Honestly I've only tested both animations together, so I can't be sure they work independently of each other.