SA-MP Forums Archive
Desync after changing int\world - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: Desync after changing int\world (/showthread.php?tid=651489)



Desync after changing int\world - anarhis - 21.03.2018

Hello guys! I have a serious trouble. On our server we have a desync after moment, when you've visited any /enter property. Like if server will change int\world for you - you'll be desynced. You will see a messages from another players, some player even can see you and KILL you for example, but on your screen you will see only your death without any reasons lol. We tested it on 0.3.8 rc4 and on 0.3dl-rc1. ALso we tested it on another host and we don't have this trouble. I'm using extravm.com hosting for that. Debian 9 on board. Any suggestions?


Re: Desync after changing int\world - CantBeJohn - 21.03.2018

To anyone who proceeds to have this issue, there’s a simple fix. You need to have OnPlayerFinishedDownload in your script returning 1. In the server configuration files you’re allowing the downloading of models but you don’t have OnPlayerFinishedDownloading in your script. I’ve figured out that this causes a “desync” where you can’t see anyone when your Virtual World changes because OnPlayerFinishedDownloding can’t/isn’t being called.

Edit: Apparently this happens even if you don’t have any custom models.


Re: Desync after changing int\world - anarhis - 21.03.2018

Ty for answer!

forward OnPlayerFinishedDownloading(playerid, virtualworld);
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
return 1;
}

Used this and this trouble still exist :c


Re: Desync after changing int\world - CantBeJohn - 22.03.2018

Quote:
Originally Posted by anarhis
View Post
Ty for answer!

forward OnPlayerFinishedDownloading(playerid, virtualworld);
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
return 1;
}

Used this and this trouble still exist :c
Don’t forward OnPlayerFinishedDownloading. Update your a_samp and includes by downloading the files from here (https://sampforum.blast.hk/showthread.php?tid=648633) and then having OnPlayerFinishedDownloading in your script will work and I can practically guarantee you this issue will disappear.


Re: Desync after changing int\world - sss1379 - 22.03.2018

Quote:
Originally Posted by anarhis
View Post
Ty for answer!

forward OnPlayerFinishedDownloading(playerid, virtualworld);
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
return 1;
}

Used this and this trouble still exist :c
What does "forward" do in this code


Re: Desync after changing int\world - CantBeJohn - 23.03.2018

This was solved in private messages but for anyone who has this issue in the future, here’s the solution:

Update your includes to 0.3.DL.
Add “OnPlayerFinishedDownloading” somewhere in your script.
Add in the “models” folder from the 0.3.DL’s package.

And it should be fixed. The issue is basically that you’re making the server download models through the server configuration while not having a models folder or not having “OnPlayerFinishedDownloading” in your script.


Re: Desync after changing int\world - Tom Kingston - 30.10.2018

Quote:
Originally Posted by CantBeJohn
View Post
This was solved in private messages but for anyone who has this issue in the future, here’s the solution:

Update your includes to 0.3.DL.
Add “OnPlayerFinishedDownloading” somewhere in your script.
Add in the “models” folder from the 0.3.DL’s package.

And it should be fixed. The issue is basically that you’re making the server download models through the server configuration while not having a models folder or not having “OnPlayerFinishedDownloading” in your script.
Pardon me for the disturbing, but how does one add the models folder in the script to be downloaded or something?