Data Realms Fan Forums
http://45.55.195.193/

Help - Actor arms randomly breaking off?
http://45.55.195.193/viewtopic.php?f=1&t=25485
Page 1 of 2

Author:  The5 [ Sun Sep 11, 2011 7:24 pm ]
Post subject:  Help - Actor arms randomly breaking off?

Image

So after modding nonstop since like 4 weeks now I still did not manage to stop my character from constantly loosing his arms for no reason >:I
I sometimes happesn while aiming, sometimes while shooting, sometimes while just moving arround. No matter wether he carries a large or small device.
The JointStrength, GibImpulseLimit and GibWound limit are either infinite or extremely high, for testing purposes, yet the arms still breake off randomly.
My guess would be that its something with the arms position on the actor, the arm length should be fine.

I have only done this one actor so far and as you know the wiki does not realy give detaild information on everything.
Hopefully you experianced people know this issue, and its just some common fault on my side :/


Code snippets:

Author:  Gotcha! [ Sun Sep 11, 2011 7:40 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Any reason why you set the JointStiffness to 0.25? Can you try the default, 0.5 instead?

Author:  Asklar [ Sun Sep 11, 2011 7:41 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

The5 wrote:
The JointStrength, GibImpulseLimit and GibWound limit are either infinite or extremely high, for testing purposes, yet the arms still breake off randomly.


That's it.

That value shouldn't be too high. Why? I'm not sure, but that's a common problem in newbies modding.

Author:  The5 [ Sun Sep 11, 2011 7:48 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Gotcha! wrote:
Any reason why you set the JointStiffness to 0.25? Can you try the default, 0.5 instead?

No idea, I used DarkStorms Actor as a reference since they are of similar bodysize.
Are there more of those default values? What are the ones for Foot, Leg and Head?
Also what does joint Stiffness actualy do? Define how much likely it its that they rotate?

I'll try it immediately!

Asklar wrote:
That's it.
That value shouldn't be too high. Why? I'm not sure, but that's a common problem in newbies modding.

Nono! They were way lower before, I highered them everytime my arm broke off aggain, in the end I just turned them up to infinite in my desperation.

Author:  Asklar [ Sun Sep 11, 2011 7:55 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Lower as in Vanilla lower?

Author:  Gotcha! [ Sun Sep 11, 2011 8:03 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

I have to admit, I am not entirely sure. Been a while since I tinkered with actors and I forgot a lot of things.
It seems all vanilla actors (as well as my own) use 0.5 though.

You can open a vanilla actor and get default values from them. :) From skeletons to dummies, they all share the same value.

Anyway, if that doesn't make a change, share what you made and we can have a look at it. :)

Author:  Asklar [ Sun Sep 11, 2011 8:16 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Hm... Maybe JointStiffness is the thingie, but I suppose that a higher value would make it break randomly, not a lower.

Author:  Azukki [ Mon Sep 12, 2011 7:02 am ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Just for fun sometime, try setting the joint stiffnesses on an actor to 100, and all the joint strengths to 999999999, and then collide him with something other than terrain. :lol:

Author:  The5 [ Mon Sep 12, 2011 12:34 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

So far Stiffnes 0.5 works good!

I want the FG arm unbreakable (seriously, actors without a FG-Arm make no sense at all and it happens sooo easily) and the BG amr breakable.

GibWoundLimit and GibImpulseLimit are both 0, so infinite, fine.

The JointStiffnes does not realy tell me anything. I imagine it is how easly the arm kicks back upon weapon recoil or a MO hitting it.
JointStiffnes 1.0 could mean, that the whole kickback is given to the parent, the child wont move. Maximum impulse on the joint itself, no accelleration for the child.
The vanilla 0.5 could mean that 50% of the impulse are given to the joint and 50% are converted into acceleration for the child. Best balance, only 50% of the impulse are given to the JointStreng. The other 50% are converted into acceleration of the arm, this also generates a impulse on the JointStreng but only a part of the 50% (vector math for circular movements... blahblah). In the end this could mean maximum joint durability but JointStiffnes 1.0 could prove better, no idea.

To my knowledge JointStrength is the Impulse needed to break the joint and detach the child object.
However a verry high JointStrength like 10,000,000 makes the joint break when just moving the arm a tad.
Probably just some glitch due to the code handling enormous numbers (impulses like that are normaly not existant in the game), getting some overflow and resulting in negative impulses that just gib anything.
Also: JointStrength = -1 makes the child gib instantly and JointStrength = 0 is NOT infinite but any impulse gibs the child!


So for a invulnerable arm my current setup is:

JointStiffnes = 0.5 //I'll just go with the Vanilla value here, since it prove stable
JointStrength = 10000 //verry high, arm might still gib when a dropship smashes on it...
GibWoundLimit = 0 //infinite
GibImpulseLimit = 0 //infinite

All just specualtions and observations!!!

Author:  Gotcha! [ Mon Sep 12, 2011 2:56 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

I don't think you can ever stop an arm from popping off. If you found a way I'd be very interested. :)

Author:  Asklar [ Mon Sep 12, 2011 7:13 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

I remember that Mehman did it once in a mod of preset soldiers.

I think he gave the arm GetsHitByMOs = 0.

Author:  The5 [ Tue Sep 13, 2011 10:26 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Asklar wrote:
I remember that Mehman did it once in a mod of preset soldiers.

I think he gave the arm GetsHitByMOs = 0.



>.<

Yeh works now.
Code:
Arm:
   HitsMOs = 0
   GetsHitByMOs = 0

   JointStrength = 10000
   JointStiffness = 0.5
   GibImpulseLimit = 0
   GibWoundLimit = 0

   Material = Material
      CopyOf = Military Stuff
      Bounce = 0.0
      Friction = 0.0
      StructuralIntegrity = -1
      DensityKGPerVolumeL = -1
      GibImpulseLimitPerVolumeL = -1
      GibWoundLimitPerVolumeL = -1



That seems to work 100%, some of it might be unnecessary though.

Author:  Asklar [ Tue Sep 13, 2011 10:29 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Yep, everything.

Leave the material like it's default, just using the GHBM = 0 you are done.

Author:  The5 [ Tue Sep 13, 2011 11:48 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

Asklar wrote:
Yep, everything.

Leave the material like it's default, just using the GHBM = 0 you are done.


When you fall off a roof your arm might collide with the terain and break, so GibImpulseLimit is neccesary too, or does it only count for MO-impulses? If so then the materials GibImpulseLimitPerVolumeL might be needed.

Author:  Asklar [ Tue Sep 13, 2011 11:50 pm ]
Post subject:  Re: Help - Actor arms randomly breaking off?

I didn't think of those.

Keep impulse limits, the wound limits aren't needed.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/