Page 1 of 2
Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 14, 2016 19:25
by issa
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/releasesprogramme en python pour faire tourner un bot :
https://github.com/boppreh/minetesting1> Find a old minetest the 0.4.9 -->
https://github.com/minetest/minetest/re ... -mingw.zip2> install mod on the mod directory of minetest

- mods.jpg (54.16 KiB) Viewed 3833 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](./download/file.php?id=5484&sid=59a942c1e41126e5da93ac714652f1d2)
- Minetest [Menu principal].jpg (48.52 KiB) Viewed 3833 times
![Minetest [Menu principal]2.jpg](./download/file.php?id=5485&sid=59a942c1e41126e5da93ac714652f1d2)
- Minetest [Menu principal]2.jpg (56.9 KiB) Viewed 3833 times
5> On the Server linux lunch the Bot :
6> Now the bot is activate
7> Now found the way how to move it :
Re: Create some IA in minetest

Posted:
Mon Mar 14, 2016 22:50
by MineYoshi
That article is in French (Maybe...)
Exactly what is an "IA"?
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 02:07
by rubenwardy
IA stands for Intelligence Artificielle.
That's Articial Intelligence in English.
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 07:24
by est31
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.
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 10:28
by Onyx
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 14:31
by MineYoshi
THX Onyx,
In really seems to be interesant this project!
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 14:33
by rubenwardy
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
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 18:12
by issa
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 (49.47 KiB) Viewed 3833 times
i have to learn
Re: Create some IA in minetest

Posted:
Tue Mar 15, 2016 18:19
by jp
I can incarnate the Superficial Intelligence in game if needed, that's better than nothing.
Re: Create some IA : Articial Intelligence in minetest

Posted:
Tue Mar 15, 2016 19:25
by MineYoshi
Good point jp!
Is better the Superficial Intelligence!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Tue Mar 15, 2016 22:36
by AiTechEye
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 :-)
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sat Mar 19, 2016 20:36
by MineYoshi
Better polish the performance of Minetest, create IA in Minetest needs a lot of time and knowledge!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sun Mar 20, 2016 18:00
by cd2
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)
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 21, 2016 17:02
by MineYoshi
Then polish it, or request a help of someone!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 21, 2016 17:15
by issa
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
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 21, 2016 20:19
by MineYoshi
+110!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 21, 2016 21:29
by AiTechEye
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 :-)
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 21, 2016 21:42
by MineYoshi
Only is code after all!
Only polish a bit what there is and we can create a medium "IA" only needs work!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sun Mar 27, 2016 09:11
by issa
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
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sun Mar 27, 2016 18:28
by AiTechEye
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
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sun Mar 27, 2016 19:55
by issa
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 ?
Re: Create some IA : Articial Intelligence in minetest

Posted:
Sun Mar 27, 2016 22:25
by Gael de Sailly
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.
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 28, 2016 19:47
by MineYoshi
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!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 28, 2016 20:04
by AiTechEye
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.
Re: Create some IA : Articial Intelligence in minetest

Posted:
Mon Mar 28, 2016 20:17
by issa
Cool
I found an open source API writing in C who have a neuronal système we van used
Re: Create some IA : Articial Intelligence in minetest

Posted:
Tue Mar 29, 2016 22:52
by MineYoshi
Surely it will work in Minetest?
Re: Create some IA : Articial Intelligence in minetest

Posted:
Wed Mar 30, 2016 10:10
by AiTechEye
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
Re: Create some IA : Articial Intelligence in minetest

Posted:
Wed Mar 30, 2016 21:47
by MineYoshi
ok, let's see what happen' i hope that neuronal system works!
Re: Create some IA : Articial Intelligence in minetest

Posted:
Wed Apr 06, 2016 12:23
by AiTechEye
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)
Re: Create some IA : Articial Intelligence in minetest

Posted:
Wed Apr 06, 2016 23:52
by MineYoshi
good job, is very great, it can walk to an entity with a command?