More Awesome Than You!

The Bowels of Trogdor => The Small Intestines of Trogdor => Topic started by: Inge on 2006 February 16, 11:51:06



Title: Route-blocking flags and autonomous am I
Post by: Inge on 2006 February 16, 11:51:06
I think "Autonomous - am I?" in a portal test breaks route-blocking flag 3.  If I put it in, my sims know about things the other side of the door even though they can't get through, and if I take it out, they become blind again.


Title: Re: Route-blocking flags and autonomous am I
Post by: tunaisafish on 2006 February 17, 04:22:53
I just got out of bed with this brainwave, so I hope you appreciate it.

I was getting a flashing icon with my doors too, and couldn't figure where it was coming from.
I removed the 'Autonomous - Am I?' check, and the flashing icons disappeared. Good find.

I just got up to do some testing, and it looks like you cannot rely on the autonomy flags being correctly set when the sim is 'just scanning the routes to objects'.
In the just scan mode, param 8 is set to 1, and param 9 holds what looks like some flags.
I've written down a bunch of param 9 values, I'll have a look at them later to see if I can figure any out.
Perhaps the autonomy flags are in param 9 in this case? or maybe it's completely unrelated.


Title: Re: Route-blocking flags and autonomous am I
Post by: tunaisafish on 2006 February 17, 06:45:01
Update, I think this is working fine now.

I'm assuming that if param 8 == 1, then autonomy is implied.
I still don't know what p9 is.

Might be an issue if a macro uses the 'find best action for' thing.
Inge, I remember you saying something about that a while back.


Title: Re: Route-blocking flags and autonomous am I
Post by: tunaisafish on 2006 February 17, 09:01:44
Edit: Added some more text so this looks less like some random numbers.

For door Portal and portal TEST

Parameters fed to the door semiglobal Entry Points. 0x2009, 0x200A

0 - Room on approaching side
1 - Room on departing side
2 - approach level (1 is ground floor, 2 for on foundation)
3 - depart level
4 - approach tile objID \ These are same
5 - depart tile objID   / for diag doors
6 - 1 when exiting (same direction as arrows)  else 0 (to do with set door open animation)
7 - 1 when entering (oppo direction as arrows) else 0
8 - 0 normally. no soft start effect when 1, (used in "privacy set?") suppress thought bubble
9 - ? seen  0  18  1,135 (has values when p8 = 1)

P8 seems only to be set to 1 when the route blocking flags are set on the door.
Then, occasionally, sims will run the Portal TEST a number of times (what seems like once for each object) to see if they can route to the object, or whether it should be hidden.

I guess the stair objects may have some similar calling convention.
Lockable stairs without the need for a lobby?

Below was just me trying to figure out what P9 was for.
These are just a bunch of sample values that I saw in P9.
the numbers are decimal - hex - binary
I didn't spot any patterns here, and the numbers did not cross-ref to anything in a lot dumplog.

Param 8 = 1
Param 9 values - sim always autonomous (no duplicates shown)

Standing, then went to pinball

3895 - 0f37 - 0 1111 0011 0111
3820 - 0eec - 0 1110 1110 1100
3193 - 0c79 - 0 1100 0111 1001
3184 - 0c70 - 0 1100 0111 0000
3203 - 0c83 - 0 1100 1000 0011

Routed to computer

4058 - 0fda - 0 1111 1101 1010
5694 - 163e - 1 0110 0011 1110
2255 - 08cf - 0 1000 1100 1111
4035 - 0fc3 - 0 1111 1100 0011
3021 - 0bcd - 0 1011 1100 1101
3223 - 0c97 - 0 1100 1001 0111
4031 - 0fbf - 0 1111 1011 1111
5852 - 16dc - 1 0110 1101 1100
5813 - 16b5 - 1 0110 1011 0101

while chatting online

5887 - 16ff - 1 0110 1111 1111
3214 - 0c8e - 0 1100 1000 1110
5834 - 16ca - 1 0110 1100 1010
5726 - 165e - 1 0110 0101 1110
3914 - 0f4a - 0 1111 0100 1010

Making some food.

3068 - 0bfc - 0 1011 1111 1100
5702 - 1646 - 1 0110 0100 0110
5860 - 16e4 - 1 0110 1110 0100
3111 - 0c27 - 0 1100 0010 0111

Still don't know what this last param means.


Title: Re: Route-blocking flags and autonomous am I
Post by: Inge on 2006 February 17, 09:18:51
Where's the thank you button?