Getting+Code

= = Getting Code (from git repos):

To install git in ubuntu: sudo apt-get install git-core

To install git on mac os: Make sure you are in the folder you plan to put your work in and then type git init.

You will also need pygame to run the py files: sudo apt-get install python-pygame

To download the code for Fortune Hunter: cd   git clone git:/ /git.sugarlabs.org/project-xavier/mainline.git fortunehunter (delete that space)

To install submodules (necessary to run game, otherwise you'll see the errors): cd fortunehunter git submodule init git submodule update

To set up SSH key: Tutorial can be found [|here]. On your sugarlabs dashboard, there is a section to add SSH Keys. You can copy and paste the text into there. (My first key created in February stopped working recently, but I made a new one and all is well now.)

To commit and push back to the git repo (must have committer privileges): git add git commit git push gitorious@git.sugarlabs.org:project-xavier/mainline.git master

<span style="font-family: Arial,Helvetica,sans-serif;">*Thank s to Jonathan Meschino for the su<span style="font-family: Arial,Helvetica,sans-serif;">bmodule info.

<span style="color: #800000; font-family: Impact,Charcoal,sans-serif; font-size: 210%;">Getting Code (from our svn repos):
Check out using subversion (username & password required): <span style="font-family: 'Courier New',Courier,monospace; font-size: 90%;">svn co https://cirdles.org/repos/462playground/FoursCompany/FortuneHunter/mainline/

Check (back) in using subversion: <span style="font-family: 'Courier New',Courier,monospace; font-size: 90%;">svn add <span style="font-family: 'Courier New',Courier,monospace; font-size: 90%;"> svn commit -m " "

<span style="font-family: arial,helvetica,sans-serif; font-size: 13px; line-height: 19px;">To update to current subversion repos (t his will register your committed comments in the svn log and make your current copy the working copy): <span style="font-family: 'Courier New',Courier,monospace; font-size: 12px; line-height: 17px;">svn update = =

<span style="color: #800000; font-family: Impact,Charcoal,sans-serif; font-size: 210%; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px;">Starting the Fortune Hunter game:

Go to FH main directory's location and then: <span style="font-family: 'Courier New',Courier,monospace; font-size: 12px; margin: 0px; padding: 0px;">cd MAFH2 <span style="font-family: 'Courier New',Courier,monospace; font-size: 12px; margin: 0px; padding: 0px;">python MafhActivity.py