Export all portals, links, fields and system broadcasts in a specific area.
Node.js, MongoDB
npm install
npm install -g grunt-cli
grunt
See config.cson.default
for details.
You need to copy and rename to config.cson
first before running.
Remember to execute grunt
after you modifying config.cson
or updating repo.
-
Install IITC
-
Install Draw Tools plugin of IITC
-
Draw a polygon on the map (your desired requesting region)
-
Open Developer Tools -> Terminal
-
Paste the code below & press ENTER
window.plugin.drawTools.drawnItems.eachLayer(function(layer) { if (!(layer instanceof L.GeodesicPolygon)) { return; } var latlngs = []; layer.getLatLngs().forEach(function(p) { latlngs.push([p.lat, p.lng]); }); console.log(JSON.stringify(latlngs) + '\n'); });
-
Copy output to your
config.cson
.
Notice: If there are more than 1 polygon on the map, the code will output data of all polygons. Please choose the one your desired.
node build/app.js --portals --new
node build/app.js --portals --detail false --new
node build/app.js --broadcasts
node build/app.js --faction
node build/app.js --export -tI --output output.csv --detect false
node build/app.js --trace --player Vivian --detect false
node build/app.js --farm --output farm.json --detect false
node build/app.js
--portals Request portals information
--broadcasts Request public broadcast messages
--faction Request faction messages
--export Export portals (output to stdout)
--trace Trace a player's destroy/deploy/link history (experimental)
--farm Find farms (experimental)
--detect false Don't detect munge data & player info (optional)
Overwrites --detectmunge and --detectplayer
(You may need this when using --export, --trace or --farm)
--detectmunge false Don't detect munge data (optional)
--detectplayer false Don't detect player info (optional)
--cookie COOKIE The cookie to use (overwrite config.cson, optional)
--proxy PROXY_URL HTTP proxy URL (for example, http://127.0.0.1, optional)
Requesting portals (--portals
):
--new -n Start new requests (otherwise continue, optional)
--fast Start new requests based on existing tile data
(overwrite --new, optional)
App will only request tiles that containing portals.
It can effectively improve speed when region is large,
but lose some new approved protals.
--detail false Don't request portals details (faster, optional)
Requesting public/faction (--broadcasts
or --faction
):
--new -n Start new requests (otherwise continue, optional)
--tracedays N Trace history of N days (overwrite config.cson, optional)
Exporting portals (--export
):
--title -t Include title
--latlng -l Include lat & lng
--id -i Include guid
--image -I Include image URI
--time -T Include captured time (if available)
--owner -o Include owner (if available)
--output FILE Output to the file instead of stdout (optional)
Tracing player (--trace
):
--player PLAYER The player to trace (case sensitive)
--output FILE Output to the file instead of stdout (optional)
Finding farms (--farm
):
--radius R Minimum distance of portals (unit: m) (default: 500)
--nearby N Minimum nearby portals for a farm (default: 5)
--level LEVEL Minimum level of portals (default: 7)
--team RES|ENL|ALL Farm filter (default: ALL)
--output FILE Output to the file instead of stdout (optional)
The MIT License