Mikeeeyy

[FIX] Death Loop Bug

26 posts in this topic

Death Loop Bug

995f0e7f72.JPG

This bug is caused by your character dieing before it's properly initialised. In most cases it's death from fall damage, for example logging out on a mission building and then logging in and falling to your death. To fix this we simply freeze the character until the client has taken ownership.

  1. Open ExileServer_object_player_database_load.sqf
  2. Find:
    _player = _group createUnit ["Exile_Unit_Player", _position, [], 0, "CAN_COLLIDE"];

    and underneath paste this:

    _player enableSimulation false;

     

  3. Find:

    _player addMPEventHandler ["MPKilled", {_this call ExileServer_object_player_event_onMpKilled}];

    and underneath paste this:

    _tempFix =
    {
    	if (!local _this) then
    	{
    		_this enableSimulation true;
    		[_x select 4] call ExileServer_system_thread_removeTask;
    	};
    };
    [1, _tempFix, _player, true] call ExileServer_system_thread_addTask;

     

Step 3 may not even be needed, I'm just doing it anyway because it seems like a good idea for the unit to have simulation server side. Please note step 3 is a "temp hacky fix" just because I can't be bothered editing the login fsm, but preferrably when the devs fix it, they should just enableSimulationGlobal on the unit after selectPlayer or towards the end of the fsm when done loading.

Pre-fixed ExileServer_object_player_database_load.sqf here: http://pastebin.com/raw/JtG8bmwu

Edited by Mikeeeyy
  • Like 9

Share this post


Link to post
Share on other sites
Advertisement

Solves the issue! the problem seems to be is the player is taking over a already dead body. Thanks for the fix, but yours seems a lot better then the one i had, i forgot about 

_player enableSimulation false;

i just gave it god mode for 5 seconds. although i'm going to keep both :P (but after they actually take control)

+1

Edited by †RiH† Stokes

Share this post


Link to post
Share on other sites

well i have this still happening for some reason, i used the fix noted above and it still happened, sometimes i was dead, sometimes IF i clicked respawn before the respawn timer was up then i would respawn a couple of houses before where i had been and run to where i died and my body was there :/ 

@Eichi fix listed above just stopped me respawning couple houses before 

 

https://youtu.be/_Oba8FjKX9k

Edited by Diggz
updated youtube link

Share this post


Link to post
Share on other sites
4 minutes ago, Diggz said:

well i have this still happening for some reason, i used the fix noted above and it still happened, sometimes i was dead, sometimes IF i clicked respawn before the respawn timer was up then i would respawn a couple of houses before where i had been and run to where i died and my body was there :/ 

@Eichi fix listed above just stopped me respawning couple houses before 

 

https://www.youtube.com/watch?v=0Z9rhUGSKJI

What you are saying sounds like a different issue.

Share this post


Link to post
Share on other sites
6 minutes ago, Diggz said:

this video shows the bug with your fix implemented... either way is not working for me somehow 

https://youtu.be/jISq4oGR8YQ

That looks like a different issue, one which my fix won't fix. I've never actually seen the death loop happen like that, only time it has happened to me is if a player dies while loading in. My fix is to freeze the player in place until they have control. Yours is happening when you log out normally. Have you edited some files and screwed it up?

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.