Mapping help
#1

How can add certain objects in particular virtual world only? Because if in my server there are many house with same interior and different vitural worlds, So if i want to spawn some objects only in one virtual world, I use midostreamer help me
Reply
#2

That functionality has to be built in, and as far as i know, its not implemented in midostream. Incognito's streamer supports this, uses a better algorithm to check positions, and offer tons more in terms of features (it streams everything you can think of, including [player] areas).


If its faster and offers more, why not switch :P.
Reply
#3

Then i have to change my entire objects to streamer objects which i have now
Reply
#4

I dont know why i had issues with both the streamers only some objects gets spawned at one time , Maybe my pc is too slow? I have server in my pc
Reply
#5

Quote:
Originally Posted by Swiftz
Посмотреть сообщение
Then i have to change my entire objects to streamer objects which i have now
www.convertffs.com

You can convert from midostream to Incognito's format it in a matter of minutes lol, infact im sure you can do it a hell of a lot faster than implementing it yourself :P.
Reply
#6

Thanks kyosaur, I know about convertffs btw Do i need to place any natives or forwards that we place on top of the script to create an object?
Reply
#7

Im new to streamer and scripting too
Do i need to add these in my gamemode to add objects?

enum
{
E_STREAMER_ATTACHED_PLAYER,
E_STREAMER_ATTACHED_VEHICLE,
E_STREAMER_COLOR,
E_STREAMER_DISTANCE,
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_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_STYLE,
E_STREAMER_TEST_LOS,
E_STREAMER_TYPE,
E_STREAMER_WORLD_ID,
E_STREAMER_X,
E_STREAMER_Y,
E_STREAMER_Z
}



#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)


And any other things should i need to add please help, thanks
Reply
#8

Quote:
Originally Posted by Swiftz
Посмотреть сообщение
Thanks kyosaur, I know about convertffs btw Do i need to place any natives or forwards that we place on top of the script to create an object?
The only thing you need to do is use the function CreateDynamicObject() for object creation. There's no need for forwarding, or hooking of any callback (it does this internally). Just install the plugin, and convert to the right format :P.

As for you question about objects not showing, its likely just you're streamer. There is an object limit which can not be passed (both global and player pased) streamers get around this limit by deleting objects that arent currently in use so they can make room for objects that are. An object's usage is defined by a customizable area (its called draw distance). Once an object leaves that area it gets destroyed, and once an object enters it gets created.

That's basically how an object streamer works (very basic and probably bad explanation ahaha). If you're missing objects it's either because the checking in the streamer is really bad, or because you simply just have to many objects in one area and need a lower draw distance (since there's a limit, you cant have 1000 objects in a 50 meter radius lol).
Reply
#9

How do i change max object limit?
Reply
#10

Quote:
Originally Posted by Swiftz
Посмотреть сообщение
How do i change max object limit?
You dont, the max is the max, if it wasnt it wouldnt be called that.


You can change the STREAMER'S maximum visible objects with the below function, but the maximum amount of objects in sa-mp is 400 and there's no changing that. You would really only use this item to cap the amount of visible objects incase you have some global-unstreamed ones etc.

pawn Код:
Streamer_VisibleItems(type, items);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)