Need help for limit 1000 objects -
Stolyse - 08.04.2013
Hello I do a map with 1642 objects but I have big problem:
With Incognito streamer I seen all objects (1642) but I must be 1 meter for seen, else, i don't seen objects..
With CreateObjects I seen 1000 objects

but I seen 1000 objects perfect
how up the 1000 objects limit on samp because is my only solution for seen all objects with perfect distance?
Sorry for my bad english because i'm french
Re: Need help for limit 1000 objects -
se7evolution - 08.04.2013
Use streamdistance. Like the following
pawn Код:
CreateDynamicObject(3498, -1941.80, 535.92, 575.96, 0.00, 0.00, 0.00, -1, -1, -1, 2000.0000000);
How to change them in 1 time
1. Select all your objects
2. Search for );
3. Replace with -1, -1, StreamDistance here);
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
I already use
Re: Need help for limit 1000 objects -
se7evolution - 08.04.2013
Quote:
Originally Posted by Stolyse
I already use 
|
PM me your create objects or post 1 line of createobjects here.
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
CreateObject(10789,-1066.5929000,-1061.7194800,2143.9404300,90.0000000,179.9950000,0 .0050000);
With CreateObject i have no problem of distance but i have only 1000 objects because there are a limit.
And
CreateDynamicObject(10789,-1066.5929000,-1061.7194800,2143.9404300,90.0000000,179.9950000,0 .0050000, -1, -1, -1, 2000.0000000);
Re: Need help for limit 1000 objects -
se7evolution - 08.04.2013
Try to update your streamer.
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
I have streamer by incognito 2.6.1 1000 players it's new version
Re: Need help for limit 1000 objects -
Sithis - 08.04.2013
If you use a streamer, you must use the functions that come with the streamer (eg. CreateDynamicObject()) instead of the default SA:MP function (CreateObject()). If you use the default function, your objects will not stream via the streamer.
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
you have not understand my problem
Re: Need help for limit 1000 objects -
Sithis - 08.04.2013
Ah, i understand now.
Quote:
If some items are not appearing, there may be too many in one area. Lower the streaming distance by decreasing the "streamdistance" parameter on each native.
|
and
Quote:
The maximum amount of visible objects may be increased to 999 as of SA-MP 0.3d, though it is not recommended for all of these objects to be in one area due to game engine limits. By default, the number of visible objects is set to 500 to avoid conflicts.
|
Source:
https://sampforum.blast.hk/showthread.php?tid=102865
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
consequently i must remove 600 objects for a good use ?

and use createobjects or createdynamicobject with lot of lag ?
Re: Need help for limit 1000 objects -
RajatPawar - 08.04.2013
If you understand this properly, this will be a bloody boon for you.
https://sampforum.blast.hk/showthread.php?tid=428089
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
I have already try but i can't install because i don't understand this include
Re: Need help for limit 1000 objects -
RajatPawar - 08.04.2013
Just copy this code
OUTSIDE ANY CALLBACK and/or stock/function.
pawn Код:
#define STREAM_CONSTANT 180
new objects[11000][2], some_var = 0;
stock create_OBJECT(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
objects[ some_var ][ 0 ] = CreateDynamicObject(modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
objects[ some_var ][1] = modelid;
some_var++;
return 1;
}
Then use "create_OBJECT" to create your objects
INSTEAD OF CreateDynamicObject. (The same parameters)
Example:
pawn Код:
CreateDynamicObject(modelid, x, y, z, 0, 0, 0, -1, -1, -1, 100);
becomes
pawn Код:
create_OBJECT(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
IT
AUTOMATICALLY streams the object for you awesomely. See the picture in the topic.
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
It's not work for me

look :
This is my code :
In top:
Quote:
#include <a_samp>
#include <Streamer>
#include <modelsizes>
#define STREAM_CONSTANT 180 (I Already change to 2000 :/)
new objects[11000][2], some_var = 0;
|
In OnGameModeInit
Quote:
create_OBJECT(10789,-1066.5929000,-1061.7194800,2143.9404300,90.0000000,179.9950000,0 .0050000); //object(xenonroof_sfse) (10)
|
And in bottom of my script
Quote:
stock create_OBJECT(modelid, Float , Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
objects[ some_var ][ 0 ] = CreateDynamicObject(modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
objects[ some_var ][1] = modelid;
some_var++;
return 1;
}
|
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
I haven't solution

help me
Re: Need help for limit 1000 objects -
SupremeCommander - 08.04.2013
goto streamer page and check streamer_visibleitems. use it in ongamemodeinit to set maximum visible objects 800 or 900. sorry i couldve posted exact code but im on mobile.
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
I use : Streamer_VisibleItems(0, 900); in OnGameModeInit and i don't resolve my problem
Re: Need help for limit 1000 objects -
Stolyse - 08.04.2013
PERFECT Use with CreateObject but have a limit 1000 objects
Re: Need help for limit 1000 objects -
SupremeCommander - 08.04.2013
i could be wrong but i think samp objects and streamer objects are causing conflicts. try converting all maps which are using createobject to createdynamicobject.
hope this helps.