SA-MP Forums Archive
Object Streamer and Vehicles Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object Streamer and Vehicles Problem (/showthread.php?tid=314684)



Object Streamer and Vehicles Problem - leuser - 30.01.2012

Hi,
i just implemented Incognitos Object Streamer into my gamemode. Everything works just fine, but theres one little thing, where i need your help:
I removed some parts of the city (RemoveBuildingForPlayer) including the solid ground to rebuild these with my own objects. But now, when im trying to spawn some vehicles on these objects (streamed by the streamer) they just fall through the ground and respawn somewhere on the solid ground nearby.
Ive seen lots of stuntservers which are doing the exact same thing: Spawning vehicles on custom objects and there they dont have that kind of problem. So what am i doing wrong and how can i prevent this from happening? Loading objects before loading vehicles? How? Spawning vehicles with z+10 coordinate doesnt seem to work either?

Thanks in advance


AW: Object Streamer and Vehicles Problem - leuser - 31.01.2012

Sorry for Doublepost, but isnt there anybody who knows the answear. As i said it is possible cause many stunt servers are doing exactly this thing. So please help me, i really need to know the answear


Re: Object Streamer and Vehicles Problem - Unte99 - 31.01.2012

Because the objects are loading too slow and then the cars drop down. I personally use CreateObject for those kind of situations.


AW: Object Streamer and Vehicles Problem - leuser - 31.01.2012

Thanks for your answear. I would use CreateObject (which works fine) but unfortunatly SAMP only supports up to 400 objects. Thats why i implemented this object streamer. So is there any kind of workaround for that? Or anything other i can do. How do stunt servers (Big custom maps in the sky with cars on custom platforms) solve this problem? Why dont these cars drop down?


Re: Object Streamer and Vehicles Problem - Unte99 - 31.01.2012

You can use both, the streamer and the default sa-mp objects at the same time. My most of the objects are streamed, but lets say, that the ones which carry say cars or planes on the server start, i make them with CreateObject.


AW: Object Streamer and Vehicles Problem - leuser - 31.01.2012

In Incognitos Streamer there is a message saying:
Quote:

Be careful when using streamed items with non-streamed items. Conflicts can sometimes arise.

So i tought you souldnt do that. Do i have to change something in the streamer in order to minimize those conflicts?


Re: Object Streamer and Vehicles Problem - Unte99 - 01.02.2012

Well i use Incognitos Streamer too and i use default sa-mp objects and i haven't had a conflict since i started to use it.