SA-MP Forums Archive
Question about bots - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about bots (/showthread.php?tid=95813)



Question about bots - dkorolenchuk - 05.09.2009

So i followed the bot tut and the bot is there but i have the following problem:

The car moves then disappears and the driver (a chicken dude) ends up standing on the road and then the car reappears drives a bit then it happens again?


Re: Question about bots - Josh! - 05.09.2009

Alright, this happened to me too.

How many NPCs do you have running on your server in total?


Re: Question about bots - dkorolenchuk - 05.09.2009

well 7 i guess the 3 pilot 3 train ones i thought were built in cause i did not script them but they are there driving cars and not planes/trains?



Re: Question about bots - Josh! - 05.09.2009

Hosted on a local server?


Re: Question about bots - dkorolenchuk - 05.09.2009

just my own PC just testing stuff out


Re: Question about bots - Marcus09 - 05.09.2009

Quote:
Originally Posted by dkorolenchuk
well 7 i guess the 3 pilot 3 train ones i thought were built in cause i did not script them but they are there driving cars and not planes/trains?
You have messed up the vehicle id's in your mode.


Re: Question about bots - Josh! - 05.09.2009

Alright, your problem occurs because your computer specs (not sure which ones) aren't high enough to support that many NPCs/Bots. Basically, they are lagging terribly and virtually teleporting around the path you set it in the .rec file. If you had a speed warning detection system, you could see that the speeds of the NPCs/Bots are jumping from 5k to 10k.

I recommend you try removing OnNPCConnect in OnGameModeInit or OnFilterScriptInit until you only have 1 NPC/Bot connecting to your server, then see if it works.


Re: Question about bots - dkorolenchuk - 05.09.2009

Ok thanks for your help bud.


Re: Question about bots - Josh! - 05.09.2009

No prob, let me know if it worked.


Re: Question about bots - dkorolenchuk - 09.09.2009

yes it worked,sorry for the delayed response have been busy.
When i cut out the other 6 generic bots running by taking gl_npcs out of server.cfg