SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/12/2017, 11:17 AM   #5711
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,588
Reputation: 321
Default Re: Streamer Plugin

I think the Checkpoint system needs some improvements. I made a system using these and sometimes strange bugs occurred. I stored the checkpoint id but when the player arrived at it, I did not recognize it, and it was not my code problem. It was a problem with streaming itself.

Also, I had problems with some actor positions. Believe me, it was only when you created an actor far from this. When I got close, the actor was a bit on the side, and with my system of restoring the actor's life, the checkpoint was in the same coordinate as the actor, but the actor was in the wrong place. I would make him disappear and appear again, and he would appear exactly where he should.

I believe that some revision of the code is necessary. The streamer is great, and I only got these little problems.

I use a lot of objects, pickups, labels, and dynamic areas. I started to use more at the moment the Actors, which are also enough. Except the checkpoints, I was disappointed.
__________________



Locky_ is online now   Reply With Quote
Old 06/12/2017, 01:43 PM   #5712
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,862
Reputation: 370
Default Re: Streamer Plugin

Quote:
Originally Posted by BeckzyBoi View Post
<>
Thanks for the code, that problem makes sense now, here's the issue I created for you: https://github.com/samp-incognito/sa...gin/issues/261 . Actually, about that "shouldn't affect anything relating to this bug", I think that it actually affects it: using DisablePlayerCheckpoint like that may bug it, as I described in that issue. The Streamer Plugin keeps track of the current visible checkpoint and it gets reset when you leave its range, so it still thinks that you can actually see it when you are disabling it like that. If you would use DestroyPlayerObject for plenty of current visible dynamic objects you would get a similar behavior I guess.

Quote:
Originally Posted by Locky_ View Post
<>
I have no strange bugs with the streamer checkpoints. I always see them when I need to. It is most probably from your code.

About your second issue: Actors are probably spawning in the correct position, their stored position is the exact one you are specifying as an argument in CreateDynamicActor(Ex). I just tested what you described with the following code:
Code:
CreateActor( 0, 0.0, 0.0, 4.0, 0.0 );
CreateDynamicCP( 0.0, 0.0, 4.0, 4.0 );
and this is the result:


It works perfectly. As you can see, the actor is right in the middle.
__________________


IstuntmanI is online now   Reply With Quote
Old 06/12/2017, 07:26 PM   #5713
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,588
Reputation: 321
Default Re: Streamer Plugin

Quote:
Originally Posted by IstuntmanI View Post
I have no strange bugs with the streamer checkpoints. I always see them when I need to. It is most probably from your code.

About your second issue: Actors are probably spawning in the correct position, their stored position is the exact one you are specifying as an argument in CreateDynamicActor(Ex). I just tested what you described with the following code:
Code:
CreateActor( 0, 0.0, 0.0, 4.0, 0.0 );
CreateDynamicCP( 0.0, 0.0, 4.0, 4.0 );
and this is the result:


It works perfectly. As you can see, the actor is right in the middle.
As I said, it happened a few times, and in the last update of the plugin the problems seem to be over.

I did not get any more reports of problems after version 2.9.2, but of the checkpoints, I used about 15 checkpoints, and some for some reason gave problems.

But I decided to redo the code and stopped using checkpoints ... I will not detail much, but I have looked for other resources. Thank you for answering me and for trying to help me.

I can go ahead and check if the problem still exists.
For this only happened in some parts of the game, not at all.
__________________



Locky_ is online now   Reply With Quote
Old 16/12/2017, 02:55 PM   #5714
Admireal
Big Clucker
 
Join Date: Sep 2016
Posts: 70
Reputation: 5
Default Streamer Plugin: SetDynamicActorVirtualWorld Problem

I am using the SetDynamicActorVirtualWorld function but actor is not seeing in the virtual world.
Admireal is offline   Reply With Quote
Old 19/12/2017, 03:25 PM   #5715
Ommed
Little Clucker
 
Join Date: Feb 2017
Posts: 10
Reputation: 0
Default Re: Streamer Plugin

this plugin looks dope i'll be sure to test this out later.
Ommed is offline   Reply With Quote
Old 13/01/2018, 06:14 PM   #5716
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,588
Reputation: 321
Default Re: Streamer Plugin

Why can not I run the most current plugin in CentOS 6? The version of the plugin I can use in CentOS 6 is 2.7.1
__________________



Locky_ is online now   Reply With Quote
Old 13/01/2018, 06:26 PM   #5717
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,953
Reputation: 1548
Default Re: Streamer Plugin

Quote:
Originally Posted by Locky_ View Post
Why can not I run the most current plugin in CentOS 6? The version of the plugin I can use in CentOS 6 is 2.7.1
We need more information to answer that. There could be a thousand reasons why. You need to post what you're actually seeing on the logs.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 13/01/2018, 08:57 PM   #5718
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,588
Reputation: 321
Default Re: Streamer Plugin

Quote:
Originally Posted by [HLF]Southclaw View Post
We need more information to answer that. There could be a thousand reasons why. You need to post what you're actually seeing on the logs.
The logs usually do not appear anything. You simply add the streamer and the server does not start.

No error or anything. I found a solution installing Debian 8 ... So I was able to use the latest streamer.

--
It is similar to this when the problem occurs. It is similar to this when the problem occurs. In the first script that reads (even if you do not even use the plugin) the server closes at this point.
Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[14:22:55] rcon = 1  (bool)
[14:22:55] lagcompmode = 1  (int)
[14:22:55] password = ""  (string)
[13/01/2018 14:22:55] 
[13/01/2018 14:22:55] Server Plugins
[13/01/2018 14:22:55] --------------
[13/01/2018 14:22:55]  Loading plugin: streamer.so
[13/01/2018 14:22:55]   Loaded.
[13/01/2018 14:22:55]  Loaded 1 plugins.

[13/01/2018 14:22:55] 
[13/01/2018 14:22:55] Filterscripts
[13/01/2018 14:22:55] ---------------
[13/01/2018 14:22:55]   Loading filterscript 'anticrash.amx'...
--
I also notice that the streamer does not work with Windows 10. (Not the only plugin with incompatibility).
Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[13/01/2018 20:00:02] password = ""  (string)
[13/01/2018 20:00:02] 
[13/01/2018 20:00:02] Server Plugins
[13/01/2018 20:00:02] --------------
[13/01/2018 20:00:02]  Loading plugin: mysql
[13/01/2018 20:00:02]   Failed.
[13/01/2018 20:00:02]  Loading plugin: sscanf
[13/01/2018 20:00:02] 

[13/01/2018 20:00:02]  ===============================

[13/01/2018 20:00:02]       sscanf plugin loaded.     

[13/01/2018 20:00:02]          Version:  2.8.1        

[13/01/2018 20:00:02]    (c) 2012 Alex "Y_Less" Cole  

[13/01/2018 20:00:02]  ===============================

[13/01/2018 20:00:02]   Loaded.
[13/01/2018 20:00:02]  Loading plugin: crashdetect
[13/01/2018 20:00:02]   CrashDetect v4.15.1 is OK.
[13/01/2018 20:00:02]   Loaded.
[13/01/2018 20:00:02]  Loading plugin: streamer
[13/01/2018 20:00:02]   Failed.
[13/01/2018 20:00:02]  Loading plugin: socket
[13/01/2018 20:00:02]  Socket plugin v0.2b loaded.
[13/01/2018 20:00:02]   Loaded.
[13/01/2018 20:00:02]  Loaded 3 plugins.

[13/01/2018 20:00:02] 
[13/01/2018 20:00:02] Filterscripts
[13/01/2018 20:00:02] ---------------
[13/01/2018 20:00:02]   Loading filterscript 'Mapas.amx'...
[13/01/2018 20:00:03] [debug] Run time error 19: "File or function is not found"
[13/01/2018 20:00:03] [debug]  CreateDynamicObject
[13/01/2018 20:00:03] [debug]  SetDynamicObjectMaterial
[13/01/2018 20:00:03] [debug]  SetDynamicObjectMaterialText
[13/01/2018 20:00:03] [debug]  CreateDynamicObjectEx
[13/01/2018 20:00:03] [debug]  Streamer_SetIntData
[13/01/2018 20:00:03] [debug]  CreateDynamicActor
[13/01/2018 20:00:03] [debug]  Streamer_CountItems
[13/01/2018 20:00:03] [debug]  IsValidDynamicActor
[13/01/2018 20:00:03] [debug]  DestroyDynamicActor
[13/01/2018 20:00:03] [debug]  ApplyDynamicActorAnimation
[13/01/2018 20:00:03] [debug]  Streamer_ProcessActiveItems
[13/01/2018 20:00:03] [debug]  CountDynamicObjects
__________________



Locky_ is online now   Reply With Quote
Old 28/01/2018, 04:02 PM   #5719
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 305
Reputation: 40
Default Re: Streamer Plugin

OnPlayerShootDynamicObject isn't being called at all with streamer version 2.9.2?

Repro in attachments ... and here's a pastebin also:

https://pastebin.com/2jSuCczp

How do i fix this?
Attached Files
File Type: pwn bare.pwn (1.2 KB, 1 views)
File Type: amx bare.amx (2.3 KB, 0 views)
wallee is offline   Reply With Quote
Old 28/01/2018, 06:54 PM   #5720
ByMatt20030
Big Clucker
 
Join Date: Jul 2016
Posts: 76
Reputation: 0
Default Re: Streamer Plugin

Hi!

How it affects that drawdistance has a value of 0 in CreateDynamicObject?

Thanks!
ByMatt20030 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 01:08 AM.


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