Tiling Script in Photoshop


Our artist has been working hard drawing all the graphics for our new game (more info to come on that front). She’s been working on the main character’s animations recently. These are complex animations with many frames and, to ensure they line up properly, she draws all the frames within a canvas the size of a single frame and separates the layers into layer sets. This is to ensure that the image for each frame of the animation aligns correctly with the frame before it.

However, our animation system in the game requires that each frame is drawn separately from left to right. Even with the layer sets, it’s still a lot of annoying manual work to move and align each frame while ensuring they’ll draw the same as they did in the single-frame-sized canvas. I recently found out that you can script for PS and so this set me thinking: there must be a way to write a script that can do this!

If you’re interested in the script click on.

Read the rest of this entry »

How to install Ruby on Rails in Windows


I recently started playing around with Ruby and Rails. I haven’t done much with it yet short of these CodeSchool courses, but it seems really powerful. I did run into a bit of a hiccup when installing it, though, so I thought I’d write a quick post on how to get it installed in windows.

Read the rest of this entry »

How to get data from the server with JSON/jQuery


In web development, sending data back and forth between the server is a common occurrence. When using jQuery, sending the data is pretty straightforward, however receiving information back from the server is not so simple. You could receive data in different formats (ie. JOSN or HTML), the user may have lost authentication and are no longer permitted to access the page or you may want to send back different information depending on whether or not the task was successful. Over the years, I’ve developed a system for handling these situations that utilizes jQuery and JSON. It’s something that I roll out enough that even if noone finds this post, it’ll help me to have the basic code posted where I can easily access it. So, I’ve decided to document it here.

You can find the code after the break:

Read the rest of this entry »

New Theme & WordPress Child Themes


After several years, I’ve updated SystemRoot’s theme! Believe it or not, the old theme was from WordPress version 1.6. I picked this design from the WordPress theme search utility. It’s called “SnC Mono” and it was designed by Three Circles.

Naturally, I wanted to update the settings of it a bit more than it allowed by default so I did a little searching about an easy way to edit themes without necessarily breaking them. It turns out that WordPress supports this great feature call “Child Themes” (linked to WordPress docs). It allows you to create a separate set of files from your theme that you can use to override certain parts of it. You can override whole pages/files or just some CSS styles.

So, here’s the basic idea for setting up your own child theme…

Read the rest of this entry »

How to Fix MySQL Error 2006: “MySQL server has gone away for the query”


I use Mantis at work (and at play) to manage bug and issue tracking. If you’re not familiar with it, I highly recommend checking it out.

So recently, I wanted to attach a large file (10MB wowzers!) to one of my bugs and received an error.

Read the rest of this entry »

Latest Posts



Post Calendar

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930