Armor causes desync when attacked

Do you believe that you are alone?
This issue is not even onesync related, please stop asking for thing that you can fix yourself.

so if u think we can fix ourselves, weā€™re just asking for help cuz we dont even know how. :slight_smile:

2 Likes

it happens even prloblema here the player kills and does not die ā€¦ and these last days is having a lot of problem of package loss and instability of connection with onesync for these reasons we decided to deactivate it so everything returned to normal without lags and problems of dsync.

its true sometime we didnt get answer right. but in a time i think i found my solution i mean, u have to wait untill admin want to ask your problemā€¦ but dont just wait , try think about the solution too
cause i think the admin is busy to ans us

Was there any request? This also happens to me with VRP

Have the same problem.

By any chance, are any of the people experiencing this issue using armor? One thing I noticed the other day is that when one player has armor, a similar issue occurs. I reported it here.

If you wait for a solution the solution is:
There is no solution.

@CoastCity
@Inmortalesrp
@Felipe_Gimenes

though @Mooshe did you managed to reproduce your issue outside of your server? Iā€™ve players using amors and in 2-3 months nobody reported something like this :frowning:

For those of you wish issues, are saying about vRP or whatever.

Test the issue without any other resources loaded. If the problem isnā€™t there, itā€™s a matter with your client script and not OneSync.

The damage multiplier seems to be offā€¦

Scenario:
With a pistol, I fire three shots into the chest of my buddy, he goes down on my screen. On his screen is is still alive and can run around.
He is not completely dead on my screen for some reason, if I aim at the ragdoll, the dot is still red, if I shoot the ragdoll, he dies in his client as well.

Shotguns to the chest almost always kills him in my client, but not his. This essentially turns him invisible to me.

We have of course tried disabling every single script that is not included in the cfx-server-data package. Issue only persists if onesync is enabled.

Is this a known issue, any ETA on when it will be fixed or any tips to how we can go around it and fix it by an additional script?

This wonā€™t be ā€œfixedā€ without a repro. Even the ā€œarmorā€ theory did not work for reproducing it - no matter the weapon used, players only died when they were actually dead.

I disabled armor today in our testing and it didnā€™t happen again afterwards (on custom framework) - will test some more tomorrow to reassure. My theory is when armor is reapplied, sometimes its not shared via the network. One client thinks the other is dead due to this, though, really I have no idea how it works but appears to be armor related.

Does this imply that the sequence is rather:

  1. Player gets armor.
  2. Player gets slightly damaged, but not enough to die (or to entirely deplete armor?).
  3. Player resets armor.
  4. Player gets damaged again, but other clients have inconsistent health data, so armor isnā€™t re-added remotely?

not 100% on it to be honest as we do apply armor on players quite often, will try and replicate it next test session.

On our 100% clean server with only the cfx-server-data files running
This doesnā€™t seem to have anything to do with armorā€¦

Hereā€™s how to reproduce it without armor:

  • Give yourself the normal pistol
  • Shoot someone in the chest 3 times
  • On your client, he will die everytime
  • On his client, he will not die, and will essentially run around invisible.
  • Even when he is dead on your screen, you get a red dot when aiming at his corpse, if you shoot it, he will die on his screen as well even if he have moved away from that placeā€¦

Current artifact build: 1347

This happens 100% of the times, ONLY with onesync enabled.

2 Likes

Nope, still canā€™t reproduce.

Only stock resources, following snippet put in runcode console running on two clients:

NetworkSetFriendlyFireOption(true)
GiveWeaponToPed(PlayerPedId(), 'WEAPON_PISTOL', 9999, false, true)

SetEntityCoords(PlayerPedId(), vec(2826.27, -656.489, 1.87841))

Running latest server on Windows, clean install of latest production client, shooting in chest (skull part of ā€œDie!ā€ marker on default a_m_y_skater ped) with pistol 3 times resulted in ped losing ~75% of health, both sides still in sync, neither having considered the ped dead, so working fine 100% of the time.

I could send your files to test here as we have the same problems. Since yours is working perfectly.

Happens 100% of the time on our linux server. artifact build 1347