Sunday, June 19, 2016

She turned me into a newt!

Skip to the bottom couple of lines if you don't want to read my silly soapbox rant:

Well first let me apologize.  So there I was, heavy into programming, working on Battletech Design Works day and night, not thinking of anything else, making great progress.


Then it stopped.  Completely.  I could sit down in front of my computer, with time, nothing else to do, saying to myself "I need to go work on this", and *nothing*.


Time and time again.


I have no idea what happened.  Perhaps its a pattern?  I know throughout my life I've gotten "into" one game for a while, then it goes away and I move onto others.  Eventually I loop back around to my favorites.  This has happened a LOT in my life, and now that it was so obvious I'm now curious if there was some mental pattern to it.  Perhaps I got bored, frustrated, annoyed, came to my senses, or any number of things.  But anyway, from that last update until about a couple weeks ago I made ZERO progress.


Then somebody wrote me an email asking for my "new" version of my Alpha Strike Card Maker (new version, 1.21, more on that in a sec).  At that point apparently the battletech fire under my ass was re-ignited.


So, I jump into the code.  I quickly realized that the cards were simply not sufficient.  Not enough space.  So, I create a new algorithm to completely redesign the cards for 3" x 5" (which is much better for so many of us older folks with crappy eyeballs) so I can support every kind of unit on it.  A few days later I'm done with that, and start plugging in some warship data.  I get through a couple hundred dropships and warships, everything is going ok, then I start to find various errata sort of things to my formulas.  I make a few updates, and then eventually realize that I'm wasting my time and need to be using my database instead of printed stats as something like a gauss rifle doesn't do 15-15-15 damage like various TRO's show.  The stats are all wrong, ugh.

So, I start working on an Alpha Strike Converter.  This is basically just the code that takes a unit, and creates the Alpha Strike stats from it.  I got to the weapons, and then realized I didn't finish updating my data from the release of Interstellar Operations... ugh 


So, I start doing that.  I get about 10% done, and decide to redo some database structure.  I've long kept the same one to support my encyclopedia site, but that is now completely unsupported (though still pretty up to date and functions).


So here I am, back to excel on one monitor and multiple PDFs on the other.  


That may sound crappy, but hey, at least I'm working on Battletech again.  For those of you that follow me you know that once I start working on something, I typically make a lot of progress pretty quickly.


So, that is my focus now.  I am going through all ~3800 items in my database and updating them.  I'm making sure all data is accurate between TW/TM/TO/SO/IO/etc.  I'm noting EVERYTHING I am not sure of so eventually I can post a HUGE list of questions that need errata (Humans often overlook many, many, many rules and situations.  Computers can't do that and need crystal clear rules.)


As of today, I have 3797 pieces of equipment a unit can have on it (ALL canon, 13 more are from an April Fools TRO).  I am currently about 8.6% complete and working on autocannons and their ammo and when completed (a couple hours, TOPS, I'll be at 13.3%).  When this is done, I'll go finish the code to convert all 6932 units (335 are not canon) in my database to Alpha Strike, and create cards for them all.  I'll then put that code into my card maker, and then finally copy that code over to the Battletech Design Works.


There was a pretty big wall I had to overcome with Battletech Design Works.  It *is* possible that frustrated me to the point I didn't want to overcome it.  However, I have since figured out an easy way to handle that, and the next time I get into BDW I should start making a lot of progress quickly.


It seems pretty obvious at this point that Catalyst would rather not have *complete* design software (SSW/MML are *very* far from complete) than communicate with me again, They asked for some help on some thread a while back, but nobody who has the skills is going to dedicate the required time to create such a project.  I manage projects like this in real life, and would easily charge $200K-$300K for such a project, and I doubt it could break even.  Most developers are $40-$150 per hour, and almost all of them come with some baggage that will cause issues.


So, since that is the case, and nobody has ever once asked me not to, I'm not going to worry about trying to "be nice" or "be professional" anymore.  I'll do things the way I want them done, and if I offend somebody well, they should have spoken up.  If they'd rather send me a cease and desist instead of just a nice email, they'll quickly find out I know more about how the internet works than their lawyers do ;)  The offer to help them will always stand though, but I'll need some rules questions answered before I accept any offer.


I will say that based on my experience with a few of the volunteers for the game, as well as quite a few demo guys, has been quite pleasant and cordial.  The official forums are pretty commonly avoided by many fans due to the BS over there, so I haven't felt alone ;)




For those of you smart enough to skip the rest of the message:

New Alpha Strike Card Maker out, v1.21
Working on Battletech Design Works again

Here is a couple of new record sheets, all possible with the new card maker:


The Leviathan attacks are probably wrong:

Still need mobility hits:
Dropships, woot:
Again, attacks probably wrong:

I will eventually add some color/textures, and maybe scale down to 2.5x3.5 in size, or up to 8.5x11 for the Leviathan.


Monday, November 16, 2015

Dev Diary Week 10 - BattleTech Design Software

Quick update as I'm exhausted tonight.

This week I finished up a lot of the code flow, tweaked the way actuators work, made a LOT of little bug fixes, and started working on supporting all the armor options.

Funny thing.  Buildings can be up to 30 hexes in size, and up to 30 levels tall, and each hex can have a turret.  This means to track building damage you need 900 groups of CF (1 per hex, 1 per level) of up to 150 (1500 for capital scale), PLUS armor, PLUS turrets.... its horrible.  I'll have to create a dynamic system to be able to handle that sort of system... no biggie, just didn't realize it was THAT mind boggling!

I also have costs *mostly* working now.  I can create an AS7-D Atlas and the cost is right except the lower arm and hand actuators, which I haven't written up the actuator allocation part yet (things like PPCs on omni's replace hand actuators, need special handling).

Years of availability are also right, so you know when a unit is available as experimental, advanced, standard, and tournament legal.  Weights are also working in most cases.

I think I'm only getting about 4-6 hours per week on this, so for the 10 weeks I've been working on it it is really only a full week, though probably not that much as I've had a lot come up.

Anyway, chugging along.  I'll try to finish up all the armor combinations for various units next, and maybe work on the critical allocation system after that, dunno yet.

Other battletech news:  I bought 11 of the new lance packs, for the cards and the 2 new miniatures.  Nice stuff.  I *really* hope the alpha strike boxed has 13 reseen miniatures, plus 10 or so clanners and some nifty design, but we'll see.  If they are that, I'll take a dozen please! :)

Been a couple weeks now since the Battletech Kickstarter closed.  I haven't seen a pledge manager yet to add on the $140 in books, but based on their past kickstarters we will only see a communication a month so I guess maybe in a couple weeks.


Tuesday, November 10, 2015

Dev Diary Week 9 - BattleTech Design Software

Sorry I was a day late on this one.  Had a frustrating programming session this weekend and stayed up too late to do the update.

Not a lot new to show, but that doesn't mean the week was without progres!  This week was mostly interface tweaks, adding things like tooltips and changing of the way various item lists are displayed.  I also implemented fuel, and made numerous behind-the-scenes changes, and added saving some defaults to speed up my development time.

I am still tinkering with the interface a bit more before I dive into the 200 or so unique variables applied to various equipment in order to make sure all designs are legal.  This is kinda time consuming, but not really all that hard due to the way I designed the application.  

Once I get those variables done I have to focus on equipment selection.  I want to only show ammo for items you have put on your unit.  I need to ensure proper arcs are shown as an option, consolidate multiple similar items down to 1 line, show the arcs on the same line, and implement "addon" support for things like Artemis, Apollo, Pintles, One-Shot, MG Arrays, and so forth.

I'll then have some minor things that are pretty easy to do, like bay allocation for DS/WS/JS/SS, crew allocation, frankenmech support, and crew augmentations (both for vehicular pilots and infantry platoons).  

After those it'll be BV, which I want to make sure all other things are done first.  Weight, cost, availability, tech rating, and years for each rule level are all ready pretty much done.  BV will be the last consolidation thing.

Then I'll go add the alpha strike conversions, which isn't too hard.

And finally record sheets.  After which I'll start focusing on all the extra bells and whistles I promised.

I am developing slow though, due to a few reasons:
#1.  War Thunder.  I play this game a lot, and sometimes when my brain isn't "into" coding instead of focusing it, I take my tank and go blow stuff up :)
#2.  Real life.  I do have a wife that requires a certain amount of attention or she'll kill me.  Therefore at least 1-2 hours a night I usually spend with her.  This usually means the earliest I code on weeknights is 8:30-9.
#3.  Sleep.  I can stay up till 11-12 just fine, but sometimes when you are doing things on a computer your brain says "Uhhh, nap time!" and I kinda fall asleep in my chair.  It doesn't happen too much, but it happens often.  I'll usually go play war thunder when I get too tired.  I have MS and a slew of veterans related issues, which doesn't help things.
#4.  Sometimes I get a new group of toys in, miniatures/books/etc, that can kill the nights development.  I have 3 tripods on the way and 11 boxes of lance packs for example :)  I also have a LOT of GHQ 1/285 and 1/2400 stuff I still haven't finished assembly on.
#5.  I still play battletech with my group here in DFW.  I often run games, to stay busier during play, but it still eats through 1-1.5 days for prep time and game play.
#6.  Sometimes I get sidetracked by things.  

My anniversary is tomorrow the 11th (married in 11/11/01!) which is also veterans day, but I took Thursday/Friday off to hopefully get a good 8-16 hours by the next update.

I doubt I've put in 40 hours on coding at this point, which means I'm only probably getting a good 4 hours a week in on it :(  It'll get done, but not as speedy as any of us would like.

The official software request thread from CGL on the forums that made me start doing this has ended up where all of them end up.  Zero progress, and 2 sides bickering over all digital or all paper.  One guy did some great HTML5 work, and had a great interface, but we've all seen many mech designers for 3025 stuff with some 3050 thrown in (I could do a designer in excel for any single item in under a day with *most* stuff supported), it is orders of magnitude more complicated to support everything and all the rules.

Anyway, thanks for stopping by!

Monday, November 2, 2015

Dev Diary Week 8 - BattleTech Design Software

Week 8, not a real productive week, I suck, however it was far from unproductive!

Again, I go into more detail on my daily facebook group, so this is just the highlights.

Now, it all isn't done, there are numerous issues I can point out in the attached picture, but it is pretty considerable progress.

Though not 100%, the following parts are now working:
- Total weights (no ammo counted, also did not exclude free HS that come with engine yet)
- Total unit cost (missing life support, sensors, chassis multiplier, free HS, and musculature in pic)
- Overall tech rating of unit, so you know where you can get one.
- Availability of the unit in all 4 (yes 4 now, thanks IOBeta!) eras
- The 5 years are determined (Prototype/L3/Exp, Introduction/L2/Adv, Common/L1/TL, Extinction, and reintroduction) so you know when what you are designing could possibly have been built, and went it become extinct.


Sorry it isn't sized right, blame blogspot.  Click here for full size.

I still have a lot of cleanup, and some item renaming, but getting closer.  It'd help if I spent more than 4 hours a week on it, but you know, life. :(

Other stuff:

I already found a bug in the way SSW deals with actuator cost, which apparently has resulted in at least the AS7-D cost on the MUL being incorrect, though I suspect many others may be affected, and this was just an original 3025 design!  Hopefully SkyHigh will notice and fix it.  Not sure if MegaMekLab does it right, hope so I guess, but I don't really care as nothing ever written in Java hasn't sucked (interface/stability wise - not the developers faults) and I don't use MML.  :(

I wrote a little excel spreadsheet to track the necessary roll and time it takes for a repair based on rules in Strategic Operations.  Note that you always want the best possible techs you get, else you will always be sending your mechs back to the factory for refits, else they fall apart on you.  Interesting stuff, anyway link here.

Looks like the HBS Battletech kickstarter met all its goals, with plenty of time to spare, woot.  Stretch goals are pretty weak IMO which hurt it, and I have like 5% faith the game won't be boring as heck (War machine was made into a great looking turn based game, but it plays so slow I just can't keep interest). Nothing like waiting 15 minutes for your opponent to move something as you sit there and twiddle your thumbs.  They aren't implementing the features necessary for it to have a long life (custom maps, custom units, modding) and are using the unity engine, which nearly always results in nothing more than mediocrity.  But I funded it anyway, because its battletech!

A whopping 12 views last week, probably mostly on my facebook group, hopefully once I'm done the community finds out about it.  I'd hate to think only the 30 or so users on my facebook group are going to be users, but that'd still be enough ;)

Monday, October 26, 2015

Dev Diary Week 7 - BattleTech Design Software

Wow, 7 weeks already!  Well some weeks I'm much more productive than others.  This one I lost a couple days because I didn't want to code at night while we were getting storms, as our power is pretty flaky and I don't have enough UPS's for all my computers.  Also had some work jump in there, and my wife was sick.  Still though, I got quite a bit done.

In short, I am now at the point I need to total up the weight of a unit, then its cost, then years/availability, and finally BV.  Still some little tweaks to make here and there, but darned close to a somewhat usable product.  Record sheets will come later, as they are kinda easy in a way but very time consuming.  I have already done most of them before though, and may get lazy and fall back on those methods which worked fairly well instead of reinventing the wheel.

I won't bore you with the details, as I'm sure if I did some of you would have fallen asleep already, so I'll show a current work in progress screenshot of the unit design page:
Still a few interface changes yet to take place, but getting there!


I figure another month or so until I get all the design bugs worked out, maybe sooner, kinda depends on how many nights I have time, am not sleepy, and am in the mood to code.

Monday, October 19, 2015

Dev Diary Week 6 - BattleTech Design Software

Howdy!

More great progress this week.  All the major database changes have been done, and code is coming along very smoothly.  I've been able to implement features that in my mind would have taken days, sometimes in minutes.  There have been a few hiccups, as there will always be, but so far nothing game changing or too distracting from the end goal.

I go into a lot more daily details on the facebook thread, which I update daily, but I'll give the compressed version here.  Those users will have access to the alpha and beta when they are released as well.

Essentially right now I can do pretty much everything to design a unit.  What I am working on now is the weight, cost, BV, years, and availability of said units.  This shouldn't take too long, and I've done it before on my encyclopedia site, but I am doing it all from scratch to incorporate various lessons learned since the encyclopedia.

Once those calculations are done, I'll run it against my 6000+ unit database and work through the bugs.

After that is'll be onto record sheets and other feature implementation.

So, making great progress, and I can see the light at the end of the tunnel already.

Here is a current screenshot, though pretty much every aspect about the interface is subject to change:

Feel free to recommend any features you'd like to see, and I'll add them to my "todo" list of features (assuming I haven't thought of them already!.

Monday, October 12, 2015

Dev Diary Week 5 - BattleTech Design Software

Quick BTE Note:  I removed all fluff entries (deployment, variants, overview, etc) from all units, even though not asked, to "play nice" with the BT community.  I now have *NO* information on my site that cannot be found on other more acceptable places like Sarna.net and Megamek.Info.  This shouldn't affect anything negatively aside from the fluff being gone, and many didn't have it yet anyway.



Howdy folks!  This last month has been mostly me importing all the Interstellar Operations Beta data.  There was a LOT of issues, and it is a Beta so I'll have to do this all over again when it is released.  While the issues were plentiful, luckily none will prevent me from moving forward with development.  In the end I'll have to assume a lot of things and there could be buggy units pop up for years to come until I get all my questions answered and Catalyst Game Labs fixes all their errors, inconsistencies, and missing data.

Here is the current software functionality:

  • Tech base selection (Inner Sphere, Clan, or Mixed).
  • General class selection (mech, industrial mech, protomech, SV, BA, JS, WS, DS, etc.  All but hand-held weapons, conventional infantry, maglev's, rails, and roads work right now).
  • Mobility type (hover, wheeled, fixed-wing, aerodyne, etc) selection for those units.
  • Weight class (assault, heavy, light, etc) and tonnage (a number in that range) for those units.


So not a huge amount of coding progress, but I only really started coding today ;)

Issues though:
#1.  Medium/Large Support vehicles are indicated as having .5 ton tonnage increments.  While this is fine technically and it currently works, it means when you select a 9 hex naval vehicle that goes from 30,000.5 to 100,000 tons, I have to populate a drop down with like 140,000 items!  This takes 80 seconds on my machine, which is pretty beefy (all others take about .05 seconds, except small support vehicles with their 1kg weight increments that takes .3 seconds, but is acceptable today).  So I am going to stray from canon a wee bit.  With large naval/submarine support vehicles that are over 500 tons, I am going to change the increment from 0.5 to 5 tons and 25 tons for the 30,000+ tons.  This will basically fix that issue. Eventually I will re-implement the 0.5 ton increments, or add in a way to just put in any number you want.  For now however I'm removing it for performance reasons.

#2.  I will not be using "primitive" as a tech base.  Just clan, inner sphere, both, and mixed.  Later I'll include "3rd Generation" as a possibility to support the April Fools product that had that in there (a sign of things to come?).  This is mostly because there aren't really primitive weapons, just prototype.  So primitive just applies to chassis.  The way I'm doing jumpships for example I have 6 rows, one for each tonnage increment that results in differing fuel points per ton and burn rates.  I now have 4 MORE sets where I set the weight class to things like "Primitive (Terran Hegemony)" where you can select a primitive chassis, which can be differing tonnages, instead of creating entirely new everything to support primitive.  So, you WILL be able to make 100% canon primitive stuff, but it won't be a new tech base (clan/IS already confuse stuff enough!).

And a new screenshot, which I'll try to include in each update, though they won't be very pretty for a while :)


(yes, according to IOBeta, the Terran Hegemony had 1.8M ton jumpships in 2400!)




I also have some functionality I am working on that'll show various other drop down boxes popup depending on the unit.  A mech has a required cockpit, engine, musculature, and actuator types for example so it'll see 4 more drop downs popup.  The gyro may popup if you select all but 1 cockpit type.  Many units don't have many other options like that, so the interface will stay cleaner.
I have tested all of these, and all work except the conventional infantry (they are kinda different), hand-held weapons (will need some work), maglev/rails/roads (not sure if these will even stay in, they are not really units but perhaps I'll treat them as addons to units).  I should have all errors removed from those in the next development session.

My goal is by the next update to have all the additional popups working which will let you basically design a unit up to the point of adding equipment.  I won't have things like tonnage totals, costs, BV, availability, etc, etc, but all the other stuff should be functional, and those sums/values are extremely easy to implement.

If I am very productive this week, which I don't suspect as the wife will have been out of town for 4 days and will want some quality time, I hope to actually implement the equipment selection as well.  After that I'll start running through all canon units validating designs and fixing all the little bugs that will come up.  That'll take me at least another week or two, maybe even a month, as I'll constantly find little things I gotta go fix in code, my data, or even have to restructure in my data to make it work in the best possible way.

Anyway, a lot more to come, and I think progress will be very quick if I can stay focused!


Again, feel free to request access to daily updates on my facebook site which I have been pretty good about updating daily.


Ok, next topic.  This week I used the 3028 battle on Crossing between the Wolf's Dragoons against 4 Galedon Regulars regiments (after losing nearly half their force against Ryuken a few months earlier, and fighting those same 4 Galedon regiments on 3 planets after that!) as inspiration for a scenario here in Dallas.  We used a mech to represent a company, and so the Galedon Regulars and DEST commando's had a total of 41 3025 old tech mechs.  The "Dragoons", in this case the "Iron Phoenix Legion" which is what our group calls themselves, had the dozen or so mechs in defense in a caldera.  It played out pretty well, and I think folks had fun, but it ate through some of my code time this week setting it up.

ANYWAY, to my point, I didn't want 41 pieces of paper to track mechs, so I figured out a way to put 4 mechs on a single page of paper. It worked pretty well in the game, and when taking a dozen SRM2 hits it really sped things up.  I tweaked after and made a little excel file if you need to have a bunch of simple mechs in a game and don't want all the record sheets.  Some stuff is missing (heat chart mostly) but 4 mechs on a page seemed like a fair tradeoff :)  Here is the link, hope it proves useful or inspires you in some way!