-
Notifications
You must be signed in to change notification settings - Fork 29
Multiple
Tambet Matiisen edited this page Nov 24, 2016
·
2 revisions
You can have several Minecraft instances serving pool of agents. First you need to start number of Minecraft processes on different ports:
cd ~/Malmo/Minecraft
./launchClient.sh -port 10000
./launchClient.sh -port 10001
Then set up client pool when configuring the environment:
env = gym.make('MinecraftBasic-v0')
env.configure(client_pool=[("localhost", 10000), ("localhost", 10001)])
Malmo will automatically use the first free Minecraft instance from the list.
Actually this is rather inefficient way of pooling Minecraft instances, because each agent starts trying from the first in list. It is therefore suggested to have dedicated Minecraft instance for each agent and use just one address in the list.