Jump to content


Photo

Just a little help fiddling with the strategy.ai files.


5 replies to this topic

#1 Markoso

Markoso
  • Members
  • 84 posts

Posted 09 January 2007 - 10:57 AM

Was looking at the buildbasestrategy and strategy.ai files, was trying to make a few tweaks to the currently pre-implemented strategies. Specifically, I'm monkeying around with Chaos, trying to disallow\reduce it's "demand" (I won a game I shouldn't have, and I blame the AI wasting resources on turrets, so I plan to nix them and fiddle with the raptor buildstrat), and also, to force a specific strategy to run, whether by modifying it's ibuildprogram value or whatever. It's been forever since I've done anything like this, so forgive my stupidity if it's something fairly obvious.

#2 Markoso

Markoso
  • Members
  • 84 posts

Posted 10 January 2007 - 12:49 PM

Double post, oh well. In any case, I played with it some more today, been playing with the iflese statement in chaosbuldbasestrategy.ai and some other stuff, and while I can force a specific strategy to run (only tested marine rush), I still can't how to force the AI to not build things\adjust building\unit demand in the 3-4 strategies they have(the docs are a little vague in this regard). I assume something has to be done in unitstats for tweaking the various strategies, but for the moment I've been sticking to chaosstrategy.ai, and for the life of me I can't disallow the building of turrents, even after going through and deleting all of their entries in there (they continue to screw the AI over, I have a few reps I've watched where I trounce hard AI for wasting the resources).

Just figured I'd post where I've gotten so far for the eventual reply.

Edited by Markoso, 10 January 2007 - 12:53 PM.


#3 LarkinVB

LarkinVB

    title available

  • Members
  • 1,488 posts

Posted 10 January 2007 - 02:01 PM

Without looking at the code I'd say you have to remove all entries of chaos_turret_bolter from all BuildPrograms in every chaosstrategyinfo_XXX.ai file.

#4 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,166 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 10 January 2007 - 02:19 PM

Yep.. Larkin's bang on! :p Just remove or "comment out" all incidences of the chaos turret and the AI will never build em.
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!

#5 Markoso

Markoso
  • Members
  • 84 posts

Posted 10 January 2007 - 10:36 PM

I;ll go through again and make sure I didn't leave any. Dunno if mine is the bleeding edge version, as I only have one chaosstrategy.ai file, instead of one for each difficulty level.

Edit: Also, while I'm at it, what about adjusting the AI's prioritizing of units in the different strategies it has. Not entirely sure where to dig for that, any general pointer will do before I start digging aimlessly.

Edited by Markoso, 11 January 2007 - 02:55 AM.


#6 LarkinVB

LarkinVB

    title available

  • Members
  • 1,488 posts

Posted 11 January 2007 - 08:11 AM

I;ll go through again and make sure I didn't leave any. Dunno if mine is the bleeding edge version, as I only have one chaosstrategy.ai file, instead of one for each difficulty level.

Edit: Also, while I'm at it, what about adjusting the AI's prioritizing of units in the different strategies it has. Not entirely sure where to dig for that, any general pointer will do before I start digging aimlessly.


chaosstrategyinfo.ai is the name of the file. Seems the different files for different levels are gone.

AI is choosing units according to some unkown formula which seems to take into account values from chaosunitstats.ai. At least weapon effectiveness vs dominant enemy armour is used. rating= seems also to be a factor in the formula.



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users