Skip to content

Community documentation

Akshay Narayan edited this page Mar 15, 2017 · 8 revisions

Page to capture various aspects of Malmo that we discover/encounter during exploration!

Distance from line of sight

Problem: To get the distance of some obstacle/block in the line of sight of the agent

Update: Due to the following commit we can get the distance directly from the ObservationFromRay

Use the observation type: ObservationFromRay. It returns a JSON string like the following example:

{
u'hitType': u'block',
u'inRange': True,
u'type': u'stone',
u'variant': u'stone',
u'x': 3.5,
u'y': 45.59931137525265,
u'z': -2.0
}

We can then use this with the information from ObservationFromDiscreteCell observation (that gives the players (x, z) position) to compute the distance.

Source: Issue 184

Some discussion on Gitter


Running "headless"

Problem: To be able to run Malmo on a server without X window.

Method 1: (On Linux machines)

  • Install xinit (a tool for manually running an X display server)
  • Start xinit (e.g., in a separate shell, or detach the process: nohup xinit & disown)
  • Export the display variable and start the Minecraft client: DISPLAY=:0.0 launchClient.sh
  • You may have to install gdm

Method 2: (On Linux - separate screen window)

  • make sure /etc/X11/Xwrapper.config is set to allowed_users=anybody
  • nohup xinit -- :<FREE_DISPLAY_NUMBER> &
  • DISPLAY=:<FREE_DISPLAY_NUMBER>.0 ./launchClient.sh

Source: Issue 291


Tuning the training speed

Problem: To be able to train faster

Solution: Please follow this link (ps: I will add more details, if any)


Building for Windows 32-Bit

Problem: To be able to build Malmo for a 32-Bit Windows machine.

Solution: Please follow the instructions here

Clone this wiki locally