My AutoResolve program implemented in Rust.
Performs same functionality as AutoResolve2.0
Specify which type of battle to run.
- 1: Normal
- 2: Siege
- 3: Raid
- 4: Naval
- 5: Monster
Number of battle calculations to perform.
Display help information
JSON file to read and parse to battle. Mutually exclusive with r
/--random
and -b
/--battle
.
Display results from each battle run
Use multithreading to calculate runs. Noticeable benefit will only be gained when calculating > 100 battles.
Use randomly generated data for battle runs. Mutually exclusive with -j
/--json
.
Save battle results to .csv
file. Can override default save location with -f
/--file
.
Override default file for reading in treasure data
Override default file for reading in unit data
Order of variables in equipment.csv
file:
- Type: Armor, Weapon, Trinket, Banner, Follower (
String
) - Name (
String
) - Effect(s) (
String
) - Coin Value (
int
) - Id (
unsigned int
) - Autoresolve Bonus (
int
) - Range (
int
)
The 'Corpse Thief' Follower equipment has 1 as it's autoresolve bonus to help calculate bonuses when finding treasure at the end of battles.
Order of Variables in units.csv
file:
- Faction: Rebel, Beladimir, Lerastir, Menoriad (
String
) - Name (
String
) - Type: Melee, Cavalry, or Ranged (
String
) - Autoresolve Bonus (
int
) - Unit size(
int
) - Unit id(
unsigned int
)
Data can be saved from test runs to .csv
format.
Columns in output from 4 regular battle types (Normal, Siege, Raid, Naval): Scroll down for read out of locations for Monster battle type
- Battle Type -
String
- Battle Randoms Attacker Total -
int
- Battle Randoms Defender Total -
int
- Ending Total -
float
- Outcome -
String
- Attacker Won - bool(
int
) - Supplies -
int
Attacker:
- General Rank -
int
- General Total Autoresolve Bonus -
int
- General Armor Bonus -
int
- General Weapon Bonus -
int
- General Follower Bonus -
int
- General Banner Bonus -
int
- General Trinket Bonus -
int
- Advanced Combat Deck -
int
- Total Beginning Autoresolve Unit Bonus -
int
- Total Beginning Melee Bonus -
int
- Total Beginning Ranged Bonus -
int
- Total Beginning Cavalry Bonus -
int
- Total Beginning Soldiers -
int
- Total Ending Autoresolve Unit Bonus -
int
- Total Ending Melee Bonus -
int
- Total Ending Ranged Bonus -
int
- Total Ending Cavalry Bonus -
int
- Total Ending Soldiers -
int
- Amount of Rebel Rivermen Mercenaries -
int
- Amount of Rebel Rangers of the Forest -
int
- Amount of Rebel Courier Riders -
int
- Amount of Rebel Mountain men -
int
- Amount of Rebel Axemen of the Vale -
int
- Amount of Rebel Vale Cavalry -
int
- Amount of Rebel Light Woodmen -
int
- Amount of Rebel Woodsmen Archers -
int
- Amount of Rebel Riders of the Wood -
int
- Amount of Light Woodmen -
int
- Amount of Guards of Beladimir -
int
- Amount of Beladimir Spearmen -
int
- Amount of Woodsmen Archers -
int
- Amount of Archers of Beladimir -
int
- Amount of Coastal Guards -
int
- Amount of Riders of the Wood -
int
- Amount of Beladimir Cavalry -
int
- Amount of Plains Cavalry -
int
- Amount of Mountain Men -
int
- Amount of Lerastir Shieldbearers -
int
- Amount of Lerastir Spears -
int
- Amount of Pikes of Lerastir -
int
- Amount of Axemen of the Vale -
int
- Amount of Bowmen of Lerastir -
int
- Amount of Crossbowmen of the South -
int
- Amount of Vale Cavalry -
int
- Amount of Territory Guardsmen -
int
- Lerastir Palace Cavalry -
int
- Amount of Shieldmaidens of the North -
int
- Amount of Menoriad Spearmen -
int
- Amout of Axemen of the Wastes -
int
- Amount of Menoriad Archers -
int
- Amount of Rangers of the Forests -
int
- Amount of Courier Riders -
int
- Amount of Menoriad Cavalry -
int
- Amount of Royal Cavalry -
int
- Amount of Hunters of the North -
int
- Amount of Rivermen Mercenaries -
int
- Total Units -
int
- Total Reinforcements -
int
- Total Upgrades Received -
int
- Total Unit Casualties -
int
- Total Soldier Casualties -
int
- End General State -
String
- Treasure Received - bool(
int
) - Faction - string
- Ships -
int
- Rams -
int
- Siege Towers -
int
- Catapults -
int
Defender:
- General Rank -
int
- General Total Autoresolve Bonus -
int
- General Armor Bonus -
int
- General Weapon Bonus -
int
- General Follower Bonus -
int
- General Banner Bonus -
int
- General Trinket Bonus -
int
- Advanced Combat Deck -
int
- Total Beginning Autoresolve Unit Bonus -
int
- Total Beginning Melee Bonus -
int
- Total Beginning Ranged Bonus -
int
- Total Beginning Cavalry Bonus -
int
- Total Beginning Soldiers -
int
- Total Ending Autoresolve Unit Bonus -
int
- Total Ending Melee Bonus -
int
- Total Ending Ranged Bonus -
int
- Total Ending Cavalry Bonus -
int
- Total Ending Soldiers -
int
- Amount of Rebel Rivermen Mercenaries -
int
- Amount of Rebel Rangers of the Forest -
int
- Amount of Rebel Courier Riders -
int
- Amount of Rebel Mountain men -
int
- Amount of Rebel Axemen of the Vale -
int
- Amount of Rebel Vale Cavalry -
int
- Amount of Rebel Light Woodmen -
int
- Amount of Rebel Woodsmen Archers -
int
- Amount of Rebel Riders of the Wood -
int
- Amount of Light Woodmen -
int
- Amount of Guards of Beladimir -
int
- Amount of Beladimir Spearmen -
int
- Amount of Woodsmen Archers -
int
- Amount of Archers of Beladimir -
int
- Amount of Coastal Guards -
int
- Amount of Riders of the Wood -
int
- Amount of Beladimir Cavalry -
int
- Amount of Plains Cavalry -
int
- Amount of Mountain Men -
int
- Amount of Lerastir Shieldbearers -
int
- Amount of Lerastir Spears -
int
- Amount of Pikes of Lerastir -
int
- Amount of Axemen of the Vale -
int
- Amount of Bowmen of Lerastir -
int
- Amount of Crossbowmen of the South -
int
- Amount of Vale Cavalry -
int
- Amount of Territory Guardsmen -
int
- Lerastir Palace Cavalry -
int
- Amount of Shieldmaidens of the North -
int
- Amount of Menoriad Spearmen -
int
- Amout of Axemen of the Wastes -
int
- Amount of Menoriad Archers -
int
- Amount of Rangers of the Forests -
int
- Amount of Courier Riders -
int
- Amount of Menoriad Cavalry -
int
- Amount of Royal Cavalry -
int
- Amount of Hunters of the North -
int
- Amount of Rivermen Mercenaries -
int
- Total Units -
int
- Total Reinforcements -
int
- Total Upgrades Received -
int
- Total Unit Casualties -
int
- Total Soldier Casualties -
int
- End General State -
int
- Treasure Received - bool(
int
) - Faction -
String
- Ships -
int
- TownStat Level -
int
Monster Battle: All are same as above unless listed otherwise
- Monster type -
String
- Monster Coin Reward -
int
- Monster Total AR Value -
int