[Plugin] Streamer Plugin

Dynamic object streaming lags(slow loading and less stream distance) when amount of all objects is about 20000. So it should be? I just think the amount or more even could exist without any issues. How many has anyone dynamic objects on their servers? Tell me please, how is it?
Reply

Quote:
Originally Posted by MrStead
Посмотреть сообщение
Dynamic object streaming lags(slow loading and less stream distance) when amount of all objects is about 20000. So it should be? I just think the amount or more even could exist without any issues. How many has anyone dynamic objects on their servers? Tell me please, how is it?
158000, but in many virtual worlds. Everything fine, no lags.
Reply

I found out what is the lags and how do they appear. I created a lot of default objects (CreateObject) about 700. I tried to replace they to dynamic, lags disappeared. But I need only CreateObject, not CreateDynamicObject in the case. How does it do?

CreateObject needs to get rid of car falling down through textures
Reply

Quote:
Originally Posted by MrStead
Посмотреть сообщение
I found out what is the lags and how do they appear. I created a lot of default objects (CreateObject) about 700. I tried to replace they to dynamic, lags disappeared. But I need only CreateObject, not CreateDynamicObject in the case. How does it do?

CreateObject needs to get rid of car falling down through textures
Mapping instructions for all mappers:
If you are mapping an interior, map it on solid ground, which was made by GTA San Andreas. (LV Airport, or somewhere where the ground is flat). You have to change the interior or vw of the map and player, and then he cant fall out of the interior (neither cars can do). Dont use CreateObject, just know how stuffs are working.

OR Plan B.
Make a global timer, check if the car is streamed for player, and if it's fallen down then set it back on it's original position (But take my mapping critisism serious though cause that's the proper fix for your issue)
Reply

Hi! I find bug in plugin, sometimes the checkpoint is not deleted.

Create:
Quote:

PlayerVar[playerid][pGPS] = CreateDynamicRaceCP(1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.0, 0, 0, playerid, 100000.0);

Quote:

public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
if(checkpointid == PlayerVar[playerid][pGPS])
{
DestroyDynamicRaceCP(PlayerVar[playerid][pGPS]);
PlayerVar[playerid][pGPS] = -1;
SCM(playerid, 0x669933FF, !"Checkpoint disabled.");
}
return 1;
}

The strangest thing is that the action is triggered from
Quote:

if(checkpointid == PlayerVar[playerid][pGPS])

and the message goes "Checkpoint disabled". But the checkpoint does not delete
Reply

For some reason my objects only load when you are like standing ontop of it (It despawns when distance is more than about 3m).. I've tried to define the DD and SD BEFORE the streamer include.. This didn't work!

An example of my object string:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
I already tried the following:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000, 0, 0, 400); //0, 0, 400 = VW, Int, Distance
Please help me out here!
Reply

can aynone help me with this bug?
https://sampforum.blast.hk/showthread.php?tid=643387

Thanks!
Reply

is this working in windows xp? it always load failed plugin
Reply

this issue has been reported earlier @RedFall, check out the last few pages of this thread and you'll find your answer.
Reply

Quote:
Originally Posted by NLDBrian
Посмотреть сообщение
For some reason my objects only load when you are like standing ontop of it (It despawns when distance is more than about 3m).. I've tried to define the DD and SD BEFORE the streamer include.. This didn't work!

An example of my object string:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
I already tried the following:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000, 0, 0, 400); //0, 0, 400 = VW, Int, Distance
Please help me out here!
Maybe you have too many regular CreateObject, each one of those will take a slot, so you will see less and less "dynamic" objects if you have more and more regular objects. Also, try recompiling all of your scripts (gamemode + filterscripts).

Quote:
Originally Posted by ToiletDuck
Посмотреть сообщение
can aynone help me with this bug?
https://sampforum.blast.hk/showthread.php?tid=643387

Thanks!
After a while ? That may be a Streamer Plugin bug which probably appeared in v2.9.0. You could try downgrading to v2.8.2 and see if it got fixed and report back to us. Which version are you using now ? v2.9.1 from the "Releases" tab on GitHub ?

Quote:
Originally Posted by RedFall
Посмотреть сообщение
is this working in windows xp? it always load failed plugin
I compiled one of the latest changes of the streamer for Windows XP: https://github.com/samp-incognito/sa...ment-329974272 . You have the download link in there. If it is still not working, try to download this: https://www.microsoft.com/en-us/down....aspx?id=40784 (you need to install the _x86 one). You should really upgrade to at least Windows 7 if possible, Windows XP is deprecated (many applications aren't supporting Windows XP anymore) and vulnerable.
Reply

This code can make the server crash? If not used in syntax now?

Quote:

CreateDynamicObject(19123, 1618.9, -1287.7, 16.9, 0.0, 0.0, 0.0); - THIS IS MY CODE

Is that so normal?

Quote:

CreateDynamicObject(19123,1618.9000000,-1287.7000000,16.9000000,0.0000000,0.0000000,0.0000 000); //

Reply

So currently the syntax to create an object (extended) is the following:
Код:
CreateDynamicObjectEx(..., worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, areas[] = { -1 }, ...);
Say I want an object in every world, I use -1.

How would I create an object in every world but one, or in every world but a range of worlds.
Examples:
  • Object in every world, except world 0.
  • Object in every world, except world 0 tot 99.
Reply

The only idea in my head

Код:
new objectid = CreateDynamicObject(...);
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, 0);
Except world 0 to 99 you need loop.

Код:
new objectid = CreateDynamicObject(...);

for(new worldid; worldid < 100; worldid += 1) Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, worldid);
Reply

Hey Incognito, there's two problems:

1. "IsDynamicActorStreamedIn" doesn't works properly.
2. "MoveDynamicObject" is too slow! Even is better using "SetDynamicObjectPos" every few time and so, recreate a "object movement".
Kind regards
Reply

Quote:
Originally Posted by Widoh
Посмотреть сообщение
Hey Incognito, there's two problems:

1. "IsDynamicActorStreamedIn" doesn't works properly.
2. "MoveDynamicObject" is too slow! Even is better using "SetDynamicObjectPos" every few time and so, recreate a "object movement".
Kind regards
Slow ? Increase speed lol.
Reply

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Slow ? Increase speed lol.
I meant, the time it takes to be processed (code)
Reply

Quote:
Originally Posted by Widoh
Посмотреть сообщение
I meant, the time it takes to be processed (code)
I've never had an issue. How many objects are you moving at once?
Reply

Quote:
Originally Posted by TommyB
Посмотреть сообщение
I've never had an issue. How many objects are you moving at once?
100.
Reply

AttachDynamicObjectToPlayer fixed?
Reply

Streamer v2.9.2 has been released few hours ago.

Quote:

Fixed some attached object bugs
Added GetDynamicActorAnimation (thanks IstuntmanI)
Made chunk streaming toggleable (now disabled by default)
Added Streamer_(Is)ToggleChunkStream

If you are having stability issues, try reverting to v2.8.2.
https://github.com/samp-incognito/sa...lugin/releases
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)