Jump to content
zivtix

backpack gear duplicates

Recommended Posts

Hello there.

I got a small clan of arma 3, and we got hosted server running.

during the mission our gear duplicates, and makes us, players, redicilously heavy.

I've been trying to figure out what causing it, and it seems that whenever there's desync with the server, it's get duplicated.

thing is, the server is very strong, and our internet connection is good as well.

only when there's 10+ players this duplication bug appears.

 

Does anyone know what to do?

thanks !

Share this post


Link to post
Share on other sites

Have a look at the locality of the arguments and effects of scripting commands.

Killzone kid explained it very good in his blog.

http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-v2

In relation to this, JIP (join in progress) can also cause a duplication. In the early days of ArmA3's Arsenal functionality certain situations (including JIP) meant you could lose your headgear and vest when someone JIP'ed. So if an equipment script is called incorrectly a player connecting could trigger it for all clients.

If your issue happens on ALL missions its a game issue (or at the very least a server-side code call that is fubar), if its just one particular mission then someone doesn't know how to code for MP.

Share this post


Link to post
Share on other sites

Have a look at the locality of the arguments and effects of scripting commands.

Killzone kid explained it very good in his blog.

http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-v2/

 

 

I've read the article, and I'm not having the problem of duplicating when someone JIP, it just duplicates the bag gear, and shows the sign of desync.

however, it may be the reason, I'll check that out.

 

 

 

In relation to this, JIP (join in progress) can also cause a duplication. In the early days of ArmA3's Arsenal functionality certain situations (including JIP) meant you could lose your headgear and vest when someone JIP'ed. So if an equipment script is called incorrectly a player connecting could trigger it for all clients.

If your issue happens on ALL missions its a game issue (or at the very least a server-side code call that is fubar), if its just one particular mission then someone doesn't know how to code for MP.

 

I don't use any kind of scripts. I just copy the and pasting the gear from the Arsenal that I made before and placed it in the init of every player according to its class.

Share this post


Link to post
Share on other sites

I don't use any kind of scripts. I just copy the and pasting the gear from the Arsenal that I made before and placed it in the init of every player according to its class.

And therein lies the problem, or at least part of it.

I'm not sure how lag/desync could be causing it, but I imagine a player connecting could potentially cause the init to fire again and dupe the gear.

Have you tried allocating gear using the 3D editor's inbuilt Arsenal functionality and seeing if that fixes the issue, rather than an init execution of a VA exported loadout?

Share this post


Link to post
Share on other sites

And therein lies the problem, or at least part of it.

I'm not sure how lag/desync could be causing it, but I imagine a player connecting could potentially cause the init to fire again and dupe the gear.

Have you tried allocating gear using the 3D editor's inbuilt Arsenal functionality and seeing if that fixes the issue, rather than an init execution of a VA exported loadout?

 

You mean letting them get their own gear from the virtual ammobox during the mission?

Share this post


Link to post
Share on other sites

simple solution :

 

init of unit:

if !(local this) exithwith {};
// and here comes your arsenal copy&past stuff

this will get rid of your duplication problem as discribed here at the very link i send you:

 

 

http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-v2/

 

if (!isServer) exitWith {}; // or as i used : if !(local this) exithwith {}; or: if (local this) then { /* your copy&pasr stuff}

//abort on a client

removeUniform this;

removeVest this;

removeBackpack this;

removeHeadgear this;

removeAllWeapons this;

this addBackpack "B_Kitbag_mcamo";

this addMagazines ["9Rnd_45ACP_Mag",3];

this addWeapon "hgun_ACPC2_F";

 

 

Share this post


Link to post
Share on other sites

the desync propably happens because the server has to send all this duplicated stuff across the network. or let's better say all the commands and their effects caused.

Share this post


Link to post
Share on other sites

simple solution :

 

init of unit:

if !(local this) exithwith {};
// and here comes your arsenal copy&past stuff

this will get rid of your duplication problem as discribed here at the very link i send you:

 

 

http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-v2/

 

 

should I edit the mission.sqm file and add this line, or can I just put that one line on top of the init of every player in the 3d editor?

Share this post


Link to post
Share on other sites

use the in-build arsenal or put this line at the top of the init in each unit you edited

Share this post


Link to post
Share on other sites

simple solution :

 

init of unit:

if !(local this) exithwith {};
// and here comes your arsenal copy&past stuff

this will get rid of your duplication problem as discribed here at the very link i send you:

 

 

http://killzonekid.com/arma-scripting-tutorials-basic-multiplayer-coding-v2/

 

THANK YOU.

I just put all the commands between this:

 if(local this) then {//commands}

and it fixed the problem.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×