SA-MP Forums

SA-MP Forums (
-   Plugin Development (
-   -   [Plugin] Streamer Plugin (

potato 18/10/2009 12:39 PM

Re: [REL] Streamer Plugin v1.1
Great work!
I wanted to start such a project my self, but... you saved me time!
But I found my self in a weird situation that I need a filterscript along with the gamemode that has these dynamic objects.
If I include the <streamer> in both filterscript and gamemode, will this effect something? From the benchmarks point of view.
Also, will the CountDynamicObjects work in filterscript only or both on the same time? (will count filterscript+gamemode dynamic objects?)
Because I would need to destroy all filterscript objects in case of reloadfs, but that can me done my simply adding all dynamic-object-ids to an array.

Sergei 18/10/2009 01:01 PM

Re: [REL] Streamer Plugin v1.1
Thanks for the quick update with those useful functions ;)

Incognito 18/10/2009 01:57 PM

Re: [REL] Streamer Plugin v1.1
potato: Yes, you can use the include and any of the plugin's natives across multiple scripts.

$€ЯĢ: You're welcome.

I wanted to note that there seems to be some problem with the Linux version (or perhaps just a few distributions—if it is working for you, then tell me!). The streaming system works perfectly fine, but for some reason, the player objects do not appear. I will try to find a solution soon.

Angelhj 19/10/2009 07:21 AM

Re: [REL] Streamer Plugin v1.1
i have 7 plugins

Irc Audio Dns Streamer aMailer aEncriptPlus Filemanager

and your or another irc plugin fails whit this streamer plugin :S

Incognito 19/10/2009 09:45 AM

Re: [REL] Streamer Plugin v1.1
Angelhj: It works fine here with the rest of my plugins loaded, but I have not tested with the last three you mentioned.

I found the source of the problem I spoke of earlier: Peter's PawnCommand. It seems to be partially bugged in Linux. When multiple float parameters are passed to it, they all get shuffled around for some odd reason. This causes the objects to always be created in the wrong place. The only solution I can think of is to execute a public function that will create each object in the script instead. This is obviously not quite as elegant, but it is the only thing I can do short of placing the entire streaming code inside the script as well. Fortunately, the speed should not suffer tremendously (OnPlayerUpdate gets called several times a second too). I will release a fixed version soon.

potato 20/10/2009 08:00 PM

Re: [REL] Streamer Plugin v1.1
I would like to recommend you making a function that streams objects manually.
Stream_ObjectsForPlayer(playerid); - gets the current player location and streams objects that need to be there no matter what.
For "the lag" reducing...

Also I noticed a bug that also applies with your said.
Objects seem to appear really slow after a longer server runtime.
Some value keeps getting bigger?

Incognito 22/10/2009 10:42 AM

Re: [REL] Streamer Plugin v1.1
Yes, I added a native earlier that will force an update for a player. This is particularly useful if you want to stream objects immediately at some point in your script. About your bug, it is probably related to a memory leak I found and fixed yesterday in PawnCommand.

Anyway, the Linux bug I described a few posts up has been fixed as well. The streaming code has also been reorganized and made slightly more efficient (nothing will stream for the player if his position has not changed since the last update). I was initially going to commit these changes and release v1.2, but instead, I think I will will skip ahead to v2 and add support for pickup, checkpoint, and map icon streaming. The algorithm will be almost identical, so it is really just a matter of writing some additional code to support more items. Look for it here soon.

Sergei 22/10/2009 04:09 PM

Re: [REL] Streamer Plugin v1.1
Nice to see that pickup, checkpoint and map icon support is on its way. I hope you won't miss race checkpoints out.

Only as a suggestion for one of the future versions; it would be nice if you also added 3D text streamer.

cyber_punk 22/10/2009 09:02 PM

Re: [REL] Streamer Plugin v1.1
Like the sound of the update. Has anyone done an official speed/max object test with this plug-in? Kinda curious to see the results before I go and try to switch everything over. I am mostly interested in seeing how it compares to YSI.

BP13 23/10/2009 02:52 AM

Re: [REL] Streamer Plugin v1.1
Very nice. But somehow could make make the objects load about 1 or 1/2 a second faster. They don't seem to be loading in time for places over the sea for example.

I would also like to request CreateInteriorObject.

All times are GMT. The time now is 05:59 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.