FAQs, Tricks, and Tips

Check here for answers to the questions people ask most often. This also is a good place to find tips that will improve your experience with your VKC Pet

Tips — Preparing for Pathfinding

posted Mar 1, 2013, 12:24 PM by Rosanna Himmel   [ updated Jun 16, 2013, 5:40 PM ]

This is intended as an entry-level guide to preparing your land for your pathfinding-enabled VKC Pet. There are already other documents available elsewhere and there will surely be more to come. Some will show more detail and more advanced tricks and thus may be more difficult to come to grips with when you’re just starting out. Consider this the bare essentials and once you’ve got the hang of it, you’ll be better equipped to go on to more advanced techniques.

Introduction to terms used

Pathfinding is an amazing Second Life feature that allows animals like the VKC Pets to move around without crashing into things. They can find their way around obstacles instead of jumping over them and can find their way in and out of the house, provided the doors are open or if you have a fence around your yard, the pets will stay inside the yard. You’ll need to keep the gate shut and make sure there are no holes in the fence, of course.

Pathfinding Characters means scripted objects that make their way around using the Second Life Pathfinding System. When your pet is in Pathfinding Mode (pf on), he is a Pathfinding Character.

There are also three other types of objects that we need to think about:

  • Obstacle — things that the pets must walk around.
  • Walkable — things that the pet may walk upon. (It doesn’t make any difference to whether we can walk on it.)
  • Phantom — things that the pet can walk right through as if they were not there (same meaning as it always has had).

(There are other types, but for now these are the most important.)

The default type for any object that is not already Phantom is called “Moveable Obstacle”. This is a very convenient type, but it’s not very efficient. It’s convenient because you can move it around at will, but it’s inefficient for the sim because it means that the sim has to check the positions of all of these objects every time your dog wants to move somewhere. In pathfinding terms, these “Moveable Obstacle” objects are known as Dynamic Content.

In order to optimize the region for Pathfinding, we need to make as many of the Moveable Obstacles as we can into either Static Obstacle or Walkable. These two types are known as “Static Content”. The region makes a map of where these types are, how big they are, and the paths between them. This map is known as the Navmesh. When your dog wants to go somewhere, he will use the Navmesh paths to plot the path to his destination while also taking into account the Moveable Obstacles. For him to be able to find this route quickly and efficiently, it is important to minimize the number of Moveable Obstacles.

Rebake — means to redraw or rebuild the navmesh.

What sort of things should be which type?

Good candidates for Walkable Objects are:

  • Paths and driveways
  • Bridges
  • Houses
  • Dog houses (and maybe pet beds)
  • Other buildings that you would like your pet to go inside

Good candidates for Static Obstacles are:

  • Fences and Walls
  • Lamp posts
  • Fountains
  • Furniture
  • Any buildings that you do not want your pet to go into

How do I change the pathfinding types for my things?

Use viewer with Pathfinding Tools

First you need a viewer with the Pathfinding Tools.

The tools to perform these tasks are in the mainstream Linden viewer, but also may choose the latest Firestorm Viewer. You can install either the Linden Viewer or Firestorm separately and independently of your regular viewer if you use Phoenix or Catsnip or something else. You can switch between the viewers freely and go back to your favorite viewer when you are not working on optimizing your land for pathfinding.

Change Pathfinding types

Now we can look at how to change the pathfinding types.

In this example, we’ll set a section of the path outside Enrico’s workshop to Walkable and set the hitching post (for the horse that he had before he bought an automobile) to Static Obstacle.

If the pictures and screen shots look a bit small, you can click on them to see a larger version.

Please note: we do our best to ensure that the screenshots, menu options, tools and controls that we illustrate and describe are accurate at the time of writing, but the viewer developers are apt to change the interface without notice and you may find that things are not quite in the same place that we describe.

Right click the object that you are going to change — choose View in Linksets. This is how it looks in the Linden viewer, Firestorm is in the pictures below.

It’s buried a bit deeper in the Firestorm viewer, you’ll need to choose More and then More again.

Followed by Pathfinding...

...and then you find Show in Linksets.

This is the Linksets window. It looks much the same in each viewer.

The current type (Moveable Obstacle) is shown in the Pathfinding Linksets window.

Use the drop down menu on the lower right of the window to choose the new type.

When you have chosen Walkable, click on the button labeled “Apply changes.”

Right after you click on “Apply Changes”, you may see a Notification about needing to Rebake the region. For now, just click on OK. We’re going to make another change before we Rebake. (Don't worry if you don't see this notice, it is not displayed in all viewers.)

What you will see though, it this little indicator is up in the address bar near the “No Pushing” icon. (You can see this in the Linden Viewer as well.) This may look insignificant, but remember where it is. If you are using Firestorm, it will be a useful shortcut.

We now right-click on the Hitching Rail and find our way back to the Linksets window.

Choose the Linkset Type Static Obstacle this time.

Click on "Apply Changes."

Rebake the region

Go to the Build menu at the top of the viewer window.

Click on the Pathfinding option and then on Rebake Region.

You won't see any confirmation message and you won't see anything happening while the region is rebaking. But, after a short period, the little yellow indicator in the address bar will disappear.

(If you're using Firestorm, you can click on the little yellow indicator instead of using the Build => Pathfinding menu. You will see a message pop up in the middle of the screen like the one below. Click on "Rebake.")

Rebaking is the name of the process that makes a new Navmesh.

When you are changing the different objects on your land, you can use the Rebake button every time or only once in a while. It doesn’t really matter. I normally change quite a few different things between rebakes.

If you click on the little yellow indicator while using the Linden Viewer, it will tell you: "The region has pending pathfinding changes.  If you have build rights, you may rebake the region by clicking on the “Rebake region” button." But there is no "Rebake Region" button. You have to use the Build => Pathfinding menus instead. We've filed a JIRA about it and the developers are aware of it, we hope that they'll fix the message, or return the Rebake button soon.


Doors. If you set your house to walkable and the doors are linked to the house, you will see a script error every time you open or close the doors. This is because the house (being walkable) is Static Content and cannot move without changing the Navmesh, thus the doors are not meant to be able to move. There are several things you can do about this:

  • Open the doors and turn off/remove the scripts. (Easy)
  • Unlink the doors and link them to their own “hinge” prim. (Not difficult, but more advanced.)
  • Set the doors to “physics shape none” (Easy)

Stairs. In some builds with sculpted stairs, the stairs seem to turn into a solid box that you can no longer walk up. The explanation for this is a bit long for this article. The usual cure is to set the “Physics Shape” to “None” using the Edit tool.

Megaprims. These old-fashioned, oversized prims cause problems with pathfinding. And now that LL allows us to size regular prims so they are larger than 10 x 10 x 10, these megaprims are no longer needed. If you have megaprims in your builds, consider swapping them for regular prims of the same size.

Sculpted prims. Usually, these are fine, but occasionally you will find sculpties that have a really big bounding box. While this bounding box may be invisible to you, it is quite solid to a pathfinding pet. The usual cure, again, is to set the "Physics Shape" to "None" using the edit tool. This will allow anyone to pass through these prims unimpeded. If you do not want people and pets to be able to walk through these objects, then place an invisible box of an appropriate size over or in the object and set this invisible prim to "Static Obstacle."

Tips and Tricks

Use the drop down menu at the top of the Linksets window to filter objects by their pathfinding type. You can use this to find all the Moveable Obstacles quickly.

Use the headings in the Linksets window to sort the objects by owner name to find your things more quickly.

You can hold down the Shift or Control keys and click on more items in the Linksets list to select more than one thing at a time. You can set all these things to the same type at once.

If you right click on an object in-world and choose Edit, you can (as I am sure you know) hold down the Shift key and click on other objects to select more than one at once. When you have several selected you can right click again and choose “Show in Linksets” to open the Linksets window with them all selected at once. (They might not all be side by side in the list, but at the bottom of the list, the display will tell you how many you have selected.

Further Reading

Pathfinding Tools in the Second Life Viewer — This article on the Linden Wiki covers what we covered in this article with a lot more information and discussion thrown in.

Pathfinding Quick Start Guide — There is a lot more information in this Linden Wiki article, but it’s not as easy to understand to begin with. But stick with it and refer back. It’ll make more sense as you become more familiar with Pathfinding.

Pathfinding Overview by Inara Pey.

If you have written or know of a useful article that we should include here, please let us know.

FAQ — Flying Dogs

posted Sep 26, 2011, 3:22 PM by Rosanna Himmel   [ updated Oct 7, 2014, 9:31 AM ]

Q. My dog is always on the roof or bouncing off of the ceiling. Why won't my Fido be a more down-to-earth dog like my sister's dogs are?

A. The VKC Pets are active and curious creatures that love to investigate and play. When they get bored, they will look around for something to do. If there are any avatars around, they will probably go to the avatar and do something like sit, speak, beg, or perform one of their tricks. 

If nobody is around or if the avatars are all busy and not paying attention to the dogs, they will search around for something interesting to sniff and stare at. They love active, scripted objects of all sorts, but nothing amuses them as much as things like poseballs and security orbs. If you have placed any of these items in the upper floors of your building or in the sky, the bored dogs may decide to fly up and take a close look at them.

The best way to keep your pets grounded is to turn on Pathfinding. A pet with PF enabled will run, walk, saunter, sashay, ramble, sprint, gambol, meander, or stroll, but will never fly or end up on rooftops.

Another solution is to move the attractive nuisance. If removal is  not possible, then you will need to consider distracting or restricting your dog. Toys placed in his play area can be distracting. If he knows tricks to play with his toys, he is more likely to pick up a toy than to fly off to stare at some object. Especially good are active toys that randomly and silently call the dog to play with them. These can be turned off or removed when you want your dog to stop playing with them.

Vavoom! has some excellent toys of this type.

If you need to restrict your dog, there are a couple of options. You can place your dog in passive mode by saying, "fido passive". This command tells Fido that he should stop thinking for himself and only follow your commands (or commands from any nearby avatar you have not muted for him). When you want him to be an active, thinking dog again, you can tell him, "fido active".

The second option for restricting your dog is to use the stay command to keep him in an area away from the object. Call him to an area away from the problematic object. Once he is there, tell him, "fido stay 10" or "fido stay 12.5" or "fido stay 21". You can select any number you wish with the stay command knowing that this will place an invisible fence around your dog. The number in this command refers to a distance in meters in front of the dog, behind the dog, and to each side of the dog.

Tip — Dogs Can Help Find Lost Items

posted Sep 26, 2011, 2:58 PM by Rosanna Himmel   [ updated Sep 26, 2011, 3:55 PM ]

A while ago my partner remembered he had installed a transparent camera on the island around 2 years ago and only vaguely remembered where they were. We had built a lot of trees with huge transparent prims and didn't want to derender them all, so I called one of my dogs and said "fido go camera". The dog flew up to the sky and stopped immediately in front of the camera. That was really cool and my partner was quite impressed.

A few weeks ago we wanted to clean up all the tp stones he had also installed years ago, leading to sims that ceased to exist a long time ago. Again we didn't find them as we had built stuff around/above them. "fido go stone" really made it. Our dog showed us each hidden tp stone!

And three days ago I took down the weather system and the snow. I was convinced my partner had only rezzed two weather systems, I had deleted them including emitters but there was still snow  falling down from the sky. Nothing in the air. I even wrote to the creator and thought it's like particles that stay even if the prim is gone. Yesterday my partner mentioned there might be a third weather system somewhere inside the mountain (!). I didn't know where to send the dog but I tried a few different to look and said, "fido go weather". Suddenly my dog ran against the rock and couldn't get inside. Then I remembered the the flags for the moveto command and how they could be added to on, run, and go. So, I told her, "fido go weather 8" and off she went. To locate her I said, "fido ping". My dogs replied with the coordinates of her location and I teleported to her inside the rock. There in front of me was the hidden third weather system. No more snow on my parcel now.

The story I like best is about our mini hunt for my partner's RL workshop participants. They need to find a hidden object and if they click it they can win a RL workshop. I need to add that most of these people are real newbies with bad computers, slow Internet connections, and little enthusiasm about virtual worlds, IF they come, they only come to socialize. So… one of them asked if he could have the dogs help him find the item. I said, "If you manage to call the dog with you over half of the sim and the dog is in around 10 meters distance of the item, she will actually help you." I was so touched and impressed watching him hunt together with my dog. In the end he finally found the item that way.

Asking your dog to find lost items can sometimes take a bit of patience and it will not work for all lost things. The following considerations apply.

  • The lost item must be scripted. The dogs are not able to see any old object, but can only see those objects that have an active script inside.
  • The dog must be within range. VKC Dogs can see and hear within a radius of 10 meters. This is why we sometimes must shout at them before they will obey. The same is true with noticing scripted objects — the object must be within 10 meters of the dog.

The practical outcome of these considerations is that you may have to systematically send your dog around the search area and repeat the command to go to the lost item.

Trick — Teaching Your Dog to Teleport

posted Sep 26, 2011, 1:29 PM by Rosanna Himmel   [ updated Sep 26, 2011, 3:57 PM ]

There was a girl at my class last weekend who wanted her dog to be able to get around her friend's castle. From her description, the narrow spiral staircases sounded difficult for avatars to navigate let alone the dogs. So we set up a couple of floors on different levels and made a mark called downstairs and a mark called upstairs. Then I showed her how to make the dog teleport himself between them using some advanced movement controls:

fido go upstairs 8

Then she explained that the castle was huge and that she'd like him to be able to get to not only different floors, but different rooms on different floors. We decided that we needed to make our teleporting technique into a proper trick with a placeholder:

fido learn tp moveto _ 0 0 8

She can now say: fido tp upstairs or fido tp ballroom or even fido tp dungeon and he will teleport himself to any place that she sends him.

Remember that the dog will be non-physical when he lands at his teleport point so when you first tell him to do something that requires him to move somewhere, he will hop up into the air before he becomes physical again.

Teaching how to teleport works well for dogs who roam on a sim filled with dog traps where the dog might get stuck, for example, in the water under a walkway or sometimes even under a cave or between the cave walls. It also works well if you live in a house filled with furniture and walls that might trap your dog. 

You can add a "pop" to the trick so the dogs get into a standing position and become physical again after the teleport.

fido learn tp moveto _ 0 0 8 pop

The dogs couldn't use the tp trick on their own because of the underscore. The dog has to be told something to go into that place. But, having taught the generic tp trick with the placeholder, you could then have a tp trick. For example: tpgarden

fido learn tp moveto _ 0 0 8 pop

and then

fido learn tpgarden tp garden 

In this example, the dog would teleport to the mark named garden. The dog could do that on her own, but I'm still not sure how much use it would be to her.

1-4 of 4