SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/02/2010, 10:57 AM   #501
CracK
Huge Clucker
 
CracK's Avatar
 
Join Date: Nov 2007
Posts: 437
Reputation: 3
Default Re: [REL] Streamer Plugin v2.3.6

Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID, modelid);
__________________
Custom Enex loader 1.0
map2pwn
CracK is offline   Reply With Quote
Old 25/02/2010, 11:05 AM   #502
[03]Garsino
Guest
 
Posts: n/a
Default Re: [REL] Streamer Plugin v2.3.6

Quote:
Originally Posted by CrαcK
Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID, modelid);
Or that ^^
  Reply With Quote
Old 25/02/2010, 01:24 PM   #503
Balon
Big Clucker
 
Join Date: Oct 2007
Posts: 108
Reputation: 2
Default Re: [REL] Streamer Plugin v2.3.6

Quote:
GhoulSlayeR: A few other people have reported this, and it does indeed seem to be a problem. I just reproduced the crash by creating a lot of 3D text labels across the map and attempting to stream them, so I'll try to debug the code now.
Take a look at Invoke::callFunction. You allocate the memory for the string, but you don't deallocate it
Balon is offline   Reply With Quote
Old 25/02/2010, 06:25 PM   #504
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 447
Reputation: 509
Default Re: [REL] Streamer Plugin v2.3.6

Yes, I quickly realized that was the problem as I began debugging it, but thanks for catching my mistake as well. It's been there for at least as long as the rewritten invoke function was added, so I'm surprised that more people didn't experience at least some crashes. I just tested with 1,000,000 3D text labels spread evenly across the map, and everything went fine.

The next version will feature a few area detection natives and callbacks (thanks to DavidC for the suggestion). Areas are functionally similar to checkpoints, but they're invisible and offer a bit more control over the exact positions where players can be detected. These were pretty easy to add, but I haven't tested everything extensively, so I'll put the new version up whenever I'm finished.
Incognito is offline   Reply With Quote
Old 25/02/2010, 07:17 PM   #505
shady91
High-roller
 
shady91's Avatar
 
Join Date: Nov 2008
Location: Uk
Posts: 1,593
Reputation: 7
Default Re: [REL] Streamer Plugin v2.3.6

Quote:
Originally Posted by Incognito
Yes, I quickly realized that was the problem as I began debugging it, but thanks for catching my mistake as well. It's been there for at least as long as the rewritten invoke function was added, so I'm surprised that more people didn't experience at least some crashes. I just tested with 1,000,000 3D text labels spread evenly across the map, and everything went fine.

The next version will feature a few area detection natives and callbacks (thanks to DavidC for the suggestion). Areas are functionally similar to checkpoints, but they're invisible and offer a bit more control over the exact positions where players can be detected. These were pretty easy to add, but I haven't tested everything extensively, so I'll put the new version up whenever I'm finished.
can't wait for this
shady91 is offline   Reply With Quote
Old 26/02/2010, 04:25 PM   #506
Stas92
Big Clucker
 
Join Date: Mar 2009
Posts: 143
Reputation: 0
Default Re: [REL] Streamer Plugin v1.0

Quote:
Originally Posted by $€ЯĢ
Maybe it would be useful to have a native 'CountDynamicObjects' which would return value of all the objects created, oh and OnDynamicObjectMoved would be nice callback for the future

I hope it won't make problems which combination zcmd + foreach + streamer because of all redefinitions:
Code:
\pawno\include\zcmd.inc(58) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
\pawno\include\streamer.inc(75) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
\pawno\include\streamer.inc(94) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
\pawno\include\streamer.inc(113) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
Same problem with foreach ... how can I fix it? If ignore that warnings, server crash after a while.
Stas92 is offline   Reply With Quote
Old 26/02/2010, 04:28 PM   #507
Sergei
High-roller
 
Sergei's Avatar
 
Join Date: Mar 2008
Location: Slovenia
Posts: 2,862
Reputation: 230
Default Re: [REL] Streamer Plugin v2.3.6

Download lastest zcmd and foreach includes.
__________________
Watch out, scouts everywhere!
Sergei is offline   Reply With Quote
Old 26/02/2010, 04:40 PM   #508
Stas92
Big Clucker
 
Join Date: Mar 2009
Posts: 143
Reputation: 0
Default Re: [REL] Streamer Plugin v2.3.6

Have got the lastest foreach .. but doesn't help
Stas92 is offline   Reply With Quote
Old 27/02/2010, 02:20 AM   #509
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 447
Reputation: 509
Default Re: [REL] Streamer Plugin v2.3.7

Here's the latest version:

Quote:
v2.3.7
- Fixed 3D text label crash
- Optimized more streaming code
- Resolved some checkpoint problems
- Added area detection natives and callbacks
I highly recommend updating if you are using streamed 3D text labels at all.

The new area detection natives and callbacks are as follows:

Quote:
native CreateDynamicCircle(Float, Float:y, Floatize, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float, Float:y, Float:z, Floatize, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();
Quote:
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);
Usage should be almost identical to checkpoints. Two-dimensional areas (circles and rectangles) as well as three-dimensional areas (spheres and cubes) can be created, returning an area ID. There's also no distance parameter as areas are not technically streamed, so an unlimited number can "visible" at any one time.

I tested it as thoroughly as I could, but there might still be bugs, so let me know if you find any.
Incognito is offline   Reply With Quote
Old 27/02/2010, 03:05 AM   #510
GhoulSlayeR
Little Clucker
 
GhoulSlayeR's Avatar
 
Join Date: Dec 2009
Posts: 47
Reputation: 40
Default Re: [REL] Streamer Plugin v2.3.7

Very nice work, thanks a lot!
__________________

Former Official Developer for Next Generation Gaming, LLC
GhoulSlayeR 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 02:13 PM.


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