Hello There, Guest! Login or Register


Bots in SA-MP
#5
(02-27-2007, 01:59 AM)cannabis link Wrote:It would be awesome, but an extremely hard task to do.
Let's say you decrypt raknet successfully and then interpret SAMP packets correctly. That's kind of easy, but it would be a complete pain in the ass to make the bot smart, having a relatively decent AI. The bot would have to understand the world around him. But it could be absolutely possible with a pre-defined path of actions, just as in Quake 3. (I say Quake 3 because that's my closest example of bot AI, I remember doing maps for Quake 3 and then having to compile the bot's "inteligence file", a computation of all possible paths in a map a bot could walk).

Bots aren't that hard to create, download a copy of raknet, guess some of SA-MP's connection params, read the structs using a packet sniffer and re-implent them. Next you use raknet's BitStream using those structs and whoo, you're connected. Making the bot work is just catching and simulating the packet's SA-MP supports, which, since SA-MP's protocol isn't encrypted, isn't that hard either. Making them aim properly, aware of collisions and able to obey to the server's commands is a bit harder though, which most probably is the cause of Sirius' bots not supporting this.

:)
Reply


Messages In This Thread
Bots in SA-MP - by cannabis - 02-27-2007, 12:11 AM
Re: Bots in SA-MP - by theHolyCow - 02-27-2007, 01:31 AM
Re: Bots in SA-MP - by tomozj - 02-27-2007, 01:50 AM
Re: Bots in SA-MP - by cannabis - 02-27-2007, 01:59 AM
Re: Bots in SA-MP - by Peter - 02-27-2007, 02:18 AM
Re: Bots in SA-MP - by Vulkanyaz - 02-27-2007, 07:27 AM
Re: Bots in SA-MP - by paanhaas - 02-27-2007, 01:06 PM
Re: Bots in SA-MP - by Deaken - 02-27-2007, 01:49 PM
Re: Bots in SA-MP - by tomozj - 02-27-2007, 04:48 PM
Re: Bots in SA-MP - by Nakebod - 02-27-2007, 04:49 PM
Re: Bots in SA-MP - by tomozj - 02-27-2007, 04:51 PM