Currently Online

Latest Posts

Topic: Amazons balancing

tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 01:45

Replays of other tribes (only up to first 10 heroes). These should be compatible with current master.


Attachment:
train_tests_replays_others.zip (3.7 MB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 01:47

Amazon replays. PR is up to 30 heroes, old and current are up to 10.

Current Amz was made with Tournament round 4 version by mistake. Old Amz is with round 3 version. New Amz is with PR branch with this patch to the rare tree cutter's hut:

diff --git a/data/tribes/buildings/productionsites/amazons/rare_tree_cutters_hut/init.lua b/data/tribes/buildings/productionsites/amazons/rare_tree_cutters_hut/init.lua
index d218f8bece..b9f1fa733a 100644
--- a/data/tribes/buildings/productionsites/amazons/rare_tree_cutters_hut/init.lua
+++ b/data/tribes/buildings/productionsites/amazons/rare_tree_cutters_hut/init.lua
@@ -45,6 +45,7 @@ wl.Descriptions():new_productionsite_type {
             -- min. time: 35.2 + 12 = 47.2 sec
             -- max. time: 74.8 + 12 = 86.8 sec
             -- avg. time: 55 + 12 = 67 sec
+            "return=skipped unless economy needs balsa",
             "callworker=harvest_balsa",
             "sleep=duration:12s"
          },
@@ -57,6 +58,7 @@ wl.Descriptions():new_productionsite_type {
             -- min. time: 35.2 + 12 = 47.2 sec
             -- max. time: 74.8 + 12 = 86.8 sec
             -- avg. time: 55 + 12 = 67 sec
+            "return=skipped unless economy needs rubber",
             "callworker=harvest_rubber",
             "sleep=duration:12s"
          },
@@ -69,6 +71,7 @@ wl.Descriptions():new_productionsite_type {
             -- min. time: 35.2 + 12 = 47.2 sec
             -- max. time: 74.8 + 12 = 86.8 sec
             -- avg. time: 55 + 12 = 67 sec
+            "return=skipped unless economy needs ironwood",
             "callworker=harvest_ironwood",
             "sleep=duration:12s"
          },


Attachment:
train_tests_replays_amz.zip (3.2 MB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 01:48

Patch as attachment.


Attachment:
rare_cutter_on-demand.patch.txt (1.4 KB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 01:50

Savegames just before win condition is triggered at 10 heroes, then at 20 heroes, and more where I needed more verification of the results.


Attachment:
train_tests_saves.zip (2.3 MB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 02:05

Scripts used for the stats:

  • player_stats.lua: run with dofile() from the debug console when the game is paused by the game summary. For later saves, pause immediately after loading the game, and run script. (output is included in game stdout on console)
  • awk -f waresum.awk <tribeNN.txt: sums the consumed wares. All wares count as 1. Calculated as the difference of total produced amount and current total amount, so actually starting amounts should be added. This includes the wares consumed to produce the surpluses too.
  • grep "^c" *0.txt | sed -f buildmat_costs.sed | awk -f buildc.awk >buildcost_sums.txt: calculate approximate total consumed wares for buildings (values for buildmat_costs.sed come from my earlier calculation, and include averaging where multiple ways to produce are possible, hence approximate)

Attachment:
scripts.zip (1.9 KB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 02:06

Outputs from player_stats.lua plus some data from the in-game general statistics.


Attachment:
stats.zip (17.3 KB)

Top Quote
tothxa
Avatar
Topic Opener
Joined: 2021-03-24, 12:44
Posts: 425
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2023-12-14, 02:08

Calculation sheet. (hopefully with gnumericisms corrected in LO face-wink.png )


Attachment:
train_costs_tests.ods (21.9 KB)

Top Quote