Project Perfect Mod


Site Menu

News & Forums

Forum

Site News

All News

Submit News


Info & Services

About PPM

PPM FAQ

Project Hosting

Community Features

Privacy Policy

Report a Bug

Become Affiliates

Credits


PPM: Final Dawn


C&C Editing Tools


Game Expansion Projects

HyperPatch

Download HyperPatch 0.2

Forum


Extended Tiberian Sun

Site

Download ETS 3.40

Forum


TS Projects


RA2 Projects

D-Day

Site

ModDB Profile

Download Public Beta 3.6

Forums at PPM

Forums at Revora


Reign Of Steel

ModDB Profile

Download Reign Of Steel

Forum


Star Strike

Site

Download 0.6x TB2

Forum


Beowulf's Rules

Site And Download

ModDB Profile (RA2)

ModDB Profile (YR)

Forum


C&C Rewire

ModDB Profile

Download

Forum


CnC: Final War

Download Mod

Forum


EASB Hour

ModDB Profile

Download EASB Hour Alpha

Forum


Zombie Mod

Site

Download 0.2 Public Alpha


VenomRage

Forum


Cold War

Forum


Red Alert 1.5

About

Forum


Red Alert X

Forum


YR: The Generals

Forum


Echilon: The War for Terra Nova

Forum


Eternal Armageddon

Forum


Colony Wars

Download Public Beta 1

Forum


Tiberian Dawn: Renegade

Forum


Generals Projects

Invasion Confirmed

Site

Images

ModDB Profile

Download Mod

Forum


Frontline Chaos

ModDB Profile

Forum


Tiberium Wars Projects

Tiberium Essence

Images

ModDB Profile

Download Mod

Forum


Crossfire

ModDB Profile

Download Demo

Forum


Red Alert 3 Projects

The War Factory

ModDB Profile

Forum


Other Projects

C&C Meets Star Wars

Site


Wintermaul Wars X

Download 0.84X

Download 0.85X Beta

Forum


Tiberian Sun


Red Alert 2


Generals

Forums

Editing

Mapping

Tutorials


Map Archive

View All Maps

Submit A Map


Zero Hour Screenshots

USA Campaign

China Campaign

GLA Campaign: Part 1

GLA Campaign: Part 2

Miscelanous Info


Starting Guides

Newbie Guide in Modding

Working with .BIG Files


Graphics Tutorials

Adding new Cameos

Modelling Tutorial

Working with RenX

Finding Renegade Models


INI Editing Tutorials

Adding a New Unit

Adding Starting Units

Adding Playable Factions

Adding Buttons

Upgrades #1

Upgrades #2

Unlockable Units w/ Gen. Points

Nanocores and MCVs

Teleporting & Jumping Units

Editing the AI


Misc. Tutorials

Playing Custom Maps

Adding Ingame Text


Download

Zero Hour Ini Files


Tiberium Wars


Red Alert 3


Tiberian Twilight

News Tracker
Select a topic:  


Headlines


May 22, 2013 16:14 Banshee
Cartographer's Call Competition III resu...
May 22, 2013 06:13 Banshee
Miicrotransactions and Modding
May 21, 2013 15:52 Banshee
Cartographer's Call Competition III stat...
May 20, 2013 04:34 Banshee
New Tiberian Sun: Reborn trailer.
May 17, 2013 01:19 Banshee
Today's blockbuster: C&C Legos: Seas...
May 14, 2013 23:54 Banshee
PPM Hosted Mod News (covering early may)
May 14, 2013 17:43 Banshee
Reminder: Cartographer's Call Competitio...
May 14, 2013 17:36 Banshee
OpenRA Release 20130514 is ready!

Featured Mod

Featured Content


Team Types (ai.ini)
August 09, 2003 - 21:47


Quote:
Tutorial Name: Adding New Team Types
Made by: Banshee
Difficulty: Moderate

Extra Info:

This tutorial is adapted from After Glow Website section
about ai.ini (made by Jim Morley) and from Deezire Ini Editing Tutorial
(made by Deezire) and also based on some experiences I made. I cannot guarantee the true veracity of the information of this tutorial. This is an update of the original tutorial I made for Intel Website (from PPM) that was hosted by Entertainment Explosion. Since EE is gone, it has been posted here. If you wanna post that in your site, please email bansheeppm@hotmail.com asking authorization.



:: Adding New Team Types ::



Team Types is the section when you mix scripts with task forces and set some
extra properties to AI understands the way its troops will be used.

First, you need to declare them:

[TeamTypes]
XX=NAME

XX
= Unused number of the list
NAME = Internal name of the team. This name
might be used in AI Trigger Types to make it use your Team Types.

Then, you set the properties of your new team type:

Aggressive= makes AI troops to execute their
instructions blindly. They will not hunt for enemies or attack enemies that
are near, but they will retaliate if attacked.

Annoyance= is set to "no" in every entry, which
means that the default may be "yes". Annoyance makes AI team attack for a
short while then retreat and attack again. Good for air strikes. AI will
also persist with this team by replacing the destroyed members of the team
and sending them again to the enemy base.

AreTeamMembersRecruitable= controls if another
team can steal units away when the current team acomplish its tasks
(instructions from script types). This appears to to "yes" for every entry,
so the default must be "no".

Autocreate is set to "no" in every entry, which
means that the default may be "yes". This may turn the team into one that is
created based on time instead of triggers. The time is controlled by the
setting TeamDelays= in your rules.ini.

AvoidThreats= control weither or not the unit
stops to return fire with every unit along it's trip. Only certain attacks
have this set to "yes". In the ones who have it set as no, AI engages any
enemy that is in its sight range or guard range.

Droppod= says if these team members arrive in a
Drop Pod. None of the entries has this set to "yes". This is probably only
used in single player maps.

Full= is set to "no" for every entry. I suspect
that this is used for things like Weed Eaters arriving with full loads or
transports. It`s recommended to only use it on single player maps.

Group= controls the way that AI groups its units
in the current task forces. It is set to "-1" for nearly every entry except
a number of GDI "pools", which are "-40094". It may override the settings
Group= in the Task Forces.

GuardSlower= is set to "no" for every entry, so
the default must be "yes". It increases the value of BaseDefenseDelay= (in
the rules.ini) from the specific team. The current team will respond slower
to attacks in its own base.

House= controls which side gets this team.

IonImmune= probably means that these team
members ignore the effects of Ion Stroms, because they get immune to them
(if it`s set to "yes"). Every entry has this set to "no", so the default may
be "yes".

IsBaseDefense= determines if this team hangs
around to defend the base. It will also protect the units that has
ToProtect=yes. The number of teams with IsBaseDefense=yes line is limited to
the settings defined in MinimumAIDefensiveTeams= and
MaximumAIDefensiveTeams= statements in rules.ini. This is set to "no" except
for "pool" teams.

Loadable= should be set to yes if one (or more)
of the members of the team need to reload its ammo=. All entrys have this
set to "no".

LooseRecruit= is set to "no" for every entry. It
determines if the team is dissolved after completing its tasks defined on
the script type. Dissolved units are free to be recruited by other
teams.

Max= is the number of times that AI will
autocreate the team. The values range from "1" to "3", but you can put more
than it. If your team type doesn`t have autocreate=yes, set it to 1.

Name= is a quick description of the team, such
as "H_GDI APC/commando attack". Useful for
finding the right one to play with.

OnlyTargetHouseEnemy= stops the teams from
attacking neutrals. Every entry in ai.ini has this set to "yes".

OnTransOnly= says that this team will only
execute its associated script type if it has any instruction related to load
and unload transports. If this transport task isn`t completed successfully,
the team is dissolved. No entries in AI.INI have this set to "yes".

Prebuild= determines if an inactive copy of this
team type should be built before AI needs to use it. It`s usually used in
high priority team types, so AI has a backup of the units if they are killed
(usefull to expensive stuff that takes time to be built). Every entry in
AI.INI has this set to "no".

Priority= is the build priority for this team.
The values used by Westwood in Tiberian Sun are "4", "8" and "12". But you
can use any value. The lower the number, the greater the probability of AI
build this team.

Recruiter= probably means that this team can
call up loose units to form it rather than build new ones. Every entry has
this set to "no".

Reinforce= is set to "no" in every entry. It`s
used on single player maps only and determines if this team type forms
reinforcements.

Script= specifies which script type of the
script types list that this team will use. Remember that script types are
the actions that the team will do.

Suicide= tells the units of the current tean to
ignore any damage and keep on going. The team will not retaliate or scan for
any enemies. The Sight= and GuardRange= is completely ignored by AI. Most
entries have this set to "yes". Use this for air strikes, but avoid using it
on land ones...

TaskForce= specifies which task force from the
task forces list the team will use. Remember that Task Forces are the units
that make up this team.

TechLevel= is the lowest tech level that this
team is available at. This only affects the teams with autocreate=yes. Note
that this overrides the tech levels in Rules.ini. All of the entrys in
ai.ini have this set to "0".

TransportsReturnOnUnload= tells the transport
unit (normally some kind of APC) to return to base after unloading the rest
of the team and dissolve the team. Use this to unnarmed transports.

VeteranLevel= is set to "1" for all of these
entries. It controls the Vetran status, and thus could be either a "2" or
"3".

Whiner= is set to "yes" for "pool" teams and
"no" for those with active jobs. It should only be used only by 'pool'
TeamTypes to determine if destroyed members of the associated TaskForce are
automatically replaced by the AI. This is because 'pool' TeamTypes are
normally assigned to base defense missions or generic missions such as
guarding, hunting or scouting and their members are always made available
for recruitment into further teams (a mechanism which ensures that the AI
doesn't always have to produce every team from scratch since it will have a
pool of units from which to assemble future teams).

And here is an example:

[0B7D67E0-G]
Name=H_Nod banshee pool
VeteranLevel=1
Loadable=no
Full=no
Annoyance=no
GuardSlower=no
House=Nod
Recruiter=no
Autocreate=no
Prebuild=no
Reinforce=no
Droppod=no
Whiner=yes
LooseRecruit=no
Aggressive=yes
Suicide=no
Priority=4
Max=1
TechLevel=0
Group=-1
OnTransOnly=no
AvoidThreats=no
IonImmune=no
TransportsReturnOnUnload=no
AreTeamMembersRecruitable=yes
IsBaseDefense=yes
OnlyTargetHouseEnemy=yes
Script=07E686F0-G
TaskForce=0860DE90-G





Related Tutorials:

- Task Forces (For TS and RA2)
- Script Types (TS Only)
- AI Trigger Types (TS Only)
- AI Mini Guide (RA2 Only, but it shows a global use of all parts of ai.ini together which is also interesting for TS modders)

Posted by Banshee
Comment (1)



Project Perfect Mod Webmasters: Banshee & Sk8erkid

© Since 2000 AD Project Perfect Mod Group. All rights reserved.

Powered by phpBB © phpBB Group

"Oibles!" is a random trademark from Project Perfect Mod and Kane.
"He who loves the game, mods the game. He who mods the game, lives the game" is also a random trademark from Project Perfect Mod.
Website design by Muldrake

Login

Welcome guest.

Username:

Password:

auto login

I forgot my password

Register


Current Events

Cartographer's Call III

Contest Rules


Support Us
Donate to keep PPM online!

eXTReMe Tracker


Search

 

Advanced Search


PPM Network

Main Sites

Project Perfect Mod

PPM Mobile Site

PPM Forums

PPM Web SVN

PPM BugTracker


Resource Sites

EVA-251 Modding

CnC Relived

Zomba Production

MadHQ GFX Dump

MadHQ's Map Shack

Dead Dragon Mods (Archive)


Hosted Mod Sites

EVA-251 Modding

Twisted Insurrection

C&C Meets Star Wars

Novus Ordo

Invasion Confirmed

The Dawn Of The Tiberium Age


Affiliates


Community Links


Official C&C Links


Community

CNC Top 101


   

Community Rotator


Hosted by

Revora Creative Network