

Ally yourself with other players to form mighty tribes. This service will include a web UI to view buildings and troops queues for all of the player’s villages.Build your villages and expand your empire. These are dumb services with configuration files most likely hosted on mlab for each villages, specifying the build order and troops presets.

Lastly, we have the final automation bit: build and recruit. Workflows for this service will be configured in Activiti BPM.
#Tribal wars 2 units free
The Ops service should have a GUI with nodes that you can drag to draw up workflows, configure rule sets, something like IBM App Connect, Automation Anywhere RPA or NodeRED but free and well-documented.Īside from providing checks for farming, this service is also responsible for calculating and performing dodge and backtime based on rules set by player, such as when a village is offensive, it should dodge or backtime or whether such action is specified by player. It checks the data service’s collected data, perform checks on any requested commands, deny/approve the commands and issue them. The operation service or Ops service is responsible for issuing final commands to the game. While these questions can be answered and solved with coding or text configuration, after using either approaches, I’ve come to a conclusion that I needed something more verbose, easier to manage, something that do all the checks, lets me configure the rules and send out the final commands to the game, something like… Operation service # However, before we send out our farm runs, there are couple of checks we need to do: is this village getting attacked, is it due to send out support to another village after its determined run time, is it a prime target in an ongoing op that troops need to stay home for?

List of any other inactive non-barb villages.Within the service, through a web UI, the player can configure: Divide available units used for farming into 50 teams with equal capacity.Get a list of all barbarian villages in a 15-village radius.A player/tribe/village I’m monitoring changesĮach of these alerts could trigger further actions to be done like send the messages to Slack or Discord for the last one.Troops in the village had completed building to a preset.

The alerts will depend on player’s configurations but at the very least, I’d expect to see an alert when: The alert service is aimed to use Elasticsearch’s alerting plugins such as Yelp’s elastalert since we’re not using X-Pack. With tw2-tools being sunset, this service could become more prevalent than ever. Yes this is a total overkill if the entire project is going to run on a single Docker node, but we never know. Kibana out of the box.Īs the game can notify the web UI on any new events through web socket, I’m employing RabbitMQ’s persistence and queue durability to allow for higher reliability. For this project I decided to go with Elasticsearch as its querying capability is very much similar to that of MongoDB and it includes a really nice UI i.e. In the past, I had chosen to go with MongoDB due to mlab’s free 500MB clusters. The data collected here serves as a the source of truth for all planning and building services going forward.
