Delta Force Barracks Forums

AI Names using WAC?

UCMJ - 5-17-2005 at 02:04 AM

I have tried everyway I can think of and I cant get this to work.
I found something in the mission bin files in the singelplay missions.

[AI_NAMES] ...

if never() then
ssnname(346, AI_Charlie1)
ssnname(345, AI_Charlie2)
ssnname(343, AI_Alpha1)
ssnname(344, AI_Alpha2)


But when I use the DFX MED and make the AI into blue team, they will have autogenerated names, like Snoopy, Smelly etc, etc.

Is there a way we can do this in our own SP or coop missions using the DFX MED?

Thanks in advance!!!

7>Snake - 5-17-2005 at 02:05 PM

I would suspect that if you found it in a bin file then you would need to make a bin file and insert the section you have displayed, into the bin file using the names you want displayed.

Eagle_Eye - 5-17-2005 at 02:24 PM

I tried using the bin file for this during my testing..couldn't get it to work either..

I'm still testing..

UCMJ - 5-23-2005 at 01:04 PM

Quote:
Originally posted by Eagle_Eye
I tried using the bin file for this during my testing..couldn't get it to work either..

I'm still testing..


Eagle I found this in a WAC File. I to have tried BIN and WAC but still a NO-GO.

Legionnaire=M= - 6-8-2005 at 07:24 PM

This is .bin text lines for AI people name.
I havn't tested completely.
AI_ALPHA1 and 2, AI_CHARLIE1 and 2, BLANK_NAME, BLACKWIDOW, these 6 values worked when I tested. (Check my SP map if you have the time.)
I don't know about any more values.

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

'[AINAMES]'
AI_ALPHA1 = "Alpha 1";
AI_ALPHA2 = "Alpha 2";
AI_CHARLIE1 = "Charlie 1";
AI_CHARLIE2 = "Charlie 2";
BLANK_NAME = " ";
BLACKWIDOW = "Black Widow";


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

Add texts above to your mission .bin.
You can edit names as you like of course.
And you prepare .wac script.
For exp. ssnname(ssn, BLANK_NAME), ssnname(ssn, AI_ALPHA1), etc, etc.


sorry, poor english.

So it does work?

UCMJ - 6-8-2005 at 09:38 PM

L,

So you say this will work? Do we have to use the same names or can we change them? Also you say check your SP Map does DFB have the MIS so we can look at it?

Legionnaire=M= - 6-8-2005 at 10:50 PM

Not .mis.
Need .bin & .wac to change AI name. Check .bin & .wac, please.

You can change the name as you like.

An example,
You want to change a A.I.[ssn100] name to "Bravo 2".
You edit "AINAMES" in your .bin,
AI_ALPHA1 = "Bravo 2";
Next, you make a .wac file.
if never() then
ssnname(100, AI_ALPHA1)
endif
Ssn100, his name will be "Bravo 2".

And multiple AI can use same name of course.
For example,
if never() then
ssnname(100, AI_ALPHA1)
ssnname(101, AI_ALPHA1)
ssnname(102, AI_ALPHA1)
ssnname(103, AI_ALPHA1)
ssnname(104, AI_ALPHA1)
endif
These 5 AIs, their name will be "Bravo 2".


Editing your .bin and .wac is necessary to change the Blue Team AI name.

Sorry, my poor explaining.


I tested again.
I could change 255 AIs name.
Check this sample and see .bin and .wac, please.
http://www.h4.dion.ne.jp/~legi/mondemanno/DFX_AI_name.zip

Jonathan - 6-9-2005 at 04:18 PM

Legionnaire, thanks for the info and mission file. I got my single player mission to work with my new teammate names using your method.

Except I ran into one speed bump. I had SSN 80, 81, and 906 as teammates. For some reason teammate 906 kept showing up as Blank for a name. Blank as in nothing above his helmet.

The solution for me was to delete 80, 81 and 906. And to insert 3 new teammates that were all in numerical order for SSN. Example: SSN 911, 912 and 913 worked. They all now have my new team names.

I'd be interested to hear back from any others that have tried naming the A/I.

again thx
Jonathan

UCMJ - 6-10-2005 at 12:06 AM

I found this to be the same for me! I think that is what his post is showing that they are in numerical order. Jonathan is your mission(s) done? I want to play them. :o