CreateObject bugs the server? -
admantis - 22.02.2012
Hello honeys;
I have recently installed a large map in my script (994 objects at Doherty). However, when I add them, my script gets completely bugged, as in, when I log in, the camera is not set (I don't even spawn), and when I remove the CreateObject lines for the map, my script works perfectly.
I also use Incognito's streamer for other maps, but this one is a first priority and I don't want objects being streamed from a really low distance and make it look cheesy, so I've tried placing the main structure / architecture objects with CreateObject, and the secondary one with the streamers, but no success.
Re: CreateObject bugs the server? -
JhnzRep - 22.02.2012
Did you put them under OnGameModeInit?
Re: CreateObject bugs the server? -
admantis - 22.02.2012
Certainly, just like all my other objects.
Re: CreateObject bugs the server? -
JhnzRep - 22.02.2012
No idea then, sorry.
Re: CreateObject bugs the server? -
Psymetrix - 22.02.2012
With 994 objects you have no choice but to use the streamer. If you have 994 objects not on the streamer it will only take 4 streamed objects to show before the player will crash. I'm not sure why nothing works but you need to use the streamer.
Re: CreateObject bugs the server? -
admantis - 22.02.2012
But I don't know how to use this in this very special occasion; when I use the streamer on all the objects, the floor stops creating, leave a big hole to the void.
Re: CreateObject bugs the server? -
Psymetrix - 22.02.2012
Playing about with the draw distance is about all the advice I can give you. Sorry.
Re: CreateObject bugs the server? -
Babul - 22.02.2012
@Psymetrix: i agree.. setting the drawdistance for the floor obejcts to 300 units while setting the lower priority objects to 200 only, small, not important to drive/stunt obejcts (like decoration, bottles, barrels etc) set to 100, will give you better results, since an object out of sight gives the streamer one more to display at higher range.
Re: CreateObject bugs the server? -
GtasaPoliceModz - 22.02.2012
I'd Suggest you add Streamer.so to the Script with your includes
If you have that remove streamer from script I had A problem where streamer.so Shut my server down randomly