Iâm using Chrome and checked - it looks like the new version 0.4.3 is loaded. I refreshed the screen that I was on and found a dead-end U-Turn. Fixed it and saved; it still flashes until I select and unselect the road.
I assume that this should work in the UK? I am getting the error:
Sorry,
You cannot use WME Validator over here.
Please check the forum thread
for more information.
Also, for a feature request: we currently have the option to âExclude non-drivables and streetsâ. Is it possible to break this into two options? I would like to be able to exclude non-drivables, but still include streets.
Reproduced, cache issue indeed. You can also click âClear reportâ button to re-validate all the segments.
Validator is based on WMET, so it has the same restrictions. I hope I could remove the restriction in the next release.
The page must be cached or smth.
Most of the checks dedicated for the drivable roads, for instance: âUnknown direction of drivable roadâ, âUnterminated drivable roadâ and other checks with word âdrivableâ. They never report non-drivables, so the separated option might be not that useful?
You might be right, it might be confusing, esp. when you open permalinks in new windowâŚ
Youâre right; I was kind of hasty in writing my request. What I really want is the ability to exclude non-routable but drivable segments (private roads, parking lot roads, and dirt roads) from the report, but include all other drivable segments.
I asked for that check to be enabled because there are some situations where it is useful to know that. I thought it was pretty clear that it was a ânoteâ (blue) and also a âbetaâ note, and not a yellow or red problem. It is up to the editor to decide whether this is something that requires action. Since freeways should be locked at L5 anyway, I would imagine we can trust the editor to do the right thing with it.
Iâd like to hear from Alan and txemt in light of this before turning it back on, though.
I just tried this tool for the first time, looks promising!
However, the âclear report and segment cacheâ button does not seem to work for me. I run an analysis and then want to get rid of the flashing segments. So I click this button and the flashing segments go away. But, as soon as I pan the map, they reappear instantly. Am I doing something wrong?
I am running validator 0.4.3 on Chrome 31.0.1650 via Tampermonkey.
Validator Localization Packages What is localization package?
Localization package is a script that tunes Validator up for your country. The script can enable/disable checks, set params and exceptions, translate user interface and messages.
There are two types of localization packages:
Built-in or default packages (come bundled with Validator).
External or user packages (the subject of this document):
a) user packages with params and translations
b) user packages just with params
User packages have higher priority, so they can override default options.
How to create a localization package?
Position WME over your country.
Switch WME to your language to get options and translations
or switch WME to âEnglishâ to get a package just with options.
Make sure any previous version of your script is ENABLED.
Prepare your country ISO Alpha-2 country code: list of codes (example: ES)
In Validator click Settings->About->(magic wand) and answer the questions if any.
The generated package is a Greasemonkey/Tampermonkey script ready for installation.
Copy and paste it into a new .user.js file or directly paste into the Greasemonkey/Tampermonkey.
Example filename: Validator-Spain.user.js How to tune up/translate the package?
Open the .user.js file in a text editor. You can create a Google document and share the file among few editors/translators.
Search (Ctrl+F) for string âTODO:â and translate/check the marked strings. Please also remove the âTODOâ marker. Example:
For some checks you can also set params. Have a look at the complete list of validations for the list of params and their description: forum link
For example, to create a custom check âStreet name with a dot (excluding Ramps)â, add the following lines:
"130.enabled": true,
"130.severity": "warning",
"130.params": {
"titleEN": "Street name with a dot",
"problemEN": "There is a dot in the street name (excluding Ramps)",
"solutionEN": "Expand the abbreviation or remove the dot",
"template": "${type}:${street}",
"regexp": "D/^[^4][0-9]?:.*\\./",
},
*Note: use D at the beginning of RegExp to enable debugging on JS console.
*Note: do not forget to escape backslashes in strings, i.e. use â\â instead of "".
How to install the package?
The Wizard generates Greasemonkey/Tampermonkey script ready for installation.
You can copy and paste it directly into the Greasemonkey/Tampermonkey. To add the script in Chrome/Tampermonkey:
Install Tampermonkey for Chrome: Web Store
a) copy your script to the clipboard (Ctrl+C)
b) click Tampermonkey icon in Chrome
c) from the drop-down menu select âAdd a new scriptâ
d) in the script editor select all (Ctrl+A) and paste your script instead (Ctrl+V)
e) click âSaveâ (not âSave to discâ) To add the script in Firefox/Greasemonkey:
Install Greasemonkey for Firefox: Add-Ons
a) copy your script to the clipboard (Ctrl+C)
b) click Greasemonkey icon in Firefox
c) from the drop-down menu select âNew user scriptâ
d) click âUse script from clipboardâ button
e) click âSaveâ
Reload the page, click Tampermonkey/Greasemonkey icon and make sure your script is there. How to distribute the package?
The generated package is a Greasemonkey/Tampermonkey script ready for installation. There are two ways to distribute your localization package:
Your local community maintain/distribute the package. Let me know when your package is ready, so I put a link to your package on the Validator main page. So you need two scripts installed: âValidatorâ and âValidator for your countryâ.
Alternatively, on your request I can import the whole package back into the Validator. So your package becomes a default built-in package bundled with Validator.
How to update the package?
It is OK if Validator version does not match your localization pack version. In case your localization package miss a string or an option, Validator will use english strings/default options instead.
Make sure the previous version of your script is installed and enabled, so you see your translations.
In Validator click Settings->About->Wizard, answer the questions if any and generate updated localization pack.
Note that all your translations will be preserved in this updated script and all new/changed strings will be marked with âTODOâ.
See âHow to create a localization package?â section above for more details.
The âhighlight segmentsâ option and âreportâ feature are separate. You donât need to run the report to highlight/flash the segments live as you work. The report feature scans the map across a wider area than the highlighting can work (due to zoom at which objects are selectable) and gives you a nice long summary page.
Iâd like to request an option to turn that off. Where I live, itâs not uncommon to have a freeway have the city name (along with on/off ramps) within the city and go back to no city name outside of the city. I, myself, would prefer to not have it flashing freeway segments at me because of that.
An additional note, not related to the above: Iâve got some interchanges that look like this:
Now, thatâs a standard SPUI configuration; in fact, my RC asked me to configure these various interchanges this way. However, the Validator is flashing those crossed onramp/offramps as having âtoo many connections.â
Any chance and adjustment can be made to make it a bit more tolerant of these kinds of configuration?
As a side note, kind-of along those lines, it would be nice if the âflash/alert a freeway segment locked at least than Rank Xâ thing were configurable. Yes, I realize that typically freeways, at least within cities, get locked at rank 5. However, there are times when the lock level is less, legitimately. It would be nice if there were an option under settings that was something along the lines of
Report freeway segments locked under rank ____
Where you can check the option in the beginning, and put the numeric value you want to know about at the end of the line like that. Or something similar.
An option just for one of dozens of checks is too much for the user interface :lol:
But I got your idea, so instead I propose a global âStrict modeâ switch. It will simply switch on/off some checks. For instance, there are already two very similar checks:
âIncorrect lock level/The Freeway segment is not locked to Lvl 5â
âNo lock on Freeway/The Freeway is not lockedâ
So the first check might be active for US in a strict mode, while the latter might be activated in non-strict mode, like this:
âIncorrect lock level/The Freeway segment is not locked to Lvl 5â
Countries (strict mode): US, AU, BEâŚ
Countries (non-strict mode): AU, BE⌠(no US here)
âNo lock on Freeway/The Freeway is not lockedâ
Countries (strict mode): BN, MY, SG
Countries (non-strict mode): US, BN, MY, SG⌠(US is here)