View Full Version : Tutorial: Basics on sim-routing in Create a world-tool
armiel
10th Apr 2011, 08:33 AM
This is a really small tutorial on routing.
First I would like to apologize if I use wrong words about some stuff, my CAW is in Finnish and I have to translate the words.
In Sims 3 worlds, it's really important to have your routing done properly, so that the world doesn't lag when you play it. Other things can cause lag in a world too of course, but routing is one major one, and can cause serious trouble if not taken care of.
So, I made a tiny little beach to represent what I am trying to explain here. (click the boxes to show pics)
:here: Moderator note: Broken routing lines have since been found to be harmless, and purely graphical- please see this information. (http://www.twitlonger.com/show/gf9utr)
http://thumbs.modthesims.info/getimage.php?file=1190222
A this point I have done nothing on the routing. I just made a beach, slammed a piece of road and a lot there, plus a bunch of plants.
Here is the same beach with visible routing data (press view, show routing data)
http://thumbs.modthesims.info/getimage.php?file=1190223
Now I have marked the problem spots with red.
http://thumbs.modthesims.info/getimage.php?file=1190224
As you can see, some of the lines do not connect to each other properly, but are cut. That causes routing issues and lag. Now you may wonder " but it's just a tiny area, how can that effect anything?". Imagine that you have hundreds if not thousands of cut lines like that in a world. One dot that has no lines connected to it can already make a world lag massively. Cause the game makes NPC's spawn everywhere in the world that is not marked non-routable. So imagine a sim spawning on top of a dot that has no lines connected. The sim has nowhere to go and is therefore stuck. Causes LAG.
So to start fix this problem I first pressed rebuild routing data to see the problem spots in real time, as they are right now. And I remarked them.
http://thumbs.modthesims.info/getimage.php?file=1190225 http://thumbs.modthesims.info/getimage.php?file=1190226
Now, it's hard to see under the plants and behind them, so I hid them. (View - Levels/layers - untick plants)
http://thumbs.modthesims.info/getimage.php?file=1190227
First I wanna take care of the cliffs. I don't want my sims wandering there, so I paint over them with sims non-routable paint. (terrain - routing - sims paint)
http://thumbs.modthesims.info/getimage.php?file=1190228
Then I press rebuild routing data, and voila, cliff areas fixed.
http://thumbs.modthesims.info/getimage.php?file=1190229
I still have unconnected lines on the beach, so I take smoother brush, and smooth the areas that are problematic. Then press rebuild routing data. I was lucky to have them fixed at once.
http://thumbs.modthesims.info/getimage.php?file=1190230
Then I unhide the plants, and the beach area is done :)
http://thumbs.modthesims.info/getimage.php?file=1190231
I have one more thing to show you.
http://thumbs.modthesims.info/getimage.php?file=1190232
See how I added a big rock on the beach. Cause I have not fixed the routing, the sims can walk straight trough the rock, and that is not really realistic ;)
So I press rebuild routing data, and the problem is fixed. (I also hid the rock to show the data better)
http://thumbs.modthesims.info/getimage.php?file=1190233
In closing:
Rebuild routing data is your best friend
You should press it every time before you export a world. No matter if you have made changes or not.
A tiny error in routing can cause massive lag
White lines and dots show where your sims can go
Broken white lines/stand alone white dots cause lag.
Red boxes around objects are their footprints
Sometimes an object can hide a routing flaw under it, so you should always check your routing with objects hidden
The blue paint is sims non-routable paint. You should use it everywhere you don't want sims to go.
When using non-routable paints, make sure there are no spots inside it left un painted. (if a sims spawns to a spot like that, they get stuck and cause lag.)
A hint: You need to move the camera a little for the routing data to update after pressing rebuild routing data.
Another hint: You can place flowers or any other object to a spot that is tricky and does not fix the routing properly (sometimes there are stubborn lines), if that is convenient for that spot. Then press rebuild routing data, and hopefully the spot is then fixed.
Routing a world may seem like a massive job, but when you do it while building the world, bit by bit, you know it gets done well, and you can enjoy lag free world :)
(lag free=no lag that is caused by routing, this tutorial does not cover other issues that cause lag)
Hopefully you have learned something new, and find this tutorial useful :)
BenC0722
10th Apr 2011, 10:04 AM
This is good information. It should be useful for those who might have routing problems in their world.
Thank you for posting this.
cutsocks
10th Apr 2011, 02:07 PM
Wow, this is really helpful and insightful.
On a side note, I've made two worlds now, that I've never rebuilt the routing data for. I've played them for months each and never had any lag. I guess I was just very lucky, though the worlds were rather flat-ish and lacked miscellaneous objects [aside from trees and plants] placed in CAW. Well, that's not completely true. I did rebuild the routing data once for Fincastle, but I was never able to get it to save successfully afterward. [I had to go back to a previous save.] But since then, I've changed the LAA, so maybe I won't have problems saving now.
heaven
10th Apr 2011, 04:01 PM
The only question I still have is, when I am fixing routing, I get all the lines connected, rebuild data, everything looks good (as evidenced in picture 1) so I move on. As soon as I move the camera, the same spot now looks like it is bad routing again (picture 2). When is it REALLY good?
armiel
10th Apr 2011, 04:05 PM
Ah, I forgot to mention that you need to move the camera a little for the routing data to update after pressing "rebuild routing data". Editing that in right now. Thanks for pointing out.
This means that one fix attempt was not enough for that spot heaven.
Am also editing in something about bypassing tricky spots... see the list at the end of the post :)
simsample
2nd May 2011, 08:06 PM
Excellent tutorial, Armi, thanks for this!
heaven_sent_8_18, I'm thinking the effect in your images is purely graphical, die to the curved ground. If the routes were really broken then there would be visible nodes. Areas similar to that in my world route correctly, the sims can run over the area and calculate the routes just fine.
Jasumi
10th Jun 2011, 09:53 AM
This thread is a lifesaver! Thank you so much, never could have fixed my lag (or even knew what was wrong with the routing) without it!
Here's another thing you should mention though:
If you have a world with alot of plants (specifically the heather), it can destroy path-finding in that area and you need to mark it unroutable or the game will freeze if you click on that area for a sim to go to...
With Trees (sims can't possibly walk through all those heathers):
http://img200.imageshack.us/img200/8800/alltreeswlayer.png
How the same exact area looks with routing visible):
http://img683.imageshack.us/img683/2649/alltreesnolayer.png
There's zero lines or dots or anything :wtf: I had to cover all this crap...
ellacharmed
14th Jul 2011, 02:27 PM
Thanks, Armi! That was quite clear and concise. :)
The sea of blue marking non-routable terrain should be smooth and not have random white dots/lines in the middle of it, which signals a break in the terrain painting, yes?
So, as long as there is a white dot or a spider-web of white lines in a sea of blue is bad, right?
Like in pic #179 - another spot in Bridgeport. <sigh>
Pic #190 is of China.
armiel
14th Jul 2011, 04:15 PM
Thank you for the pictures Jasumi and Ella. Those kinda spots are exactly what can cause lag in game, if an NPC spawns there and then can't move anywhere.
simsample
14th Jul 2011, 05:29 PM
This is another issue related to ellacharm3d's images. In China, one of the places that people are having sims stuck has three lots in a triangle. One of the problems with this area, besides the routing problem Ella highlighted, is that to get to the lot on the right of my picture, sims have to first pass through the lot at the bottom of the picture:
http://thumbs2.modthesims2.com/img/5/2/8/4/8/MTS_simsample-1214368-Bluefunk_00114-Jul-1117.15.jpg
As we know, the world routing is saved within the world file and can be accessed very quickly. But the routing on the lots is calculated on the go (if you place a chair, a sim will still walk around it). So, to get from the lot at the top of the image to the lot to the right of the image, the game has to access the world routing file and then calculate all possible paths through the lot at the bottom of the picture.
This will cause lag, and could hang the game, especially if you have a lot of sims trying to do this at once. So when designing your world, it is best if your sims can access each lot from anywhere in the world, without having to first enter another lot.
Any lots that you really want to be inacessible, or only accessible by visiting another lot first, can be zoned as 'Hidden Tombs' or 'No Visitors Allowed' in CAW, and then sims will not autonomously attempt to visit them.
bellatrixclovis
18th Jul 2011, 09:15 PM
Thanks a lot Armiel. This is absolutely fundamental tutorial!
In addition to Heaven_sent_8_18 and Simsample posts (see posts #4 and #6), I would also agree that it's rather a matter of graphic rendering more than a routing issue. Maybe the animation of a Sim walking on such a "broken line" will bit weird, with feet sunken in ground, but I don't think the game will have any trouble to find a proper path along this line.
I did a small test. In the first picture below, there is a broken line in the routing (red zone). Yet, if I hide the terrain (in View > Layer, see second picture), the routing network looks good, with straight lines connecting to the nodes. In my little sketch (I know, it's ugly, what I tried to do is a section in the ground ;)), the black line is the ground, and the blue straight line is the routing. I think this is what happens in the first picture, the routing line is hidden under the rendered terrain.
Sim Libby
30th Jul 2011, 06:23 PM
Armiel, thank you very much. This is very helpful.
jedi_waffle
26th Sep 2011, 07:48 PM
I just wanted to chime in and say thanks. This tutorial was very clear and direct and brought to light some important concepts that I wasn't very aware of.
Anushka
27th Nov 2011, 09:05 PM
Hi everyone, I'm finishing my big world and encountering some strange problems with routing. After placing some large(very large and detailed lots), occasionally CAW crash while saving in EiG. Now I know that is expected, but I think I made a mistake by continuing to work with that saved file:( routing was fine untill I decided to lined the edges of unroutable areas, (by the grid), now I keep finding all kind of crazy nets all over the world, lots not routable with roads without any reason, and all of the sudden I keep finding unconected dots under the objects, or in completely free area. There are also strange light blue circles everywhere, on roads, lots or open areas, sometimes conected, and sometimes not. I'll return to previus save that have normal routing grid without all these things, but I'm curius as what they might be, and maybe that is the reason why some worlds are harder to play. My guess is it happen due the crash while saving since I didn't use any CC, and rebuilding routing network don't change it back to normal grid. (I can repaint some off the dots, add a tree or something, rebuild the routing and new problems will appear somewhere else).
Here is what I'm talking about:
http://img406.imageshack.us/img406/9281/routingproblem2.png (http://imageshack.us/photo/my-images/406/routingproblem2.png/)
http://img23.imageshack.us/img23/2892/routingmess2.png (http://imageshack.us/photo/my-images/23/routingmess2.png/)
http://img194.imageshack.us/img194/8701/routingmess.png (http://imageshack.us/photo/my-images/194/routingmess.png/)
Anushka
30th Nov 2011, 07:24 AM
No comments I see.
I tracked down last backup file that have normal routing network, add a little Non-Sim-Routable paint and saved under different name, and this mess appeared again. I can edit world withot problems reappearing ( I can add/remove lots, trees, objects and effects, minor sculpting changes, painting, add lots in EiG) but if I change Sim Routable areas, routing became messed up like this.
I'm happy that I don't really need to use that anymore since there are no routing issues in the world, but I'd still like to change few things, which I can't now (some areas are not problematic but I don't want them to be routable). If anyone have any idea or information about this I'd appretiate it.
armiel
30th Nov 2011, 08:23 AM
I am sorry, I have this thread in my subscriptions, so it SHOULD pop up bold when new posts are added, but for some reason it had not done it for the earlier post of yours.
I have never experienced this myself, except on early states of the world when i have only done some sculpting. But never on areas i have already worked on.
We had a user with same issue on the chat some time ago, and in their case the weird long lines went away by placing objects and lots in the way of the long unwanted lines.
Maybe someone wiser can actually explain WHY the lines appear (the very long ones with bright blue/turquoise dots).
Anushka
30th Nov 2011, 11:36 AM
I am sorry, I have this thread in my subscriptions, so it SHOULD pop up bold when new posts are added, but for some reason it had not done it for the earlier post of yours.
I have never experienced this myself, except on early states of the world when i have only done some sculpting. But never on areas i have already worked on.
We had a user with same issue on the chat some time ago, and in their case the weird long lines went away by placing objects and lots in the way of the long unwanted lines.
Maybe someone wiser can actually explain WHY the lines appear (the very long ones with bright blue/turquoise dots).
Thank you for responding Armiel!
If it was one smaller area, or a couple of lines I would try the solution, but it is messed up everywhere. I realized there is a problem when I tried solving one area by replacing lots (delete, rebuild routing, put lot, rebuild routing), but small turquise dots remained the same, and more problems seem to appear in other areas. I was thinking what could cause it beside bad save because it happen again while only in CAW and even without saving. I made shore no lot, street or object is marked as unroutable, everything is connected etc and I didn't use any CC, not even a pattern, not even a freebuy from the store. I do have few mods I put lately (Porter, Debugging, Master and Story Progression) - first 3 to inhabit the world which I haven't done jet with this version, and Story Progression to track down if Sims are getting stuck anywhere in this world in game (they don't which is why I won't touch routing anymore!). I doubt it is any of them creating a problem.
I am posting this to try to find the answer for future worlds I had in mind.. And thank you very much for this tread, it was very very helpful when I started to learn about routing.
simsample
30th Nov 2011, 04:57 PM
I don't think the long lines are anything to worry about; they always seem to occur when there are no objects on an area of terrain. I must admit I didn't realise that they ignored lots and roads though- you can see that they cross lots and roads in your screenshot- but then I seldom have an area with lots or roads that doesn't have street signs or trees or something too.
This is an image from my world in an area that has very few objects- the line by my cursor arrow stretches over several segments.
http://thumbs2.modthesims2.com/img/5/2/8/4/8/MTS_simsample-1252920-Bluefunk_0130-Nov-1116.41.jpg
If I add an object in there it completely changes the routing and those long lines disappear. This makes sense because, if you think about it, the routing has to become more complex where there are obstacles:
http://thumbs2.modthesims2.com/img/5/2/8/4/8/MTS_simsample-1252921-Bluefunk_0230-Nov-1116.43.jpg
In my first picture, if I make a sim run across that terrain, they tend to follow roughly where that long line is, which makes me think it's a line of best route- the best way for a sim to take if traversing that area. The sim can completely route to any area of that terrain, even the bits where there are no routing lines visible- in effect, the game has made a lower resolution routing network, which saves on resources. So you don't need to deliberately add objects just to make the routing look different!
For your picture though, I'd like to see a render of it so that we can see the terrain and objects, as I'm puzzled why there are blue route nodes beneath a lot. In the second picture you have a lot next to a road, and the sidewalk routes are not there- indicating perhaps that you have a lot overlapping the road? Seeing a render would help us to see this.
Anushka
1st Dec 2011, 05:27 PM
I see you have the turquisse dots as well, but still your network seems logical unlike one I got in my world. I had the "regular" routing net as you can see it here, I made shore no objects are under anything, haven't add any spawner, and lots may overlap sidewalk by 1mm or lesson some curved roads, but not here, I didn't have any problems with it:
http://img268.imageshack.us/img268/6746/121201161820pm.png (http://imageshack.us/photo/my-images/268/121201161820pm.png/)
And then after I add some Sim Unroutable Paint somewhere else in the world, I got those strange lines and dots everywhere, and what seems to be much more complicated solution than moments before. To avoid posting same pic again, this is with the framework view same area (hoping that you were refearing to this):
http://img834.imageshack.us/img834/3163/121201161026pm.png (http://imageshack.us/photo/my-images/834/121201161026pm.png/)
(Please let me know if this isn't what you were asking for and let me know how to get it right, I use this to check if something is hidden underground).
I returned to backup and kept working on this normal version as I got pretty scared with all this mess!
simsample
2nd Dec 2011, 08:40 AM
I can't seem to reproduce what you're getting in your world. If I try to make the long splines traverse a road or lot, they won't- I get a regular mesh around lots, roads and any objects, and am only seeing the long splines and turquoise nodes when I have a large empty area.
http://thumbs2.modthesims2.com/img/5/2/8/4/8/MTS_simsample-1253411-Bluefunk_0102-Dec-1108.37.jpg
There must be something else going on in your world, could you show some zoomed out screenshots so that we can see a larger area, and see where the non-routable bits are, like in my picture? I can see from your wireframe and your rendered image that there are no objects buried there, so this is puzzling.
dancingwattletree
20th Dec 2011, 02:38 AM
^ I'm getting the same thing as you are, and I don't know if I've done something wrong or not. Is it normal, or will it screw up the routing in my world?
simsample
24th Dec 2011, 01:47 AM
dancingwattletree, could you post a picture too?
Anushka
30th Dec 2011, 03:25 PM
There must be something else going on in your world, could you show some zoomed out screenshots so that we can see a larger area, and see where the non-routable bits are, like in my picture? I can see from your wireframe and your rendered image that there are no objects buried there, so this is puzzling.
I'm sorry for not answering earlier. Eventually, I went all the way back to the world version without lots and objects, marked routing areas along the grid and it was all fine, then I copied objects and layers folders from latest version to that world, did some severe checking if something is floating or underground, and only then placed lots and buids on those lots. These lines never appeared again, but it was a lot of tedious work.
It was the world I was building for another forum where I'm a moderator, with few members building community lots and it was all done in secrecy as a part of the surprise, which is why those pictures are not showing almost anything really but the issue I run into. It is finally revealed and available for download, I'm not shore if it is OK to post the link here, or maybe even in a separate tread, please let me know. I am subjective but it is just too beautiful and complete to miss it :)
Thank you and happy holidays.
simsample
31st Dec 2011, 07:16 PM
Hey Anushka, glad you got it fixed! :) The best place to post a link is in the Free Updates (http://www.modthesims.info/fd.php?f=570) forum, where everyone will be able to see it. I will check your world out, it looks great! :)
Tommy_D
13th Feb 2012, 12:51 PM
Nice tutorial Armiel !
I was wondering if one of the next pictures causes lag ?
I'm busy trying to find the cause of my lag problem in my new world :p
simsample
13th Feb 2012, 01:57 PM
For the road, can cars and sims travel along that road okay? The road spline is intact, but the pedestrian routing is missing in some places.
For the lot- yes, that could cause some problems. We have found that it is usually best to have lots surrounded by routable terrain so that sims can enter and exit from all sides. Is that lot actually on a steep slope? It looks like the terrain non-routable paint is affecting the lot routing too.
Tommy_D
13th Feb 2012, 04:14 PM
Cars and sims have no trouble using that road. I only tested it with my own sim so i'm not sure about the NPC's ...
That lot should be a "hidden" military base so i placed it between some mountains :p sims can only enter that lot from the front side and are not supposed to walk on the mountains !
You think i better delete this lot or place it somewhere else ?
simsample
13th Feb 2012, 05:54 PM
Well, it can definitely cause lag, as I discussed here:
http://modthesims.info/showpost.php?p=3438734&postcount=395
Perhaps you could put some kind of fence all around the lot, or else move it forward slightly so that the lot is flatter (so won't look daft with sims routing at the back)?
If the road is actually routable then I would say that's okay, but also view it with the retaining walls hidden, as there may be some routable spots under there that sims try to access.
macthekat
17th Feb 2012, 08:48 PM
I am having some problems with my bridges
I got the path running un-broken under them but for some reason my sims refuse to get over them. I got 3 bridges like this so I really want to get it right
Any idea what I might be doing wrong?
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_448.jpg
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_449.jpg
simsample
17th Feb 2012, 09:05 PM
Are they refusing in vehicles and by foot?
macthekat
17th Feb 2012, 09:09 PM
on foot
armiel
17th Feb 2012, 09:16 PM
I'm not sure, but it might be the lot intersecting the bridge - it's really close and also has a routing line on road going to the lot, which to my experience should not happen (the turquoise line and blue dot). It can also be the unroutable paint that overlaps the bridge footprint. Are all your 3 bridges causing same issue, and if are, how does the routing data look like on the other two?
ETA
Looking at the angle, elevation and direction of your road, it seems that it doesn't connect to the bridge properly. Has it snapped to the bridge, as the end of the road should align with the end of the bridge where the bridge "road" dot is?
simsample
17th Feb 2012, 09:58 PM
Also, the road on the left of the image, is that connected by an intersection or are the roads just overlapped?
macthekat
17th Feb 2012, 10:06 PM
It is overlapping - I am taking that it should have a intersection - I will add that. I don't think any of the tutorials mentioned that, so thank you for spotting it.
simsample
17th Feb 2012, 11:34 PM
Well, Egypt has several places with no intersections, and in some cases it seems to work okay. But, in this case- where you have a junction near to a bridge- I would be inclined to try it with an intersection, in case that is causing the problem.
macthekat
18th Feb 2012, 02:01 AM
I just wanted to let you know that it worked! Now the bridges works perfectly. Thank you so much for your help!
simsample
18th Feb 2012, 10:21 PM
Well done, macthekat!
macthekat
20th Feb 2012, 02:10 AM
Apparently I spoke too soon... I got quite a few sims stuck out on the bridge... any idea why that might be happening?
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/Screenshot-1993.jpg
I seem to be able to send them to go over that bridge my self, but if I don't direct them to go over they get stuck out there.
I have a hack that dis-allow them using taxis so they are all on foot. I am playing a medieval hood and having it full of taxis would of ruin the illusion.
simsample
20th Feb 2012, 03:06 AM
Are they spawning there, or are they actually getting stuck half way? An image of the routing data for that bridge as it is now will help.
macthekat
20th Feb 2012, 03:09 AM
That is a good question - I will have to keep an eye on them and check, but I think all of them are existing sims from the nhood.
It would seem that if I am looking at them when they pass they have no problems.
I will snap a few CAW pictures tomorrow
simsample
20th Feb 2012, 05:42 PM
Bridges have become really troublesoms since pets for some reason (horse routing, I suspect). I had to redo all bridges in my world after the pets patch, and there were a lot!
macthekat
22nd Feb 2012, 12:53 PM
Finally I got around to opening the program again
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_459.jpg
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_458.jpg
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_457.jpg
http://dl.dropbox.com/u/10484067/sims/medieval/CAW/mackat_471.jpg
for some reason I can't get the walking path to turn blue
simsample
27th Feb 2012, 11:32 PM
See in the first image, where the light blue routing path dips in a sharp 'V'? Try raising the base of the river slightly, so that is a smoother curve. Also, in the first image there is a routing node (white circle) on its own, which can cause problems if it's beneath the bridge, for example. Can't see it on the final image, though! On the second image, that yellow lot looks really close to the bridge. If it's intersecting the pedestrian route at all it could possibly cause some dodginess with sims entering and leaving the bridge, so as a last resort you could try removing that and testing, just to be sure.
macthekat
29th Feb 2012, 12:46 AM
Thank you for the feedback. I will try playing some more with the bridges.
Ardra Allen
10th Apr 2012, 03:34 PM
What if my rounting paint is broken? I recently got caw.. and I have yet to get my routing paint to even work. it wont paint anything.
Edit: It seems if I zoom in more I can see the paint.. It turned out it was working. I just cant SEE the blue unless my camera is closer ( though I have the LOD oh high in the camera settings)
simsample
11th Apr 2012, 12:30 PM
Ardra Allen, you need to be zoomed in so that the chunk you are working on is rendered in high-detail. You can only work on one chunk at a time, so you have to keep close to the ground when painting/sculpting.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.