Description of AI files

For collaboration on developing the mod capabilities of VS; request new features, report bugs, or suggest improvements

Moderator: Mod Contributor

Description of AI files

Postby Sindwiller » Sun Aug 10, 2008 3:38 pm

Hello there! I wasn't sure whether I should post this question here or in the "General Modding" subsection. Well, anyway, my question is about the scripts inside the ai/ folder. Their function is clear, but their contents isn't very self-explanatory and that's why I'm asking if somebody could, you know, briefly explain how they work, for the sake of experimenting and in case somebody would like to hack in different game mechanics along with a changed AI. They do look pretty weird to the normal eye (and I thought X's scripting was weird :roll: ).

Cheers!
User avatar
Sindwiller
Merchant
Merchant
 
Posts: 32
Topics: 3
Joined: Sun Aug 10, 2008 3:31 pm
Location: Zürich, Switzerland

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Postby klauss » Sun Aug 10, 2008 5:49 pm

The files are state machine descriptions. Each node there is a transition event that tells the AI how to react to certain situations. Like... if you have an enemy closer than 3000 meters, fire all weapons, when it's closer than 200 meters, turn away, etc, etc...

The idea is easy to grasp I believe, but the organization of those files as you said isn't, and I don't really understand them.

So... until someone else gives you more useful information, I just wanted to describe the intended meaning of the files in case it helps you figure them out.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Postby loki1950 » Sun Aug 10, 2008 5:50 pm

Welcome Sindwiller not sure how they work either :? we have been wanting to fiddle with them for a while now and i gather that only one or two people really understand them which is not a good thing one of the devs may be by and cast some light on the subject and if not in a reasonable time frame i can poke one or two :wink: but i think that the two csv files define base behaviour and the scripts call the specific comand in commond.cpp but how it all is tied together is where most of the confusion lies i believe.
Edit klauss you beat me too this one :lol: :wink: and your explanation makes some senses

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5705
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Postby Sindwiller » Mon Aug 11, 2008 3:40 am

Thanks guys, you're being really helpful! :D I will take another look on them and try to understand them a bit better. And there is still hope that an expert could enlighten us at last ;)
User avatar
Sindwiller
Merchant
Merchant
 
Posts: 32
Topics: 3
Joined: Sun Aug 10, 2008 3:31 pm
Location: Zürich, Switzerland


Return to Modding Engine Room

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron