nebogeo / creative-kids-coding-cornwall

A set of teaching materials and open source technologies used for a variety of projects with children in Cornwall.
17 stars 7 forks source link

deployment #3

Open edne opened 9 years ago

edne commented 9 years ago

How can I set up the project to try it by myself?

glenpike commented 9 years ago

Hi, if you download the repository zip file and unzip it on your RPi, look at the install script (minecraft/install.sh - https://github.com/nebogeo/creative-kids-coding-cornwall/blob/master/minecraft/install.sh)

Run that to copy the library to the correct folder.

You might also want to look at minecraft/setup/dbs-setup.sh - https://github.com/nebogeo/creative-kids-coding-cornwall/blob/master/minecraft/setup/dbs-setup.sh

If you run this, it will download and install Minecraft Pi - http://pi.minecraft.net/ - and Geany - http://geany.org/ - (a code editor)

In the doc's folder (https://github.com/nebogeo/creative-kids-coding-cornwall/tree/master/minecraft/doc/pdf) there are some PDF's with tutorials to follow and there are some pre-existing examples/experiments in https://github.com/nebogeo/creative-kids-coding-cornwall/tree/master/minecraft/experiments

Start Minecraft from the desktop icon (if you ran dbs-setup.sh) You can run examples / code from within Geany, or just from the command line.

edne commented 9 years ago

Lol, I prefer Vim...

I think that the problem is the hardcoded path in dbscode_minecraft.py:

# locate api so we can run frm anywhere
sys.path.append("/home/pi/mcpi/api/python/mcpi")

This path should be the one where the user have downloaded and installed minecraft-pi, but now it works only if the user is called pi (the default on Raspberry?) and if everything is installed using minecraft/setup/dbs-setup.sh that re-downloads the project itself too.

The main issue is that the readme doesn't say how to use the library and install the dependencies (writing this I found almost all the answers)

glenpike commented 9 years ago

Okay - yes the path is hardcoded, I have been investigating this a little - e.g. trying to setup mcpi in the system folders.

dbs-setup.sh was a 10 minute hack to get everything setup on about 20 Pi's asap. It's not really a "production installer", but gave some, hopefully useful, automation.