SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 28/10/2017, 12:45 PM   #5431
Logic_
Banned
 
Join Date: Jun 2015
Posts: 1,508
Reputation: 305
Default Re: Streamer Plugin

this issue has been reported earlier @RedFall, check out the last few pages of this thread and you'll find your answer.
Logic_ is offline   Reply With Quote
Old 28/10/2017, 12:50 PM   #5432
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,801
Reputation: 375
Default Re: Streamer Plugin

Quote:
Originally Posted by NLDBrian View Post
For some reason my objects only load when you are like standing ontop of it (It despawns when distance is more than about 3m).. I've tried to define the DD and SD BEFORE the streamer include.. This didn't work!

An example of my object string:
pawn Code:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);

I already tried the following:
pawn Code:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000, 0, 0, 400); //0, 0, 400 = VW, Int, Distance
Please help me out here!
Maybe you have too many regular CreateObject, each one of those will take a slot, so you will see less and less "dynamic" objects if you have more and more regular objects. Also, try recompiling all of your scripts (gamemode + filterscripts).

Quote:
Originally Posted by ToiletDuck View Post
can aynone help me with this bug?
http://forum.sa-mp.com/showthread.php?t=643387

Thanks!
After a while ? That may be a Streamer Plugin bug which probably appeared in v2.9.0. You could try downgrading to v2.8.2 and see if it got fixed and report back to us. Which version are you using now ? v2.9.1 from the "Releases" tab on GitHub ?

Quote:
Originally Posted by RedFall View Post
is this working in windows xp? it always load failed plugin
I compiled one of the latest changes of the streamer for Windows XP: https://github.com/samp-incognito/sa...ment-329974272 . You have the download link in there. If it is still not working, try to download this: https://www.microsoft.com/en-us/down....aspx?id=40784 (you need to install the _x86 one). You should really upgrade to at least Windows 7 if possible, Windows XP is deprecated (many applications aren't supporting Windows XP anymore) and vulnerable.
__________________


IstuntmanI is offline   Reply With Quote
Old 29/10/2017, 08:32 AM   #5433
Belengher
Huge Clucker
 
Join Date: May 2015
Posts: 199
Reputation: 0
Default Re: Streamer Plugin

This code can make the server crash? If not used in syntax now?

Quote:
CreateDynamicObject(19123, 1618.9, -1287.7, 16.9, 0.0, 0.0, 0.0); - THIS IS MY CODE
Is that so normal?

Quote:
CreateDynamicObject(19123,1618.9000000,-1287.7000000,16.9000000,0.0000000,0.0000000,0.0000 000); //
Belengher is offline   Reply With Quote
Old 29/10/2017, 06:30 PM   #5434
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 507
Reputation: 368
Default Re: Streamer Plugin

So currently the syntax to create an object (extended) is the following:
Code:
CreateDynamicObjectEx(..., worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, areas[] = { -1 }, ...);
Say I want an object in every world, I use -1.

How would I create an object in every world but one, or in every world but a range of worlds.
Examples:
  • Object in every world, except world 0.
  • Object in every world, except world 0 tot 99.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 30/10/2017, 09:31 AM   #5435
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 279
Reputation: 33
Default Re: Streamer Plugin

The only idea in my head

Code:
new objectid = CreateDynamicObject(...);
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, 0);
Except world 0 to 99 you need loop.

Code:
new objectid = CreateDynamicObject(...);

for(new worldid; worldid < 100; worldid += 1) Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, worldid);
ball is offline   Reply With Quote
Old 30/10/2017, 11:56 AM   #5436
kadaradam
Big Clucker
 
kadaradam's Avatar
 
Join Date: Feb 2011
Location: Hungary,Budapest
Posts: 157
Reputation: 65
Default Re: Streamer Plugin

Nah, CreateDynamicObjectEx()'s virtual world parameter supports arrays. Just store the world ids in an array, and pass it to CreateDynamicObjectEx().
kadaradam is offline   Reply With Quote
Old 30/10/2017, 07:29 PM   #5437
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 507
Reputation: 368
Default Re: Streamer Plugin

Quote:
Originally Posted by ball View Post
The only idea in my head

Code:
new objectid = CreateDynamicObject(...);
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, 0);
Except world 0 to 99 you need loop.

Code:
new objectid = CreateDynamicObject(...);

for(new worldid; worldid < 100; worldid += 1) Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, worldid);
That unfortunately doesn't work, since the object is created with all worlds in mind (thus value -1).
The worlds array is then initially {-1}, thus has only 1 element, on index 0.
Trying to remove value 0 to 99 from that array won't work, since those elements aren't present in the array.

The solution is probably adding an 'exclude worlds/interiors/players/areas' enum variable...

Quote:
Originally Posted by kadaradam View Post
Nah, CreateDynamicObjectEx()'s virtual world parameter supports arrays. Just store the world ids in an array, and pass it to CreateDynamicObjectEx().
There are 2,147,483,647 possible worlds... Go ahead and create an array of more than 2 billion elements...
Either you don't know what you're talking about or you don't understand the question.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 30/10/2017, 08:28 PM   #5438
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 486
Reputation: 131
Default Re: Streamer Plugin

A workaround would be to hook `SetPlayerVirualWorld` and append `worldid` to `E_STREAMER_WORLD_ID` for all objects (if it is not already).
Spmn is offline   Reply With Quote
Old 30/10/2017, 10:33 PM   #5439
Swinte
Big Clucker
 
Swinte's Avatar
 
Join Date: Jan 2017
Location: Brasil
Posts: 142
Reputation: 9
Default Re: Streamer Plugin

One of the best plugins has helped many people already.
__________________
Code:
Projeto: nenhum atualmente
São Paulo F.C <3
Usuário de 2013
Swinte is offline   Reply With Quote
Old 31/10/2017, 02:33 AM   #5440
Widoh
Little Clucker
 
Join Date: Oct 2017
Posts: 19
Reputation: 3
Default Re: Streamer Plugin

Hey Incognito, there's two problems:

1. "IsDynamicActorStreamedIn" doesn't works properly.
2. "MoveDynamicObject" is too slow! Even is better using "SetDynamicObjectPos" every few time and so, recreate a "object movement".
Kind regards
Widoh 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 9 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 11:33 AM.


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