vdr.one CnCTA AutoSIM

Browser extension · Command & Conquer: Tiberium Alliances

CnCTA Xenn0X AutoSIM v1

A script pack for Tiberium Alliances with the TABS Auto Optimizer: it runs simulations one after another and puts the best attack formation on the board.

  • v1.1.1
  • Chrome · Edge · Brave
  • 22 scripts
  • No tracking

3.0 MB · free · for non-commercial use · how to install

TABS Auto Optimizer

Example run · illustrative values

0.4.0
Priority
CY (else DF) + low repair
Budget
20 sims ~1 min
Try disabling unit groups
off
Smart search
on
0 / 20
#MoveCYDFArmyRepair

Press Start to play an example run.

The demo runs faster than the real thing: the game allows about one simulation every 3 seconds.

Watch it work

A demo of the Optimizer in the real game.

Prefer YouTube itself? Watch it there.

In the game

Real screenshots. The Optimizer lives next to the TABS buttons, so there is nothing new to learn.

The TABS button box in the game, with a new Optimize button at the bottom
1. The Optimize button sits at the bottom of the TABS button box.
The TABS Auto Optimizer window after a run: priority, budget, unit groups, smart search, Start, a result summary, Repair this formation, the remembered best formation, Notifications and Rank targets
2. The Optimizer window after a run on an Outpost: the best formation was found after 23 simulations, and is remembered for this base. Repair this formation, Notifications and Rank targets… are new in 1.1.
The rank targets window after a deep rank: the top 5 Outposts by loot per repair hour, each with CY and DF state, loot, repair time and the move that worked
3. Rank targets after a deep rank of the top 5: up to 5 simulations per base, ranked by CY kill, then DF kill, then loot per repair hour, with the move that worked. Loot is an estimate.
The report check window: simulation against the real raid report for an Outpost, with army left, enemy left, CY, DF and repair time
4. Report check: after an attack the real raid report is shown next to the simulation. Here it says “differs”: the real attack did better than the simulation, and the CY was destroyed.

What the Optimizer tries

It starts from the formation you set up, then tries neighbouring formations with the game's own simulation and keeps the best one. CY is the Construction Yard, DF the Defense Facility.

1Matchup placement

Reads the defenders from a first simulation, then puts each unit in the lane where its damage suits the defense and it takes the least fire. Uses the game's own armor classes, damage per armor class, unit levels and terrain.

2Focus strike

Vertigos on and beside the target lane, a cloaked Commando down it in a later wave. Also tried with the Commando carried in a Reckoner, and aimed at the Defense Facility's lane.

3Lane shift

Moves single units, air first, into the lane of the target building, and puts the Commando in the latest wave of that lane and the lanes beside it.

4Leave out

Once the CY falls, the units that cost the most repair time stay at home, as long as the CY still falls without them.

5Air strike

As soon as the CY or the DF is down (on a second attack: right away), only air units go down the CY lane, one per wave, weakest first. Often a kill with no repair.

6Smart stop

Stops early once the target is destroyed and nothing better turns up. Formations that were already simulated cost nothing, and the TABS statistics window keeps working.

New in 1.1

ARemembers per base

The best formation found for a base is remembered and tried first on the next run there. It also counts which kind of move worked (focus strike, lane shift, air strike…) and tries starting formations in that order.

BReport check

After an attack the raid report is fetched and shown next to the simulation: army left, enemy left, CY, DF and repair time, with “matches” or “differs”. It compares with the formation you last had on the attack screen.

CSecond attack

If the CY survived, opening the attack on that base again opens the Optimizer set to “CY (else DF) + low repair”, ready to simulate again.

DRepair this formation

Repairs only the damaged units that are switched on. Units you left at home keep their repair time.

ERank targets

Simulates the bases the Basescanner found and ranks them by CY kill, then DF kill, then loot per repair hour. Pick how many bases, and a quick rank (1 simulation per base) or a deep rank (up to 5 per base). Open it from the Optimizer window or the Rank button in the Basescanner window, next to “clear Cache”.

FNotifications

Off by default. Switch on in the Optimizer window to hear when a run is finished, a report has arrived, command points are full, or there is enough repair time for a whole army.

Priorities

Use the TABS presets (CY, DF, Deff, CC, CY*) or the extra one:

CY (else DF) + low repair: destroy the CY. If no formation can, destroy the Defense Facility, leave as little defense standing as possible and push on the CY for your next attack. Then the lowest repair time wins, scored the game's way: the longest of the infantry, vehicle and aircraft repair.

It works in two stages. First it goes for the CY like the plain CY priority (20 simulations, or half of a small budget). Only if that finds no CY kill does it switch to the DF first, re-ranking everything it already simulated, so it costs no extra simulations. The Optimizer opens on CY with 20 simulations: a quick CY test first, and then a DF-first run if you want one.

How it works

  1. Set up your attack against a base, as you always do.
  2. Press “Optimize”, the new button under the TABS buttons.
  3. Pick a priority and a budget, then press Start. Each simulation takes about 3 seconds, the game's own limit. You can also let it try switching off whole unit groups, and switch smart search off (it is on by default).
  4. Take the result. The best formation found is placed on the board, or yours is put back if nothing was better. You press Attack yourself.
  5. Afterwards: the report check shows how the real attack compared with the simulation. To pick the next target, press Rank targets… (or Rank in the Basescanner window) to rank the bases it found.

Good to know. It never simulates faster than the game itself allows. It waits for the simulator's own lock before every run, so the budget is also a time budget. Don't move units or leave the screen while it runs.

From the author's testing

Single bases in the real game, not promises. Results differ per base and formation.

sim 7The CY kill was found at simulation 7 with a focus strike on a real Outpost, which no number of single moves had reached.
8 vs ~35Simulations to kill the CY on a real Outpost after the new move order, against the order before.
21:12 → 6:22Repair time after leaving units at home, with the target still destroyed.
44% vs 35%Army health left after 16 simulations, with 11 units lost against 14 for the player's own formation.

Checked against real raid reports: army %, enemy % and repair time matched the simulation to the second.

What is in the pack

22 scripts, 21 of them switched on by default and each one switchable in the options. Based on the CnCTA SoO Script Pack by netquik; most scripts are other people's work and keep their authors.

The options page of the extension: all 22 scripts in groups, each with a checkbox; the Combat Simulator (TACS) is the only one switched off
The options page: every script has its own checkbox, grouped as wrapper, simulator, info helpers, tools, GUI enhancer and mail and message. The Combat Simulator (TACS) is switched off by default; switch it on if you want it. Pick what you want and press Save.

Added in this pack

  • TABS Auto Optimizer0.4.0 · Xenn0XNew

    Add-on for Battle Simulator V2: searches for a better attack formation by running a queue of simulations. Since 1.1 it also remembers the best formation per base, checks the report and ranks targets.

  • SoO Compatibility Shim0.1.0 · Xenn0XNew

    Safer lookups of the game's internal names after patches. SOO_SHIM.report() in the console shows which lookups work.

Adjusted

  • Tiberium Alliances Battle Simulator V223.05.31 · Eistee, TheStriker, VisiG, Lobotommi, XDaastChanged

    Game-internal lookups now go through the compatibility shim.

  • TA Autorepair1.0.4 · petuiChanged

    Stops with a clear console message instead of breaking when a patch renames something it needs.

  • infernal wrapper1.52 · NetquiK, after infernal_me, KRS_L, krisanChanged

    Two independent lookups; it reports itself as not installed if either one fails.

  • TACS (Combat Simulator)3.80 · KRS_L and many contributorsChanged

    Back in the pack, switched off by default. Safer lookups through the shim, the defense bonus is rounded instead of floored, and it never wraps a game method twice.

Unchanged from the SoO pack

  • Attack Range2.31 · Napali, XDaast
  • Base Share22.07.22 · TheStriker
  • CnCTAOpt Link1.0.7.7 · zbluebugz
  • Chat Helper Enhanced3.2.3 · Yiannis mod
  • Formation Saver2.3.3 · Panavia, KRS_L, DebitoSphere
  • MaelstromTools Dev (Mod v1.7 for MCV)0.1.5.5 · Maelstrom, HuffyLuf, KRS_L, Krisan, DLwarez, NetquiK
  • Maelstrom ADDON Basescanner AIO1.9.5 · BlinDManX, chertosha, NetquiK
  • MovableMenuOverlay1.0.9 · NetquiK
  • PvP/PvE Ranking, POI Holding and split base kill score1.7.4.4 · ViolentVin, KRS_L, YiannisS
  • Real POI Bonus1.0.4 · petui, AlkalyneD4, NetquiK
  • The Movement1.0.8.3 · petui
  • Tunnel Info2.2.1.4 · KRS_L
  • WarChiefs Sector HUD22.05.04 · Eistee
  • WarChiefs Upgrade Base/Defense/Army22.10.08 · Eistee
  • Wavy0.6.2 · petui
  • Zoom1.0.5 · Panavia, Gryphon, NetquiK

Privacy

  • The statistics function of the original pack is removed: nothing is sent to a statistics site.
  • The donation buttons and the e-mail and support links are removed as well.
  • The extension only asks for local storage and access to the game's own site (*.alliances.commandandconquer.com).
  • No analytics or tracking code. The one outbound action is the CnCTAOpt button, which opens an external base planner when you click it.

Tested

The search logic of the Optimizer does not touch the game directly, so it is tested outside the game with recorded battle data from four Outposts. There are automated tests for the Optimizer, the compatibility shim, the wrapper, the glue code and Auto Repair.

Install

An unpacked extension for Chrome, Edge, Brave and other Chromium browsers.

File: CnCTA-Xenn0X-AutoSIM-v1.zip (3.0 MB, v1.1.1). SHA-256: 043ae2faecb13bd4a9e36c74f0cd288873c370f65d48deed7c3f4a2ce81e9513

  1. Unzip the archive somewhere permanent, for example in Documents. Chrome loads the extension from that folder every time it starts.
  2. Remove or switch off older packs (“CnCTA SoO SCRIPT PACK” and its “(updated)” version), or every script loads twice.
  3. Open chrome://extensions (Edge: edge://extensions) and turn on Developer mode.
  4. Click Load unpacked and choose the folder that contains manifest.json. Make sure the extension is switched on.
  5. Switch scripts on or off in the options: click the extension's icon, then Options. Reload the game tab.

Check that it works

Open an attack on a base: under the TABS button box there is an Optimize button. In the console (F12) run:

SOO_SHIM.report()

On the current game version every lookup should say ok, none “via fallback” or “failed”. To update later: replace the files in the folder and click the reload arrow on the extension.

Credits and licence

Based on the CnCTA SoO Script Pack by netquik. The pack's options page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0. Every bundled script keeps its own author and licence, for example GPL v3 for several of petui's scripts and CC BY-NC-ND 3.0 for the Basescanner AIO. The TABS Auto Optimizer and the compatibility shim are by Xenn0X.

Fan-made and unofficial. Not affiliated with or endorsed by Electronic Arts. Command & Conquer and Tiberium Alliances are trademarks of Electronic Arts Inc. The screenshots show the game's own interface and artwork, which belong to Electronic Arts.