Monthly Archive for May, 2009

Awesome stuff and not so awesome stuff

Yesterday was my birthday and it was awesome. Everyone on Steam Friends was congratulating me, but there’s probably no way around that since I tend to be such an attention whore at moments like those :3. I got the game Empire: Total War and the rest of the budget for buying games coming soon like Bioshock 2. I also went to the cinema to see Angels and Demons, which was truly epic. I really like those kind of movies! :)

Evolve

There’s not a lot to tell about Evolve right now, but I can assure you it’s going as good as I want so far. I’m looking forward to working on the GUI, but for now it’s simple getting all NewAdmin commands back. In the future the Evolve framework will very likely consist of the following ‘classes’:

  • Plugin manager
  • Settings class – Will save settings like whether to show playernames

CakePhysics

I also rediscovered the free, open source physics engine Box2D. It’s really easy to use, especially when you write a quick little wrapper class for it. Basically, a wrapper class simplifies things :P . Now, this is all I need to simulate a box falling to the ground:

#include "stdafx.h"
#include "Box2D.h"
#include 
#include "physics.h"

int main( )
{
	phys->createWorld( 640.0f, 480.0f, -9.81f, true );
	phys->createGround( 640.0f, 480.0f );
	b2Body* box = phys->createBox( 320.0f, 4.0f, 1.0f, 1.0f, 1.0f, 0.3f );

	for ( int i = 0; i < 60; i++ )
	{
		phys->simulateWorld( 1.0f / 60.0f, 8, 1 );

		b2Vec2 position = box->GetPosition( );
		float angle = box->GetAngle( );
		bool isSleeping = box->IsSleeping( );

		printf("%4.2f %4.2f %4.2f %s\n", position.x, position.y, angle, isSleeping ? "True" : "False");
	}

	getchar();
	return 0;
}

Finally, I want to make this into a small physics sandbox like Phun! I’m mainly making this as a demonstration project of my skill and for tuning my C++ skills.

Now the less awesome stuff you’ve been waiting for :V. If you’re a regular visitor of Facepunch, you know that Hezzy is all about the moderator team. Well, one of my fellow GMod.com admins, mm3guy, has just been promoted to Super Moderator to replace DaveP. Of course I envy him, but in my eyes he did deserve it the best of all moderators on gmod.com.

What annoys me more, however, is that Hezzy completely ignores me. Mahalis, the Lua forum moderator, recommended me to Hezzy a while ago to join him in moderating the Lua forum, but I had to do with a ‘no’. I just want to know why he hates me so much…

So, that’s my rant for today.

Left 4 Lol

I know it’s cheap and I’ll make a better post tomorrow, but you gotta see this if you haven’t already.

Oh and.

metaTweet

About a month ago I started using Twitter. Yesterday I decided the official website was actually pretty annoying to use, so I started looking into the apps they showcased on their website. TweetDeck seemed the best, but it’s still not simple – as in design – enough for me :P .

So, I booted up Visual C# 2008 and started working on metaTweet. Here’s what I got so far:

Currently you can only check if the entered login details are valid and the checkbox settings (and username/pass if requested) are saved in the registry. The Twitter API is surprisingly easy to use. For those of you who are into programming, here’s my code for the logging in:

static String getAuthorizationString()
{
    return getBase64(Username + ":" + Password);
}

public static bool accountVerifyCredentials()
{
    // Set up request
    HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("http://twitter.com/account/verify_credentials.xml");
    req.Headers.Add("Authorization", "Basic " + getAuthorizationString());

    // Check response
    try {
        HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
        return true;
    }
    catch {
        return false;
    }
}

Read more about the API here. It would also be nice if you could try out a dev release of the app here. If you have the time, let me know with a comment whether the app loads and your login details work and stuff.

Greece and Evolve

The past week I’ve been to Greece and to be exact, the island Crete. At first the resort seemed awful, but as the days passed it was actually great fun! There was also an internet cafe and you could play Crysis there which was truly epic.

Anyway, the day before the last day in Greece we went to a ravine with a bus to walk through it. It took me about 4 hours to do the 18 km long journey. But I must say, the bus ride was far worse than the actual walk. They must have found the driver in some slum with spaztic people. I always take pills before long rides, but even with them, it was a real challenge to keep my gastric contents inside. To make it even worse, there was no toilet on board. I was [b]really[/b] relieved when we finally arrived at the ravine after 3 hours!

Today I started playing around with the fairly new chat.AddText function. On the way I discovered a database error which Garry fixed. Anyway, instead of the old blue shit, Evolve makes use of this function to display messages like this:

Remember that you can check out the beta here and read about it here!

I hope to come back soon with more info about Evolve! Also, it’s my birthday this month on the 22th :3