From NEAT Portal Wiki
Jump to: navigation, search

ValleyMin

Usage: config valleymin:[level]
Example:

config valleymin:1

This goal tells the bot the minimum level of valley you wish it to acquire for resource production. It must be used alongside config valley as a maximum. The bot will acquire the highest level valleys it can find first up to the maximum setting, and then acquire lower and lower ones until all slots are filled, or valleymin is reached.


Valley

Usage: config valley:[level]
Example:

config valley:10

This goal tells the bot to capture valleys for increased resource production in your cities. The bot will automatically know to capture forests for cities with a higher production of lumber, hills for cities with a higher production of iron, deserts for cities with a higher production of stone, and lakes for cities with a higher production of food. You will benefit more from valleys (more than 200k per hour production bonus) in a pure resource city of all lumber or all iron, rather than mixed fields with partial lumber and iron.

If config valleymin is present, the bot will use this config valley setting as the maximum level valley to obtain. Anytime a valley becomes available of a higher level (up to this maximum), the bot will drop the lowest level valley to upgrade to the higher one, until all valleys are of this level.

The bot will use any available hero for valley acquisition, unless specified otherwise in valleyheroes.


Valley Production Bonus

The following is a table listing the benefits given for each valley type and level.

Grass
Food
Swamp
Food
Lake
Food
Hill
Iron
Desert
Stone
Forest
Lumber
lvl 1 3% 5% 8% 5% 5% 5%
lvl 2 4% 7% 11% 7% 7% 7%
lvl 3 5% 9% 14% 9% 9% 9%
lvl 4 6% 11% 17% 11% 11% 11%
lvl 5 7% 13% 21% 13% 13% 13%
lvl 6 8% 15% 24% 15% 15% 15%
lvl 7 9% 17% 27% 17% 17% 17%
lvl 8 10% 19% 30% 19% 19% 19%
lvl 9 11% 21% 33% 21% 21% 21%
lvl 10 12% 23% 36% 23% 23% 23%


Valleytroops

Usage: valleytroops [/type:string] [/level:#] [level#] troop-string
Example:

valleytroops 1 s:5000
valleytroops 2 s:5000
valleytroops 3 s:5000
valleytroops 4 s:10000
valleytroops 5 s:10000
valleytroops 6 s:50000
valleytroops 7 s:50000
valleytroops 8 s:100000
valleytroops 9 a:12800,sw:1,p:1,s:1,w:40000
valleytroops 10 a:19990,sw:1,p:1,s:1,w:60000
valleytroops /level:10 /type:forest s:100000

Switch:

/level:#
/type:valley_type

Valley Types:

forest or fo
desert or d
hill or h
swamp or s
grassland or g
lake or l
flat or fl

If you wish to change the default troops sent to each valley and flat while capturing valleys for resources, building npcs, or medal farming, you can specify the troops using this directive. If any level is omitted, the bot will use the default. In the above examples, the bot would use 5k scouts to attack level 1-3 valleys & flats, 10k scouts to attack level 4-5 valleys & flats, 50k scouts to attack level 6-7 valleys & flats, 100k scouts to attack level 8 valleys & flats, 12.8k archers/1 sword+pike+scout/40k warriors to attack level 9 valleys & flats, and 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats.

Optional switches for level and valley type may be added to override other valleytroop goals, or defaults. In the last two lines of examples above, the bot is instructed to use 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats, but if the level 10 valley is a forest, it will instead use 100k scouts. An option like this could, for instance, allow you to setup the bot to do your medal hunting with safer and slower troops, while grabbing the forests it needs for resource production with faster scouts.

Default Valley Troops

The default troops used to capture valleys, capture flats for npc building, etc.:

Warriors Scout Pikemen Swordsmen Cavalry Archers
lvl 1 0 0 0 0 0 50
lvl 2 0 0 0 0 0 100
lvl 3 0 0 0 0 0 200
lvl 4 1200 1 1 1 0 400
lvl 5 2400 1 1 1 1 800
lvl 6 4800 1 1 1 1 1600
lvl 7 9600 1 1 1 1 3200
lvl 8 19200 1 1 1 1 6400
lvl 9 38400 1 1 1 1 12800
lvl 10 60000 1 1 1 1 19990


The default troops used to medal hunt and valley farm:

Warriors Scout Pikemen Swordsmen Cavalry Archers Ballista
lvl 1 0 0 0 0 0 50 0
lvl 2 0 0 0 0 0 100 0
lvl 3 0 0 0 0 0 200 0
lvl 4 1 1 1 1 0 400 0
lvl 5 1 1 1 1 1 1000 0
lvl 6 1 1 1 1 1 2000 0
lvl 7 1 1 1 1 1 5000 0
lvl 8 1 1 1 1 1 10000 1
lvl 9 1 1 1 1 1 20000 1000
lvl 10 1 1 1 1 1 25000 2000


Valleylimit

Usage: valleylimit min_troops
Example:

valleylimit w:100k,a:50k

This directive works the same as npc10limit, only for attacking valleys. This tells the bot the minimum number of troops it must have in the city before it will attack another valley. In the example above, the bot must have 50k archers and 100k warriors before it will resume valley or medal farming.


Hunting

Usage: config hunting:[switch]
Example:

config hunting:5

Switch:

0 Do not hunt for medals
1 Hunt for medals in level 2 to 3 valleys
2 Hunt for medals in level 4 to 6 valleys
3 Hunt for medals in level 7 to 9 valleys
4 Hunt for medals in level 9 & 10 valleys
5 Hunt for medals in level 10 valleys only
6 Hunt for medals in level 6 valleys
7 Hunt for medals in level 7 valleys
8 Hunt for medals in level 8 valleys
9 Hunt for medals in level 9 valleys
10 Hunt for medals in level 10 valleys

By enabling this goal, the bot is instructed to farm the appropriate levels of valleys for medals. The bot will abandon 1 or more of your valleys to free up slots to hunt with. The bot hunts for medals via the catch & release method - capturing a valley and abandoning it before the next attack lands. The bot will use the specified valleytroops for medal hunting, or the default if not set. The nearest valley of the right level that is within the maximum miles for medal farming as set in distancepolicy will be used, unless specified otherwise with huntingpos or huntingtype.

The bot will use any available hero for hunting, unless specified otherwise in valleyheroes.


Huntingpos

Usage: huntingpos coords
Example:

huntingpos 111,222

Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to medal hunt only at the specified coordinates.


Huntingtype

Usage: huntingtype valley_type
Example:

huntingtype desert

Valley Types:

forest
hill
desert
lake
swamp
grassland
flat

Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to restrict it's medal hunting to only valleys of this type. In the example above, the bot will only attempt to hunt for medals in deserts found within the number of miles specified in distancepolicy.


ValleyFarming

Usage: config valleyfarming:[level]

valleyfarming forest_miles desert_miles hill_miles swamp_miles grassland_miles lake_miles

Example:

config valleyfarming:10
valleyfarming 5 0 5 0 0 0

Enabling valley farming will tell the bot you want it to continually attack nearby valleys for extra resources. In the above example, config valleyfarming:10 tells the bot to farm level 10 valleys, and valleyfarming 5 0 5 0 0 0 tells the bot that you want it to farm up to 5 miles for forests and hills, but not farm any of the other types.

If you enable config valleyfarming, but do not specify the types of valleys to farm, the bot will farm valleys of the same resource type as the city, eg: the bot will farm forests if your city is mostly lumber.

The bot will use any available hero for valleyfarming, unless specified otherwise in valleyheroes.


SafeValleyFarm

Usage: safevalleyfarm level[,level,level]
Example:

safevalleyfarm 9,10

This directive will tell the bot to attempt to find and farm for resources and medals within valleys of the specified level that it can safely hit for zero losses. The bot will first scout all valleys of the right levels within it's valley capturing radius as specified in distancepolicy. It is recommend to keep the number of miles to around 10 or less for this, otherwise the bot will spend all it's time scouting instead of actually attacking. When it finds valleys it's able to hit, it stores their coordinates for future attacking.

The bot will use any available hero for safevalleyfarming, unless specified otherwise in valleyheroes.

The following rules are applied for safe farming:

  • with a valley that has only archers on it, 1 scout and as many cavs as there are archers on the valley are sent.
  • with a valley that has no cavs and no archers, only archers are sent with a quantity based on the valley level.
  • with a valley that has cavs and no archers but up to 2 layers, archers with a quantity based on the valley level, accompanied with 1 balista, 1 pike and 1 swordsmen are sent.

The following quantites of archers for each valley level are used:

1: 50 - 2: 100 - 3: 200 - 4: 500 - 5: 1000 - 6: 2000 - 7: 4000 - 8: 8000 - 9: 15000 - 10: 25000

Valleys get farmed at most once per hour, so it is possible that not all found valleys will be farmed due to closer valleys being ready to hit again.

Saving goals with the same list of valley levels will not disrupt valley farming operations. If however you change the valley levels, the list of valleys to farm is reset and scouting will have to be performed again. To stop farming simply comment or remove the safevalleyfarm goal. On every reconnection, the list of valleys 10 miles around your main is evaluated to see if a valley level has changed. If this is the case, safe farming is returned to a clear state and scouting restarts with a fresh list of valleys.

Limitations:

  • Safe valley farming cannot be used at the same time as config hunting and will not perform any operations.
  • There is currently no way to select what type of valleys you want to farm, only the levels.
  • There is currently no way to specify what troops to use to attack a valley.
  • Make sure you hold all your valleys before activating safe valley farming. You do not want to capture valleys with safe valley farming.
  • There is still a small chance that an attack on a valley sent before maintenance hits the wrong level of valley after maintenance yielding losses. There is code to try and recall if the valley levels, but it can run only if the hit would occur while the bot is connected.