Filtering

Filtering is done by selecting the filters available in the terrain and temperature tab.

Once you have selected one or more filter, you can click the Filter button at the bottom of the main PrepareLanding window. The filtered tiles (according to the set of applied filters) are then highlighted on the world map.

There are four categories of filters in PrepareLanding:

For an example of the three states filters see the examples:

Single Choice

The single choice selection is the simplest one: you only have a single choice to select your filter.

For example, the biome selection is one of them as you can only choose one biome at a time.

biome selection

Three States

Three state items have, as their name implies, three possible states:

The On state means:

The Off state means:

The Partial state means:

Note that when clicking on a state item, the order of appearance is: Partial -> Off -> On -> Partial -> etc.

Three States Boolean

Three States Boolean filtering is like the default Three States (standard) filtering except a strict Ternary Boolean filtering takes place.

As of now, only Roads and Rivers filters support this option.

For examples about the Boolean logic used in these filters please see the examples.

Understanding Three States Boolean Filtering

There are two possible Boolean filters:

OR Filtering

The OR filtering applies a Boolean OR operator for each item in the list, where each item describes what should or shouldn’t be in the tile.

Think of it as each item being evaluated separately. If any (one or more) of the checks results in a boolean True condition, then the tile is included.

Tip: Only one True condition is enough for the tile to be included.

AND Filtering

The AND filtering applies a Boolean AND operator for all items in the list, where each item describes what should or shouldn’t be in the tile.

Think of it as if all items were evaluated together. If any (one or more) of the checks results in a boolean False condition, then the tile is not included.

Tip: Put in another way, all conditions must be True for the tile to be included in the matching list.

Side Effects

The side effect of a strict boolean filtering is that False conditions never select anything as the result is discarded.

So if you have to remember one crucial thing when using these filters: Off never selects anything!

As an example of this side effect, if you sets all of the roads to Off (meaning you don’t want any road in the tile) this won’t select tiles without any roads…

As this might be counterintuitive a special condition has been implemented so users don’t feel the filters are not working correctly: If all items are in a Off then they still select tiles (in the previous example, this would still select tiles without any road).

Orderable Three States

The orderable three state filter works like the three state filter except the order itself can be changed.

Here is a live example:

re-orderable three state filter

Note that the reordering is only meaningful for the On and Partial states (the Off state, by definition, has no precise order).

The above example means:

As of now, only the Stone type filter is re-orderable. Please note that for the stone filter, the ordered filtering can be disabled.

Usable Numeric

A usable numeric filter is comprised of three items:

Note: integer fields don’t let you enter the decimal point while float fields allow you to do so.

usable numeric filter: example

Do not forget to click on the Use button if you want to use the filter!

usable numeric filter: use

Live Filtering

Instead of having to click on the Filter button, you also have the possibility to use Live Filtering by choosing this option in the Options tab of the main window. Be wary that this option may result in CPU heavy combination of filters in some cases, which might result in the game freezing for some time.

Three States Filtering Examples

Three states: simple example

Let’s take an example with the Coastal Tile filter on the Terrain Tab. (World Map (RimWorld Version: B18); Seed: flo; World coverage: 5%)

  1. Set a biome filter for Boreal Forest.
  2. Let the coastal filter in its default Partial state Partial state.

coastal filter

Now press the Filter button at the bottom of the PrepareLanding window.

Partial State

Below is a picture of the highlighted tiles:

Costal Tiles: partial state

As you can see all tiles of the boreal forest biome are highlighted, as the coastal filter is in the Partial state. In this state it means: we don’t care if tiles are coastal or not.

Put in another way, when a filter is in partial state, it simply means that it both match On and Off.

Off State

Now go to the coastal filter and make sure it is in the Off state (red checkmark: OFF state). In this state it means: coastal tiles must not be included.

Notice how in this state, coastal tiles were removed from the filtering.

Costal Tiles: Off state

On State

Now go to the coastal filter and make sure it is in the On state (green checkmark: ON state) where it means: only coastal tiles must be included.

The coastal tile state is On, which means: in this state (as we are in the On state) only coastal tiles match.

Notice how only tiles that are coastal tiles are highlighted!

Costal Tiles: On state

Three States: advanced example 1

Roads and Rivers are a combination of multiple three states items (On, Off and Partial) and Boolean filtering.

Here is an example of the Road Types filter on the Terrain Tab. (World Map (Rimworld Version: B18); Seed: goldfish; World coverage: 100%)

The following base filters are applied:

We start our example around tile ID 511159 (5.77°N 172.20°W).

road filter example: location

The following road filters are applied:

road filter: example 1 state 1

Here are the resulting filtered tiles:

road filter: example 1 resulting tiles

Now, remember that in Boolean OR filtering, each of the items (road types in our case) is checked separately. If any of the condition is True then the tile is considered has a matching tile.

Thus, the above road filtering checks separately for the following conditions:

If any of the above conditions is true then the tile is included in the matching list (except for the tiles that match the Off state because this state does not select anything). In our case this match tiles that have Ancien Asphalt Highway or Dirt Path or both of them!

Let’s proceed with the boolean AND filter, with the exact same conditions:

road filter: example 1 state 2

And here is the result:

road filter: example 1 resulting tiles

As you can see this time, we have the same condition but they are all checked together. Thus the filter only matches tiles that have both Ancien Asphalt Highway and Dirt Path at the same time, and not the other tiles!

Three States: advanced example 2

This example demonstrates the Boolean ternary logic applied in the case of the Boolean AND filtering when a Partial item is included (remember that the Partial state has no special meaning in the case of the OR filtering).

Given the same location and base filtering as the previous example, let’s try first a simple filter:

road filter: example 2 state 1

In this case this means we only want tiles with Ancien Asphalt Highway roads (the fact that it is AND or OR doesn’t matter here as they would give the same result).

road filter: example 2 resulting tiles

Now let’s add a Partial item for Stone road with the Boolean AND filter selected:

road filter: example 2 new filter

And here’s the result:

road filter: example 2 resulting tiles

In this case this means:

In case you aren’t sure, here is how would looks the result if we toggled the Boolean filter to OR instead of AND:

road filter: example 2 resulting tiles

As you can see, it independently selects roads that have Ancien Asphalt Highway or Stone Road or both of them.