Desync after changing int\world
#1

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?
Reply
#2

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.
Reply
#3

Ty for answer!

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

Used this and this trouble still exist :c
Reply
#4

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.
Reply
#5

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
Reply
#6

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.
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)