Category Archives: Website

Mobile Improvements

I’ve made a bunch of modifications to the site that should hopefully make it a lot easier to read on mobile devices now. I’m really sorry I neglected to do a proper job of this for so long, but when I made this site back in 2011, mobile support was basically an after-thought. And now it’s just one of those million things that I haven’t the mental capacity to do anymore.

But I think I’ve got it hacked together enough to where it works—at least on phones. I’m pretty sure I accomplished this in what would be considered a non-preferred way by increasing font sizes instead of clamping page widths, but this kept me from needing to fix an untold number of content elements inside posts/pages.

I’ve been wanting to fix this for ages, but it really struck me recently how so many people are browsing on their phones now. Of course, what I really want to do is rebuild this site from scratch with a responsive design. But then, I’ve spent most of the last two weeks stuck on the couch. So, that’s where things are at now. 🙃

Anyways, if there’s any glaring errors, let me know in the comments. I will do my best to fix them.

Posted in Website | Tagged | Leave a comment

Diablo II Mods and Code Stuff

Hello all. My apologies for not updating this website more.  My life has become complicated lately, and in these uncertain times I find it difficult to want to write about it.  A shame really, as the site has never been more popular.  Seems like every time a new game comes out lacking multi-monitor support, I get hundreds of new visitors and users for Cursor Lock; a few weeks ago, it was Cites: Skylines.  And today with the announcement of another new Deus Ex game, my version of the soundtrack is hotter than ever.  It does make me feel good to know that I can produce things that people need, even if it’s only for video games.

Speaking of video game content, I spent a lot of time a few months ago working on a new class for Diablo II.  Well, it’s not really a completely new class, more like a subclass since I only changed one skill tree for the Amazon.  It just really bugged me how the Amazon felt so lame compared to the Diablo 3 Demon Hunter.  It’s really difficult to keep the monsters from swarming the Amazon, so I designed some Demon Hunter-inspired skills to help remedy the problem, such as caltrops, turrets, and smokescreens.  You can see these skills in action in the video below.

I also just wanted to fulfill my desire to do some really hardcore modding for Diablo II.  The game has a rather awkward system for making modifications.  If it were made today, we’d probably have XML files and LUA scripts to work with.  But since it was made 15 years ago, we instead have to settle for massive CSV files.  You can find the Demon Hunter mod on my Diablo II mod page.  And massive props to the Phrozen Keep for continuing to support D2’s modders.

Another thing that bothered me about Diablo II for so long is that when you die your corpse keeps all your equipment on it, and you respawn basically naked and unarmed.  Your only options are to run in, snatch everything off your corpse, and teleport back to town, or rage quit and hope that your corpse returns to town like it’s supposed to.  Obviously, this is almost always zero fun and is why no games handle death like this anymore.

Unfortunately, there’s no way to change this in the game’s CSV tables.  But I didn’t let that stop me.  Every now and then, a problem comes along which must be solved through assembler hacking, and this was one of those times.  But I didn’t really have a clue which function was involved in character death.  So, I just put breakpoints on every function in IDA and attached to the running process.  It took a while of breaking, disabling breakpoints, and resuming, but I eventually narrowed it down to several dozen functions involved in death.  Some functions did death animations, some saved character data, but then I found a suspicious bit of code that would loop 14 times—the number of equipment slots.  This was the code where the game looped through each equipment slot and moved the item from the player to the player’s dead body.  And then there was nothing left to do but some trial and error to figure out where I could safely jump over the offending code and re-enter.  Now the only problem is that this mod will have to be updated every time there’s a Diablo II patch. 😥

Here we see the fateful jump operation to bypass the character equipment being removed.

Here we see the fateful jump operation to bypass the character equipment being removed.

Since then, I’ve been turning back to more PHP/HTML/CSS/JS coding.  I’m working on a project that I can’t disclose at this time but which quite possibly could be my most epic work yet.  Wish me luck in completing it.

Recently, I’ve also been using PHP as my go to scripting language for everyday projects.  A couple days ago, I wanted to be able to pull all GPS image data from a directory and display it in Google Earth.  PHP has file IO, EXIF, and XML libraries, so it was real convenient to bash out a script using that.  Then I realized I had created an account on Github recently to comment on some projects and thought why not just put this code on there.  So I did.  Maybe I’ll add more small projects like this in the future.

Posted in Modding, Programming, Website | Tagged , , , , , | 2 Comments

Cursor Lock and Steam Widgets

I just did a quick update to Cursor Lock to fix a painfully obvious bug that I somehow overlooked.  Thanks to the person that googled “cursor lock strict mode does not create shortcut” today! 😉

Steam Widget

Also, I noticed you noticed my Steam widget.  I just added it over the weekend and people are already clicking through on the game links.  I did the widget based on my code for Sitewide Recent Images (more about that on my work blog), so it supports the same caching and template options, which the other two Steam widgets on wordpress.org failed at.  I hope to release it over the weekend.

Posted in Programming, Website | Tagged , , | Leave a comment

New Website for SnakeByte Studios

SnakeByte Studios 2012

Heeeey…I have a new website.  It’s very much a work in progress, but I needed to make it live now because it’d probably have been another year before I finished completely.  As I mentioned a couple posts ago, the new site is powered by WordPress.  However, I mostly scrapped the theme I was working on in favor of a heavily modified Twenty-Ten and Nivo Slider for a homepage header.  The theme is not too unlike an idea I’ve been playing around with on my work blog, which itself was inspired by another theme called Dusk to Dawn.

Besides the other reasons I gave for switching to WordPress in the aforementioned post, which in summary were:

  1. Visitor commenting
  2. Full-featured backend
  3. Familiarity from using at work

I also just don’t have time to code my own site from scratch anymore.  And this is fine—I get enough coding websites at work—and will allow me to focus more on posting and other projects.  Speaking of other projects, I finished another map for Company of Heroes over winter break.  It’s a remake of a map from the original Red Orchestra.  It’s also on FileFront.

Posted in Modding, Website | Tagged , , | Leave a comment

Deus Ex and such

I just finished my second playthrough of the new Deus Ex game, Human Revolution. It has a few bugs but is generally the best game I’ve played in a while. Though, I must say that the original Deus Ex is still a smidge better. So far I haven’t given a full review, but if I did so it’d be on Metacritic where I’ve been doing my other reviews.

Also, in my last playthrough of DX:HR, I took a bunch of screenshots of the weapon mods and Praxis Kits that I found and then gave descriptions of where they’re located. With Steam’s nifty new screenshot management, I was able to easily upload them all to my Steam page for your reference. It’s probably the beginnings of a new DX guide.

So I’m still doing a ton of gaming since I started working full-time and less of being productive. However, one thing I’ve been contemplating is converting my site to WordPress for a few reasons. It would add commenting features for all my posts and other content, and I’m hoping that getting more feedback would be a good motivator for me. Also, having a slick backend should help me post more often. Plus I’ve been using WP a lot at work lately and I’m pretty comfortable developing for it now so it shouldn’t be much trouble to extend it to my needs.

The only thing I’m stumbling on is the design of the new WordPress site. I’ve been toying with a mockup for the last month but I’m not sure I like any of it. I’ve been trying to keep some of the colors and graphics of the current site’s style. Maybe I need to start over from scratch on this.

Posted in Gaming, Website | Tagged , , | Leave a comment

Work Grinder

Obviously, I haven’t blogged in a while. It’s been so much longer than my usual lapse that one may have even feared the worst. Well, it’s close enough–I became employed. Indeed, forty hours a week (plus twenty more in support of it), I work at my alma mater’s library handling anything decidedly too technical for my 25 coworkers. I enjoy the tasks of my job; they stay pretty varied, so I never get bored. I’ve been working with WordPress, PHP, streaming video (both Flash and Apple’s Darwin streaming servers), Apache, JavaScript and HTML DOM, plenty of graphics editing, and of course the usual HTML editing. Sometimes, I even have fun doing work. The people are all rather nice, too, albeit I have a difficult time connecting to most of them personally (considering the demographics of your typical librarian).

However, I resent all the hours that I have to put into my job and how it drains me physically and mentally such that I have no time for personal projects (i.e. everything on this site). On some weekdays, I’m too tired to even enjoy video gaming. And on the weekends, playing video games is all I can seem to do. Clearly, anyone counting on me to work on any of my mods or programs, should lose most of their hope now. Though, whenever I get contacted by users, it is enough to motivate some work. My only solace is that I don’t have to stay with this job forever.

But having money is pretty cool. 😉 I’ve never had more than a few hundred dollar in my whole life before I started working. Only two months into the job, I couldn’t stand it anymore and had to buy the parts for my new computer, Serpent 3 (hopefully, more on this in a future post soon). Also, it’s even more convenient buying and downloading games on Steam than it is to pirate them from Bittorrent. And it doesn’t hurt that I can afford to buy my girlfriend nice things now. Ah, money…I love you.

Posted in Website | Tagged | Leave a comment