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.3.3 - Sergei - 16.01.2010

Quote:
Originally Posted by Toney
DRIFT_HUNTER MAX objects in one area 150-250
Maximum 254 objects can be shown.


Re: [REL] Streamer Plugin v2.3.3 - Chaprnks - 21.01.2010

This could be a bug, or a suggestion, depending on your point of view. I have a bit of a problem when I create checkpoints on the spot. (Creating houses, or businesses ect.) Right after its created you cannot see it, and you have to get far away, and come back before you can see it. This can get very annoying when you have many checkpoints created over time, with commands.

I also noticed that the checkpoints do not show up some of the time, (I use a 10 meter view distance). Once in a while the checkpoints will show up, or the wrong one will, the farther away one. I think this is because I have many checkpoints within a 100 feet radius, and the streamer does not know how to choose the closest one.


Re: [REL] Streamer Plugin v2.3.3 - NeRoSiS - 22.01.2010

This is like the jizz, but I have a suggestion, make a "mode" or something so that instead of setting the distance in each command, you set it to stream X nearest objects.


Re: [REL] Streamer Plugin v2.3.4 - Incognito - 22.01.2010

Chaprnks: I just noticed something in the streaming code that was very likely to be causing the behavior you described in your post. Thanks for the report.

Wazza!: I don't understand what you mean. The nearest objects are automatically streamed.

I've released v2.3.4 which fixes a few bugs and adds two new natives:

Quote:

v2.3.4:
- Fixed bug with OnPlayerPickUpDynamicPickup that resulted in it being called too many times when multiple scripts were loaded
- Fixed bug with checkpoints and race checkpoints that caused none to be streamed until the one that was visible was no longer in range
- Slightly improved native address finding and added an error message that prints in the server log when all natives cannot be found
- Consolidated all of the update natives into Streamer_Update
- Added Streamer_UpdateEx for loading items in a specified area

You can use Streamer_UpdateEx to "fake" the player's current position so that items can be streamed in a certain area. Besides the obvious advantages this has with SetPlayerPos, you can also use it under OnPlayerRequestClass where the player's real position is always 0.0, 0.0, 0.0.


Re: [REL] Streamer Plugin v2.3.4 - kurta999 - 22.01.2010

Iam using the streamer, very good 5/5. Dont adding the vehicle streamer ?


Re: [REL] Streamer Plugin v2.3.4 - Sergei - 22.01.2010

Quote:
Originally Posted by kurta999
Iam using the streamer, very good 5/5. Dont adding the vehicle streamer ?
Vehicles are streamed in 0.3a by default as well as players.


Re: [REL] Streamer Plugin v2.3.4 - Toney - 23.01.2010

Incognito thanks for your updating. I using it as well.
P.S $ЂЯĢ i using all of your recommendats. Nice >_>


Re: [REL] Streamer Plugin v2.3.4 - Stig - 23.01.2010

I think this streamers great, loads of function.



Peace....


Re: [REL] Streamer Plugin v2.3.4 - Double-O-Seven - 23.01.2010

Great!
I love it: Streamer_UpdateEx

Tank you very much! Nice work!


Re: [REL] Streamer Plugin v2.3.4 - Toney - 28.01.2010

Function CreateDynamic3DTextLabel is works? Becuase it won't show labels.
Code:
carbuy[c] = CreateDynamic3DTextLabel(textbasic,0x33AAFFFF,CarT otal[c][vCarX], CarTotal[c][vCarY],CarTotal[c][vCarZ]+0.70, 6.0, INVALID_PLAYER_ID, CarTotal[c][MysqlCarid], 1, -1, -1, -1, 100.0);

FIXED Thanks to Incognito


Re: [REL] Streamer Plugin v2.3.4 - d0 - 29.01.2010

I have a problem with 'File or Function not found.'

I have 2 GameMods, but the streamer is only working fine in one.

The plugin loads fine.
In the gamemode with this problem, i get it with including the streamer.inc.(Without changeing anything else)

So it has something to do with conflicts between the gm and include.

Any idea why ?


Re: [REL] Streamer Plugin v2.3.4 - Finn - 29.01.2010

Is it any way to get & set the pick-up position, without re-creating the pickup or storing the position into an array?

Might start using if it's possible.


Re: [REL] Streamer Plugin v2.3.4 - Sergei - 29.01.2010

I have suggested functions to get us elements' details somehow. It would be very useful for sure.


Re: [REL] Streamer Plugin v2.3.4 - Incognito - 30.01.2010

D0erf|er: Make sure you're using the latest include file and plugin version.

Finn/$ЂЯĢ: It would be useful, but I haven't really thought of a good way to set and retrieve all of the information (not just the position) without making a ton of new natives.


Re: [REL] Streamer Plugin v2.3.4 - Sergei - 30.01.2010

Код:
GetElementFloatData(elementtype,elementid,datatype[],&Float:result);
GetElementIntegerData(elementtype,elementid,datatype[]);
elementtype - Integers like 1 (object), 2 (pickup), etc. They would be defined in streamer.inc like TYPE_OBJECT, TYPE_PICKUP, etc.
elementid - object id, pickup id, etc
datatype[] - Like "interiorid", "size", etc; same names as in natives


Re: [REL] Streamer Plugin v2.3.4 - Incognito - 31.01.2010

That's a good idea. I knew that a type would have to specified somewhere along with the ID, but I never thought of using a string to denote the data that is being set or retrieved. I'll see about adding them when I can find some time.


Re: [REL] Streamer Plugin v2.3.4 - Eagleman - 31.01.2010

how does it works :S

#include <streamer>

new calexit;
new calentry;
new pdentry;
new pdexit;

OnGaeModeUnit

calentry = native CreateDynamicCP(2196.2510,1677.2078,12.3672, 1, -1, -1, 100.0);
calexit = native CreateDynamicCP(2233.9316,1714.6794,1012.3828, 1, -1, 100.0);
pdentry = native CreateDynamicCP(2290.1140,2431.4399,10.8203, 1, -1, -1, 100.0);
pdexit = native CreateDynamicCP(2290.1140,2431.4399,10.8203,1, -1, -1, 100.0);


public OnPlayerEnterCheckpoint(playerid){
return 1;
}

public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
if(streamid == calentry)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,2234.0046,1710.6891,1011.286 1);
SetPlayerFacingAngle(playerid,180.4817);
return 1;
}
if(streamid == calexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2190.8484,1676.4915,11.7862) ;
SetPlayerFacingAngle(playerid,92.4966);
return 1;
}

if(streamid == pdentry)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203) ;
SetPlayerFacingAngle(playerid,180.4817);
return 1;
}
if(streamid == pdexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203) ;
SetPlayerFacingAngle(playerid,92.4966);
return 1;
}



it gives this errors :S

(36) : error 029: invalid expression, assumed zero

thats at ongamemode unit





Re: [REL] Streamer Plugin v2.3.4 - Sergei - 31.01.2010

pawn Код:
#include <streamer>

new calexit,calentry,dentry,pdexit;

public OnGameModeInit()
{
   calentry = CreateDynamicCP(2196.2510,1677.2078,12.3672, 1, -1, -1, 100.0);
   calexit = CreateDynamicCP(2233.9316,1714.6794,1012.3828, 1, -1, 100.0);
   pdentry = CreateDynamicCP(2290.1140,2431.4399,10.8203, 1, -1, -1, 100.0);
   pdexit = CreateDynamicCP(2290.1140,2431.4399,10.8203,1, -1, -1, 100.0);
   return 1;
}

public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
   if(streamid == calentry)
   {
     SetPlayerInterior(playerid,1);
     SetPlayerPos(playerid,2234.0046,1710.6891,1011.2861);
     SetPlayerFacingAngle(playerid,180.4817);
   }
   else if(streamid == calexit)
   {
     SetPlayerInterior(playerid,0);
     SetPlayerPos(playerid,2190.8484,1676.4915,11.7862);
     SetPlayerFacingAngle(playerid,92.4966);
   }
   else if(streamid == pdentry)
   {
     SetPlayerInterior(playerid,2);
     SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
     SetPlayerFacingAngle(playerid,180.4817);
   }
   else if(streamid == pdexit)
   {
     SetPlayerInterior(playerid,0);
     SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
     SetPlayerFacingAngle(playerid,92.4966);
   }
   return 1;
}



Re: [REL] Streamer Plugin v2.3.4 - Eazy_Efolife - 31.01.2010

The objects don't load correctly

The pic shows me floating on a invisible unloaded object.




Re: [REL] Streamer Plugin v2.3.4 - Sergei - 31.01.2010

That's known bug in SA. If you exit vehicle textures load up tho'.