Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
357 stars 55 forks source link

Quickstart singleplayer game #342

Closed timfel closed 3 years ago

timfel commented 3 years ago

This adds a singleplayer quickstart, similar to the multiplayer quickstart. It can be launched like so:

-c singleplayer -G map=(path-to-map),type=0,aiplayers=1,aiscripts=(wc2-land-attack|wc2-air-attack|...),[reveal] These arguments start a single player game with one AI opponent using the selected AI script.

-c singleplayer -G map=(path-to-map),type=2,aiplayers=2,aiscripts=wc2-land-attack:wc2-air-attack These arguments start a quick machine vs machine game, pitting the land attack vs the air attack AI. This way of running the game can be very useful for evaluating different AIs quickly against each other, as well as for training external AI agents that interface through some other means with the game. This has been used (for example) to train a reinforcement learning AI to play the game.