[Script] WME Road Selector Highlights

Create custom highlighters using WME RSel Highlights and WME Road Selector*
https://greasyfork.org/en/scripts/16007-wme-road-selector-highlights
Note: If the script isn’t highlighting what it should be, try double-clicking on the Highlight button, which forces a redraw of all highlights on the map.
You might also be interested in another companion script: WME RSel Expression Editor

Much thanks to pvo11 for creating WME Road Selector and making this integration possible.


*Road Selector is required for RSel Highlights to work.

RSel Highlights v0.2.x:

2 Likes

Sorry all – I don’t have much time today to provide a full feature listing! I’ll try to add them later today. Enjoy!

I’ll hope to get some screenshots up soon, this can be really helpful working with and diagnosing BDP.

Awesome script! Exactly what I needed. Thanks!

I’ve been using it recently and I must say as well that it’s awesome!

I don’t know how I managed without it before :wink:

Thanks

Amazzing

Enviado de meu SM-A500M usando Tapatalk

I LOVE THIS SCRIPT/ADDON. It makes doing SLs a much more visually appealing process compared with other options. Here’s my setup:

Green: !(Has unverified speed limit OR Has NOT speed limit)
Yellow: Road Type = “Primary Street” AND (Has NOT speed limit OR Has unverified speed limit)
Orange: (Road Type = “Minor Highway” OR Road Type = “Major Highway”) AND (Has unverified speed limit OR Has NOT speed limit)
Red: Road Type = “Freeway” AND (Has NOT speed limit OR Has unverified speed limit)

If I have:

Has speed limit in A->B direction

It’s unable to parse and tries changing it to:

Has speed limit in any direction

Thanks! I’ve updated RSel Highlights to v0.6.9. I think I found the problem. Let me know if you are still having issues.

I tried using the expression editor to modify an existing expression with this text in the editor:

(Road Type = "Freeway" OR Road Type = "Major Highway" OR Road Type = mH OR Road Type = PS OR Road Type = St) AND (Has NOT speed limit OR Has unverified speed limit)

It then pasted this as the expression for selection:

(Road Type = "Freeway" OR Road Type = "Major Highway" OR Road Type = "Minor Highway" OR Road Type = "Primary Street" OR Road Type = "Street") AND (! Has speed limit 22 mph in any direction OR Has unverified speed limit 22 mph)

Notice the end of the expression is not what I was asking for.
Then I tried to highlight using it and got this error:

So I’m reporting it :smiley:


Rsel v1.14
Rsel Highlights v0.6.9
Rsel editor v0.2.7

EDIT: Further debug reveals I had the speed limit field in the Rsel editor panel filled with 22, though I would expect what I type in the expression editor to override that. When I cleared the Rsel SL field, the expression editor and highlighter worked properly without any warnings issued.

New version 0.7.x

Slimmer profile:
WMERSH v0.7.x - Main Panel.png

Export specific highlighters for sharing, drag in a different order or delete highlighters directly from the menu
WMERSH v0.7.x - Highlighting Rules Menu.png

Save, import, and export highlighter sets (buttons in the bottom row)
WMERSH v0.7.x - Middle Settings Panel.png

Customize line styles and save presets for use later. Some example styles have been provided.
WMERSH v0.7.x - Line Styles Panel.png

Ta da!
WMERSH v0.7.x - All Panels Open.png

That’s going to be it for a little while, but I’ll still respond to bug reports as soon as I can.

1 Like

There is also a full WME RSel Expression Editor that was originally made for Highlights, but has since become its own stand-alone script. (RSel Highlights still uses its basic components in the backend.)

https://greasyfork.org/en/scripts/17613-wme-road-selector-expression-editor

Example of what it can do:
Screen Shot 2016-03-03 at 2.46.29 PM.png

There is some problem with non ASCII characters in names.

KH.jpg
I think you will soon completely replace my script :slight_smile: but you did a good job.

ah ha! I was hoping someone would help test non-ascii searches! How did you get it to transfer correctly for RSel?

I did nothing. It just works because the strings are in Unicode.

ah okay. I think maybe the regex testing and searching might be affecting it. I’ll look into this matter – unless you already have an answer? :slight_smile:

I don’t know if it helps you but I use the RegExp object as the parameter of the String search() method an it works fine.

Congrats and awesome, it’s a big help using the whole package (Rsel, Rsel Highlights, Rsel Expression Editor, and Context menu) when working with SLs.

P.S. some of those pics and rules look a bit familiar :smiley:

Sent from Android using Tapatalk

I had to use some black magic, but both the Expression Editor and RSel Highlights will now parse full words with non-english characters… even Hebrew.

Random example:
Screen Shot 2016-03-17 at 12.37.51 AM.png

P.S. There will be no replacing of anyone’s scripts :slight_smile: It’s team work!

I started from a saved road selector expression:

I hit the highlights button and got an error message:

I had the same difficulty with