Jump to content

[REL] pAttach (optimized bone attach)


Patrick

Recommended Posts

  • Patrick changed the title to [REL] pAttach (optimized bone attach)
Posted

I have already done it, with server synchronization you may check the difference performance wise, see my signature, got released not so long ago.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted (edited)

I'm using it but the objects are becoming invisible or coming out of the bone.

Edit: The server has more than 200 players. Then the objects leave the bone without explanation.

Edited by Santi
plus
  • Moderators
Posted
19 hours ago, Santi said:

I'm using it but the objects are becoming invisible or coming out of the bone.

Edit: The server has more than 200 players. Then the objects leave the bone without explanation.

Thanks for the report, I'll check it out.
Can you tell me more info about how you use it? How attach/deatach it to player, and when?

  • Like 1
  • Moderators
Posted
10 hours ago, Dutchman101 said:

It would be interesting to see a performance comparison between this and attachToBones (just like this, another recent "bone_attach" replacement by @Tekken)

Sorry for late response, I rewrote most of code, I'm using new table structure, and I fixed bug what Santi reported before (I hope).
I ran all tests again with the latest versions of resources, you can find new results in updated Performance Comparison table.

Posted (edited)

Hmm is this normal?

I'll do some more tests, and come back with the results.

Also aren't you using the exact same positioning from https://wiki.multitheftauto.com/wiki/AttachElementToBone ?

Edited by Tekken
-

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

hmm, so is it normal? also the helmet seems to disappear somehow as in script I don't change it's positions at any time unless I change skin.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted (edited)

Well I'm just using the resource as is, ~0.5% CPU with 4 objects

Simply removed mine and added yours, replaced the function names, also I attach server side if that helps.

re-downloaded latest version to be sure, the same effect.

Edited by Tekken
wrong cpu usage

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted
1 hour ago, Tekken said:

Well I'm just using the resource as is, ~0.5% CPU with 4 objects

Simply removed mine and added yours, replaced the function names, also I attach server side if that helps.

re-downloaded latest version to be sure, the same effect.

Probably fixed, can you test with latest version please?

Posted

Can’t test right now but I think it’s fixed, also may I know what have you changed to have those positions? Also why?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

Yes it is fixed! Thanks.

1 hour ago, Tekken said:

may I know what have you changed to have those positions?

NVM found, was that meant to reproduce bone_attach positions?

  • Like 1

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

Good job Patrick, this resource will hopefully help a lot of new scripters.

I had found a problem tho, this resource won't note changes between interiores (i suppose thats because there isnt and event called "onClientElementInteriorChange") and the object will be left behind in the other interior, even when the dimensions change. It would be nice if you could address this issue.

Thank you!

  • Moderators
Posted
33 minutes ago, Tekken said:

NVM found, was that meant to reproduce bone_attach positions?

No, just works more like attachElements.

12 minutes ago, Platin - xNikoXD said:

Good job Patrick, this resource will hopefully help a lot of new scripters.

I had found a problem tho, this resource won't note changes between interiores (i suppose thats because there isnt and event called "onClientElementInteriorChange") and the object will be left behind in the other interior, even when the dimensions change. It would be nice if you could address this issue.

Thank you!

Yeah, I know. Because there is no event for that. But dimension change should work.

  • 2 weeks later...
Posted

most function is shared

whats the different from using function from client or server , do it same ? or client just work for local player

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...