View unanswered posts | View active topics It is currently Sun Dec 29, 2024 7:29 am



Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
 Help - Actor arms randomly breaking off? 
Author Message
User avatar

Joined: Fri Aug 19, 2011 4:02 pm
Posts: 40
Reply with quote
Post 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:


Sun Sep 11, 2011 7:24 pm
Profile WWW
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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?


Sun Sep 11, 2011 7:40 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Sun Sep 11, 2011 7:41 pm
Profile
User avatar

Joined: Fri Aug 19, 2011 4:02 pm
Posts: 40
Reply with quote
Post 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.


Sun Sep 11, 2011 7:48 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Help - Actor arms randomly breaking off?
Lower as in Vanilla lower?


Sun Sep 11, 2011 7:55 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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. :)


Sun Sep 11, 2011 8:03 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Sun Sep 11, 2011 8:16 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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:


Mon Sep 12, 2011 7:02 am
Profile
User avatar

Joined: Fri Aug 19, 2011 4:02 pm
Posts: 40
Reply with quote
Post 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!!!


Mon Sep 12, 2011 12:34 pm
Profile WWW
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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. :)


Mon Sep 12, 2011 2:56 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Mon Sep 12, 2011 7:13 pm
Profile
User avatar

Joined: Fri Aug 19, 2011 4:02 pm
Posts: 40
Reply with quote
Post 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.


Tue Sep 13, 2011 10:26 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Help - Actor arms randomly breaking off?
Yep, everything.

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


Tue Sep 13, 2011 10:29 pm
Profile
User avatar

Joined: Fri Aug 19, 2011 4:02 pm
Posts: 40
Reply with quote
Post 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.


Tue Sep 13, 2011 11:48 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Help - Actor arms randomly breaking off?
I didn't think of those.

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


Tue Sep 13, 2011 11:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 18 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.066s | 13 Queries | GZIP : Off ]