Battle() completed, onto client redesign

Week 56 is over. As announced last week, this was another rather short week due to travel and related business engagements. I should be returning home in a few days. Fear not, the complicated part of the year is over soon and this will open up more time to spare for Dominance.

Battle() completion

After a round of vigorous testing and various scenarios being played out, I’m confident all the required battle changes are tested and re-tested, and all the bugs I could find were squashed. So, let’s a battle log, hm?

This is a textbook ambush example. Tet1 has 2 avatars, both with simple Menars. The avatar in the jungle has 1000 Menar La, and the other avatar has 1000 regular Menars. All avatars have had their stats zeroed, so the only thing affecting the battle is the terrain. Menar La, a second-tier unit, has identical stats to Menars, with the difference being they can utilize terrain for an ambush bonus.

Test2 has 2000 Wudars, zeroed avatar and is about to receive some unusual punishment.

Your army consisting of 2000 units with average morale 20.9 was lead by:
Noble test2’s avatar t2aa (level 1)

Stats affecting army:
Perception: 0
Offensive Warfare: 0
Defensive Warfare: 5
Leadership: 10
Charisma: 0

Wudar: 2000
Total units: 2000, morale: 20.9

Your opponents in this battle were:
Noble tet1’s army consisting of 1000 units with average morale 25.0, lead by:
Noble tet1’s avatar t1bb (level 1)

Stats affecting army:
Perception: 0
Offensive Warfare: 5
Defensive Warfare: 10
Leadership: 0
Charisma: 0

Menar La: 1000
Total units: 1000, morale: 25.0

Noble tet1’s army consisting of 1000 units with average morale 27.5, lead by:
Noble tet1’s avatar t1aa (level 1)

Stats affecting army:
Perception: 0
Offensive Warfare: 0
Defensive Warfare: 0
Leadership: 10
Charisma: 0

Menar: 1000
Total units: 1000, morale: 27.5

—- Entering round 1: —-

Current morale: 20.9

Throne action phase:

Mindbender phase:
You do not have any mindbenders.

Assassins phase:
Current morale: 20.9

Terror phase:
Current morale: 20.9

Initial ranged phase:
Noble tet1’s avatar t1bb fired a volley of obsidian shatter shards and killed: 0 Wudar (Noble test2)
Noble tet1’s avatar t1bb’s beautiful song won over: 0 soldiers (Noble test2)
Current morale: 20.9

Mounted phase:
Current morale: 20.9

All-out brawl phase:
Melee units:
1000 Menar La (Noble tet1) killed 223 Wudar (Noble test2)
1000 Menar (Noble tet1) killed 109 Wudar (Noble test2)
2000 swordsmen prepare to attack other swordsmen!
1250 Wudar (Noble test2) killed 99 Menar La (Noble tet1)
750 Wudar (Noble test2) killed 66 Menar (Noble tet1)

Ranged units:
Noble tet1’s avatar t1bb fired a volley of obsidian shatter shards and killed: 0 Wudar (Noble test2)

Burrowing units:
Noble tet1’s avatar t1aa plowed under Noble test2’s troops and pulled beneath the surface: 0 Wudar (Noble test2)
Noble tet1’s avatar t1aa opens a pathway to Tars Muna! 0 wraiths heed the call!
Current morale: 4.3

Garrison phase:
Battle does not involve your garrison.

—- Round 1 ended. —

>>> Your army: <<<
Wudar: 1668 (83.4%), withdrawn: 0 (0.0%), lost: 332 (16.6%)
Total units: 1668 (83.4%), withdrawn: 0 (0.0%), dead: 332 (16.6%), morale: 4.3

—- Entering round 2: —-

Current morale: 4.3

Throne action phase:

Mindbender phase:
You do not have any mindbenders.

Terror phase:
Current morale: 4.3

Mounted phase:
Current morale: 4.3

All-out brawl phase:
Melee units:
901 Menar La (Noble tet1) killed 201 Wudar (Noble test2)
934 Menar (Noble tet1) killed 102 Wudar (Noble test2)
1668 swordsmen prepare to attack other swordsmen!
1042 Wudar (Noble test2) killed 83 Menar La (Noble tet1)
626 Wudar (Noble test2) killed 55 Menar (Noble tet1)

Ranged units:
Noble tet1’s avatar t1bb fired a volley of obsidian shatter shards and killed: 0 Wudar (Noble test2)

Burrowing units:
Noble tet1’s avatar t1aa plowed under Noble test2’s troops and pulled beneath the surface: 0 Wudar (Noble test2)
Noble tet1’s avatar t1aa opens a pathway to Tars Muna! 0 wraiths heed the call!
Current morale: -10.85
Your army is demoralized and attacks at half strength!

Garrison phase:
Battle does not involve your garrison.

—- Round 2 ended. —

>>>>>>> DEFEAT! <<<<<<<<

>>> Your army: <<<
Wudar: 1365 (68.2%), withdrawn: 0 (0.0%), lost: 635 (31.8%)
Total units: 1365 (68.2%), withdrawn: 0 (0.0%), dead: 635 (31.8%), morale: -10.85

While withdrawing, Noble test2 lost 68 Wudar to desertion.

 

As you can see, the Menar La outperformed themselves, as they took the +10 jungle defense bonus and turned it into +100 offense bonus (as well as retaining the defense bonus).

Onto Client Redesign

With this part of the server update done, I have slowly turned focus onto redesigning the client. This is a long and arduous process of yet again redesigning every single form and coding the support for stuff that people take for granted when using regular game engines. Right-click anyone? How about info tooltips?

Where am I, at this stage? Concept design. Paper stuff. Let me show you a concept example of the new interface, as well as my terrific Paint drawing expertise.

The drawers, as we had them, are gone. Instead I want to implement the MOOBAA push-buttons at the bottom for all major actions: Chat, Log, Letters, Spellcasting, Research, Spellbook, Treasury/Artifacts, Politics, Unit Designer and Dominion Info.

At the top I’m putting a status bar that would replace the Elder info with actual information on mana, onmi and other statuses. The “More” button in the top left corner would open up settings interface with Log Out, Settings, and other misc commands such as territory, ROM and pathing toggles.

Map control buttons for those with issues on phones (Safari) would return as they were in the original Dominance client – in one of the map corners.

Forms would all be almost-full-screen, instead of 800×600 that’s hard-coded atm. This means No more moving windows about and fixed positions for everything – but also easier to place and more usable space on mobiles.

In the misc department, I’d like to allow for mouse-over tooltips so you don’t have to click anything to bring up data on map objects – moving a mouse over a horse should be sufficient to pull up a small and condensed tooltip containing all relevant info. If you click/tap, then the full-fledged info box would pull up allowing for extra info and commands.

Furthermore, giving orders to avatars is not as simple ass I’d want it to be. What I wish is no more move/attack/guard buttons but a simpler interface what would unify all of this.

Anyway, this is what I’ll be up to in the following weeks. Thank you for your interest!