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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old March 17th, 2011, 04:49 PM

JonBrave JonBrave is offline
Second Lieutenant
 
Join Date: Aug 2010
Posts: 546
Thanks: 100
Thanked 10 Times in 8 Posts
JonBrave is on a distinguished road
Default Just what does the computer think about during battles?

OK, I play Dom 3 (SP) on an old desktop. Let's not debate how slow it is, it's slow! Maybe a minute resolving between turns, no problem.

I've noticed during post-turn-battle-watch that, particularly during big battles, it will regularly spend, say, 10 seconds just between one mage's action and the next (either side). It's not a graphics speed issue, nothing's happening (and yes I do click "fast-forward").

Now, my understanding is, when the computer does an end turn sequence, it must actually "play out" the battles, saving all the choices/dice rolls/outcomes as it goes, and the battles are "visual replays" of what happened.

Even on my PC, 10 seconds between "moves" is a lot of execution time --- though you guys might not notice so much. So, I am interested, what could it possibly have to think about at that point for so long?
Reply With Quote
  #2  
Old March 17th, 2011, 05:02 PM

JonBrave JonBrave is offline
Second Lieutenant
 
Join Date: Aug 2010
Posts: 546
Thanks: 100
Thanked 10 Times in 8 Posts
JonBrave is on a distinguished road
Default Re: Just what does the computer think about during battles?

Quote:
Originally Posted by JonBrave View Post
Now, my understanding is, when the computer does an end turn sequence, it must actually "play out" the battles, saving all the choices/dice rolls/outcomes as it goes, and the battles are "visual replays" of what happened.
I wonder whether I've just figured my own question? I had assumed that during end-turn the battle moves were saved, and later just replayed. I guess instead Dom3 must rely on re-resolving the battles but with visuals during View Battle, and dice-rolls repeated as they were. With a sufficently robust deterministic algorithm. And hence the occasional glitch where people report different visual behaviour from result, where it doesn't quite get it "right"?

[EDIT]
OK, even if this is so, 10 seconds per move per mage is way longer than it's taking during end-turn-resolve phase?
Reply With Quote
  #3  
Old March 17th, 2011, 06:26 PM

iRFNA iRFNA is offline
Second Lieutenant
 
Join Date: Apr 2008
Posts: 533
Thanks: 2
Thanked 18 Times in 14 Posts
iRFNA is on a distinguished road
Default Re: Just what does the computer think about during battles?

It's thinking about skipping gleefully through a grassy meadow.
Reply With Quote
  #4  
Old March 17th, 2011, 11:33 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Just what does the computer think about during battles?

There have been many threads which discuss this. I should dig up some of the better ones and post the links. Maybe later if there is interest.

Some tips:

If you turn on logging (the -dd switch) you will get a text log with everything the game is thinking. How it rates your actions, decides results, adds things to the game, AND the thinking of the AI. To record that for even ONE turn is a really really big file. For example: for a recent discussion on how to improve AI casting I pulled out one small bit of a log. This is the AI thinking about ONE mage namedZrakhnadar in ONE round of ONE combat to cast ONE spell.
http://www.dom3minions.com/files/spell_ai.txt

Also if you play a game with computer players and turn on computer turns (the hidden switch of --comptrn ) then the game will save .trn files for the computer players which you can pick up and view
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 10:42 AM.


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