2012-01-06

Procedural map generation - this time in 2D

I felt like taking a break from fixing a network related issue in our upcoming game, Xenocell to clear my head and do something rewarding and I started fooling around with HTML5 and JavaScript.

Since I really want to compete in Ludum Dare sometime soon, I thought it would be a good idea to decide on a set of tools and languages that I would use. If you are not familiar with Ludum Dare, it is a game writing competition where you have 48 hours to create a game. My primary goal was platform and 3rd party player independence, so I chose to go with JavaScript.

2011-12-12

WP7 takes over Android

At least within our family. :) Being one of the first Hungarian developers to have an app published on the Windows Phone Marketplace I've been awarded an HTC Radar phone by Microsoft Hungary. As soon as the Hungarian Marketplace opened up, I suspect that MS Hungary wanted to see Hungarian developers climb through the obstacles of the publishing process as early and as fast as possible. The Radar was a nice motivation, and the publishing process turned out to be really streamlined and easy to follow.

2011-11-04

Microsoft WP7 Meetup in Budapest

Today I drove to Budapest to attend a meetup with Microsoft Hungary, WP7.Hu and a number of talented WP7 developers and enthusiasts from the country. While it was fun (free snacks raise morale anywhere), not much has been said that I didn't already know. Still, it was great to meet in person with the WP7 guys at Microsoft Hungary, the staff of WP7.Hu and the teams behind such notable apps as SurfCube and AppFlow.

2011-10-03

C#, Compact .NET, WP7 SDK 7.1 & AWS EC2

That title sounds like the beginning of some ancient joke. Well, it's anything but ancient! I just wanted to post some quick code on how to sign AWS EC2 query requests using Compact .NET in C#.

Since there is no high level API for AWS for the compact version of .NET (ie. when used for the WP7 SDK), your best bet is to make query requests directly. That also means you need to sign your requests yourself. Since I was unable to find a working example, I turned to an old piece of code and ported that to work with the compact version of .NET / WP7 SDK 7.1 (Mango) instead.

2011-06-30

Painting a new hobby

I'm very excited to have found something that is both exciting to me and could also come in handy with my work on Xenocell. It's finger-painting! Unless our lead artist, Kevin Turchik says otherwise, some of these could even make it into the game as (fake, alas) concept art. :)

My friend, Danila Laurentiu (a.k.a Apparatus) shared a painting of his on Facebook wall depicting Captain Nemo. He's very very talented and does both traditional and digital painting. It was him who brought  an iPad app called "procreate" to my attention which he used to paint his portrait with. Of course I am a mere noob when it comes to painting, but I got the app anyway, and decided to give it a try. In the end I realized that it was not the final picture that gave me satisfaction, but the process of painting itself.

2011-06-21

Debugging Torque 3D Network Packets

Yesterday (and today) I spent a LOT of time debugging network packets in our game, Xenocell. I had TORQUE_DEBUG_NET defined and tried to do this "live" meaning via direct connection to a dedicated server.

The client was a DEBUG binary and the server was running release. Fortunately before spending more than 20 hours on finding out why I was getting an invalid checksum right after initiating the connection, I found Stefan Lundmark's thread over at GarageGames.com.

2011-06-10

Saving on EC2 costs through uptime management

For EC2 instances Amazon bills you by the hour. If you are like us, and need a few servers to be "ready" at all times - not too many, not too few - then here's a quick tip, something simple you can do to save some money on your EC2 instance costs.

For every instance, you pay at launch for the coming hour and when you cross that hour, you pay for the next one in advance. This means that stopping and starting an instance will incur an additional hour's cost - depending on when your instance was launched.

If you have several instances and don't need all of them, you can check their uptimes and see which ones are likely to cross into their next hour without being utilized until and after they do. Say, if a server has been up for 55 minutes and it's not being used at the moment, it is less likely to be used in the remaining 5 minutes than one that still has 35 minutes to go from its actual uptime hour.

But here's some actual code (in PHP, requires AWSSDKforPHP set up). Call getSortedEdgeInstanceData() to receive an array of your running instances in the order they are going to turn over into their next billing hour. I imagined these instances that are likely to turn over as "being on the edge" - hence the function name.

It's a simple idea but the costs it saves you could mount up to be significant - depending on the number of instances you manage in an on-demand manner. Hope it helps you!