Table of Contents
Strategy: Cropfinder
A simple Cropfinder strategy to look for 15, 9 and the Travian 3.5 “7” crop fields, it reports these as events to the console and but in the process builds a file of all resource information it discovers. This includes basic information about other Villages as well as empty fields. An optional parameter selects the output format. Current supported output is txt or csv. The default is a text file that has all information appended on the end even if VilloNanny is restarted. The information contains resource field counts and also Village information and population. The information is time and date stamped so that appended information can be seen. For settled villages the information includes a formated string that can be used for the "Farmizzator" or "FarmRotator" strategies. The csv format also includes the URL for the village or valley so can be used for direct access from a suitable spreadsheet. It checks each valley in a grid around a nominated start point and writes findings to cropfinder.<format> in the logs directory. The default with no parameters is to check the single 7×7 around the village owning the strategy. The maximum radius is in terms of 7×7 map squares but the search does each 7×7 so it will round up to the next square. As it searches 7×7 with the start at the centre it therefore searches 1, 9, 25 7x7s depending on the radius. It makes some attempt to emulate a person doing this and returns to to the main village page between each 7×7 and uses minPauseMinutes as a short delay as if having a rest between searches. Notes
Syntax<strategy class="CropFinder" desc="DESCRIPTION" enabled="true" maxRadius="RADIUS" minPauseMinutes="MINS" runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> <start x="STARTX" y="STARTY" /> <from x="FROMX" y="FROMY" /> <output append="APPEND" format="FORMAT" /> </strategy> Attributes and parameters
ExamplesSearch your 7×7 and generate a .txt file
<strategy class="CropFinder" desc="Local" enabled="true" uid="sV1cf" />
Search around 100,-100 as if your village was at 10, -10 and overwite any existing .csv file <strategy class="CropFinder" desc="Find 9 and 15 Croppers around given location" enabled="true" maxRadius="10" minPauseMinutes="1" uid="sV1cf"> <start x="100" y="-100" /> <from x="10" y="-10" /> <output append="false" format="csv" /> </strategy> |
![]() |