Mikeeeyy

Uniform/Vest Disappear Bug Fix

17 posts in this topic

Simply download this pbo file: https://www.mediafire.com/?vyqx9s2dqn6ncd7 and drop it inside @ExileServer\addons.

This will stop uniforms/vests disappearing after server restarts.

It works by detecting that your uniform and/or vest is bugged, and then simply giving you a new one. Players won't be able to tell that anything is happening, it's like they were never bugged :)

Edited by Mikeeeyy
9 people like this

Share this post


Link to post
Share on other sites

looks what I have made just worse :P B|

 

what is this?

Quote


[] spawn
{
    waitUntil {!isNil "ExileServer_system_thread_addTask"};
    {
        [30, JR_containerBug_thread, [], true] call ExileServer_system_thread_addTask;
    }
    remoteExecCall ["call", 2];
};

 

this is what I did after Cen or Hollow asked me to do something/change it - did not test it yet tho:
 

Spoiler

/*
	Author:   infiSTAR.de
	Description:   fix Uniform + Vest bug for Exile
	Additional Information:   untested
	
	Usage:
	Postinit - so we can make use of Exile Main Thread by adding this as Task!
*/
fnc_check_uniform_n_vest = compileFinal "
	params ['_uniform', '_vest'];
	if!(uniform player isEqualTo _uniform)then
	{
		_uniformContent = (uniformContainer player) call ExileClient_util_containerCargo_serialize;
		player forceAddUniform _uniform;
		[(uniformContainer _player), _uniformContent] call ExileClient_util_containerCargo_deserialize;
		systemChat '<infiSTAR.de> just repalced your UNIFORM as it was not shown for other players #ARMABUGS';
	};
	if!(vest player isEqualTo _vest)then
	{
		_vestContent = (vestContainer player) call ExileClient_util_containerCargo_serialize;
		player addVest _vest;
		[(vestContainer player), _vestContent] call ExileClient_util_containerCargo_deserialize;
		systemChat '<infiSTAR.de> just repalced your VEST as it was not shown for other players #ARMABUGS';
	};
";
publicVariable 'fnc_check_uniform_n_vest';


_check_uniform_n_vest_loopcode = {
	{
		if(alive _x)then
		{
			[uniform _x,vest _x] remoteExecCall ['fnc_check_uniform_n_vest', owner _x,false];
		};
	} forEach allPlayers;
};
if(!isNil'check_uniform_n_vest_THREAD')then{[check_uniform_n_vest_THREAD] call ExileServer_system_thread_removeTask;};
check_uniform_n_vest_THREAD = [30, _check_uniform_n_vest_loopcode, [], true] call ExileServer_system_thread_addTask;

 

 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

That's to jump back into unscheduled environment. Also you're adding back uniform/vest from the variable from the server, the server sees you with no uniform/vest, so you're adding no uniform/vest lol. -_-

Edited by Mikeeeyy

Share this post


Link to post
Share on other sites
13 hours ago, infiSTAR said:

looks what I have made just worse :P B|

 

what is this?

 

this is what I did after Cen or Hollow asked me to do something/change it - did not test it yet tho:
 

  Reveal hidden contents



/*
	Author:   infiSTAR.de
	Description:   fix Uniform + Vest bug for Exile
	Additional Information:   untested
	
	Usage:
	Postinit - so we can make use of Exile Main Thread by adding this as Task!
*/
fnc_check_uniform_n_vest = compileFinal "
	params ['_uniform', '_vest'];
	if!(uniform player isEqualTo _uniform)then
	{
		_uniformContent = (uniformContainer player) call ExileClient_util_containerCargo_serialize;
		player forceAddUniform _uniform;
		[(uniformContainer _player), _uniformContent] call ExileClient_util_containerCargo_deserialize;
		systemChat '<infiSTAR.de> just repalced your UNIFORM as it was not shown for other players #ARMABUGS';
	};
	if!(vest player isEqualTo _vest)then
	{
		_vestContent = (vestContainer player) call ExileClient_util_containerCargo_serialize;
		player addVest _vest;
		[(vestContainer player), _vestContent] call ExileClient_util_containerCargo_deserialize;
		systemChat '<infiSTAR.de> just repalced your VEST as it was not shown for other players #ARMABUGS';
	};
";
publicVariable 'fnc_check_uniform_n_vest';


_check_uniform_n_vest_loopcode = {
	{
		if(alive player)then
		{
			[uniform _x,vest _x] remoteExecCall ['fnc_check_uniform_n_vest', owner _x,false];
		};
	} forEach allPlayers;
};
if(!isNil'check_uniform_n_vest_THREAD')then{[check_uniform_n_vest_THREAD] call ExileServer_system_thread_removeTask;};
check_uniform_n_vest_THREAD = [30, _check_uniform_n_vest_loopcode, [], true] call ExileServer_system_thread_addTask;

 

 

It also broke my server :D

1 person likes this

Share this post


Link to post
Share on other sites
3 minutes ago, CEN said:

It also broke my server :D

Are you talking about mine or Chris'?

Share this post


Link to post
Share on other sites
11 minutes ago, Mikeeeyy said:

Are you talking about mine or Chris'?

Chris' version :D

Share this post


Link to post
Share on other sites
3 minutes ago, CEN said:

Chris' version :D

Phew.. 9_9

2 people like this

Share this post


Link to post
Share on other sites
11 hours ago, CEN said:

It also broke my server :D

You implemented it wrong ;-)

Share this post


Link to post
Share on other sites
Advertisement

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.