SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/02/2017, 08:22 PM   #5581
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 796
Reputation: 55
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
i don't know how to do that so no fancy function for me

@Crayder vbulletin doesnt support mentions heh
On what type of OS do you run your SAMP server? Perhaps someone will be able to compile it for you.
__________________
Jeroen52 is offline   Reply With Quote
Old 16/02/2017, 12:19 AM   #5582
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,874
Reputation: 354
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
i don't know how to do that so no fancy function for me

@Crayder vbulletin doesnt support mentions heh
I don't think it was tested well, but here you go, Windows and Linux: https://www.solidfiles.com/v/ZapVLn3pBW7nz . If you find any bug please report on GitHub.

I bet he knows that already.
__________________


IstuntmanI is online now   Reply With Quote
Old 19/02/2017, 05:45 PM   #5583
Shetch
Gangsta
 
Shetch's Avatar
 
Join Date: Feb 2011
Posts: 528
Reputation: 40
Default Re: Streamer Plugin

Just ran into a problem with the plugin not loading with x64 Redistributable Package on x64 system. Download and install x86 version of the Redistributable Package and all is well.
__________________
Shetch is offline   Reply With Quote
Old 25/02/2017, 09:41 PM   #5584
wallee
Big Clucker
 
Join Date: Jan 2017
Posts: 157
Reputation: 23
Default Re: Streamer Plugin

Quote:
Originally Posted by IstuntmanI View Post
I don't think it was tested well, but here you go, Windows and Linux: https://www.solidfiles.com/v/ZapVLn3pBW7nz . If you find any bug please report on GitHub.

I bet he knows that already.
Thank you.
wallee is offline   Reply With Quote
Old 26/02/2017, 10:03 AM   #5585
MrStead
Little Clucker
 
Join Date: Jul 2014
Location: samp-industrial.ru
Posts: 8
Reputation: 0
Default Re: Streamer Plugin

I found a bug:
When go far away from where attached streamer objects on a object and then go back here, the attached objects change their position(desync).
The video can show you the bug of the streamer plugin.
https://www.youtube.com/watch?v=a48wswSNrwI

Tell me please how to solve the problem. I want to create a ship system using the plugin. Do not offer to use CreateObject, as it is limited.
MrStead is offline   Reply With Quote
Old 03/03/2017, 08:38 PM   #5586
mroq98
Little Clucker
 
Join Date: Dec 2013
Posts: 4
Reputation: 0
Default Re: Streamer Plugin

Can I add new variables to Enumerator?

Becouse I try like this:

Code:
CMD:setperm(playerid, params[])
{
	if(isnull(params)) return SendClientMessage(playerid, -1, "Tip: /setperm [value]");
	
	new string[128], Float:m_x,Float:m_y,Float:m_z,Float:m_rx,Float:m_ry,Float:m_rz, permission, sampid = PlayerData[playerid][pObjectEdit];

	//Result
	permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);
    
    format(string,sizeof(string),"Result [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
	SendClientMessage(playerid, -1, string);
	
	
	//Update
	Streamer_SetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM, strval(params));
	
	permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);

    format(string,sizeof(string),"Update [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
	SendClientMessage(playerid, -1, string);
	return 1;
}
Code:
enum
{
	E_STREAMER_ATTACHED_OBJECT,
	E_STREAMER_ATTACHED_PLAYER,
	E_STREAMER_ATTACHED_VEHICLE,
	E_STREAMER_ATTACH_OFFSET_X,
	E_STREAMER_ATTACH_OFFSET_Y,
	E_STREAMER_ATTACH_OFFSET_Z,
	E_STREAMER_ATTACH_R_X,
	E_STREAMER_ATTACH_R_Y,
	E_STREAMER_ATTACH_R_Z,
	E_STREAMER_ATTACH_X,
	E_STREAMER_ATTACH_Y,
	E_STREAMER_ATTACH_Z,
	E_STREAMER_COLOR,
	E_STREAMER_DRAW_DISTANCE,
	E_STREAMER_EXTRA_ID,
	E_STREAMER_INTERIOR_ID,
	E_STREAMER_MAX_X,
	E_STREAMER_MAX_Y,
	E_STREAMER_MAX_Z,
	E_STREAMER_MIN_X,
	E_STREAMER_MIN_Y,
	E_STREAMER_MIN_Z,
	E_STREAMER_MODEL_ID,
	E_STREAMER_MOVE_R_X,
	E_STREAMER_MOVE_R_Y,
	E_STREAMER_MOVE_R_Z,
	E_STREAMER_MOVE_SPEED,
	E_STREAMER_MOVE_X,
	E_STREAMER_MOVE_Y,
	E_STREAMER_MOVE_Z,
	E_STREAMER_NEXT_X,
	E_STREAMER_NEXT_Y,
	E_STREAMER_NEXT_Z,
	E_STREAMER_PLAYER_ID,
	E_STREAMER_R_X,
	E_STREAMER_R_Y,
	E_STREAMER_R_Z,
	E_STREAMER_SIZE,
	E_STREAMER_STREAM_DISTANCE,
	E_STREAMER_STYLE,
	E_STREAMER_SYNC_ROTATION,
	E_STREAMER_TEST_LOS,
	E_STREAMER_TYPE,
	E_STREAMER_WORLD_ID,
	E_STREAMER_X,
	E_STREAMER_Y,
	E_STREAMER_Z,
E_STREAMER_GATE_X,
E_STREAMER_GATE_Y,
E_STREAMER_GATE_Z,
E_STREAMER_GATE_RX,
E_STREAMER_GATE_RY,
E_STREAMER_GATE_RZ,
E_STREAMER_GATE_PERM,
E_STREAMER_GATE_USE
}
But this don't change value. :O
mroq98 is offline   Reply With Quote
Old 03/03/2017, 11:47 PM   #5587
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,826
Reputation: 565
Flowers Re: Streamer Plugin

Quote:
Originally Posted by mroq98 View Post
Can I add new variables to Enumerator?

Becouse I try like this:

Code:
CMD:setperm(playerid, params[])
{
	if(isnull(params)) return SendClientMessage(playerid, -1, "Tip: /setperm [value]");
	
	new string[128], Float:m_x,Float:m_y,Float:m_z,Float:m_rx,Float:m_ry,Float:m_rz, permission, sampid = PlayerData[playerid][pObjectEdit];

	//Result
	permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);
    
    format(string,sizeof(string),"Result [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
	SendClientMessage(playerid, -1, string);
	
	
	//Update
	Streamer_SetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM, strval(params));
	
	permission = Streamer_GetIntData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_PERM);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_X, m_x);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Y, m_y);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_Z, m_z);

    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RX, m_rx);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RY, m_ry);
    Streamer_GetFloatData(STREAMER_TYPE_OBJECT, sampid, E_STREAMER_GATE_RZ, m_rz);

    format(string,sizeof(string),"Update [ sampid: %d, perm: %d, pos: %0.1f %0.1f %0.1f %0.1f %0.1f %0.1f ]", sampid,permission,m_x,m_y,m_z,m_rx,m_ry,m_rz);
	SendClientMessage(playerid, -1, string);
	return 1;
}
Code:
enum
{
	E_STREAMER_ATTACHED_OBJECT,
	E_STREAMER_ATTACHED_PLAYER,
	E_STREAMER_ATTACHED_VEHICLE,
	E_STREAMER_ATTACH_OFFSET_X,
	E_STREAMER_ATTACH_OFFSET_Y,
	E_STREAMER_ATTACH_OFFSET_Z,
	E_STREAMER_ATTACH_R_X,
	E_STREAMER_ATTACH_R_Y,
	E_STREAMER_ATTACH_R_Z,
	E_STREAMER_ATTACH_X,
	E_STREAMER_ATTACH_Y,
	E_STREAMER_ATTACH_Z,
	E_STREAMER_COLOR,
	E_STREAMER_DRAW_DISTANCE,
	E_STREAMER_EXTRA_ID,
	E_STREAMER_INTERIOR_ID,
	E_STREAMER_MAX_X,
	E_STREAMER_MAX_Y,
	E_STREAMER_MAX_Z,
	E_STREAMER_MIN_X,
	E_STREAMER_MIN_Y,
	E_STREAMER_MIN_Z,
	E_STREAMER_MODEL_ID,
	E_STREAMER_MOVE_R_X,
	E_STREAMER_MOVE_R_Y,
	E_STREAMER_MOVE_R_Z,
	E_STREAMER_MOVE_SPEED,
	E_STREAMER_MOVE_X,
	E_STREAMER_MOVE_Y,
	E_STREAMER_MOVE_Z,
	E_STREAMER_NEXT_X,
	E_STREAMER_NEXT_Y,
	E_STREAMER_NEXT_Z,
	E_STREAMER_PLAYER_ID,
	E_STREAMER_R_X,
	E_STREAMER_R_Y,
	E_STREAMER_R_Z,
	E_STREAMER_SIZE,
	E_STREAMER_STREAM_DISTANCE,
	E_STREAMER_STYLE,
	E_STREAMER_SYNC_ROTATION,
	E_STREAMER_TEST_LOS,
	E_STREAMER_TYPE,
	E_STREAMER_WORLD_ID,
	E_STREAMER_X,
	E_STREAMER_Y,
	E_STREAMER_Z,
E_STREAMER_GATE_X,
E_STREAMER_GATE_Y,
E_STREAMER_GATE_Z,
E_STREAMER_GATE_RX,
E_STREAMER_GATE_RY,
E_STREAMER_GATE_RZ,
E_STREAMER_GATE_PERM,
E_STREAMER_GATE_USE
}
But this don't change value. :O
No, you can't do that. However, that's precisely what E_EXTRA_ID is for! Use Streamer_SetArray*Data.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 05/03/2017, 10:04 AM   #5588
MrStead
Little Clucker
 
Join Date: Jul 2014
Location: samp-industrial.ru
Posts: 8
Reputation: 0
Default Re: Streamer Plugin

I seem to solve my problem. I set coords to my attached objects the same as main object has and now they dont desync(dont change their position, dont disappear)

Right code:
PHP Code:
//creating mainObj somewhere above
new atObj CreateDynamicObject(1944,x,y,z,0.0,0.0,0.0);//attached object with coords x,y,z. Without they it doesn`t work
AttachDynamicObjectToObject(atObjmainObj1.00.00.430.00.00.0); //attaching atObj to mainObj
//it`s working very well 
MrStead is offline   Reply With Quote
Old 09/03/2017, 03:29 PM   #5589
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,089
Reputation: 130
Default Re: Streamer Plugin

If i have like 50k items on server, and every item object has DynamicArea.
Should i use:
Code:
native GetPlayerDynamicAreas(playerid, STREAMER_TAG_AREA areas[], maxareas = sizeof areas);
native GetPlayerNumberDynamicAreas(playerid);
Or should i keep track when player enter/leave dynamic area and store it into array and loop thru that instead?
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 09/03/2017, 04:21 PM   #5590
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,826
Reputation: 565
Default Re: Streamer Plugin

Quote:
Originally Posted by DRIFT_HUNTER View Post
If i have like 50k items on server, and every item object has DynamicArea.
Should i use:
Code:
native GetPlayerDynamicAreas(playerid, STREAMER_TAG_AREA areas[], maxareas = sizeof areas);
native GetPlayerNumberDynamicAreas(playerid);
Or should i keep track when player enter/leave dynamic area and store it into array and loop thru that instead?
So... EVERY object in your server has a dynamic area? :O



I'd suggest y_iterate but that would be a LOT of indexes... Storing them in an standard array could be inefficient... So I think those natives would be helpful.

The best way would be to find a more efficient way to do what you're currently trying to do. That is a lot of areas.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder 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 02:03 PM.


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