.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 20th, 2008, 11:34 AM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Open debug logs

Hi, I would like to ask if its possible to get a debug log output related to a given turn. Specifically, If its possible to see the logs of battles that have taken place.
I assume that if I look in the manual/documentation and maybe experiment a bit I will find the answer but I'd be really happy to save that time if someone already knows the answer.

The reason I'm asking is b/c recently I have had some really large battles with 40+ mages on each side and trying watch them in order to follow up is very time consuming (and slow on my old machine).

Also, is there a difference in how to get such logs and their content between SP and MP games?

TIA!
Reply With Quote
  #2  
Old March 20th, 2008, 12:33 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Open debug logs

You can get debug output for battles, but I think you have to actually let the battles play to do it.
Of course, you don't have to watch them, you could go do something else.

Start dominions with "-d" (or more d's for more detail). I'm not sure where it puts it on a Windows machine.

I also don't know what it logs when running on the server (SP or hosting a MP game.) You might get battle logs then.

It's also probably faster and easier to watch the battles, slow as they might be, than to try to decipher the debug output.
Reply With Quote
  #3  
Old March 20th, 2008, 05:12 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Open debug logs

Wow this works like a charm

Thank you!

About watching the battles, in very large battles I find it easier and faster to do different queries on the debug log to easily get the information I need about what happened in the battle.
Reply With Quote
  #4  
Old March 20th, 2008, 05:17 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Open debug logs

Oh I have a further question but was one may be more complicated.

So I script a mage to communion slave and then mind burnX4.
In first round he casts C.S. alright but in second round he casts body ethereal instead of mind burn and this is the debug section:
com Test1 cast spell (favspell Mind Burn) (mayusegems 0)
est. choices 27
best spell so far Twist Fate (score52)
best spell so far Healing Light (score113)
best spell so far Barkskin (score131)
best spell so far Personal Luck (score209)
best spell so far Protection (score227)
best spell so far Body Ethereal (score421)
castspell: cnr117 spl355 (Body Ethereal) vis0 x10 y23 spldmg134217728

Any idea why overrides script?
Reply With Quote
  #5  
Old March 20th, 2008, 05:34 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Open debug logs

The short answer is, because it got a better score, but that doesn't actually mean anything.

As I understand it, and I was just looking at this for the Astral Shield nonsense, a scripted spell -- favspell, gets a 100000 bonus to its score. That should have been enough to override Body Ethereal. The only reason I can think of is that it had some huge penalty, or simply couldn't be cast.

Did Mind Burn show up in the log at all?
Take a look with more levels of debug. -ddd gives a lot.
Reply With Quote
  #6  
Old March 20th, 2008, 06:12 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Open debug logs

you're right, mind burn wasn't cast at all, not even once.
I think the game engine categorized it as non applicable for some unknown reason. I base it on the following line:
comp_castspell: eval Mind Burn result -1

Now since the foe in this battle wasn't mindless I don't understand why but I think I'll give it a rest at that. Its enough for me to know that for some reason the engine dislikes mind burn in this situation so I'll avoid scripting it.
Reply With Quote
  #7  
Old March 20th, 2008, 06:39 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Open debug logs

Oh, obvious question? They were S2 slaves, right?

result -1 seemed to come up for spells I didn't have the paths for.
Reply With Quote
  #8  
Old March 20th, 2008, 06:47 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Open debug logs

They were part of communion of 30 or so shamans. The slaves should have been at astral 5 or something, at least according to the communion guide by Baalz, or maybe I got it all backwards
Reply With Quote
  #9  
Old March 20th, 2008, 06:59 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Open debug logs

No, only the communion masters actually get levels for casting spells of their own. Slaves get pseudo levels, that are only used for absorbing the master's fatigue.

Slaves do get the benefit of the master's caster effect spells, so having a master cast Power of the Spheres is a cheap way to boost all the slaves up one level in everything.
Reply With Quote
  #10  
Old March 20th, 2008, 07:18 PM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Re: Open debug logs

Oh, I understand. Thank you for your patience thejeff.
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 09:35 AM.


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