SA-MP Forums Archive
Any fix for this streamer issue? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Any fix for this streamer issue? (/showthread.php?tid=605900)



Any fix for this streamer issue? - Ritzy2K - 26.04.2016

Hello, I'm using streamer but im facing an issue, The object doesnt load until I'm very near to them, moreover sometimes walking over an object it disappears for a second and then reappears right back, and i get bugged getting "under that" object. I have this under OnGameModeInit but nothing helps.

Code:
	Streamer_VisibleItems(STREAMER_TYPE_OBJECT, 700);
	Streamer_CellDistance(1000.0);


The objects arent loaded in the above pic if im far away.

In the below pic when im close the object appears

This also happens sometimes when im very near it disappears then suddenly reappears, my streamer is updated. What can be the issue?


Re: Any fix for this streamer issue? - Antoniohl - 26.04.2016

check in server.cfg for
stream_distance xxx.x


Re: Any fix for this streamer issue? - Micko123 - 26.04.2016

Like @Antoniohl said. server.cfg is problem in your case. Make that number under the stram distance bigger if you want to load from bigger disance


Re: Any fix for this streamer issue? - Ritzy2K - 26.04.2016

Uhm, didn't helped.


Re: Any fix for this streamer issue? - CalvinC - 26.04.2016

Press F5 and check how many objects you have streamed in, make sure it's not near or over 1000.


Re: Any fix for this streamer issue? - NaS - 26.04.2016

CellDistance doesnt adjust the stream distance, but the size of each cell (used for efficient streaming).

Set the stream distance of each object to (for example) 300.0 and the celldistance to around 400 or 500.
To adjust the stream distance use the parameter in CreateDynamicObject (streamdistance, not drawdistance) or:

Code:
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_STREAM_DISTANCE, 300.0);
The stream_distance in server.cfg is only used for players, vehicles, actors and npcs.

Also make sure that the areaid parameter is -1.


Re: Any fix for this streamer issue? - Crayder - 26.04.2016

Disregard ALL of these comments!

There is a new solution! A perfect solution for this very type of issue!

PER-ITEM PRIORITY!

Get the latest version of streamer, then every CreateDynamic* function will have a new 'priority' parameter. Set this parameter to any number. Objects with higher priority will stream before all other objects!


Re: Any fix for this streamer issue? - Ritzy2K - 27.04.2016

Nothing Helps. :/


Re: Any fix for this streamer issue? - Crayder - 27.04.2016

Quote:
Originally Posted by [ND]xXZeusXx.
View Post
Nothing Helps. :/
Quote:
Originally Posted by Crayder
View Post
Disregard ALL of these comments!

There is a new solution! A perfect solution for this very type of issue!

PER-ITEM PRIORITY!

Get the latest version of streamer, then every CreateDynamic* function will have a new 'priority' parameter. Set this parameter to any number. Objects with higher priority will stream before all other objects!
This WILL help. Set the bad object with a higher priority than the rest of the objects.


Re: Any fix for this streamer issue? - Lumanov - 27.04.2016

Quote:
Originally Posted by Antoniohl
View Post
check in server.cfg for
stream_distance xxx.x
This does not affect the streamer.