HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Request for Service

11-17-2003, 06:25 PM#1
JTG
I'm looking for instructions on how to create an AI similar to AMAI for my custom races, I have tried multiple ways of ceration, but have come to no avail.:bangH:

If anyone has the knowledge of the AI/Jass Gods, please e-mail me at [email protected]

Tell me what you need to run/test/create and I'll send you everything I've got.
11-17-2003, 07:34 PM#2
AIAndy
Are your custom races rather similar to the standard races (only other tech trees and other units and buildings) or do you have lots of special stuff ?
11-21-2003, 05:52 PM#3
JTG
Reply didn't show up...

They are the special races of Blizzard make (Blood Elves, Naga, Draenei, Forsaken, Corrupt Elves, Demons) with all the gaps filled in according to the Tier system. The differences are like the differences between Humans, Orcs, Night Elves, and Undead. I based my decisions for filling the techtrees on how I think Blizzard would have completed them. I have a lot of work to go still, balancing, finishing unit work, creating techs and (need to request a person) modeling. With some tweaks, voice actors, etc. I will be ready to istitute my MOD Twisted Years (starts at Frozen Throne but certain events happen differently to create a new timeline replacing Frozen Throne)
11-21-2003, 06:54 PM#4
JTG
Techtree:

Blood Elves
based race - human
based group - Blood Elves


Arcane School (model: Dalaran Building tall skinny)
Arcane Institution (model: Dalaran Violet Citadel)
Arcane Academy (model: Arcane Observatory)
| Worker (model: standard)
Barracks (Warriors) (model: standard)
| Swordsman (model: standard)
| Archer (model: custom skin)
| Ballista (model: RoC version)
Arcane Observatory (Ability Warriors) (model: Dalaran Building short)
| Lieutenant (model: standard)
| Siege Ram (model: cargo transport)
| (need Unit)
| (need Unit)
Arcane Sanctum (Spell) (model: standard)
| Sorceress (model: TFT)
| Priest (model: TFT)
| Spell Breaker (model: standard)
Dragonhawk Aviary (Ultimate) (model: Gryphon Aviary)
| Dragonhawk Rider (model: TFT)
|................../ Earth-Fury Tower \
Guard Tower ............................. Dalaran Guard Tower
|..................\ Sky-Fury Tower /
Farm (model: standard)
Wind Mill (lumber)
Magi Forge (research) (model: Blacksmith)

Dark Elves
based race - undead
based group - The Forsaken


Necrosis
Halls of the Desperate
Forsaken Citadel
| Dark Elf
Tomb (Warriors)
| Contorted Elf
| Voidwalker
| Dalaran Reject
Death Factory (Ability Warriors)
| Vile Tormentor
| Lightning Revenant
| Sludge Monstrosity
| Infernal Machine
Damnatorium (Spell)
| Maiden of Pain
| Wraith
| Voidwalker Shaman
Bonehawk Yard (Ultimate)
| Bonehawk Rider
Damned Tower (Defense, food)
| Advanced Damned Tower
Curse Tower (Defense, food)
| Advanced Curse Tower
Burial Grounds (lumber, research)

Demons
based race - undead
based group - Burning Legion from Outland


Dimensional Gate
Hell Gate
Nether Gate
| Fel Peon
Demon Gate (Warriors)
| Fel Grunt
| Fel Raider
| Fel Beast
| Infernal Contraption
Fountain of Blood (Ability Warriors)
| Overlord
| Fel Kodo Beast
| Fel Warchief
| Nether Drake
Skull Brazier (Spell)
| Fel Warlock
| Diabolist
| Eredar Warlock
Crackling Portal (Ultimate)
| Doom Guard
Skull Torch (Defense)
Burning Pyre (lumber, research)
Fel Burrow (food)

Naga
based race - Naga
based group - Naga


Temple of Tides
Temple of Waves
Temple of Storms
| Mur'Gul Slave
Spawning Grounds (Warriors)
| Snap Dragon
| Dragon Turtle
| Hydra
Mur'Gul Shack (Ability Warriors)
| Sea Giant Behemoth
| Myrmidon
| Reaver
| Couatl
Shrine of Azshara (Spell)
| Siren
| Ancient Hydra
| Shadowcaster
Royal Training Camp (Ultimate)
| Royal Guard
Tidal Guardian (Defense)
Lumber Storage House (lumber, research)
Coral Bed (food)

Corrupt Elves
based race - Night Elves
based group - Satyrs


Tree of Corruption
Tree of Defilement
Tree of Distortion
| Corrupt Wisp
Corrupt Ancient of War (Warriors)
| Satyr
| Dark Troll
| Corrupt Treant
Dark Troll Den (Ability Warriors)
| Soulstealer
| Webspinner
| Sapper
| Nether Drake Rider
Defiled Ancient of Lore (Spell)
| Shadowdancer
| High Priest
| Seer
Nerubian Ziggurat (Ultimate)
| Spider Lord
Corrupt Ancient Protector (Defense)
Decrepid Hunter's Hall (research)
Defiled Moonwell (food)

Draenei
based race - Orcs
based group - Draenei


Draenei Hall
Great Hall
Eternal Hall
| Laborer
Barracks (Warriors)
| Guardian
| Taskmaster
| Vindicator
| Demolisher
Beastiary (Ability Warriors)
| Stalker
| Tunneler
| Salamander
Seer'd Den (Spell)
| Harbringer
| Geomancer
| Seer
Darkslayer's Hut (Ultimate)
| Darkslayer
Boulder Tower (Defense)
| Advanced Boulder Tower
War Mill (research)
Draenei Hut (food)
11-22-2003, 12:44 AM#5
AIAndy
Well, you could base your AI on the AMAI common.ai . The work is mainly changing the info in the arrays. At the beginning of the AMAI common.ai you will find large lists of such information about the unit and building types. Mainly the 4-letter-code and what they need to be built (the techtree).
After entering that info new strategies have to be written which is pretty simple as only the units you want have to be ordered and all that is needed for them is built automatically.
11-26-2003, 06:19 PM#6
JTG
I beleive i have done that but I could have simply gave the wrong refernence somewhere. I got the merged version of AMAI common.ai with Blizzard common.ai, I'll see if that helps things smooth over.
I also looked at the campaign AI's for Undeadx08 It has one of them with a reference to custom units made into a constant integer. (For the main Naga computer player.) How does the campaign referencing work, that may be easier to work with if I can make the correct assumptions.
11-26-2003, 08:07 PM#7
AIAndy
Well, if you want to have a look at AMAI do not look at the merged one. I merged it using a simple automatic merging tool I wrote that prefixes or postfixes all names. That way it can then be copied into the same file. For Warcraft that does not make a difference but for humans to read that is just ugly. And if you base an AI on it you'd have to use those changed names instead. Also that does not really give you much advantages as they use different systems.

Make sure that you check your finished AI scripts with the JASS syntax checker because War3 just ignores scripts that have syntax errors in them.
For AMAI to work it needs to have entered all the units, buildings and upgrades with their respective needs (and some other info about them) best replacing the original races (in the AMAI common.ai). There might also be needed some other adjustments. Once you have entered all that info you can send me the common.ai if you like and I'll look over it. Now that might sound like a lot to do but in return you get all the advanced power of AMAI.
The actual AI scripts for the races with different strategies are then rather easy to do. The actual core of each strategy are the build orders for each tier. Only the units and upgrades that you want to have need to be entered. All the stuff that needs to be built for that is computed automatically (that is why this info needs to be entered in the common.ai).
11-26-2003, 08:10 PM#8
JTG
Does the Syntax Checker move through multiple files or what?
11-26-2003, 08:51 PM#9
AIAndy
First check your changed common.ai with library setting. Then copy that common.ai to the sub directory of the script checker and overwrite the common.ai there (you can make a copy of that one first although it is just the standard common.ai). Then you can check all the AI scripts based on that common.ai .
11-26-2003, 08:53 PM#10
JTG
oh, ok. I'll give that a whirl. I'm looking a t it right now and am having to give new integers to the constants. Do you think this will prove to be a major problem (i'm doing te whole list).
11-26-2003, 09:10 PM#11
AIAndy
Those integers are the internal ids of the objects (unit/building type, upgrade type, ...) in AMAI. Best use them the same way they are assigned in the standard races. Most important rule is that each id most not be used twice.
11-26-2003, 09:13 PM#12
JTG
Does that work for both the number and/or the four letter code.
I'm just going down the list of numbers and going 1-(however many there are).
11-26-2003, 09:20 PM#13
AIAndy
The 4-letter-codes need to be the 4-letter-codes of your units in War3. You can get them from the object editor in raw data mode.
11-26-2003, 09:23 PM#14
JTG
Wasn't clear

I assume the number cannot be used twice.
Can the unit-codes be used more than once?
BLOOD_MAGE = 4
oBLOOD_MAGE = 'Hblm'
BBLOOD_MAGE = 330
oBBLOOD_MAGE = 'Hblm'

do you have a chat ID compatible with Yahoo! Messenger?
11-26-2003, 09:29 PM#15
AIAndy
Yes, 4-letter-codes can be used as often as you like. And I currently only have ICQ.