Battling Bugs

Okay, a couple new things…

One, after all the excitement and talk of the latest expansion for World of Warcraft, I decided to renew my subscription after over four years just to play a bit. I have two and a half expansions of material to enjoy before I even buy the latest one, so it’s slow going but fun! You can criticize Blizzard on a lot of things, but they are damn good at making a fun game.

All of that doesn’t mean the CRPG has dropped off, far from it! I needed something to get through the myriad of frustrating bugs in my battlemap generator system. I decided I didn’t want to risk testing the code in the game itself, but instead write a prototype to create the maps so I could observe how they looked. After a LOT of assembler debugging to find video over-writes and other problems, it’s done and working well! This will allow me to test different graphics combinations, and add new ones as needed, to keep the maps looking fresh and interesting. Here’s a small sampling of some:

Lastly, I had a very unexpected and welcome gift come my way…

When I was at Fest West 18′ a few months back, we had a contest and the prize I won was a TIPI sidecar controller. I graciously turned it down and took an alternate gift because I am using my Peripheral expansion system and the sidecar isn’t advantageous for it.

So the creator of the TIPI system contacted me a week ago to say he’d finished the PEB card version of it, and he was going to send me the card! I had to purchase my own Raspberry PI unit and associated components (power supply, Micro SDHC card) but that was not expensive or difficult on Amazon.

After figuring out how to put it together and get it in, I discovered it’s a fantastic device. I am able to access the “file system” from my local PC laptop and can quickly and easily copy TI files from there right to the drive. This allows for VERY fast turn-around in testing the game on the hardware, and it’s a perfect replacement for the drive system, given that the disk controllers are getting scarce, and these days, you WANT some compatibility with modern devices.

You can find all the information on TIPI you need right here!

Posted in CRPG, Design, Graphics, Screenshots, TI-99/4a | Leave a comment

Trades and Revisions

Churning onward…

As part of my work coding up traps for the encounter module, I realized I had to make my damage approach consistent. There’s effectively two kinds of damage reduction, one for wounding effects and one for every other kind of effect such as poison, charm, and so forth. So I centralized damage determination in the various modules to make it so the same rules apply everywhere.

I also realized my statistic screens for players need some serious revisions. To make it similar to the monster stat screens, I’m restructuring one so you are told explicitly your stats for melee, ranged, and defense. I won’t throw away the work I did designing the item stat generation with the little blocks indicating special qualities and such. Instead I’ll move it into the examine option for inventory.

I also need to write up trading code for the encounter module. Items in combat are randomly determined and can’t be recovered later if you turn them down. So I need to make sure you can trade off items to different players and, if need be, discard an item from your backpack to make room. (No, I can’t have chests of items generate in travel mode where the combat occurred. There’s a multitude of technical reasons why that’s impossible.)

I may need to go back to the travel module and make some changes there too. My original design was built around the idea of an “active” player. Whoever was active would be the one who picked up items, used his skills for trap detection, locks, and other things. But I’m wondering if this is going to cause trouble and confusion later. I originally extended it into the manager module but I’m going to change that so it prompts you to select a player for given operations instead.

Posted in Coding, CRPG, Design, TI-99/4a | Leave a comment

Combat Complete

The combat module is finished! I ended up moving combat end determinations into the Encounter module, so that work will be completed there.

Now that I got some code space to spare, I may have a complex “You found a chest, open it?” event at the end of combat. Another opportunity to throw in some traps… 😉

 

Posted in CRPG, TI-99/4a | 5 Comments

Now serving Monster #43…

Made a nice push and got a LOT of code work done. All that’s really left in the Combat module is alteration spells (which requires retooling them for the new data design, as well as adding some new stuff like summoned creatures) and updating the combat end to include experience.

I side-stepped this weekend and worked on updating the monster data so that I could encode it from a text file instead of using a spreadsheet with DEC2HEX conversions. I’ve found this is a much easier way to update data because I can use my tool binaries to directly copy data into the files for very quick turn-around. This will be very important when I get into play-testing the combat engine, because I need to make sure monster statistics are easy to change. Right now, I’m pretty sure their health values across the board are going to be too low to make combat interesting, but we’ll see.

I had such success with my monster encoder tool, in fact, that I decided to also write one for map data as well. This has been a bit of a pain for awhile, so it was a relief to be able to write one so I didn’t have to hand-edit files with a hex editor in order to update small items. The only part of map files that’s still hand-edited is elevation data, because it’s RLE-encoded and with only a few maps having elevation, it’s easier to manage those directly than try and write an engine to do it. (I calculate the length of a map’s elevation then arbitrarily decide what sector it goes into in order to pack the data as efficiently as possible.)

Both these changes accomplished something else, the ability to refer to monsters and mob blocks in an abstract way. My mob and map data had to include monsters as fixed numbers originally, but when I renamed one and reshuffled the list they all ended up out of order. So by referring to a monster as “Ogre” instead of monster #53, it’s a HUGE reduction in time to add, subtract, or update monsters. Being able to refer to monsters that spawn by name is great because at a glance I know what monsters are assigned to a map and can make tweaks quickly and easily.

After I move some graphics around, I’ll be back on the combat module to wrap it up so I can focus on the encounter module. After that it’s a nice long debugging cycle of getting the game to run properly (fixing many bugs I’ve no doubt introduced with new code) in all it’s phases.

UPDATE:

Some mock screenshots of monster statistic screens. They can only be viewed when a particular spell is used.

Posted in Coding, CRPG, Design, Screenshots, TI-99/4a | Leave a comment

Do the Split

So it turns out that 12k was NOT enough for both combat encounter generation and management. I had 1K left and still a ton of things to write. So I’m splitting the encounter portion into a separate module.

Fortunately, this is easy to do. The “encounter” module will do the following:

  • Load monster data from disk
  • Load monster graphics from disk
  • Load player graphic data from extended memory
  • Determine how many monster types are present and how many of each type
  • Populate the data arrays for monsters with their randomly determined health and stamina
  • Determine the terrain type of the battle map and set it up
  • Load all graphic data from extended memory to support battlemap
  • Place all units on battlemap
  • Populate all necessary maps with unit and obstruction data
  • Create encounter text to display

It then immediately shifts to the Combat module.

Doing so has already freed up nearly 4K which should be enough to get the job done. It also nicely separates the encounter work (which has a large amount of influence from content) from the actual battle management.

This means I have to increase the base size of my program file to accommodate another module. I may add another 24K just so I have a little extra data space; I already load in 8K segments from disk so it doesn’t hurt to add extra for graphics space, sound data, or other data needs that may come up.

I had to restructure some basic models for how player data was stored as well, as it turned out it was better for combat determination to have the system treat players and monsters as agnostic entities. This required moving some data around, which will probably create some fun regression errors for me to fix elsewhere. 😛

Funny enough, I found myself nearly repeating the same mistake that Richard Garriott did in Ultima III, which was to forget to include weapon/armor values in attack/damage calculations! 😀 A big change from the prior design is now it adds in all the calculations dynamically rather than trying to store them in arrays ahead of time.

I’ve updated my Progress page to reflect the new module as well.

Posted in Coding, CRPG, Design, TI-99/4a | Leave a comment

Halfway Point

So, now that it is July, the year is more than half over. My intention was to have the game complete by the end of the year. Will I make it? We will see…

I changed tactics and stopped working on the encounter engine, which was devolving into creating graphics and other more content-related work. Instead, I went back to trying to convert existing combat code. This turned out to be a good idea; a lot of elements need to be figured out in the new design, plus I need to find out if my 12k segment for combat will be large enough for everything.

I had to make a few changes to the FX engine code to support boss monsters, as well as convert it to read FX data from CPU memory pages instead of loading them from disk. Fortunately the code beyond this is largely unchanged.

I also need to add support for new concepts, like summoned creatures by players. I realized I could just have them be new monsters added to the unit list, but with the “charm” effect enabled. One the charm clock runs out they turn hostile on the player.

On the subject of units, I redesigned my arrays to store the unit type (including if they are “dead” or not, a player or monster, etc.), unit graphics (A zero means they’re invisible, don’t render them on screen), and unit coordinates. (A -1 means they’re “off map”, which only players can do, fleeing the combat.) Hopefully the combination of these three will cover all my bases!

I may do one extra thing, which is have player data copied from their normal arrays into a block adjacent to the monster state blocks. I’m having to write a lot of “specialty” code to do considerations between player vs. monster, and it’s getting annoying.

I’m hoping by the end of this month I’ll have the bulk of the code converted and can return to encounter design/generation.

Posted in Coding, CRPG, Design, TI-99/4a | Leave a comment

Working On It

Another quick update…

It’s been a busy couple of weeks, and at the end of this week I’m going to ACE Comic Con in Seattle, so it’s going to stay that way!

I’ve been working on the dynamic battlemap generation. The work is going slowly because I’m designing the algorithms to create the maps in tandem with graphics updates to support them. I think the end result is going to be VERY cool but right now there’s just nothing to show off.

The combat engine is going to be a bigger job than I anticipated, because I’m also re-designing the main screen from my original code, and there’s a lot of new additions and changes from the pre-AMS code. (Multiple monster types, big monsters, and so forth.)

Update: Here’s are some mock screens of combat just for fun!

Posted in CRPG, Design, Personal, Screenshots, TI-99/4a | 1 Comment

Crickets…

Sorry for the lack of updates recently. Work has been brutal and the weather (sunny and VERY warm) has necessitated spending more time outdoors mowing and doing basic yard maintenance.

I did a little testing and found some bugs in various places. I’ve written up some encounter code for combat to have the display tell you things like “You face a raging bear!” or “You face an acidic slime and 2 giant rats!” I encoded pluralizing monsters as a single code so that I could still have unique cases like “wolves” verses “wolf” and the typical “just add an s on the end” case.

Despite being distracted by the idea of writing a more complete version of Donkey Kong for the TI, pushing on with the CRPG work!

 

Posted in Blog, CRPG, Design, Personal, TI-99/4a | Leave a comment

Demo Video

Here is a video someone recorded of me giving a presentation of the CRPG.

Damn I need to lose some weight…

Posted in Blog, CRPG, TI-99/4a, Video | 7 Comments

Fest West 2018!

When: Saturday April 28th, 10am – 5:30pm

Where: Vancouver Public Library, Klickitat Room, 4th floor

Hope to see you there!

 

Posted in Blog, TI-99/4a | Leave a comment