Create some IA : Articial Intelligence in minetest

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Create some IA : Articial Intelligence in minetest

by issa » Mon Mar 14, 2016 19:25

Hello;

i see this article :

http://www.numerama.com/sciences/152248 ... r-lia.html (in french sorry)

in english

http://venturebeat.com/2016/03/14/micro ... oject-aix/

the way is create a Articial Intelligence who can found a purpose in minetest and grow up alone.

First is start create IA : Articial Intelligence who can go at the top of the mountain, and found it :)


and now i want ot do this in minetest who is interresting to help :)


what do u think please ?

thanks for u response



Récupérer une ancienne version de Minetest : https://github.com/minetest/minetest/releases

programme en python pour faire tourner un bot : https://github.com/boppreh/minetesting

1> Find a old minetest the 0.4.9 --> https://github.com/minetest/minetest/re ... -mingw.zip

2> install mod on the mod directory of minetest
mods.jpg
mods.jpg (54.16 KiB) Viewed 3824 times


3> git clone in the linux server :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
     cd /var/www/minetest/
     git clone https://github.com/boppreh/minetesting.git
     chmod a+x client.py
     chmod a+x controller.py


4> Active the mod and lunch the server
Minetest [Menu principal].jpg
Minetest [Menu principal].jpg (48.52 KiB) Viewed 3824 times

Minetest [Menu principal]2.jpg
Minetest [Menu principal]2.jpg (56.9 KiB) Viewed 3824 times


5> On the Server linux lunch the Bot :



6> Now the bot is activate

7> Now found the way how to move it :
Last edited by issa on Mon Mar 21, 2016 19:06, edited 3 times in total.
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA in minetest

by MineYoshi » Mon Mar 14, 2016 22:50

That article is in French (Maybe...)

Exactly what is an "IA"?
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Create some IA in minetest

by rubenwardy » Tue Mar 15, 2016 02:07

IA stands for Intelligence Artificielle.
That's Articial Intelligence in English.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: Create some IA in minetest

by est31 » Tue Mar 15, 2016 07:24

Yeah, when I read that I've thought the same. It would be cool to have a library to create a headless minetest client, perhaps even AI. The idea of a library floats around for some time already, I've found it on a roadmap from c55 from 2011.
 

User avatar
Onyx
Member
 
Posts: 99
Joined: Fri Sep 25, 2015 08:36
In-game: onyx58

Re: Create some IA in minetest

by Onyx » Tue Mar 15, 2016 10:28

Hi,
The same press article (in english) :
http://venturebeat.com/2016/03/14/micro ... oject-aix/
"Science sans conscience n'est que ruine de l'âme."
-----------------------------------------------------------------------------------------
Steinheim NodesNation : steinheim-minetest.servegame.com Pt : 28000
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA in minetest

by MineYoshi » Tue Mar 15, 2016 14:31

THX Onyx,

In really seems to be interesant this project!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Create some IA in minetest

by rubenwardy » Tue Mar 15, 2016 14:33

est31 wrote:It would be cool to have a library to create a headless minetest client, perhaps even AI. The idea of a library floats around for some time already, I've found it on a roadmap from c55 from 2011.


I think that's what this is: https://github.com/boppreh/minetesting
 

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Re: Create some IA in minetest

by issa » Tue Mar 15, 2016 18:12

cool but not working need adjust i think :

So i have a server with minetest and with other linux server so i try to connect on with my bot and i have this error :


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
root [/var/www/minetest/minetesting] > python3 client.py 192.168.50.21 botIssa test
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "client.py", line 232, in _receive_and_process
    self._process_packet(data)
  File "client.py", line 183, in _process_packet
    assert data[0] == CONTROLTYPE_PING
AssertionError

Traceback (most recent call last):
  File "client.py", line 409, in <module>
    client = MinetestClient(*args)
  File "client.py", line 266, in __init__
    raise ValueError('Access denied. Reason: ' + self.access_denied)
ValueError: Access denied. Reason: Your client sent something server didn't expect.Try reconnecting or updating your client



other way, i start the mod bot directly on the server look works, but how activate the bot ?

in game i have this error :
192.168.50.40 - KiTTY.jpg
192.168.50.40 - KiTTY.jpg (49.47 KiB) Viewed 3824 times



i have to learn
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: Create some IA in minetest

by jp » Tue Mar 15, 2016 18:19

I can incarnate the Superficial Intelligence in game if needed, that's better than nothing.
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Tue Mar 15, 2016 19:25

Good point jp!

Is better the Superficial Intelligence!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Tue Mar 15, 2016 22:36

Before I had ideas to make a mob, that could dig matreals it need to build houses, and maybe protect (fight) with other mobs / players, and keep build on its place.

Good replacements for players in singleplayer, or fill out missing players in servers.

But the problem is, if no players is into it, it will be inactivated :-)
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Sat Mar 19, 2016 20:36

Better polish the performance of Minetest, create IA in Minetest needs a lot of time and knowledge!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: Create some IA : Articial Intelligence in minetest

by cd2 » Sun Mar 20, 2016 18:00

Sometime ago, I created a simple bot (cd-robot) which was able to mine. But it didnt work very well (it was just an experiment)
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Mon Mar 21, 2016 17:02

Then polish it, or request a help of someone!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Re: Create some IA : Articial Intelligence in minetest

by issa » Mon Mar 21, 2016 17:15

true is not easy, i m stuck for now, to found how socket exatly works, to talk with minetest, i just need time, i will do it.

to start i will create a web interface to see the IA in action, and let people create their own IA
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Mon Mar 21, 2016 20:19

+110!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Mon Mar 21, 2016 21:29

I have made a few kinds of mobs / bots, that ones i spend most time on, is in the pollution mod some have a unlimited inventory + shared inventory, that they using to throw stuff on other objects, they know they have to jump over holes in the ground, jump over blocks, break walls to reach the target (if not protected) and how to go around walls. they can see through some walls like glass.
+ the "kalium bottles" can transform blocks into monsters

The "dig placer" mob in the diplazer mod, have some of the functions, but let the owner control it
it can attack objects (some automatic cases) protect a selected object, place blocks, search for stuff to dig (using find_node near) and more :-)
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Mon Mar 21, 2016 21:42

Only is code after all!

Only polish a bit what there is and we can create a medium "IA" only needs work!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Re: Create some IA : Articial Intelligence in minetest

by issa » Sun Mar 27, 2016 09:11

Hello,

im back, i do some research about AI, and we have a difference betwen bot and AI,

the bot who program have all information and do what u says, the AI, can learn itself and do what he want !

And it's not easy to do it :)

but i m continue to learn
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Sun Mar 27, 2016 18:28

When i played Unreal Tournament 3, i found how the IA learnt how to stop me with different steps (used traps), to make it impossible to folow (vctf) this puzzled me
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Re: Create some IA : Articial Intelligence in minetest

by issa » Sun Mar 27, 2016 19:55

UjEdwin wrote:When i played Unreal Tournament 3, i found how the IA learnt how to stop me with different steps (used traps), to make it impossible to folow (vctf) this puzzled me



cool and how he do that ?
 

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: Create some IA : Articial Intelligence in minetest

by Gael de Sailly » Sun Mar 27, 2016 22:25

I personally don't like to systematically copy Minecraft's development.

That said, a rudimentary AI could be interesting for mobs, for example to prevent them from falling from a cliff (only allow the movements that the mob will then be able to make in the other direction, by taking into account its jump capacities). I think it would not be that difficult, and for now we don't really need a real AI.
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Mon Mar 28, 2016 19:47

Gael de Sailly wrote:I personally don't like to systematically copy Minecraft's development.

That said, a rudimentary AI could be interesting for mobs, for example to prevent them from falling from a cliff (only allow the movements that the mob will then be able to make in the other direction, by taking into account its jump capacities). I think it would not be that difficult, and for now we don't really need a real AI.






100% True!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Mon Mar 28, 2016 20:04

I personally don't like to systematically copy Minecraft's development.


No: will want to make minetest better then minecraft :P


issa wrote:cool and how he do that ?


VCTF (Vehicle capture the flag)

There is wearable traps, that you can place everywhere
They did:
1: placed a short circuit field (used to short circuit the vehicle i was inside)
2: then a slowmotion field (everything is 0.5x speed in there (the bullets too)
3: then a spider trap (spawns spider robots that blows you up)

I can believe a bot can use the traps in different ways to gain ther benefits, but, in this case they removed my vehicle, made me slow, and it was impossible to escape from the spider robots.. and it only happened 1 time.

When i used the UED (the mod editor) to make maps, i had to set paths, so the bots could find ways to go, like a GPS.

but...



Im interested to make a flexible IA api for minetest, its made by many different parts, it takes long time to develop. But i need help with the mathematic part, because i'm not good at this.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

issa
Member
 
Posts: 119
Joined: Wed Apr 03, 2013 19:01

Re: Create some IA : Articial Intelligence in minetest

by issa » Mon Mar 28, 2016 20:17

Cool

I found an open source API writing in C who have a neuronal système we van used
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Tue Mar 29, 2016 22:52

Surely it will work in Minetest?
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Wed Mar 30, 2016 10:10

I dont think so, but we can see principles that is using, and how they are solved problems.

I don't know c or c++, but js (similar like it) but shore im still can see whats going on
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Wed Mar 30, 2016 21:47

ok, let's see what happen' i hope that neuronal system works!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: Create some IA : Articial Intelligence in minetest

by AiTechEye » Wed Apr 06, 2016 12:23

Because there is much to do, and have to spend much time, and I have a lot to do, I have to pull myself out of this projectet.

but anyways here is code with functions that is important for mobs.

This is not a working mod, but it makes a bot that can walk to you (it messing, i have no idea why)
Attachments
ByUjEdwin-codesource-abot.zip
(2.96 KiB) Downloaded 53 times
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Create some IA : Articial Intelligence in minetest

by MineYoshi » Wed Apr 06, 2016 23:52

good job, is very great, it can walk to an entity with a command?
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

Next

Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron