SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 14/02/2018, 04:04 PM   #11
ThomasEvil
Big Clucker
 
Join Date: Jun 2016
Posts: 153
Reputation: 0
Default Re: Let's talk about NEURAL NETWORK

Thats right, the npc must learn walk around without hitting walls... Just like the npc in the video i posted before. Learn the npc what W A S D and other keys is and let him work with that. Also, give him a test. Let him find, follow and kill players asap.

why A_NPC.inc has included these defines...

Code:
// Keys
#define KEY_ACTION				(1)
#define KEY_CROUCH				(2)
#define KEY_FIRE				(4)
#define KEY_SPRINT				(8)
#define KEY_SECONDARY_ATTACK	(16)
#define KEY_JUMP				(32)
#define KEY_LOOK_RIGHT			(64)
#define KEY_HANDBRAKE			(128)
#define KEY_LOOK_LEFT			(256)
#define KEY_SUBMISSION			(512)
#define KEY_LOOK_BEHIND			(512)
#define KEY_WALK				(1024)
#define KEY_ANALOG_UP			(2048)
#define KEY_ANALOG_DOWN			(4096)
#define KEY_ANALOG_RIGHT		(16384)
#define KEY_ANALOG_LEFT			(8192)

#define KEY_UP					(-128)
#define KEY_DOWN				(128)
#define KEY_LEFT				(-128)
#define KEY_RIGHT				(128)
when u cant even use it when you make NPC ... Maybe this is the little thing we can start with?
ThomasEvil is offline   Reply With Quote
Old 14/02/2018, 04:16 PM   #12
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,188
Reputation: 405
Default Re: Let's talk about NEURAL NETWORK

It's not as easy as you think, no one managed to fully pull off the smart talking bot rather than making a walking interactive one and i highly HIGHLY doubt anyone would dedicate time nowadays on such a project.
__________________
Quote:
Originally Posted by Andy
My anti cheat is still relevant *puts shades on* https://github.com/RogueDrifter/Anti_cheat_pack

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link

RogueDrifter is offline   Reply With Quote
Old 14/02/2018, 04:33 PM   #13
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,251
Reputation: 525
Default Re: Let's talk about NEURAL NETWORK

Quote:
Originally Posted by ThomasEvil View Post
why A_NPC.inc has included these defines...
No reason, it's just there.
Sew_Sumi is offline   Reply With Quote
Old 14/02/2018, 04:55 PM   #14
Yashas
Gangsta
 
Join Date: Jun 2012
Location: India
Posts: 882
Reputation: 317
Default Re: Let's talk about NEURAL NETWORK

Quote:
Originally Posted by RogueDrifter View Post
It's not as easy as you think, no one managed to fully pull off the smart talking bot rather than making a walking interactive one and i highly HIGHLY doubt anyone would dedicate time nowadays on such a project.
I think it's easier to make a smart moving and interactive bot than a talking bot.
Yashas is offline   Reply With Quote
Old 14/02/2018, 05:00 PM   #15
ThomasEvil
Big Clucker
 
Join Date: Jun 2016
Posts: 153
Reputation: 0
Default Re: Let's talk about NEURAL NETWORK

I saw many videos on youtube where people make their own games, so they can test the neural network on it. Samp is already done, so you can just work on the neural network and use it on samp npc. I am noob pawner and i did not even make any plugin or include but i think it can be done with mysql or something.. Yeah, such a project... Must take tons of hours to have it done but its amazing!
ThomasEvil is offline   Reply With Quote
Old 14/02/2018, 06:29 PM   #16
iKarim
Banned
 
Join Date: Oct 2015
Posts: 579
Reputation: 142
Default Re: Let's talk about NEURAL NETWORK

Quote:
Originally Posted by ThomasEvil View Post
but i think it can be done with mysql
How comes MySQL is related in any way to machine learning and AI?
iKarim is offline   Reply With Quote
Old 14/02/2018, 06:34 PM   #17
Mauzen
Banned
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,880
Reputation: 1597
Default Re: Let's talk about NEURAL NETWORK

First of all youd need to design a proper data model, e.g. a sequence of actions like move, aim, shoot, switch weapon, etc.
Then youll have to fetch learning data and test data. Human players would be a good source for that. Record what they are doing, convert it to your data model, and feed it to the network. Youll also have to define a goal, like getting kills or performing a task in the shortest time, so the efficiency of action sequences can be rated.
Additionally youll have to consider all the environmental data of course: position of the NPC, position and actions of nearby players (maybe also consider if the players are visible, or were visible to the NPC), etc. and include that with the learning data. Thats a LOT of data to include, so its gonna be a pretty big (and slow) neural network.
The amount of learning datasets required to get a proper result is going to be huge, and depending on how small you define actions it would probably take months on a well-populated server to get first barely useable results.

Of course you could skip the data gathering and do it in the trial-and-error way, but this means youd have a couple of terribly bad and random NPCs at your server for months.


Actually this should work, but due to the huge amount of possible actions available at any time a neural network isnt the way to go if you want autonomous NPCs.
A much better attempt for NPC AI would be e.g. an elaborated BDI-system. Ive already experimented with this, and its a pretty easy way to get good autonomous NPCs for any job.
Mauzen is offline   Reply With Quote
Old 14/02/2018, 08:14 PM   #18
ThomasEvil
Big Clucker
 
Join Date: Jun 2016
Posts: 153
Reputation: 0
Default Re: Let's talk about NEURAL NETWORK

Quote:
Originally Posted by Mauzen View Post
A much better attempt for NPC AI would be e.g. an elaborated BDI-system. Ive already experimented with this, and its a pretty easy way to get good autonomous NPCs for any job.
Well, that sounds very interesting! Is there any explenation, tutorial or example of this? I want to learn that.
I just want to make smart npc, which go on his own on my samp server so.. He lives there and do what he want..
I know it sounds SCI-FI ..

BTW: This is not what iam looking for...

https://www.youtube.com/watch?v=awhhnCazNy0

but good job!
ThomasEvil is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
talk ? . quochuy Scripting Help 3 28/05/2015 08:55 AM
Talk help Tutrix Help Archive 1 16/12/2010 05:58 PM
NPC talk ?? [Help] eixas10000 Help Archive 1 14/11/2010 04:31 PM
[HELP] How to talk the talk, then what name the pipeline on the head. uplovethai Help Archive 3 11/12/2009 03:33 PM
Cant TAlk? Sal_Kings Help Archive 2 16/05/2009 11:12 AM


All times are GMT. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.