Warclient - seggil/warciv GitHub Wiki
Autowakeup and sleeping units
This feature is enabled by default (menu Miscellanous). If disabled, client automatically sentries units activated by enemy units without moving the view.
This is useful during attack with lots of air units and ships sentried in single city if attacker doesn't want any defender's units to unsentry the whole army in the city, or when one player is under attack by two players. The same result can be achieved by disabling warclient->autowakeup sentried units.
You can also choose exactly what unit should wake up, what unit shouldn't with sleeping units (key 'k').
Move and attack mode
Disabled by default, this feature allow to auto attack units after a unit move when enabled. Use 'shift'+'o' to toggle the state of this mode.
Default diplomats and caravans actions
This features are disabled by default. To enable it, go to Miscellanous->diplomat action upon arrival for diplomats or Miscellanous->caravan action upon arrival for caravans and choose the desired action. Then when you send a diplomat to enemy unit or a city, the diplomat will automatically carry out the selected action without prompt. When autoattack is enabled, diplomats having bribe as the default action will bribe units automatically. From now on, caravans won't prompt for action when they arrive in a city but will carry out the selected action automatically.
New unit default action
This feature allow to give automatically some orders to the newly created units. You can choose this follow default actions:
- Idle (do nothing)
- Sentry
- Fortify
- Sleep
- Fortify or Sleep (the client choose in order to the unit)
The default action is set for the next turn only by default. However, you can lock it in the miscellanous menu, then it will be kept as long you don't define a new action.
By default, it affects only military units. A check-button in miscellanous menu allow to affect all units.
This feature give only a new activity to the unit. If you want to see it moves, use rally points. You can also use both, then the action should be effective after the units moved.
Delayed goto
Delayed goto operates in many modes. You can choose it in Delayed Goto->Delayed goto mode. The 4 main modes are:
- single unit - like classic goto (key 'F9')
- all units of the same type - giving order to one unit gives the same order to all units of the same type on the same tile (key 'F10').
- all units - giving order to one unit gives the same order to all units on the same tile (key 'F11').
- all units of the same type on the same continent - giving order to one unit gives the same order to all units of the same type on current continent (key 'F12').
Choose the apropriate mode before pressing 'z'. Change of mode affects only future delayed goto orders.
Select the desired filters. Filters are 'check items' so multiple choices can be selected from a single menu. Client first takes into account inclusive filters, and then exclusive filters. A unit satisfy filters when:
- All inclusive filter conditions are satisfied.
- Nul exclusive filter condition is satisfied.
For example if inclusive filter is set to all, and exlusive to sentried, and delayed goto mode is all units of the same type on the same continent then when you give delayed order to single unit, the same order will be given to all units of the same type on the same continent except sentried units.
Select a unit, press 'z' and click on a destination tile. This goto order will be added to the delayed orders queue and will remain there until all orders are executed or cleared. It is possible to give multiple commands to the same unit - this works properly only if all destinations can be reached in one turn. No units will move until you press 'y'. Delayed orders can be executed any number of turns after they were created. So you can prepare a massive assault and press 'y' even several turns later, all units will remain in the queue until it is cleared or order is executed.
If you repress 'z' before you clicked on a destination tile, then your units will be send on a tile that you will select when pressing 'y'.
If you do not want to execute all delayed orders at once when you press 'y', you can limit the number of units that will move in Game->Warclient Options->Delayed goto->Unit limit. If unit limit isn't 0 (unlimited), Then press 'y' repeatedly.
If you press 'ctrl'+'z' instead of 'z' and selected unit is a paratrooper, it will be paradropped, if it's a nuke it will go to destination tile and detonate 'manually' - killing any stealth fighters.
You can also schedule a massive airlift units with 'ctrl'+'y' or add a break ('ctrl'+'b') in the delayed goto queue.
To clear the queue press 'u'.
Side effect of delayed goto is that if the path to destination is blocked by invisible stealth unit, order will be canceled by server and no units will move.
You can register few delayed goto queues with 'ctrl'+'alt'+'1-3'. Then you can schedule many attack. You can airlift using only 1 queue with using 'alt'+'ctrl'+'shift'+'1-3'. For example, you can plan an attack at the end of the turn, and one at the beginning of the next turn.
This orders can be executed automatically with selecting a value at Delayed Goto->Delayed goto auto.
Automated airlifting
Automated airlifting works only on standard 2.0.7 server, 0.8.x or later warserver. It doesn't work on standard 2.0.8 server as you would expect since you can only airlift one unit between 2 cities with an airport.
First of all select unit type from Airlift->Airlift unit type.
Then press 'shift'+'z' and click on a city on the map to add it to airlift queue. Add any number of cities you want to airlift from to the airlift queue. You need to do this only once. If you click a second time on a city, The city is removed of the queue. Note that you can adding all your cities with an airport pressing 'ctrl'+'shift'+'z'.
Clear the queue using 'shift'+'u'.
Press 'shift'+'y' and click on a destination city on the map and units will airlift to the destination city. From now on, just keep pressing 'shift'+'y' and clicking on a destination city and units will be airlifted. There is no need to select source cities again!
You can manage many airlift source queues, with different unit type. For it, register your current airlift city queue with 'alt'+'ctrl'+'4-9'. You can airlift using only 1 queue with using 'alt'+'ctrl'+'shift'+'4-9'. This feature can be usefull when you already got many islands.
Airplane Patrol
Select an airplane and press 'ctrl'+'e' and click on a destination tile, or 'e' if you want to select the current tile. That unit will go to that tile as soon as client receives new turn packet (as soon as new turn begins).
Air units return to cities to refuel automatically, so there is no need to tell the unit where to return at the end of turn.
Air units will keep going to their destination tiles at the beginning of each turn.
Press 'e' (if the unit is on the patrol tile) or 'e'+'e' (else) to cancel the orders of a unit.
Very useful for AWACS patrolling far away protected by AEGIS or stealth fighters blocking every mountain and hill during attack or defence.
Trade Planning
Trade planning can be done in two ways, before or after construction of cities.
To do planning before cities are built, press 'shift'+'a' or hold 'shift'+'a' + click on each tile of your planed cities you want traderoutes for individually. 2 clicks on one tile means remove the city of the list.Then from menu select, Auto caravan->Precalculate trade planning to see trade calculations, or if you need to restart over, you can select Auto caravan->Clear trade planning. After you build all cities or build new road select Auto caravan->Calculate trade planning.
To do planning after all your cities are built, select the cities you want to have traderoutes. Either right click, drag your mouse over all your cities and then unselect inland cities with left click and then press 'shift'+'a' or hold 'shift'+'a' + click on each city you want traderoutes for individually. 2 clicks on one city means remove the city of the list. Then from menu select, Auto caravan->Calculate trade planning.
You can press 'ctrl'+'t' to see your suggested traderoutes at map.
Auto-Caravans
When caravans are built, press 'ctrl'+'j' to auto-send them. Or press 'j' to choose a city to trade with. When you are done trading, you can press 'ctrl'+'t' again to hide the traderoutes.
You can see some informations about this trade planning at Auto caravan->Show trade estimation (list of the running caravans) or Auto caravan->Show the trade route free slots (list of the cities which won't have 4 trade routes).
Multi-Selection
The unit multi-selection tool allow to the user to select many units. When the units are selected you can execute all commands available on Warclient. It's the new code for mass orders.
The unit selection is like delayed goto selection: there a selection mode, an inclusive filter and an exclusive filter. When you press shift + C, all units which enter in the mode (place and unit type) are selected. When you execute a command with this units, only the units which pass the 2 filters would get the new order.
The place mode can be:
- One single unit (disable the tool)
- A transporter (unit without tranporters are considered to be in the same transporter)
- A tile
- A continent
- Every where The unit type mode can be:
- One only type
- All types with the same move type (e.g. land units, sea units or air units)
- All types
A unit satisfy the filters if one of the inclusive filter condition passes and if nul exclusive filter condition pass.
The different command:
- 'shift'+'c': select all the units which enter in the mode (place + unit type).
- 'shift'+'v': clear the current selection, return to the single unit mode.
- 'shift'+'b': active (free orders) all units which enter in the mode (including the units which don't pass the filters selection).
- double+LMB on one unit: select all units of the same type on the current map view.
- 'shift'+LMB on one unit: add or remove this unit of the current selection.
- 'shift'+double LMB on one unit: add all units of this tile.
- In city dialogs: when you click on one unit, you can click on Add/Remove unit in focus to add or remove the unit of the current selection. Short cuts: shift + LMB on the unit or shift + MMB (+ close the city dialog).
- In tile dialog: you can select one or many units. Select them or add them to the current selection.
- 'shift'+'s': spread all this units on the different cities of the continent. If the Spread only in cities with airport option is enabled, the units will be spread only in the cities where there is an airport. If the Allow spreading into allied cities is enabled, the units will be spread as well in your cities than in the cities of your allies.
The different options: (Game->Warclient options->Multi-Selection)
- Count all units in the selection, including excluded units: when many units are selected, a number on the unit info label says to you how many units are selected. If this option is enabled, it will count the units which don't satisfy the filters.
- Blink all units in the selection, including excluded units: if enabled, it will blink all units, including the units which don't satisfy the filters.
- Blink units in the selection: if disabled, only 1 unit will blink.
- Allow multi-selection at map: if enabled, you can select the units with the yellow selection rectangle at the map.
You can assign many units to a battle group, using ctrl + [1 - 9]. To call back a battle group press [1 - 9], or shift + [1 - 9] is you want to add it to the current selection. With shift + ctrl + [1 - 9], you free a battle group.
Rally points
You can select a rally point for all your cities. That's mean that all new unit will go to this tile after being created.
First, select cities with the yellow selection rectangle. Second, press 'shift'+'s'. Third, select the rally point for this selected cities.
This rally point is deleted when it is used (when the first unit is built on the city), or when you press 'shift'+'r' after selecting cities.
Inclusive and exlusive filters
Filters are applied in the following order:
- Mode (from Delayed goto or Multi-Selection)
- Inclusive filters
- Exclusive filters
Following filters are available:
- All units - selects all units
- New units - selects units which have never moved in the game
- Fortified units
- Sentried units
- Veteran units
- Auto units - Unit which have automatic orders
- Idle units - units not carrying out an action (like fortifying, sentried, mining, building roads etc)
- Units able to move - units which have more than 0 movement points left
- Military units - units able to attack
- Off - no unit!
Automatic Executions
Some features can be executed automatically. It's the case of airplane patrol, delayed goto and auto-caravans. You can choose a value or many for them in Game->Warclient settings. There is also a general execution of all automatic orders checkbox.
The different defined signals are:
- New year (when the new turn begins)
- Press turn done (when your press this button)
- No unit Selected (when there isn't any unit to select in focus)
- 50% timeout
- 80% timeout
- 90% timeout
- 95% timeout
- 5 seconds before turn done
- Unit recieves orders (when the unit receive this type of orders)
- Player cancels diplomacy (when the diplomtic state with this player change to war)
Note that not all signals are available for all processus.