User Details
- User Since
- Nov 3 2013, 7:33 AM (581 w, 1 d)
May 10 2016
Bonus feature would be to be able to show a layer but have it locked so you can see it but can't manipulate it and accidentally screw with stuff.
I'd actually prefer if it fired after reload is complete. Or maybe have the animation (or animation time) passed.
We're getting this one a lot too. It looks scary.
Our group is experiencing the same issues since last update. Sometimes ammo disappears as well along with the uniform.
We've tried everything. Changing code, running different missions, running different server, going through our members' mod-installs with a fine comb. We're just now working on reinstalling our server fresh.
What happened to the commands? Did something change since update or is it just broken?
I can confirm it does NOT happen to an editor-placed unit's uniform. It does however happen for ALL units (not just blufor) receiving their uniform through script.
We tried not using removeUniform, this did not help. The problem seems therefor to be with addUniform...
"From what I can tell the sychronization problem is also not limited to only uniforms."
This indeed seems to be the underlying issue. Allow me to quote the most frequent errors from local-rpt:
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
soldier[B_recon_LAT_F]:Some of magazines weren't stored in soldier Vest or Uniform?
Client: Object 2:11326 (type Type_85) not found.
It's weird, I can get every AI dressed in MP by using a while-loop in a BIS_fnc_MP function. The condition for the while is the unit not having a Uniform. It works, all units have a uniform. Yet once the unit has the Uniform and the script moves on to adding the Vest, the Uniform disappears again.
At this point the script moves to adding ammo and such and finds not enough room.
Summary: Even with the BIS_fnc_MP workaround I can only dress them in either Uniforms OR Vests. Units can't wear Uniform + Vest at the same time in dedicated server.
Edit: Got the workaround working. Trick is to keep checking on all machines (BIS_fnc_MP if you run your gear-script dedi-only) wether the unit has the right uniform and addUniform it. It takes about 300 cycles before it 'sticks' and results in a small period of glitching (losing/regaining uniforms) for AI units just after they spawn.
Edit2: A little tip is to not add any items/ammo to the uniform and save it for last (to make sure AI don't lose any ammo that was in their uniform during this 'glitching period')