NPC to PC back to NPC with WP's

Mapping & modding Fallout Tactics and reviewing maps thereof.
Post Reply
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

NPC to PC back to NPC with WP's

Post by Max-Violence »

OK, I've been trying since DD3 to get squad members, who were NPCs at one point during the map, BACK to an NPC and make 'em walk a waypointed path.

I've tried everything I can think of to make it work, and it should, but it just won't. I can get normal NPCs to start stationary/WP'd then change to WP's or a different set of WP's, but I just dunno why a PC that goes back to an NPC can't use waypoints!

If anyone can help me out, I'd be most appreciative...
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.

maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Hmmm...

Post by OnTheBounce »

I don't see why it would present a problem, unless we're up against some sort of funky bug in the AI. (Sort of like the issue of not being able to set the Sentry Mode for NPCs that join the player's squad until you've Quick Saved.)

All you should have to do is to have the NPC change to Player Index 1, then back to some other Player Index, and then set up a trigger to change the AI for that Player Index to Waypoints or Random Waypoints.

Are you simply changing the NPCs team to an Index that has its AI already set to Waypoints? If so, you might try inserting a trigger to set the Player Index to Waypoints from a previous setting of Stationary.

I hope this helps,

OTB
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

Re: Hmmm...

Post by Max-Violence »

Here's exactly what I do:

Set up a player index - lets say PI 2 is Billy-NPC1

Controller: Stationary

Set up another PI - PI 3 is Billy-NPC2

Controller: Waypoints

Move target Tag: Billy-NPC2_WP

Trigger:

C:

Whatever, blah blah blah blaaaaaaaaaaahhhhhhhhh etc. etc etc.

A:

Change unit Billy's player index to Human

Then, later on:

C:

Wizzle wuzzle?

A:

Change uint Billy's player index to Billy-NPC2

That should be enough, right? Well, I've also tried (IIRC) putting in a Set Player Move state - Waypoint action as well, still don't work.

And yes, I'm sure I set up the waypoints themselves properly :P (thanks to the miracle of Ctrl+C and Ctrl+V)

Maybe it is a bug in the game... won't be the first time :)

Oh well... there's another thing that can be improved for FOT2, right? ...Right?
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.

maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Post by OnTheBounce »

Yes, it should work that way. I can only say to try what I suggested, namely to set that second PI to Waypoints after the NPC has changed from Human to Computer control and make sure to make use of Blocking.

If that doesn't work...I suppose you might try a clone work-around...

OTB
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

Post by Max-Violence »

With or without Blocking, it don't work.

Clone work-around? Oh, joy...

Two possible problems with that:

1) Making it look somewhat realistic, or

2) Making it look at least remotely realistic.

All of this working around bugs makes me glad I'm taking programming classes :)

Although a simple add/subtract/multiply/divide calclulator isn't quite a computer game, it's a start! :)
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.

maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
User avatar
Section8
I Make Games!
I Make Games!
Posts: 286
Joined: Thu Apr 18, 2002 1:45 pm
Location: Apartment 223
Contact:

Post by Section8 »

It's entirely possible that there is a bug in the code that affects reinitialising of the AI when the entity changes from human to computer control, I might have a play around and see what I can discover.
--
Only a real artist knows the actual anatomy of the terrible, or the physiology of fear - the exact sort of lines and proportions that connect up with latent instincts or heriditary memories of fright, and the proper colour contrasts and lighting effects to stir the dormant sense of strangeness.
Flamescreen
Vault Hero
Vault Hero
Posts: 1017
Joined: Thu Apr 18, 2002 5:30 pm
Location: Stone of Light Land
Contact:

Post by Flamescreen »

Wow, we're having a MicroForte personel member visitor!
Last edited by Flamescreen on Tue Apr 23, 2002 8:12 pm, edited 1 time in total.
User avatar
Jimmyjay86
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2102
Joined: Thu Apr 18, 2002 4:02 am
Location: Wisconsin
Contact:

Post by Jimmyjay86 »

MV said:
Wizzle wuzzle?
Aha! There's your problem...

Do the clone, I don't think it looks unrealistic. Has anyone tried to open up Tactics with Hex Workshop to see if there is an way to make changes to any of these sticking points we are running across?
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Post by OnTheBounce »

Max-Violence wrote: Two possible problems with that:

1) Making it look somewhat realistic, or

2) Making it look at least remotely realistic.
Yes, I thought about it after I posted and you'll run into the problem of having your NPC at one point, and then having the clone activated at another. That would look like shite and probably confuse some people. The only thing I can think of is to make the zone that they have to be delivered to very small, perhaps a bottleneck in a hallway or something.

Section 8: If you can help us out here...well, I'll volunteer Max to be the bearer of your children. :P

OTB
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

Post by Max-Violence »

OnTheBounce wrote:I'll volunteer Max to be the bearer of your children
Uh... did I miss something?

But yea, if you can help us out here... I'll volunteer JJ86 to be the bearer of OTB's children.

Er something...
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.

maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
User avatar
Section8
I Make Games!
I Make Games!
Posts: 286
Joined: Thu Apr 18, 2002 1:45 pm
Location: Apartment 223
Contact:

Post by Section8 »

Wow, we're having a MicroForte personel member visitor!
I've been supposed to do this for ages (with a dormant hosted site on the old gamespy server :cry:) but I've always been too busy, and spending too much time of the vault13 forums (where there's basically nothing going on in the mapping forums)

As far as solutions, I tried AI -> Human -> AI and couldn't persuade it to do anything. Cloning is ugly, and the best workaround I can think of (without digging into deeply into even uglier solutions) is to have the NPC leave "between maps," so to speak, and spawn the clone at the start of the next map, and possibly force some speech, which avoids any positional problems for the clone, but may require some design overhaul if the map separation doesn't help your original idea. Plus there's always going to be issues with the inventory of the NPC (which could be done with the biggest, dirtiest workaround you've ever seen :P)
--
Only a real artist knows the actual anatomy of the terrible, or the physiology of fear - the exact sort of lines and proportions that connect up with latent instincts or heriditary memories of fright, and the proper colour contrasts and lighting effects to stir the dormant sense of strangeness.
User avatar
Max-Violence
Wandering Hero
Wandering Hero
Posts: 1221
Joined: Thu Apr 18, 2002 4:15 am
Location: In my own personal vault
Contact:

Post by Max-Violence »

Yer right - that solution is pretty f'n ugly.

Technically, my map's design could allow for that solution to work OK, but my God, the ugliness factor would jump up tenfold.

Thanks for the input, though. It's good to know that I'm not the only one who can't get something to work 8O
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.

maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
Our Host!
Post Reply