The biggest thing I've been working on this week is rewriting code and restructuring the database. There are 3 general issues that I've been tackling: (1) poor design/planning, (2) normalization was ignored, and (3) poor naming standards.
These problems are NOT necessarily the fault of any one programmer that worked on the game previously. All of those programmers were volunteers working on HMW in their own time. With the exception of the initial HMW programmer, all of them were working with someone else's code (
if you are a programmer, you might be familiar with how frustrating that can be). The initial programmer was working with his ideas and mine with no clear road map in mind.
So here I am over 14 years after HMW launched, looking at all of this code (104 PHP files / 684,032 bytes), all of these images (over 5,550 images), and and all of these database tables (56 tables with a little over approximately 1 GB of data total). Due to too many cooks having been in the kitchen, the code, images, database, files, and folder structure were all a bit of a mess. Old unused files still hung around (and were removed a couple of weeks ago), huge blocks of old code was still in the files, variables were inconsistently named, the same with database tables and columns. Some followed a plural naming pattern, some a singular.
While I don't know exactly where I envision this game going, I do know I would love to see my two dreams with HMW finally become realized. In order to achieve my two goals, I need to go through the code as much as possible, clean it up, tighten it up, make the overall structure of the game consistent, and basically just make HMW work like the rest of Seibertron.com works.
My first goal that I've had for at least a decade would be to end up with the ability to have a working map of Cybertron which shows various regions of Cybertron and how much of that map is controlled by Autobots or Decepticons.
My second goal is to make the game able to be ported over to other sites that I own, but have never launched. This is an idea I've had for a least the past 5 years or so. I'd love to see people playing a version of this game on Eterians.com, giCobra.com, LukeVader.com, TurtleFans.com and Thunderians.com.
So with that said, I've spent the last few weeks mostly just working on HMW. The best thing I've seen from all of these changes is that you guys have only seen a handful of errors slip through, which makes me feel pretty good about how careful I've been about making all of these changes.
Most of the work that I've done in the past few weeks involves the alt modes and the missions. Earlier today, I pushed the files live after I made some huge steps with database normalization as I attempt to make the game so we can have unlimited factions (which we won't have, but I'm doing by best to methodically remove some of the poor database relationships and specific database columns that include faction names (such as autobot_, decepticon, maximal_, predacon_, etc). It is highly possible that I missed something or didn't think of (or realize) how the changes I made would impact other areas of the game (such as the arena). If you find an error, please let me know in the
HMW Bug Reporting Thread, along with the error message (via copy-and-paste or a screenshot) and most importantly a link to the page where you saw the error so that I can immediately verify the problem and fix it ASAP.
Thank you for sticking with HMW. Big things are on the horizon for this game after all of this time.