[Plugin] Streamer Plugin

Nice.
Reply

So I have updated streamer to this last version 2.7.8 and I get a bunch runtime errors in my gamemode in some publics so I have returned streamer to version 2.7.4 and gamemode starts fine without any errors so I just want to report this for creator. Thanks
Reply

Quote:
Originally Posted by Luca12
Посмотреть сообщение
So I have updated streamer to this last version 2.7.8 and I get a bunch runtime errors in my gamemode in some publics so I have returned streamer to version 2.7.4 and gamemode starts fine without any errors so I just want to report this for creator. Thanks
It's not a report unless you actually report something. Yeah sure you said that you got some runtime errors, but what runtime errors are you getting?
Reply

it is all runtime errors 7 stack underflow but my public codes are fine so I returned to streamer 2.7.4 and it's works perfect without any errors I remember that Konstantinos says somewhere in the post that newer version of streamer may cause such problems.
Reply

Is it possible to not update objects near the player under certain conditions? Something like returning 0 in OnPlayerUpdate
Reply

Quote:
Originally Posted by S4D
Посмотреть сообщение
Is it possible to not upgrade objects near the player under certain conditions? Something like returning 0 in OnPlayerUpdate
Yes, there is.

Код:
Streamer_ToggleItemUpdate(playerid, type, toggle)
To turn object streaming off for a player do this:
Код:
Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_OBJECT, 0);
And of course, the inverse to turn it back on.
Reply

Quote:
Originally Posted by Crayder
Посмотреть сообщение
And of course, the inverse to turn it back on.
To toggle all the types i should to disable each individually?
Reply

Quote:
Originally Posted by S4D
Посмотреть сообщение
To toggle all the types i should to disable each individually?
May be just loop through all types and disable them.
Reply

Quote:
Originally Posted by BGTrucker
Посмотреть сообщение
May be just loop through all types and disable them.
This is same thing. Anyway, it was a stupid question, my bad.
Reply

PHP код:
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_PICKUP0); 
I probably found a bug, because it does not work.
Reply

Quote:
Originally Posted by S4D
Посмотреть сообщение
PHP код:
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_PICKUP0); 
I probably found a bug, because it does not work.
And the bug is? I use this quite a bit with teleporting on my server and i have no issue. Just remember that 0 (false) means it would disable streaming of the the item type but any items that are streamed in will stay shown and 0 (true) would re-enable item streaming.
Reply

Quote:
Originally Posted by nickdodd25
Посмотреть сообщение
And the bug is? I use this quite a bit with teleporting on my server and i have no issue. Just remember that 0 (false) means it would disable streaming of the the item type but any items that are streamed in will stay shown and 0 (true) would re-enable item streaming.
https://www.youtube.com/watch?v=4nAkcGDJbT0

PHP код:
Streamer_ToggleAllItemUpdate(playeridtoggle)
{
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_OBJECTtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_PICKUPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_MAP_ICONtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_3D_TEXT_LABELtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_AREAtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_CPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_RACE_CPtoggle);
    return 
1;

Reply

I guess you could just use -1 for the item type instead.
Reply

Quote:
Originally Posted by FSAOskar
Посмотреть сообщение
I guess you could just use -1 for the item type instead.
Nope
Reply

Quote:
Originally Posted by S4D
Посмотреть сообщение
https://www.youtube.com/watch?v=4nAkcGDJbT0

PHP код:
Streamer_ToggleAllItemUpdate(playeridtoggle)
{
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_OBJECTtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_PICKUPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_MAP_ICONtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_3D_TEXT_LABELtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_AREAtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_CPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_RACE_CPtoggle);
    return 
1;

Just tested with your code and i see what you mean now, it seems that pickups still stream even when toggled off.

pawn Код:
Streamer_ToggleAllItemUpdate(playerid, toggle)
{
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_OBJECT, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_PICKUP, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_MAP_ICON, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_3D_TEXT_LABEL, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_AREA, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_CP, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_RACE_CP, toggle);
    return 1;
}


CMD:strue(playerid,params[]) //re-enables the item update
{
    return Streamer_ToggleAllItemUpdate(playerid, true);
}
CMD:sfalse(playerid,params[]) //disables the item update
{
    return Streamer_ToggleAllItemUpdate(playerid, false);
}
So this is for sure a bug. I was able to test everything but regular checkpoints and race checkpoints, and everything else works fine with exception of the pickups.
Reply

Guys, help me. When the server starts it shuts down
Код:
[21:54:09]  Loading plugin: streamer
[21:54:09] [debug] Server crashed due to an unknown error
[21:54:10] [debug] Native backtrace:
[21:54:10] [debug] #0 019f485e in ?? () from D:\Documents and Settings\Илья\Рабочий стол\БЭКАПЫ\Апокалипсис\new\plugins\streamer.dll
[21:54:10] [debug] #1 019f3770 in ?? () from D:\Documents and Settings\Илья\Рабочий стол\БЭКАПЫ\Апокалипсис\new\plugins\streamer.dll
[21:54:10] [debug] #2 01a04d43 in Load () from D:\Documents and Settings\Илья\Рабочий стол\БЭКАПЫ\Апокалипсис\new\plugins\streamer.dll
[21:54:10] [debug] #3 0046a51b in ?? () from D:\Documents and Settings\Илья\Рабочий стол\БЭКАПЫ\Апокалипсис\new\samp-server.exe
[21:54:10] [debug] #4 00c50178 in ?? ()
Windows XP
Reply

I'm just going to point out here that Incognito addressed the pickup updating earlier today already. Wait for the next version release for the fix or just go compile the source.
Reply

Could you add E_STREAMER_EXTRA_ID_2 to the enum? I could use it to make my systems a lot more efficient. And no, I wouldn't be asking for third one in a few weeks.
Reply

Use Streamer_SetArrayData with E_STREAMER_EXTRA_ID.
Reply

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
So what's the new link?
You don't get it, there is no new link. His entire GitHub account has been deleted. No more samp-incognito. All of his repo's, gone.

The most suspicious part about it is that he had released a new build just hours before it all disappeared.

Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)