View Single Post
  #1  
Old 04-27-2012, 08:47 PM
von Pilsner von Pilsner is offline
Approved Member
 
Join Date: Apr 2011
Posts: 377
Talking AITweak: an Automatic AI tweaker for CloD missions

AITweak for CloD
================
Version: 0.4
By: von Pilsner

This utility will modify the AI within a CLoD mission file (*.mis) based on these suggestions. It tries its best to determine the type of plane (fighter, fighter bomber, bomber/transport) and the skill level (rookie, average, veteran, ace) and modify the skill values accordingly.

When you run it from the batch file it automatically makes a backup of the mission file(s) before making any changes (puts them in a subdirectory named 'mission_backup' [as of v0.3]) so any changes can be easily un-done. If a backup file already exists AITweak will not process that mission.

Usage: AITweak [mission.mis]

This program does not include an installer, I simply unzip it to the desktop and copy the missions I want to mod into that folder and run 'AIProcess.bat'. To uninstall simply delete the folder.

Even though this program makes it's own backups I recommend making a backup of any important or purchased missions before running 'AITweak' or 'AIProcess'.

ADVANCED STUFF (not needed to use the program)

There is an included 'aiconf.ini' file that contains the AI info, you can hand edit the values and AITweak will use your values instead of mine. This file will be auto-generated if it does not exist.

================

How it works:

First it matches a pattern to determine what type of aircraft it is dealing with then it looks for certain strings (ex.: ' 1 1 1 1 1 1 1 1' is an ace) and if it finds the string it replaces the skill based on airplane type. Skills that do not match the following patterns will not be modified:
' 0 0 0 0 0 0 0 0'
' 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3'
' 0.7 0.7 0.7 0.7 0.7 0.7 0.7 0.7'
' 1 1 1 1 1 1 1 1'
Any AI that has been hand-set to anything other than the above by the mission builder will NOT be modified, this way missions that already have custom AI will retain that custom AI!

The default planeset is the CloD planes and unknown planes will be set with fighter AI.

This has been tested on WinXP and Win7x64.

================

v0.4 -added (beta) IL2DCG mode (-i), when enabled will read mission as though it is generated from IL2DCG and enhance the individual plane AI within the flights. This mode will not make any backups! TEST AT YOUR OWN RISK! This mode is really meant to be used with 'DCEMon.exe' to autoedit IL2DCG campaigns.
-added unsafe mode (-u), when enabled the program will not make backups.
-added debug mode (-d), this will generate lots of useless output...
-included DCEMonitor for use with IL2DCG and AITweak to auto edit your campaign while you play.
v0.3 -Moved the backup files to a subdirectory.
v0.2 -Added 'aiconf.ini' file that AI can be hand edited to allow more customization (for Madfish).
-Fixed cariage returns so missions can be read by a human (thanks pupo162).
v0.1 -Initial release.

================

Get it here: AITweakv0.4b.zip
Previous Version: AITweak_v0.3.zip

If you would like to test the AI improvements before trying this utility, here are the Quick Missions with modded AI (as of v0.6 I am using AITweak to modify the AI instead of doing it by hand): http://forum.1cpublishing.eu/showthread.php?t=31193

Last edited by von Pilsner; 05-05-2012 at 08:18 PM.
Reply With Quote