Add a -autostart-nonvisual option. Patch by sacha_vrand. Fixes #4577.
This allows automated testing of AIs without any GUI or sound (similar to non-visual replays).
Differential Revision: https://code.wildfiregames.com/D379
Add a -autostart-nonvisual option. Patch by sacha_vrand. Fixes #4577.
Description
Details
Event TimelineComment Actions Thanks for the patch and review @sacha_vrand and @leper! DEBUG [4] Spawning 4 attackers DEBUG [4] Siege Ratio: 21% DEBUG [4] Spawning:({siege:1, champions:3}) DEBUG [4] Templates: [{template:"units/gaul_mechanical_siege_ram", count:1}, {template:"units/gaul_champion_cavalry", count:1}, {template:"units/gaul_champion_fanatic", count:2}, {template:"units/gaul_champion_infantry", count:0}] DEBUG [7] Spawning 6 attackers DEBUG [7] Siege Ratio: 40% DEBUG [7] Spawning:({siege:2, champions:4}) DEBUG [7] Templates: [{template:"units/iber_mechanical_siege_ram", count:2}, {template:"units/iber_champion_cavalry", count:2}, {template:"units/iber_champion_infantry", count:2}] DEBUG [10] Spawning 6 attackers DEBUG [10] Siege Ratio: 34% DEBUG [10] Spawning:({siege:2, champions:4}) DEBUG [10] Templates: [{template:"units/rome_mechanical_siege_ballista_packed", count:1}, {template:"units/rome_mechanical_siege_ram", count:1}, {template:"units/rome_mechanical_siege_scorpio_packed", count:0}, {template:"units/rome_centurio_imperial", count:1}, {template:"units/rome_champion_cavalry", count:1}, {template:"units/rome_champion_infantry", count:1}, {template:"units/rome_legionnaire_imperial", count:1}, {template:"units/rome_legionnaire_marian", count:0}] https://trac.wildfiregames.com/wiki/PetraBot#Batchsimulatinggames (maybe others?) should be updated I guess. Presumably AI devs would be very happy to find out how such graphs can be produced.
Comment Actions Fixed by r19683. Comment Actions I agree fixing the whitespace is justified, my worry is rather to the fact that we put concern for that, which require more work than fixing it directly. Comment Actions Hi @sacha_vrand, in case you read this and have some more interest in playing with this code, gentz has reported a bug here: #5016 |