October 2018 Update – Ironman


Welcome back to the King under the Mountain development updates!

The past month (and more really) has had me hard at work on a surprisingly thorny problem for a game of this complexity – saving and loading the game! I’m very happy to say that – while it’s not perfect and I’m certain there’s some bugs still to be ironed out – there’s a new build of the game publicly available to help test this big new feature! As always, you can grab it from https://rocketjumptechnology.itch.io/king-under-the-mountain-prototype

Unfortunately it doesn’t contain any new gameplay features as all of the recent dev effort has gone into making saving and loading work. However, now when you quit the game, your settlement and everything in it is saved so you can continue next time you load the game. If you’d like experiment, you can press F5 to perform a quicksave, and F8 to load the most recent saved game. As with most things in the pre-alpha, the UI is not as fully featured as it is intended to be – right now you can only maintain a single save file (starting a new game and saving will overwrite it), although the intention is there will soon be a UI to let you manage multiple save files across multiple settlements.

If you do experience any crashes and would like to help get them fixed, please email me at ross@kingunderthemounta.in (or message me on the usual platforms) with a link to your save file which should be found in the “King under the Mountain” directory in your user area (I’d recommend dropbox or Google Drive to store it as its a large file) and a description of what you were doing at the time and the specs of your computer (Operating system, amount of memory/RAM, and graphics card are the key ones). Alternatively jump into the discord server at https://discord.gg/M57GrFp and I’ll be around at some point to help out!

So what’s next? Well I’ve still some bugs to squash and there’s the UI around saving and loading to be added, but past that I can now finally focus on the feature set of Alpha 1 described in http://kingunderthemounta.in/roadmap/ which I’m very excited to get started on to really flesh out the basics of gameplay.

Past that you may have noticed a new entry on the roadmap – Alpha 2. The current intention is that after the first major Alpha release (slated for February), the second big release will be to open up modding on the game properly. Supporting mods as strongly as possible has always been one of the central pillars of King under the Mountain so I want to get this kicked off as soon as possible so that the community can help shape the tools and support that is available for modding. In the meantime however, a few enterprising community members have already started messing around in the game files to make changes. At it’s simplest, King under the Mountain has its game assets (sprites, sounds, data files) laid out in the /mods directory (with the intention being that each mod lives in a separate directory within there) and these are combined and compiled into the /assets directory.

Until today you had to modify the compiled data files in /assets and there was no good way of modifying images and sprites. Along with the new release (Pre-alpha 7) there’s a secret command if you do want to start messing around with mods early. You’ll need Java 8 or later installed, and then you can run:

 java -jar undermount-desktop.jar --repackage

to repackage the files in /mods to /assets. This lets you play around with the current set of base data files, although this still won’t support additional mods (outside of the “base” directory) just yet – watch out for Alpha 2 for a whole new world on modding!

See you next month!
Ross

September 2018 Update – Post-Kickstarter Party


Hello and welcome to the return of the regular monthly dev update for King under the Mountain! The last one was put out in June, because the Kickstarter ran over July and August. That feels like a lifetime ago now with how much work and energy went into promoting and managing the campaign, but it turns out it was all worth it because it was a great success!

 

I’ve said it many times before but thank you so much to each and every one of you who have backed the game in some way! It’s a dream come true for me to be able to bring in funding to focus on the game’s development and get it to release that much quicker!

The planning for, running of, and post-campaign management for a Kickstarter campaign takes up a lot of time, which unfortunately meant that game development was put on hold for the duration. The great news is that the funds brought in will enable me to increase the artwork, music and sound budget as well as dedicate a lot more of my time to game development, in fact I’ll be taking a 3 month sabbatical from the day job to focus 100% on King under the Mountain which really should kick-start development straight up to the Alpha 1 release in February!

If you’re a backer of the Kickstarter campaign and/or a backer of the Patreon, you should now have received an email inviting you to BackerKit to claim your rewards. Any and all contributions made to the Patreon (in USD) were converted to GBP at a rate of 1 USD = 0.777189 GBP as this was the exchange rate on the day the Patreon contributions were added to BackerKit. There’s quite a bit of info to run through regarding the BackerKit so here’s a Q&A:

  • I didn’t receive or have lost my BackerKit email: You can retrieve it from https://kingunderthemountain.backerkit.com/ If that doesn’t work for you either, please message me through Kickstarter or Patreon.
  • When will the BackerKit survey be locked out to changes / when will my card be charged? BackerKit prefer project creators to charge cards less than 30 days before rewards are sent out, so any refunds over disputes can be processed in that 30 day window. The main part of rewards from the campaign will be the sending of the Alpha 1 game keys, which is due for mid-February. Due to this date, card details in BackerKit won’t be charged until mid-to-late January. If you’d prefer your card to be charged now instead, that’s fine and can be done, just email me at ross@kingunderthemounta.in and I’ll get it processed. As cards won’t be charged until early next year, I’ll be leaving the BackerKit surveys open to modification until the end of 2018.
  • My card was declined on Kickstarter, what should I do? You will still receive the BackerKit email, you’ll be prompted to fill in card details on BackerKit to make up for the funds missing from your Kickstarter pledge. You can also change your pledge to a lower or higher pledge amount, if you wish.
  • When will I receive or be asked about the other rewards i.e. content design rewards? These will be in several phases throughout development of the project, after Alpha 1 has been released. I’ll be back with more details in the future.

And with that out of the way I can get onto the actual development update!

By far the most-requested feature for the playable prototype was the ability to save and load the game, which admittedly is a super important feature you’d just expect to be there in a game of this type. So that’s what I’ve been working on since the Kickstarter finished (well, other than some small quality of life improvements). It’s a very big feature in terms of development effort and not at all interesting or visual to be able to show any progress. Really just to say I’m beavering away at saving/loading games and hopefully next month it’ll be done and I’ll be able to tell you what I’ve gone on to then!

In the meantime, now is a perfect opportunity to throw any questions you may have into the comments. Also if you’ve not already, you can join in to the community Discord server at https://discord.gg/M57GrFp to chat with other backers of the game or throw any questions my way as I’m usually online if I’m awake 🙂

June 2018 Update – Return of the King


First of all, apologies that this monthly update is a little late, things have been a bit full-on to get ready for the Kickstarter campaign – launching July 17th (that’s less than 2 weeks away!). It came with a tough decision of having to cut a feature from the prototype I really wanted to get done in time, which is getting the dwarves to eat food (and needing to eat food). As it is, you can now build kitchens which will be stocked with water barrels (filled with water from buckets – for now!), worktops (where raw ingredients harvested from crops are stored) and cauldrons. A chef will come along and add ingredients and water to a cauldron before cooking it into a delicious soup. The actual kind of soup produced is procedurally generated based on the ingredients, so just adding carrots will produce “Carrot soup” while potatoes and corn will make “Potato and sweetcorn soup”.

The tricky part with this is making sure that it works well (or at least well enough) in other languages. On that note, there’s now translations in place for English, German, Spanish, French, Italian, Russian, Polish and Portuguese (both European and Brazilian). If your native/favourite language isn’t there, I’m planning to add an easy way for players to add more language translations to the game in the not too distant future, but not until after the Kickstarter has finished. Languages with a large number of characters (Japanese, Chinese) or those that read right-to-left (such as Arabic) are particularly difficult to implement in the framework King under the Mountain is built in (LibGDX), so while I can’t promise support for those languages yet, I do really want to be able to support them in the future.

It’s a little too soon to show off the new trailer (and Kickstarter video) yet, but as part of the production I’m super excited to be able to share the new track by Jordan Chin titled “King under the Mountain” as it is intended as the main theme of the game!

Perhaps most importantly, ahead of the Kickstarter the latest build of the game is now public and available to download! Ahead of the Kickstarter launching, I’d love to get any thoughts and feedback on this build. Be sure to drop by /r/KingUnderTheMountain to create a general thread or please raise a new issue for any bugs or problems at King-under-the-Mountain-Issue-Tracking/issues.

Which means that’s probably it for dev updates until the Kickstarter campaign. Depending on how the campaign goes I might switch up the current monthly dev update to something else, or at least there won’t be the normal monthly dev update here as all the upcoming updates will be via Kickstarter, at least while the campaign is running.

As always, thank you so much to those of you following these updates and being excited for the game making progress. It’s a huge motivator to know there’s people out there who want this game to be made (other than just me!) and a successful Kickstarter campaign really should, er, kick-start development up to another level. When the campaign does kick off, please share it wherever you think most appropriate to get the word out, as it is that word of mouth that makes all the difference between success and failure.

May 2018 Update – Second Breakfast


This month actually saw a lot more progress than I was expecting, but less visual progress than I was hoping! I’ll get into that shortly, but first here’s a  look at the progress towards food production – kitchens have water barrels that are filled by hand and worktops which collect raw ingredients, but putting it all together is just a couple of days more work away.

I was (knowingly) a bit optimistic with the feature set I wanted to get implemented in time for the Kickstarter campaign – I’ve been hoping to have both food and drink production, along with the dwarves having new needs of hunger and thirst. As these are fairly hefty new systems with a lot of new art assets and other implementation details behind them, in order to still keep on track for a July launch of the crowdfunding campaign, I’ve decided to take out drink production (i.e. brewing beer) and thirst, and just aim to get food production and eating done in time.

Read more

April 2018 Update – Flora and Farming


Another month has flown by and development is kicking up a notch to be ready for the goal of a Kickstarter campaign in July. The over-arching feature currently in development is farming of crops, and so here’s a video showing the latest progress:

First of all though, we’re finally starting to see some fruits of the Patreon campaign, to begin with a new set of sprites representing natural (rough) stone walls and the overlaid ore and gems.
Read more

March 2018 Update – AI rewrite and heading back to Kickstarter


There’s big updates and small updates since last month, so let’s go over the small news first. Firstly many thanks to Alex Esin who has been a huge help with logging bugs at the Github issue tracker. Simulation games are an incredibly complicated programming problem, and bugs/issues are inevitable once there’s a certain number of moving parts in the system (a number which was passed a long time ago!) so getting the community to highlight any issues they are finding is a huge help – particular when like this one they appear to be a combination of Intel no longer supporting older integrated graphics cards on Windows 10 with Java – something I would never have encountered on any of my development machines.

If you’re finding any problems at all with the game, particularly any crashes to desktop, please sign up for a free Github account, get them logged on there (if someone hasn’t already raised it) and I’ll get back to you ASAP and make it a priority to fix. To this end, the game now logs out any information and error messages to a file named “log.txt” in the game’s main directory which will be a huge help with investigating any crashes – please include the contents of this immediately after a crash to desktop.

With that out of the way, the big feature this month was finally giving the dwarves a well-deserved rest – literally making them being able to sleep! (Please excuse the placeholder bed artwork)

Read more

February 2018 Update – Rounding out the edges


Hello from the world of King under the Mountain! This past month involved a lot of tidying up and smoothing over of rough edges that have been hanging around since the Kickstarter pre-alpha demo. Along with a bunch of code improvements, this mainly comes in the form of being able to click on and interact with the game world a lot better! Whereas before you could only click on characters and items in the world and get a (rough) bit of info from the UI, now you should be able to click on everything you see in the game – walls and floors, rooms and stockpiles, things under construction, doors and the river! Even bigger news than this is that you can finally change your mind about where you’ve placed something as now you have the ability to cancel constructions in progress or remove rooms and furniture that you’ve built. I’ve also spent a bit of time supporting high (or low) resolutions (mostly thinking of 4k resolution monitors) so the UI scales up and down appropriately (no doubt this will be configurable in the future).

After talking about getting onto farming “soon”, I’ve ended up having the motivation and/or forcing myself to tidy up all the loose ends that were hanging around from getting the first pre-alpha build done in time. Adding more functionality to the UI and letting you remove furniture was the biggest piece of this, but there’s still a few remaining items on the list to finish off, including:

  • Slowing down the bushes that currently grow quickly out of control, and doing something similar so trees can grow and spread across the map (slowly) – until now trees have been static since world generation except for changing leaf colour over the seasons.
  • The ability to construct/replace floor tiles so your dwarves aren’t always living on grass or rock and they can get some nice smoothly-crafted flooring to stand on. More importantly, this extends to building bridges which is a necessity to cross the currently impassable river. This might be put off a little as I’m hoping to get some new art assets created to go along with this feature (more on this soon).
  • Adjusting the length of a day and season to something reasonable with a rough UI to let the player know what the time and date is. While this isn’t that useful by itself, it’ll also bring in a place to put speed controls into the UI rather than having to rely on the 1, 2, 3, 4 number keys.
  • Sorting out some art assets that haven’t been brought into the game properly – there’s a few different profession outfits which were missed out of being included in the current build, as well as some tiny improvements to how eyebrows look.

The above is my current work list for “pre-alpha 2” which is a completely arbitrary milestone before working on “pre-alpha 3” which includes some of the more exciting stuff:

  • An update to the dwarven name generator to replace the current Norwegian surnames with something a bit more fantastical. As an ode to the Norse inspiration of dwarves as a concept, I think they’ll keep the current Norse given names along with a few favourites thrown in (such as Urist!)
  • The first of the basic needs of a character – sleep, which will introduce the concept of a working day to a dwarf, necessitate the construction of beds to avoid sleeping on an uncomfortable floor and become the first step to actual management of a settlement.
  • Food, glorious food – For me this is the big one on the way to completing the alpha 1 checklist of the roadmap. Covering both foraging from bushes and planting crops for harvest, and also leading in to the other absolute basic necessity for the characters (needing to eat and drink as well as sleep). Thanks to art assets you might have spotted in an earlier dev blog, there’s nothing blocking development of growing crops although we could do with something to represent kitchens, breweries and how food is stored.
  • Underground farming – While this could go into the epic mega-feature covering all kinds of food, there’s something very dwarven about growing mushrooms underground and this will also lead into the first steps of making the underground (cavern) areas a bit more interesting.
  • Death – the other side of having basic necessities is the implications of not satisfying them, and in the case of food and drink that means hunger, starvation and eventually death!

These are some quite chunky pieces of development work which I can see taking quite a while to complete, but its exciting to see the basics of the game emerging from what I still see as the tech demo of the pre-alpha build.

Looking ahead to the rest of 2018, the rough goal is to have alpha 1 ready and released to the public by the end of the year. This is going to depend massively on what happens around the middle of the year though – the current plan is to launch a new crowdfunding campaign somewhere around July and/or join forces with an indie-friendly publisher to bring some investment to the project. With this in place I’m hoping to be able to dedicate at least a few months later in the year solely to development of King under the Mountain to get it to the publicly-available alpha 1 release. After the disappointment of cancelling the 2017 Kickstarter campaign and the slow build up back to development after the break for 6 months after that, I’m a lot more optimistic now of getting back to a decent delivery timeline for the game.

I’m now in the process of getting more art assets commissioned which is entirely thanks to the many generous backers of the King under the Mountain Patreon page. While it’s a bit too soon to show what’s being worked on, I’m hoping to have a lot more on this next month. If you haven’t already, please consider backing the game’s patreon which has opened up a reasonable budget for new assets in the game at a time when I’m not able to finance these out of my own pocket. It really does help, and if you are one of those backers already, thank you so much! It is a huge motivation and sign of approval to see people willing to support the game financially.

Backers at the $3 (and above) level now have access to the first new build since last year’s Kickstarter, downloadable from patreon.com/posts/king-under-pre-1-16584405 which lets you play around with constructing walls and seeing some of the other small improvements (such as assigned jobs blinking).

Next month’s Patreon reward will be the new build of the game with the UI enhancements discussed above, and potentially some other items from the pre-alpha 2 checklist. Stay tuned!

January 2018 Update – A Dwarf’s Hold is his Castle


Hello undermountaineers! Does that work? Between family and/or Christmas it’s been a fairly slow and quiet month for King under the Mountain, so much so that I’m really intent on making more time available in the coming weeks. That said, there’s still been some development carried out over the last few weeks!

The biggest feature is that it’s finally possible to build walls (out of wood or stone) rather than relying on mining to mark out areas for rooms and doors.

As with most development at this point, this doesn’t quite have an effect on gameplay yet (other than giving another use for planks and stone blocks) but we’re still at the stage of laying out all the groundwork and base systems, before the interesting point at which they tie into and affect each other. Before long you’ll want to build walls and add a roof (where I’m not quite sure how that will be done yet – I don’t want to copy the way rooms/buildings are constructed in Prison Architect by requiring four walls and a door, but instead to leave it more freeform) to shelter your dwarves (or settlers of a different race) from the elements while they’re waiting for an underground home to be mined out (or perhaps you’re playing as humans who don’t like sleeping underground).

Read more

December 2017 Update – Go with the flow


This month was dedicated almost exclusively to research and development for getting flowing water, namely the river, into the game. In the end I’ve spent longer than I’d have liked on this feature, although having the river implemented unlocks the core game mechanics for the next section of development – farming crops leading into needing food and drink. The main reason for taking so long is that I spent a long time researching how flowing water could be represented in a top-down 2D game, which has not received much coverage that I could find.

The main reference implementation was published by Alex Vlachos of Valve in 2010 with a SIGGRAPH paper on how they achieved a flowing water effect in Portal 2.  For this technique, a flow map (a texture representing the direction of flow) is generated or drawn by an artist, and the water texture is moved across the surface according to the direction at the point in the flow map. However, as each point in the texture is being scrolled in a different direction, after a short time they become too-far distorted from each other which looks terrible. The solution described in the paper is to use 2 different water textures, and blend between them, one to the other, and when one becomes fully transparent to reset it so that it does not become too distorted (though this has an unfortunate “pulsing” side effect which is then masked by some noise). Here’s a video of an implementation of this made by Philip Fortier:

This approach was very nicely implemented in 2D by Shaun Baruth of Sector 12 Games, who shows the same effect applied to a 2D game:

This seemed to be the route I wanted to follow, although this approach requires a flow map, and I felt a flow map generated or calculated for a map as big as those used in King under the Mountain would not be very feasible, or at least not fast enough for the game to run well on low-end hardware. Ideally I was after something tile-based, so it could be applied on a per-tile basis rather than needing something to be generated for the entire map. While I think I could have adapted the flow map texture to this problem, fortunately I stumbled across a much better water flow algorithm (for my purposes) devised by Frans van Hoesel of the University of Gronigen.

Read more

November 2017 Update – Back in action


We’re back! But where have we been? Well you may know that in March to April the Kickstarter campaign ran to a modest degree of success, but unfortunately tailed off into not meeting the desired goal. The main contributors to the success of the Kickstarter was a bunch of very positive coverage due to exhibiting at EGX Rezzed (if you dropped by, it was a pleasure to get to meet you!) as well as a feature on Rock Paper Shotgun which was a lifetime ambition achieved – as well as all the buzz generated by you guys! Thank you so much!

Our stand at EGX Rezzed in London

Read more