Success!!

Git LogoSo I have finally done it! I understand can use Git source control.

I want to say that I understand it completely, but that would be a complete and total lie. I’ll learn more as I go though.

I should probably start at the beginning, right?

Ok.

So last fall a friend of mine approached me wanting to start a project with me and a few of his friends. Basically it was a multiplayer remake of an old game that he loved. I was intrigued and accepted so, being how I am, I jumped right in. I had heard of a series of different team collaboration software so I started to research and came upon Git. It looked like a winner except for one thing. I HAD NO CLUE HOW TO USE IT!

I even installed EGit for Eclipse and watched tutorials and everything but nothing made much sense.

So I gave up…

Maybe a few weeks later I tried again when I wanted to clone a project on Google Code to implement a tiled map. I got it cloned online, but I couldn’t get it to my local drive.

Until a miracle happened. I decided to try Git again now that I have the Raspi and this blog running. I figure that if I am talking about my projects here that it is only right to post them to the interwebs for all to see, but that’s not the miracle. The miracle was that I actually learned Git. Thanks to a friend of mine named Napkins pointed me towards a trio of great Git tutorials. The first two were pretty good but the third was PERFECT! I mean absolutely perfect. So, for all to see, here they are:

1. Git from the Bottom Up by John Wiegley

This pdf was the first that I looked at. I only read the intro but I am meaning to read the rest at some point. It’s intro covers the basic vocabulary of Git and the basic overview of the Git process.  It is dated from 2009 so I am surprised that I only found it now. I wish I had it when I was starting.

2. A Visual Git Reference

Visual Git

Honestly I haven’t looked this one through much, but from a quick once-over it looks great, especially for visual learners like me.

3. Git ImmersionGit Immersion Logo

I saved the best for last. This guide is a step by step tutorial for Git and the best part: If you mess up, you just delete the directory and restart. You don’t need to do anything drastic like reinstall Eclipse (like I did when I was starting thanks to a few mistakes with EGit). It is a perfect guide beginners and gets pretty deep into Git without going too fast. I cannot recommend this one enough. Thank you Napkins for showing this to me.

Long story short, I think I have a working knowledge of Git for the time being. I’ll probably get confused again when I work on a team using Git, but honestly it doesn’t worry me too much.

Take a look at my projects on GitHub, Right now there is only one uploaded, but I will have the rest up in the next day or two.

Thank you for reading! Don’t hesitate to contact me with suggestions/comments/questions. I would love to respond.

Tagged with: ,
Posted in Code Projects

Working with Minecraft Saves

Minecraft Grass Block LogoFor those of you that don’t know, Minecraft is kinda awesome. What is Minecraft you ask? Well it’s almost like Legos, but with so much more. You start in a world with rolling hills, towering mountains and animals of all kind around you and you have one goal survive.

It sounds easy, but as night falls you start to see roaming zombies, skeletons with bows, and many other creatures of the night. You need to make a house that will protect you, which honestly is pretty easy, its HOW you make the house that is important. Make it all pretty with all the different types of resources in the world. If you would like to see some of what you can do in Minecraft (because surviving is just the beginning) take a look at CaptainSparklez‘s channel on YouTube. (I don’t get paid by him or anything, he’s just good.)

I have been playing Minecraft very heavily since Beta and over that time I have amassed TONS of world saves. No, seriously, look. Here is my .minecraft/saves folder.

Untitled

…and this isn’t even everything…

That is even after I have split up some worlds into different MultiMC instances. Now this isn’t too bad when you look at them in an Explorer window but here they are in Minecraft.

Untitled

Much more chaotic

As you can see it is much more difficult to find a world in this view. Now I don’t use all of the worlds actively, but there is a rule in minecraft that I like to follow:

Never delete your minecraft worlds!

This mostly applies to your first world because if you keep it you can go back to it later on an look at what you built and reminisce, but I want to keep all of the worlds. I am a bit of a digital hoarder like that. And besides, I like to try out adventure worlds every now and then.

So being an aspiring coder like I am, I thought I should create a fix for this. Minecraft is incredibly moddable and anyone who has bought a copy can decompile the source code and mess around. So, I decided that I should open up the source code and look around. I figure I’ll be able to make the Minecraft loader understand a folder structure and display different folders in the loading screen that I can save my worlds in.

I am nowhere near done with the mod. Actually to be honest I have barely started. I ran into a bit of a snag. I expected the source to look something like this:

    for each Folder in the saves folder
        if it contains a level.dat file
            display it as a world

So then I could change it to look like:

    for each Folder in the saves folder
        if it contains a level.dat file
            display it as a world
        else
            if it contains Folders
                for each Folder in this Folder
                    if it contains level.dat
                        add the folder as a worldFolder
                        place the world inside of it

Obviously the code is not great, but I wanted something simple.

However I was very wrong about how the source was written, but then again it is written in Java so it can get a little complex. I’ll post another update when I get back to that project but honestly at the moment I am more focused on working with my Raspberry Pi. Check out my updates on that project in the Raspberry Pi category of this site.

Tagged with: ,
Posted in Minecraft Mods

Getting Started with the Pi

So I guess I should just start with a photo dump!

I got my Pi about a week ago and I just had to get it up and running.

2013-06-06 20.50.50-1

Me holding the Raspberry Pi

I found an old 8GB microSD card from my dad’s old blackberry, plugged into my converter, and got started.

Since I wanted to get started quickly, I decided to just load up the NOOBS files from the Raspberry Pi website. I’d change to just a Raspbian image later on.

I stole a keyboard from one of the family computers and plugged everything in.

2013-06-07 01.25.24

My RasPi with everything plugged in for the first time.

It all loaded up perfectly and brought me to this screen to choose the OS:

2013-06-07 01.24.32

The OS selection screen in NOOBS

I chose Raspbian Weezy and started the install.

2013-06-07 01.25.05

Raspbian loading screen

It took about an hour (well probably less, but I had nothing else to do so it felt like an hour). Then, at long last it started up!

2013-06-07 01.36.49

Raspbian loading for the first time

I messed around for a little while, installed Vim, customized the GUI and so on.

Now to start programming!!!

Posted in Raspberry Pi