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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #18  
Old April 7th, 2009, 04:08 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Case of the Dying Mages (and God)

Now, I have a good hunch where the battle replay inconsistencies might be coming from. I have logged the replay from the game that I posted on the page before. It's very short, only 7 turns, and not too crowded, which is good. I removed all the graphic display logging information from the log of the battle replay, and diffed the files against each other. The relevant sections from the log files are attached to this post. The diff can be inspected in a highlighted format at http://paste.pocoo.org/show/111416/ (removed lines from the original battle generation are in red, new lines from the battle replay are in green)

The battle rapidly develops very differently, as can be seen from the amounting changes between the log files. What stands out as one of the first real changes is
Code:
-  est. choices 24
+  est. choices 26
which, as I interpret it, shows the available spells that a mage may cast, and evaluates their usefulness. In the battle replay, there are two more choices. A little later you see the same:
Code:
-  est. choices 40
+  est. choices 42
The evaluation of spells from then on differs a little, because, it seems, there are more spells available. And this evaluation may be using the RNG, so that it then corrupts the battle replays because it uses more random numbers, thus giving different random numbers for target and hit and damage determination.

What I'm getting at, I think the problem is that during hosting, the game may be using the old spellbooks. And during replay, the game may be using the new spellbooks with the spells that have been researched during the last turn. I can't proof it, but that's what seems the most likely to me.

Another possibility is that the battle background is different. The "OptimizeWorld" lines differ even before anything regarding the spells pops up in the diff. May be worth looking into, too.
Attached Files
File Type: zip logfiles.zip (299.2 KB, 155 views)
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
The Following 4 Users Say Thank You to lch For This Useful Post:
 

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 07:14 PM.


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