SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 18/10/2009, 11:39 AM   #11
potato
Big Clucker
 
Join Date: Sep 2007
Posts: 102
Reputation: 0
Default 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.
potato is offline   Reply With Quote
Old 18/10/2009, 12:01 PM   #12
Sergei
High-roller
 
Sergei's Avatar
 
Join Date: Mar 2008
Location: Slovenia
Posts: 2,923
Reputation: 230
Default Re: [REL] Streamer Plugin v1.1

Thanks for the quick update with those useful functions
__________________
Watch out, scouts everywhere!
Sergei is offline   Reply With Quote
Old 18/10/2009, 12:57 PM   #13
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 448
Reputation: 487
Default 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.
Incognito is offline   Reply With Quote
Old 19/10/2009, 06:21 AM   #14
Angelhj
Little Clucker
 
Join Date: Jun 2008
Posts: 29
Reputation: 0
Default 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
Angelhj is offline   Reply With Quote
Old 19/10/2009, 08:45 AM   #15
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 448
Reputation: 487
Default 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.
Incognito is offline   Reply With Quote
Old 20/10/2009, 07:00 PM   #16
potato
Big Clucker
 
Join Date: Sep 2007
Posts: 102
Reputation: 0
Default 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?
potato is offline   Reply With Quote
Old 22/10/2009, 09:42 AM   #17
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 448
Reputation: 487
Default 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.
Incognito is offline   Reply With Quote
Old 22/10/2009, 03:09 PM   #18
Sergei
High-roller
 
Sergei's Avatar
 
Join Date: Mar 2008
Location: Slovenia
Posts: 2,923
Reputation: 230
Default 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.
__________________
Watch out, scouts everywhere!
Sergei is offline   Reply With Quote
Old 22/10/2009, 08:02 PM   #19
cyber_punk
Gangsta
 
Join Date: Feb 2008
Location: Det. Mi. USA.....
Posts: 496
Reputation: 9
Default 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.
__________________
cyber_punk is offline   Reply With Quote
Old 23/10/2009, 01:52 AM   #20
BP13
High-roller
 
BP13's Avatar
 
Join Date: Jan 2009
Location: Canada
Posts: 2,064
Reputation: 2
Default 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.
__________________
BP13 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Checkpoint / Area sub-streamer for incognito's streamer plugin Pottus Includes 11 21/03/2014 06:31 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 07:33 AM
Streamer plugin 0.3d rt-2 Plugin Development 7 05/12/2011 06:17 PM
Streamer Plugin Help! ColdXX Everything and Nothing 2 21/08/2010 10:28 PM
Streamer Plugin! ColdXX Help Archive 10 18/07/2010 12:47 PM


All times are GMT. The time now is 06:25 PM.


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