Mikeeeyy 73 Report post Posted December 17, 2015 (edited) The dreaded losing magazines bug is fixed? No longer needed, implemented into 0.9.41 I was on my local test server and I gave myself a gun with 1 loaded magazine, and 2 reserve. If I relogged I would lose a mag everytime, guaranteed. This fix fixed that issue for me, I'm not sure if this will fix all the other magazine related issues. Please just be aware that this hasn't been thoroughly tested, only when relogging. Get a copy of ExileServer_object_player_database_load and put it in your overwrites folder/config thing... then open it up. Find _uniform = _data select 30; and start selecting, go down while selecting until you find _primaryWeapon = _data select 26; Dont select this line, just go up to it. If you're using an unmodified ExileServer_object_player_database_load then it will be line 81 to 143. Cut what you have selected then find _assignedItems = _data select 14; Paste what you cut above this line. You're done. Here's the ExileServer_object_player_database_load.sqf file with the fix applied for those who struggle with instructions http://pastebin.com/raw/neShULvf Edited December 23, 2015 by Mikeeeyy 12 Share this post Link to post Share on other sites
Eichi 4505 Report post Posted December 17, 2015 Please be aware that this problem does not happen on almost empty or local servers. The reason why this happens is the following: The server creates a unit, adds all the gear and sends it to the client. The client then takes control of this unit. The server code runs in unscheduled environment and thus very fast. Actually too fast, which is the problem. The unit on the server has all the gear, but the client does not notice it. In other words: We do a addXXX server side and it just doesnt do anything. If we run the mentioned code in scheduled environment, it will result in timeouts in large servers. Do not say that the above does not work. But I think the circumstances where this has been tested are not optimal. Share this post Link to post Share on other sites
Mikeeeyy 73 Report post Posted December 17, 2015 5 minutes ago, Eichi said: Please be aware that this problem does not happen on almost empty or local servers. The reason why this happens is the following: The server creates a unit, adds all the gear and sends it to the client. The client then takes control of this unit. The server code runs in unscheduled environment and thus very fast. Actually too fast, which is the problem. The unit on the server has all the gear, but the client does not notice it. In other words: We do a addXXX server side and it just doesnt do anything. If we run the mentioned code in scheduled environment, it will result in timeouts in large servers. Do not say that the above does not work. But I think the circumstances where this has been tested are not optimal. I'm afraid that's inaccurate, this happens 100% of the time on my local test server. I lose a mag guaranteed every relog. 1 Share this post Link to post Share on other sites
Paul 104 Report post Posted December 17, 2015 We also get this on our hosted dedicated server with only 2-4 of us on it. Just added the above, so will test it Share this post Link to post Share on other sites
bombajack 23 Report post Posted December 17, 2015 Confirm..its worked! Thanks. Share this post Link to post Share on other sites
Eichi 4505 Report post Posted December 17, 2015 Awww, yes. The reason for this is the addWeaponGlobal. If you execute it, Arma will take one magazine out of your equipment and put it into the gun if there is one. Then later addWeaponItem will overwrite that and thus you have lost one. Sorry, my bad. I was thinking this should solve the loss of uniforms, vests and items in general. The above code is actually something that we have done internally too. So thumbs up for this! 2 Share this post Link to post Share on other sites
Mikeeeyy 73 Report post Posted December 17, 2015 2 minutes ago, Eichi said: Awww, yes. The reason for this is the addWeaponGlobal. If you execute it, Arma will take one magazine out of your equipment and put it into the gun if there is one. Then later addWeaponItem will overwrite that and thus you have lost one. Sorry, my bad. I was thinking this should solve the loss of uniforms, vests and items in general. The above code is actually something that we have done internally too. So thumbs up for this! Great news and great work! Share this post Link to post Share on other sites
GR8 387 Report post Posted December 17, 2015 Great Work @Mikeeeyy Share this post Link to post Share on other sites
CEN 449 Report post Posted December 17, 2015 2 hours ago, Eichi said: Awww, yes. The reason for this is the addWeaponGlobal. If you execute it, Arma will take one magazine out of your equipment and put it into the gun if there is one. Then later addWeaponItem will overwrite that and thus you have lost one. Sorry, my bad. I was thinking this should solve the loss of uniforms, vests and items in general. The above code is actually something that we have done internally too. So thumbs up for this! So you have internally fixed it, but won't share with the community before the next patch even when players are driving us mad about this issue. Sharing is caring! 5 Share this post Link to post Share on other sites
Paul 104 Report post Posted December 17, 2015 But then why release it as another minor update again, and have everyone complain that there are 'loads of updates in quick succession'? The above is easy enough to implement Share this post Link to post Share on other sites