Small Finite World for AI developement

Post Reply
Julien B.
New member
Posts: 1
Joined: Mon Jun 18, 2018 21:03

Small Finite World for AI developement

by Julien B. » Post

Hi, I'm a complete beginner to the Minetest community that intend on using Minetest for AI development.

To begin playing with AI-related stuff, I wanted to build a small arena of finite size (say 30 blocks per 30 blocks), I've looked around but couldn't find any direct solution to this task, so here are my questions:

1. Should I build a new 'world', make it flat and finite by changing the init.lua file?
2. Should I build a mod, that forbid the player to walk more than 30 meters in any rectangular direction?
3. Should I generate an arena closed on all face with unbreakable bricks?

The last seems to be the more coherent and feasible.

Tell me what you think!

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Small Finite World for AI developement

by Stix » Post

Julien B. wrote:Hi, I'm a complete beginner to the Minetest community that intend on using Minetest for AI development.

To begin playing with AI-related stuff, I wanted to build a small arena of finite size (say 30 blocks per 30 blocks), I've looked around but couldn't find any direct solution to this task, so here are my questions:

1. Should I build a new 'world', make it flat and finite by changing the init.lua file?
2. Should I build a mod, that forbid the player to walk more than 30 meters in any rectangular direction?
3. Should I generate an arena closed on all face with unbreakable bricks?

The last seems to be the more coherent and feasible.

Tell me what you think!
make a 30x30 platform in singenode
Hey, what can i say? I'm the bad guy.

User avatar
cHyper
Member
Posts: 1014
Joined: Fri May 06, 2011 08:49
GitHub: cHyper-0815OL
IRC: cHyper cHyper_de
In-game: cHyper
Location: Austria
Contact:

Re: Small Finite World for AI developement

by cHyper » Post

+1

Skulls
Member
Posts: 108
Joined: Thu Dec 21, 2017 17:41
In-game: Skulls

Re: Small Finite World for AI developement

by Skulls » Post

Also be aware that Lua is the only modding language unless you want to start hacking in C++. Otherwise you have to either use HTTP APIs (but fairly limited do to security risks) or some shared folder / file style communication.

What kind of AI are you thinking of? High academic or something a bit more practical?

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Small Finite World for AI developement

by Stix » Post

cHyper wrote:+1
Ugh stop this "+1" spamming already, this isn't the first time.
Hey, what can i say? I'm the bad guy.

User avatar
srifqi
Member
Posts: 557
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: Small Finite World for AI developement

by srifqi » Post

You can use mapgen_limit setting to limit map generation.

1. Add this line to minetest.conf.

Code: Select all

mapgen_limit = 30
2. Create new world
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: Small Finite World for AI developement

by Phoenixflo44 » Post

srifqi wrote:You can use mapgen_limit setting to limit map generation.

1. Add this line to minetest.conf.

Code: Select all

mapgen_limit = 30
2. Create new world
This can be used but the player can run away over the limit, but when you get back into the world and in the limit true then the player is reset.

My opinion is you should make a singenode map.
+ Spoiler

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Small Finite World for AI developement

by texmex » Post

Phoenixflo44 wrote:
srifqi wrote:You can use mapgen_limit setting to limit map generation.

1. Add this line to minetest.conf.

Code: Select all

mapgen_limit = 30
2. Create new world
This can be used but the player can run away over the limit, but when you get back into the world and in the limit true then the player is reset.

My opinion is you should make a singenode map.
No, there will be no nodes outside the limit to run on, it will be just like at 32000 or -32000. mapgen_limit is what you’re looking for.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Small Finite World for AI developement

by hajo » Post

Julien B. wrote:AI development .. build a small arena (say 30 blocks per 30 blocks),
couldn't find any direct solution
Have a look at mods/games like skyblock.

Each player gets his own small, empty 'island in the sky',
and needs to solve quests to get more stuff.

Could be adapted to your needs...

What kind of AI are you planning, what is it supposed to do ?

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Small Finite World for AI developement

by paramat » Post

Srifqi is correct here, but it needs to be set to 63 otherwise no mapchunks generate. The result will be a world of 80^3 nodes, you can't have a world smaller than that.

User avatar
Wuzzy
Member
Posts: 4182
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Small Finite World for AI developement

by Wuzzy » Post

Yes, you should set mapgen_limit to 63. You can also set it in advanced settings.

This will force the world to be really small:
Image

Note this setting only affects NEW worlds. Existing worlds are not touched.



Fun fact: If you use a smaller value, Minetest does not generate any world at all. You can't even place blocks. Minetest should probably not allow values lower than 63.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Krock
Developer
Posts: 4598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Small Finite World for AI developement

by Krock » Post

<offtopic>
Wuzzy wrote:Fun fact: If you use a smaller value, Minetest does not generate any world at all. You can't even place blocks. Minetest should probably not allow values lower than 63.
That's intended for worlds like such that were recorded from a remote server. It prevents the map generator from generating more mapblocks into the world (which should be kept as-is). I don't know how different 0.4.x and 5.0.0-dev it will handle this situation, but in the latter you can explore existent mapblocks without being limited to what mapgen_limit says.

</offtopic>
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Small Finite World for AI developement

by paramat » Post

> Minetest should probably not allow values lower than 63.

The minimum value that still generates a mapchunk depends on the chosen mapchunk size.

Post Reply

Who is online

Users browsing this forum: orwell, x2048 and 6 guests