Objects loading slow..
#1

Ok, in my server, i have somewhere around 10000 objects or something like that.. if i teleport to a stunt, the objects cannot load fast enough, so the user falls. Lately, i tell everyone to keep doing the teleport until it all loads, but i want it fixed.

It takes probaly around 20 Seconds to load just one stunt.

Is there a way to speed this up? A better streamer? I'm using midostream (double-o-objects is bugged on my server, dont tell me to use that).
Reply
#2

umm well i got around 1000 objects and im using xobjects, some objects aren't loading at all, this command kinda helped me a little bit but still

Quote:
Originally Posted by MenaceX^
I got some problem with objects too in my GM, This is the reason of made a command to reload objects. When you're connecting to server DO NOT put the xObects in server.cfg, remove it from there, let it be only in filterscrtips file
Enter to the server and put this cmd in OnPlayerCommandText
pawn Код:
//--------------[Reload Objects]--------------
 if(strcmp(cmd, "/reloadobjects", true) == 0)
 {
 if(PlayerInfo[playerid][pAdmin] >=1337)
 {
      SendRconCommand("reloadfs xObjects");
      {
    format(string, sizeof(string), "|____Objects have been reloaded successfully____|");
    SendClientMessageToAll(COLOR_ORANGE, string);
         }
    }
   return 1;
 }
After using this I'm pretty sure you will not have any problems, But the problem is every time after restart you should do it.
change what ever needed.
Reply
#3

xObjects is not up for download anymore... boylett deleted it. Nobody can have it.
Reply
#4

Quote:
Originally Posted by cj101
xObjects is not up for download anymore... boylett deleted it. Nobody can have it.
That's xStreamer you're talking about which is plugin, xObjects is a filterscript.
Reply
#5

Well, you can use this if you want to:
Код:
forward ToggleTimer(playerid);
Код:
public ToggleTimer(playerid)
{
  TogglePlayerControllable(playerid, true);
  return 1;
}
Код:
if(strcmp(cmdtext,"/yourcommandhere",true)==0)
	{
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);//your position to set.
    TogglePlayerControllable(playerid, false);
    SetTimer("ToggleTimer", 10000, 0);//your timer to unfreeze the player.
    SendClientMessage(playerid, 0xFFFFFFFF, "You must wait till the objects are loaded !");
    return 1;
  }
EDIT: Check this if this can help, http://forum.sa-mp.com/index.php?topic=121550.0

Regards,
Adil.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)