PDA

View Full Version : Go To Routing Slot (global 0x0008) fails


MogHughson
1st Nov 2009, 3:10 PM
I have always assumed that "Go To Routing Slot (global number) were somehow short-hand for "go stand somewhere out of the way". I've seen them used in a number of different objects in my time perusing BHAVs.

What can cause this to fail?

EDIT: I've noticed a commonality of the things that fail. They are all in Accessory_Globals. Things in Food_Globals don't indicate the same fault.

Does anyone know what the various different global numbers mean? I have seen global 0x0008, global 0x0007 and global 0x0004 - there may be others too?

Cheers
Mog :Pint:

Echo
2nd Nov 2009, 12:07 AM
I'm not awware of any such list, but like yourself I've always just used it as a "move somewhere random, a short way away from where you are". The only obvious thing I can think of which would cause it to fail would be if the place it selected was not routable - for example if your sim were in a very small room with no walls, then wherever the random location was it would be inaccessible and fail.

MogHughson
2nd Nov 2009, 9:39 AM
It is very definitely a problem with Accessory_Globals items. I have worked around it by doing what some of the Maxis code does which is to set the Stack Object to be the "owning thing" for the Accessory, and then route based on that. For example, when the accessory is a coffee mug, it fails, when Stack Object is set to the coffee machine, then the routing works.

I wonder if it has anything to do with the fact that there wasn't originally an Accessory_Globals in the base game and it was added later?