Perhaps you need more than words, perhaps you need this…

Version 2.1.0 Build (57)

It’s been a very long time since the last release. So I am happy that the next release will include a bounty of changes. There are some new game rules. Some bug fixes. Numerous cosmetic updates. Some new UI additions.

There has also been a lot of work under the hood making way for AppleTV and The Citadel. The games also now run in a desktop web browser. This also allows for quick releases to check issues out before building the final store released.

Currently available to test at The Lords of Midnight (WEB) and Doomdark’s Revenge (WEB) full release to follow.

Game Options

  • ADDED: LOM – ‘Replenish Things’ and ‘Random Replenish’, things removed from the map respawn after a number of days dependent on difficulty. This is either happens based on game design or completely randomly depending on the game rule.
  • FIXED: DDR – Circular liege when a lord recruits their own liege
  • ADDED: DDR – ‘Fix Circular Liege’, on by default and enabled for existing games. Fixes a problem were lieges could be recruited by their old subjects. Full discussion here…
  • ADDED: DDR – ‘Safe Lord Death Rules’, a lord can’t die while they still have an army. This is similar to how LoM works. This is a game option to avoid compromising the original gameplay.
  • ADDED: DDR – ‘Hide Lords In Tunnels’, armies following a lord who is in a tunnel now search the ground within 3 squares of them, on by default. With this turned off and in original mode, the armies would sit on the location directly above the lord.

Action Menu

  • ADDED: Help icon on the actions menu. A method of re-reading all help popups from the action menu.

Think Screen

  • ADDED: DESKTOP – Arrows on the screen pager
  • ADDED: LOM – The think pages show ‘He thinks again….’ with keyboard shortcut
  • ADDED: DDR – The think pages show ‘More?’ with keyboard shortcut
  • CHANGED: LOM – The think pages show ‘To the [direction],’ for what lies ahead, as the original

Misc Changes

  • FIXED: LOM – Seeking no longer removes wild horses from the map on default and easy difficulty
  • CHANGED: Corrected night colour text
  • CHANGED: Dedication screen is no longer shown every time
  • CHANGED: Upgraded to latest Axmol, targeting Android 36 and latest iOS/OSX
  • FIXED: HTTP urls updated to HTTPS
  • CHANGED: IOS/OSX – Added new support for document sharing
  • ADDED: TVOS – Apple TV build of LOM and DDR. Game is almost ready to run on AppleTV. This also includes changes for using a DPAD on other devices.
  • CHANGED: Updated Windows Installer

Map Changes

  • ADDED: Map pinch and zoom. Should be pretty clear. Desktop you hold the shift key down while moving the mouse.
  • ADDED: Map extends beyond the edge UI elements. This fixes lords at the edge of the map getting stuck under UI elements.
  • ADDED: Filters fade the map layers and lords, and filter buttons with nothing to show or hide are hidden
  • CHANGED: The background behind a many lords icon fades out at the edges
  • CHANGED: Touching anywhere outside the many lords dialog dismisses it, fading it out
  • CHANGED: Tidied up the discovery map mechanics
  • FIXED: Crash going to the map straight from a new game from a gesture on panel_look
  • FIXED: Crash going to the map from the actions menu in a game saved before the map was remembered
  • ADDED: Memories feature. Armies locations are remembered, but they fade over time.

Select Screen

  • FIXED: Leaving or disbanding a group now returns to the standard think screen
  • ADDED: Lords rotate around the group circle when using the group left/right arrows
  • ADDED: Lords animate from the group dialog to their place on the select screen when a group is disbanded
  • ADDED: Lords animate to their new positions when using the tidy up button on the select screen
  • ADDED: Lords fade in and out when the select screen filters are changed
  • CHANGED: Filter buttons are hidden when pressing them would not change which lords are shown
  • CHANGED: Tidy up places a group on a block of four squares so it never overlaps other lords
  • CHANGED: Lords move aside, animated and as little as possible, when a group needs room or is over the edge of the screen
  • ADDED: DDR – Lords in a tunnel show a tunnel icon with their status icons
  • ADDED: DDR – Select screen – Tunnel filter button, as on the map

The Icemark was indeed a changed place

An interesting thing came from fixing the battle code in Doomdark’s Revenge, it highlighted a bug that is in the original code, that I can’t tell if ever caused an outward problem.

It is all to do with loyalty.

Loyalty in DDR is about race. Which race are you loyal to: Giants, Dwarves, Hearstealer, Moonprince… etc. When a lord recruits another lord, they become their liege and the new vassal becomes loyal to the same loyalty race.

When a AI lord moves in to a location, they check the loyalty of any lords present and if there is a difference in loyalty, they may attempt to recruit.

The problem is – if a lord who has vassals is recruited the loyalty of the vassals does not change, but the loyalty of the lord does. The liege of the vassals does not change either. So these lords have a liege of a lord who is not loyal to the same race as them. And they will potentially attempt to follow them or follow the same instructions. Even though they are technically the enemy.

Should the vassals ever find themselves in the same location as their liege, they are no longer the same loyalty so they will attempt to recruit them. In this instance the, the vassals becomes the liege of their liege, but their own liege does not change. Confused yet?

What we have here, is circular lieges.

Example:

Glormeon the Giant’s liege is Imagrorn the Giant, and Imagrorn’s liege is Varagrim. But let’s say Imagrorn is recruited by Carormand the Barbarian, then Imagorn’s liege is now Carormand, and his loyalty is to the Barbarians. But Glormeon’s liege is still Imagrorn, however his loyalty is still to the Giants.

The first problem here is that these two lords now see themselves as enemies or potential recruits. So they could fight or recruit. But also Glormeon will follow orders of Imagrorn even though they are enemies. Which may be tracking him down or following his enemies, or liege… and should Glormeon enter a location with Imagrorn he may attempt to recruit them. If this is successful then Glormeon’s liege would be Imagrorn and Imagrorn’s liege would be Glormeon.

In the original this situation would occur. Which I think really just messes with the AI. But in the remake, I traverse the liege tree to work out who is the overall lord in charge, and if we have a circular liege then the game crashes!

So the question is – how to fix.

So I remove the liege traversal and allow the original messy AI or do I break the liege link as soon as recruitment happens… ie: When Imagrorn is recruited and his liege changes to Carormand, then Glormeon’s new liege becomes Varagrim. Or should Glormeon remain loyal to Imagrorn and change his race loyalty to the Barbarians?

As a bug fix the first seems the quickest and keeps the gameplay the same. The other two options the potentially becomes gameplay rules.

This also doesn’t take in to account that the human player, ultimately The Moonprince, may be the loyalty race of some of these lords.

I am tracking the bug here on the GitHub repos for anyone interested.

Many battles fought again by tongue

Strange day today. Not just because it would have been Mike’s birthday, but because for some reason I found myself fixing a bug in Doomdark’s Revenge. Back in January I had a bug reported to me by Simon Foston, I managed to get some save games from him and just needed to find some time to look at it. Now, it’s taken a little while for me to find that time, but for some reason I looked at it today. It wasn’t a conscious decision, I was just looking through some emails that needed dealing with and noticed Simon’s bug report.
A quick look through the code and with a tip off from Simon’s report, it became apparent that the ghosts of dead lords were continuing to take part in battles. I checked the original code and it looked as if the bug was there too, however, I then found that the isDead check was happening later in the process. Strangely what it means is that battles at a dead lords location are processed as part of a dead characters turn, and not as part of other characters in the location. In my case, I’d missed the later isDead check and therefore the dead lord actually took part in the battle.

 

So, it seemed strange to be working on a bug in Doomdark’s Revenge that included the dearly departed, today of all days. I’m sure Mike had a wry smile..