Object loading slow
#1

Hello community,I made a big map and I am very angry at the moment because I worked hard on it and when I put it into a gamemode the objects are loading very slow and if there is a car it falls because takes ages for the object to appear.

So please tell me what can I do,also the map has total of 1327 objects and I am also using streamer 2.6.1.0.
Reply
#2

==> is it CreateDynamicObject or CreateObject, if it's a createdynamicobject then check the streamdistance thing.. thats what Im going to say, but if it's a CreateObject then the createobject (samp) can't hold more than 1000 objects.

I hope that I helped you!.
Reply
#3

Use this streamer:

https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#4

it is createdynamicobject and idk how to check the streamdistance
Reply
#5

Does are some of my objects

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <streamer>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
CreateDynamicObject(19377, 1180.58191, -1380.29492, 23.05557,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19377, 1180.57080, -1372.31506, 23.05557,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.86194, -1369.04138, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.88525, -1372.17725, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.74634, -1375.28821, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.80396, -1378.36340, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.84009, -1381.24219, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1174.86694, -1383.52075, 23.05560,   0.00000, 90.00000, 0.00000);
CreateDynamicObject(19362, 1173.07898, -1369.13745, 24.07457,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19362, 1173.07434, -1372.30859, 24.07460,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19362, 1173.06958, -1375.46912, 24.07460,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19362, 1173.06091, -1378.61047, 24.07460,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19362, 1173.05981, -1381.77136, 24.07460,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19362, 1173.07288, -1383.52954, 24.07460,   0.00000, 0.00000, 0.00000);
CreateDynamicObject(19377, 1167.73254, -1380.32910, 25.73735,   0.00000, 90.00000, 0.03179);
CreateDynamicObject(19377, 1167.74109, -1370.85889, 25.73735,   0.00000, 90.00000, 0.03179);
CreateDynamicObject(19377, 1167.68945, -1361.29785, 25.73735,   0.00000, 90.00000, 0.45179);
CreateDynamicObject(19377, 1167.62439, -1351.72388, 25.73735,   0.00000, 90.00000, 0.45179);
CreateDynamicObject(19377, 1167.55151, -1347.25635, 25.73735,   0.00000, 90.00000, 0.21179);
CreateDynamicObject(19377, 1157.22168, -1347.08936, 25.73735,   0.00000, 90.00000, 0.45179);
Reply
#6

so I tried the streamer showen by Blackazur but still loads slow like it loads just when I am very close to the objects
Reply
#7

Tryed to change drawdistance?
CreateDynamicObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, FloatrawDistance)
Reply
#8

Nope but if I would want to try it needs to look like this?

Код:
CreateDynamicObject(19377, 1180.58191, -1380.29492, 23.05557,   0.00000, 90.00000, 0.00000,100);
And also I have to do that thing with all the objects,cause if yes than that would take ages.
Reply
#9

Use convertffs.com
Reply
#10

and i convert it for?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)