YoUnG Generation Gaming

Other => Everything and Nothing => Topic started by: Lordz on November 27, 2013, 04:56:51 PM

Title: Attention all mappers.
Post by: Lordz on November 27, 2013, 04:56:51 PM
Attention to all who posts maps here : There's been cool releases going on here and the server and it's Management is very much happy with that. Also, we do appreciate your mapping skills. However, most of the reasons why many maps just get ignored, even though it looks AWESOME is because of crossing the object limit. On a small area, when the object limit gets increased it creates streaming problems. If you want to check with it, you can try /party command.

For example, LeGGGeNNdA posts many maps which are really good. Though, the only reason why his maps were ignored before is because of MANY objects being used. On a party hall, 2D colorful objects are being used. But when it's being created in a pattern, many of them are being created.

If you really got many objects in a small area, while converting the codes, you can set it's DrawDistance too. Which is a new feature of 3x!

Code: [Select]
CreateObject(objectid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);

DrawDistance has been limited since the release of 3x to 300 units. So, when the drawdistance is set to 100, the object will be displayed on 100 units, else if 0, it will be displayed in it's default units. Test it for yourself to know much more about it.

(http://www.sa-mp.com/stuff/03xShots/ddist2_s.png)

This is a map created by DeadSpirit, but edited and done with the 3x's DrawDistance rates by Kalcor. This might give an idea about setting the drawdistance of objects.


EDIT : Use http://convertffs.com for converting your maps with parameters easily. Take the below quotes too in concern.
Quote from: Incognito on SA-MP Forums
It is not recommended to use a high streaming distance for every item. This can drastically impact performance because it leads to more items being checked on each update. If an item's streaming distance exceeds that of the cell distance (600.0 by default), it also does not benefit from spatial indexing, which can lead to even worse performance. Only set high streaming distances for items which need to be visible from very far away (global map icons, for example).
Title: Re: Attention all mappers.
Post by: Mortalis on November 27, 2013, 05:06:14 PM
Now I see that it's possible. I didn't hear about it though, just now. I got one question, is the drawdistance can be used by CreateDynamicObject also? I mean the objects used by any streamer plugin such as incognito?

is the params will be like this:

Code: [Select]
CreateDynamicObject(objectid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);
If it only exist in CreateObject, It will be a trouble also if the map got too many objects since 3x sa-mp server got only 1000 limit in CreateObject (actually 999 objects only in my experience)
Title: Re: Attention all mappers.
Post by: Lordz on November 27, 2013, 06:12:38 PM
DrawDistance is supported on Incognito's Streamer too. If you're building up the DrawDistance for 3x, use 3x's plugin itself to debug.
Title: Re: Attention all mappers.
Post by: Robert on November 27, 2013, 06:33:45 PM
if(Good_Reminder == 1)
{
return true;
}
Title: Re: Attention all mappers.
Post by: LeGGGeNNdA on November 27, 2013, 07:31:02 PM
I knew this, i just havent used it for my maps, because it isnt needed on my maps, even why they have lot of objects. I know other secrets to make those maps without bugs.
Title: Re: Attention all mappers.
Post by: Lordz on November 27, 2013, 08:06:15 PM
I knew this, i just havent used it for my maps, because it isnt needed on my maps, even why they have lot of objects. I know other secrets to make those maps without bugs.
It's not a "bug", it's a common issue when many objects are called to be streamed. And the other secrets - yeah, good for you. :- )