Delta Force Barracks Forums

AI following WPs after a SAM explodes

FADM_Bulldog - 5-10-2005 at 04:46 AM

I am trying to get a bunch of AIs to come out of a baracks after a SAM site is blown up. I set the WPs and told them to follow the WP when SAM is dead. They just stay inside and do not move. What am I doing wrong?

Bulldog

> OldMan < - 5-10-2005 at 05:09 AM

nobody can know . post the wac-script and make sure the IDs are right

chrislew200 - 5-10-2005 at 05:13 AM

did you use groups cause they dont work in nile.

WAC

FADM_Bulldog - 5-10-2005 at 09:22 AM

Here you go. Thanks Bulldog


if never() and (ssndead(9775) and ssndead(9776)) then //Group
SSNtoWP(9995,9)
SSNtoWP(9996,9)
SSNtoWP(10000,9)
SSNtoWP(9997,9)
SSNtoWP(9998,9)
SSNtoWP(9999,9)
SSNtoWP(10006,9)
SSNtoWP(10007,9)
SSNtoWP(10009,9)
SSNtoWP(10001,9)
SSNtoWP(10002,9)
SSNtoWP(10003,9)
SSNtoWP(10005,9)
SSNtoWP(10004,9)
endif

FADM_Bulldog - 5-10-2005 at 09:27 AM

No I did not use the groups. Sorry.


Bulldog

> OldMan < - 5-10-2005 at 10:53 AM

this can't work ! id_numbers wrong.
where from you have the id_numbers ?
I did never see such numbers on AI's !! lol

Whole WAC file

FADM_Bulldog - 5-10-2005 at 11:08 PM

Heres the whole WAC. I have no idea where they come from. lol

Bulldog

// WAC file auto-generated by NILE
// DO NOT HAND EDIT THIS FILE
// Back to Baghdad days.WAC

if never() and (Past(1)) then //Pilots
SSN2SSN(9490,75023)
SSN2SSN(9491,75023)
ssnUse(9491)
ssnUse(9490)
endif

if never() and (Past(120)) then //Fence
removeSSN(140560)
endif

if never() and (Never()) then //50s 1
SSN2SSN(9779,75313)
ssnUse(9779)
endif

if never() and (Never()) then //50s 2
SSN2SSN(9839,75376)
ssnUse(9839)
endif

if never() and (Never()) then //50s 3
SSN2SSN(9842,75377)
ssnUse(9842)
endif

if never() and (Never()) then //50s 4
SSN2SSN(9849,75386)
ssnUse(9849)
endif

if never() and (Never()) then //50s 5
SSN2SSN(9963,75500)
ssnUse(9963)
endif

if never() and (Never()) then //WP1
SSNtoWP(9775,1)
endif

if never() and (Never()) then //WP2
SSNtoWP(75326,2)
endif

if never() and (Never()) then //WP3
SSNtoWP(9804,3)
endif

if never() and (Never()) then //WP4
SSNtoWP(9805,4)
endif

if never() and (Never()) then //WP5
SSNtoWP(75300,5)
endif

if never() and (Never()) then //WP6
SSNtoWP(9848,6)
endif

if never() and (Never()) then //WP7
SSNtoWP(9845,7)
endif

if never() and (Never()) then //WP8
SSNtoWP(9899,8)
endif

if never() and (Never()) then //Vehical1
SSN2SSN(9791,75326)
ssnUse(9791)
SSN2SSN(9792,75326)
ssnUse(9792)
SSN2SSN(10014,75326)
ssnUse(10014)
endif

if never() and (Never()) then //Vehical2
SSN2SSN(9829,75300)
ssnUse(9829)
SSN2SSN(9830,75300)
ssnUse(9830)
endif

if never() and (Never()) then //Vehical3
SSN2SSN(9831,75299)
ssnUse(9831)
SSN2SSN(9832,75299)
ssnUse(9832)
endif

if never() and (ssndead(140942) and ssndead(75044) and ssndead(75045) and ssndead(75035) and ssndead(75036) and ssndead(75039) and ssndead(75038) and ssndead(75040) and ssndead(75444) and ssndead(75486) and ssndead(141040) and ssndead(141039) and ssndead(141038)) then //New Event
win(1)
endif

if never() and (ssndead(9775) and ssndead(9776)) then //Group
SSNtoWP(9995,9)
SSNtoWP(9996,9)
SSNtoWP(10000,9)
SSNtoWP(9997,9)
SSNtoWP(9998,9)
SSNtoWP(9999,9)
SSNtoWP(10006,9)
SSNtoWP(10007,9)
SSNtoWP(10009,9)
SSNtoWP(10001,9)
SSNtoWP(10002,9)
SSNtoWP(10003,9)
SSNtoWP(10005,9)
SSNtoWP(10004,9)
endif


NO SAM

FADM_Bulldog - 5-11-2005 at 12:02 AM

I changed it to make it so when gunners are killed the reinforcements come in from the baracks. Sorry. Still doesn't work.


Bulldog

> OldMan < - 5-11-2005 at 03:35 AM

sorry but this wac file has never created Nile ! many wrong ID's. this can't work
I don't know where from you have this file. but is not a file from your work in Nile.
all AI ID's wrong. the other I can't know maybe also.
and what is this ??
if never() and (Never())
never created Nile such things !!
or it is a bug. but I did never notice this.

chrislew200 - 5-11-2005 at 03:51 AM

yes i have to agree with oldma on this one the ai id numbers cannot be used in nile. For a start 10000 is the player in single player games.

If you want to redirect ai to waypoint lists in nile when something gets destroyed do this:

if never and not ssnalive(#####) then
SSNtoWP(***,?)
endif

the ##### is the number assigned to the item destroyed.

the *** is the number assigned to the ai you want to redirect

the ? is the number of the waypoint list.

chrislew200

> OldMan < - 5-12-2005 at 09:23 AM

sorry, maybe this is a bug from Nile. maybe it create really sometime such AI ID_numbers. I still now heard this about somebody else. this is a bad bug, because you get trouble with different things and you can't notice it. much IDs are reserved. and if go the IDs together you have a big problem.
I had a map from a people, where the PSP works no more, there also wrong AI IDs in.

FADM_Bulldog - 5-12-2005 at 11:28 PM

Thanks Old Man. Now I won't go crazy trying to figure out what I was doing wrong. lol Hope it can be fixed. :)

Bulldog

wubbaldo - 5-15-2005 at 03:34 AM

I'v seen this type of corruption happen when two niles's are open. The SSN's all get jumbled up.

Also if in NILE and you open another WAC file from another map then that can corrupt the Wac in your main file as well.
It has to do with the buffer, that is used by Nile to hold the SSN's.

Also, if you move your MAP into another editor then it can renumber all your SSN's. It is called a clean up process, although it cleans it up so good you cannot even fix it, unless you have a lot of time to resinc the players and the events...Yikes...

> OldMan < - 5-15-2005 at 04:46 AM

Nile has much more problems with the buffer. I think the creator did wrong with the pointer in the Nile script. Nile mixup some things.