SA-MP Forums Archive
[Plugin] Streamer Plugin - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Streamer Plugin (/showthread.php?tid=102865)



Re: [REL] Streamer Plugin v2.6.1 - Sergei - 03.02.2013

SA:MP has vehicle streamer by default.


Re: [REL] Streamer Plugin v2.6.1 - IstuntmanI - 03.02.2013

Quote:
Originally Posted by Sergei
Посмотреть сообщение
SA:MP has vehicle streamer by default.
Only up to 2000 vehicles, we want infinite. Like how the pickup streamer is working.


Re: [REL] Streamer Plugin v2.6.1 - bugheada - 03.02.2013

I updated new version but pawno console error:
Quote:

...pawno\include\streamer.inc(343) : error 017: undefined symbol "Streamer_OnPlayerSelectObject"
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : warning 215: expression has no effect
...pawno\include\streamer.inc(343) : error 001: expected token: ";", but found ")"
...pawno\include\streamer.inc(343) : error 029: invalid expression, assumed zero
...pawno\include\streamer.inc(343) : fatal error 107: too many error messages on one line




Re: [REL] Streamer Plugin v2.6.1 - Twixter - 03.02.2013

Thanks a lot for 0.3x version


Re: [REL] Streamer Plugin v2.6.1 - Incognito - 03.02.2013

Quote:
Originally Posted by Edvin
Посмотреть сообщение
Incognito in the future, can you make a vehicle streamer ? or just update this to be able to stream vehicles? will be great.

And thanks for the update.
It could be done, but wrapping all of the vehicle-related natives and callbacks would be a lot of work, and I just don't have time to do it. I could easily add basic vehicle streaming (with nothing wrapped but CreateVehicle and DestroyVehicle), but anything beyond that would amount to quite a large undertaking.

However, the plugin is open source, so you are always welcome to try.

Quote:
Originally Posted by bugheada
Посмотреть сообщение
I updated new version but pawno console error:
Sorry, there was a small typo in the include file. Redownload please.


Re: [REL] Streamer Plugin v2.6.1 - Rac3r - 04.02.2013

Quote:
Originally Posted by Twixter
Посмотреть сообщение
Thanks a lot for 0.3x version
+1

Some of our maps looks magnificent with the extended stream and view distance, awesome.

I had one problem though, I might be doing it wrong:
Код:
new objectid = CreateDynamicObjectEx(OBJECT_Model[i],
OBJECT_PosX[i], OBJECT_PosY[i], OBJECT_PosZ[i],
OBJECT_PosRX[i], OBJECT_PosRY[i], OBJECT_PosRZ[i],
viewdistance,
streamdistance);
The next param is Virtual World, but when I add the defined world ID, it gives an error:
Код:
argument type mismatch (argument 10)
Code used, before 0.3x update:
Код:
new objectid = CreateDynamicObject(OBJECT_Model[i],
OBJECT_PosX[i],	OBJECT_PosY[i], OBJECT_PosZ[i],
OBJECT_PosRX[i], OBJECT_PosRY[i], OBJECT_PosRZ[i],
VIRTUAL_WORLD_WAIT);
The error happens when I use VIRTUAL_WORLD_WAIT as the virtual world setting.


Re: [REL] Streamer Plugin v2.6.1 - Incognito - 04.02.2013

It's an array, so the number needs to be enclosed in braces. Example:

pawn Код:
#define VIRTUAL_WORLD_WAIT { 1 }



Re: [REL] Streamer Plugin v2.6.1 - Nautica - 04.02.2013

Good work Incognito!


Re: [REL] Streamer Plugin v2.6.1 - retsaoremo - 04.02.2013

Incognito,
Can you help me: http://forum.sa-mp.com/showthread.ph...12#post2345012
this topic is related to Streamer Plugin... pls.


Re: [REL] Streamer Plugin v2.6.1 - Rac3r - 05.02.2013

Quote:
Originally Posted by Incognito
Посмотреть сообщение
It's an array, so the number needs to be enclosed in braces. Example:
pawn Код:
#define VIRTUAL_WORLD_WAIT { 1 }
That worked, my fault entirely. Thanks, that's race maps fixed.

What if the world is constantly changing?
pawn Код:
OBJ_ParseObjectFile(filename[], world = -1)
And....
pawn Код:
CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance, VIRTUAL_WORLD_TIMETRIAL + playerid);
Really appreciate the 0.3x update and all the help your doing getting us set up.


Re: [REL] Streamer Plugin v2.6.1 - SpeAroX - 05.02.2013

I use the last streamer version the last samp version and if i use CreateDynamicObjectEx in filterscript i get load random scripts but i don't load this.
Код:
[11:22:55]   Loading filterscript '€.amx'...
[11:22:55]   Unable to load filterscript '.amx'.
[11:22:55]   Loading filterscript 'ű.amx'...
[11:22:55]   Unable to load filterscript 'ű.amx'.
[11:22:55]   Loaded 2 filterscripts.
Svr cfg: filterscripts ParadiseCity

If i use normal CreateDynamicObject i don't get this. Any solution?
One of the object:
Код:
CreateDynamicObjectEx(7045,1550.0996100,-3296.7998000,10.0000000,0.0000000,0.0000000,0.0000000,400.0000000,400.0000000);



Re: [REL] Streamer Plugin v2.6.1 - beckzy - 05.02.2013

What's new from revision 81 to revision 84?


Re: [REL] Streamer Plugin v2.6.1 - Kyle - 05.02.2013

Quote:
Originally Posted by BeckzyBoi
Посмотреть сообщение
What's new from revision 81 to revision 84?
- Improved callback hooks in include file
- Fixed draw distance bug with CreateDynamicObjectEx
- Fixed area detection bug when a player is moving at a high velocity
- Made objects update automatically when EditDynamicObject is called
- Made moving objects update automatically when GetDynamicObjectPos and GetDynamicObjectRot are called


AW: [REL] Streamer Plugin v2.6.1 - Axuj - 05.02.2013

Hello, i have a problem with visible items.

I have about 700 objects in one place and i need to make them all visible at one time, but if i set max visible items to 700 it shows me maximum 556 objects (it's shown in the console, when i print CountVisibleItems), so the problem is, i can see only 556 objects of 700, any issues?

Thank you.


Re: [REL] Streamer Plugin v2.6.1 - Gigi-The-Beast - 05.02.2013

Lower the draw distance of the objects, it is impossible to show that much objects at the same time, the game engine does not allow it.


Re: [REL] Streamer Plugin v2.6.1 - Stream - 05.02.2013

that was great , i rly liked that


Re: AW: [REL] Streamer Plugin v2.6.1 - IstuntmanI - 05.02.2013

Quote:
Originally Posted by Axuj
Посмотреть сообщение
Hello, i have a problem with visible items.

I have about 700 objects in one place and i need to make them all visible at one time, but if i set max visible items to 700 it shows me maximum 556 objects (it's shown in the console, when i print CountVisibleItems), so the problem is, i can see only 556 objects of 700, any issues?

Thank you.
Maybe you have to many CreateObject.


AW: Re: AW: [REL] Streamer Plugin v2.6.1 - Axuj - 05.02.2013

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
Maybe you have to many CreateObject.
Thank you very much. That was the problem.


Re: [REL] Streamer Plugin v2.6.1 - Incognito - 05.02.2013

Quote:
Originally Posted by retsaoremo
Посмотреть сообщение
Incognito,
Can you help me: http://forum.sa-mp.com/showthread.ph...12#post2345012
this topic is related to Streamer Plugin... pls.
You'll need to hide every map icon except for the ones you want to be visible.

pawn Код:
// Loop through all of the map icons
for (new i = 1, j = Streamer_GetUpperBound(STREAMER_TYPE_MAP_ICON); i < j; i++)
{
    // Check if the map icon is not the one you want to be visible
    if (i != iconid)
    {
        // Hide the map icon by removing the player from it
        Streamer_RemoveArrayData(STREAMER_TYPE_MAP_ICON, i, E_STREAMER_PLAYER_ID, playerid);
    }
    // Some time later, in a separate loop:
    // Make the map icon visible again by adding the player back
    Streamer_AppendArrayData(STREAMER_TYPE_MAP_ICON, i, E_STREAMER_PLAYER_ID, playerid);
}
Quote:
Originally Posted by Rac3r
Посмотреть сообщение
That worked, my fault entirely. Thanks, that's race maps fixed.

What if the world is constantly changing?
pawn Код:
OBJ_ParseObjectFile(filename[], world = -1)
And....
pawn Код:
CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance, VIRTUAL_WORLD_TIMETRIAL + playerid);
Really appreciate the 0.3x update and all the help your doing getting us set up.
PAWN only lets you initialize arrays with constant values, so you'll have to do this:

pawn Код:
new worlds[1];
worlds[0] = VIRTUAL_WORLD_TIMETRIAL + playerid);
CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance, worlds);
However, you could also do this:

pawn Код:
new objectid = CreateDynamicObjectEx(modelid, x, y, z, xr, y2, z3, distance, distance);
Streamer_AppendArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, VIRTUAL_WORLD_TIMETRIAL + playerid);
Take care to remove old virtual world IDs with Streamer_RemoveArrayData (unless, of course, you're just destroying and recreating those objects every time).


Re: [REL] Streamer Plugin v2.6.1 - proSeryoga - 06.02.2013

Код:
\pawno\include\streamer.inc(297) : warning 202: number of arguments does not match definition
\pawno\include\streamer.inc(304) : error 025: function heading differs from prototype