SA-MP Forums Archive
Ability to start background downloads from other virtual world - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: Ability to start background downloads from other virtual world (/showthread.php?tid=645009)



Ability to start background downloads from other virtual world - Graber - 18.11.2017

I think it would be a great thing to Lerner’s the server start background downloads for other virtual worlds, because some maps would be very big and it would be a pain to start the download just when you want to join that world.

I think we should be able to start background downloads for worlds we know the player will go to, so they can do other things while they don’t use the downloading objects, this to prevent the long wait of downloading and being unable to anything and having to wait when you join the other virtual world.

I think scripters will be able to deal wether a player should join or not the virtual world if they haven’t downloaded the world yet. With the existing callback I think is enough.

Thanks for reading


Re: Ability to start background downloads from other virtual world - FufLa - 18.11.2017

Can't you just add these models for the virtual world 0? AFAIK they should still be available in other virtual worlds.


Re: Ability to start background downloads from other virtual world - m4karow - 18.11.2017

Code:
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
	new worldid = GetPlayerVirtualWorld(playerid) + 1;
	if(worldid == MAX_VIRTUAL_WORLD)
		return 1;
	else
	{
		SetPlayerVirtualWorld(playerid, worldid);
	}
	return 1;
}
lol


Re: Ability to start background downloads from other virtual world - Graber - 18.11.2017

Quote:
Originally Posted by m4karow
View Post
Code:
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
	new worldid = GetPlayerVirtualWorld(playerid) + 1;
	if(worldid == MAX_VIRTUAL_WORLD)
		return 1;
	else
	{
		SetPlayerVirtualWorld(playerid, worldid);
	}
	return 1;
}
lol
yeah, and the player will get tired of waiting ON SERVER JOIN (which is worse) while connecting and disconnect!