.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old October 11th, 2008, 01:33 AM

hunt11 hunt11 is offline
Sergeant
 
Join Date: Apr 2008
Posts: 288
Thanks: 26
Thanked 8 Times in 8 Posts
hunt11 is on a distinguished road
Confused wrong battle report

In the game MadCraddle i had just gotten the new turn and was checking what had happened, in the overview map and the battle report it had said that i had lost the battle, but in the actual battle replay, I had won the battle. I have the turn file if anybody wants it.
Reply With Quote
  #2  
Old October 11th, 2008, 02:24 AM

konming konming is offline
Second Lieutenant
 
Join Date: Sep 2007
Posts: 525
Thanks: 17
Thanked 17 Times in 10 Posts
konming is on a distinguished road
Default Re: wrong battle report

It happens a lot, seems no one has yet to figure out why.
Reply With Quote
  #3  
Old October 11th, 2008, 04:54 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: wrong battle report

The fights are calculated once while the new turn is hosted, and the results of that fight are used for determining which units died, who controls the province etc. The fights you see are replays of that fight, using the same random seed (i.e. all the random rolls will come up in the same order as in the original fight). If, for any reason, there's a calculation in a wrong place, the replay doesn't turn out as it should. There have been many problems that caused this, and they've been fixed when they've been identified.

The only example I can remember right now is that in DomII, the comparison used to determine who wins a Magic Duel (random roll A + astral level A vs random roll B + astral level B) was handled differently in Linux and Windows distributions (Windows: first A, then B; Linux: first B, then A). When the random roll was high enough to change the result, the battle went differently from that point onwards. It didn't matter as long as the hosting and playing happened on the same operating system, which caused even more confusion.

As you can see, it is difficult to find the exact bug that causes the symptom in your case.
Reply With Quote
  #4  
Old October 11th, 2008, 02:02 PM

konming konming is offline
Second Lieutenant
 
Join Date: Sep 2007
Posts: 525
Thanks: 17
Thanked 17 Times in 10 Posts
konming is on a distinguished road
Default Re: wrong battle report

The magic duel problem must still exists in Dom3. One recent turn replayed completely different from the battle result. And there was an early magic duel.
Reply With Quote
  #5  
Old October 11th, 2008, 06:05 PM

cthulhu cthulhu is offline
Private
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
cthulhu is on a distinguished road
Default Re: wrong battle report

Battle Summary / Strategic Results:
Friendly Commanders: 1, 0 killed
Friendly Regulars: 5, 4 killed
Enemy Commanders: 3, 0 killed
Enemy Regulars: 117, 59 killed
I lost the battle.

What I see in the replay:
None of my non-PD units died or ran away, none got new afflictions, only 3 even got hit. Almost all of my PD units (31 PD) get killed or ran away. Most of the enemy army died, including his only mage.

Spells used during the battle:
Bless, Holy Avenger, Sermon of Courage, Flying Shards, and Twist Fate. The only spells that actually had any effect upon the outcome were the bless spells.

Army Compositions:
My army consisted of 31 PD for MA Ashdod, backed up by 5 Sheshai Anakites and a S2H2 Adon. My bless is E9,F4,W4,N4.
The enemy army consisted of 16 Red Guard (boosted by Strength Of Spring), 8 Imperial Horseman, 8 Horsemen, 26 woodsmen blowpipes, about 55 other infantry (mix of ministry guardmen, ministry footmen, footmen, woodsmen, militia, and light infantry), 1 Minister of Magic (E1), 1 General, and 1 Eunuch.

I don't think the difference here is a result of one spell having a different random outcome. The only things that could have produced the alternate outcome would be if my bless spells hadn't worked (they were scripted) or if... I can't think of any other possibilities. If their cavalry had managed to isolate my Adon then I might have lost, but the casualty rate among my Shesai Anakites wouldn't have been so high.
Reply With Quote
  #6  
Old October 11th, 2008, 08:43 PM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: wrong battle report

Quote:
I don't think the difference here is a result of one spell having a different random outcome.
It's not the single outcome that changes that makes the difference, it's in how the game handles random rolls that causes a snowball type change.
Imagine that all random results are rolled in advance into an enormous queue, and then each time you need a random number, you get the first number in the queue.
If everything goes alright, then replaying the battle with the same queue will give you the same replay every time, because every result it predetermined; You will get the same "random" number for the same roll every time.
But if because of some small change, one less random number is needed than is supposed to be (for example, originally the mage casted a spell that also needs an MR check, but this time he didn't), then every single random outcome that follows is changed, because the random rolls will use a different number from the one they used originally.
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
Reply With Quote
  #7  
Old October 12th, 2008, 11:39 AM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: wrong battle report

I'm just surprised.

Why not write the actual events to each players turn?
Aka...
unit 1 moves to square 2. Does 12 pts damage to unit 934.
unit 2 casts Blinding light.
unit 3 casts foul vapors...

Then let the replay just step through what actually happened?
Reply With Quote
  #8  
Old October 12th, 2008, 01:01 PM

cthulhu cthulhu is offline
Private
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
cthulhu is on a distinguished road
Default Re: wrong battle report

Possibly to minimize bandwidth or disk space needed?
But it certainly be a good idea to do so optionally, at least for debugging purposes.

Anyway, even with the entire battle redone, every roll redone, even enemy tactics chosen differently, I'd expect the outcome listed in the battle report to be fairly unlikely.
Reply With Quote
  #9  
Old October 12th, 2008, 04:00 PM
Hadrian_II's Avatar

Hadrian_II Hadrian_II is offline
Major
 
Join Date: Oct 2006
Location: Bern, Switzerland
Posts: 1,109
Thanks: 14
Thanked 17 Times in 14 Posts
Hadrian_II is on a distinguished road
Default Re: wrong battle report

Quote:
Originally Posted by chrispedersen View Post
I'm just surprised.

Why not write the actual events to each players turn?
Aka...
unit 1 moves to square 2. Does 12 pts damage to unit 934.
unit 2 casts Blinding light.
unit 3 casts foul vapors...

Then let the replay just step through what actually happened?
Because this would make the .trn files huge.

Now its just battle with these units, start random generator with number x.

Your system would add a huge amount of information to the turn files. as every action of every unit every turn had to be saved.
Reply With Quote
  #10  
Old October 12th, 2008, 04:19 PM

cthulhu cthulhu is offline
Private
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
cthulhu is on a distinguished road
Default Re: wrong battle report

Huge .trn files would be fine, at least for debuging purposes, as long as they were under 1 GB.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.