Andrew Wegener's blog

Hong Kong thoughts

C++ Programming FINAL

Posted by Andrew Wegener on 15th November 2012

It’s finals week! I sound excited because I actually just finished my last exam!  Let me tell you about me C++ Programming final.  Our professor wanted us to modify an existing game.  This project is simply experiential and pretty open.  When I hear the word “mod”, I instantly think of Minecraft.  It seems like there are mods for Minecraft coming out all of the time.  So, I figured, it must be fairly simple.

I started off with research as usual.  I came upon a thing call Minecraft Coder Pack (MCP for short).  This was my key to modding this game.  Once I got it running, I realized it was all in Java…. issue.  However, I’m not a quitter.  I was almost willing to learn the Java language so that I could complete this mod, but once studying the source code, I realized it was not necessary.  Java and C++ are both object-oriented languages so they work pretty much the same.  The languages were similar enough so I could read the code and have a fair understanding of what it was doing.  A major issue is that there is over 8.5 billion lines of code in Minecraft, and finding the single line of code that changes what I want was pretty difficult.  Through forums and a whole lot of googling, these were some changes I was able to make:

Flipping the world upside down (found by accident!)

Huge creeper explosions! (or teeny tiny!)

Miltank the Pokemon!

Sunset (before)…

Sunset (after). Awesome!

Tepig the Pokemon!

I also changed the perspective, running speed, and jumping height so it was like a crazy acid trip or something.  A really great experience over all, perhaps over the break I can make a new mod on my brand new computer I bought!!!!! (pics hopefully to come later!) Have a great holiday season everyone!

Posted in C++ Game, C++ Programming | No Comments »