在sscaitournament上面Stardust2020年排名第一。

BWAI学习记录003_使用Chaoslauncher和AI(Stardust)人机对战

 

前提你需要安装BWAPI4.40。这个AI是基于这个版本API写的。

第一步

从Stardust的GITHUB下载C++源码。

https://github.com/bmnielsen/Stardust

第二步

本人使用VS2019编译源码的DLL文件

BWAI学习记录003_使用Chaoslauncher和AI(Stardust)人机对战

第三步

将编译好的Stardust.dll复制到starcraft1.16.1安装目录下的bwapi-data\AI文件夹内(这个是BWAPI内工具Chaoslauncher的默认AI读取地址)

第四步

启动BWAPI下面的Chaoslauncher工具

BWAI学习记录003_使用Chaoslauncher和AI(Stardust)人机对战

 

第五步

懒得写了,直接复制官网的quick star教程

  1. Installation
    1. Install Visual Studio 2013
    2. Install StarCraft: Brood War
    3. Update StarCraft: Brood War to 1.16.1
    4. Install BWAPI
  2. Compile
    1. Open ExampleProjects.sln in the BWAPI install directory
    2. Build the ExampleAIModule project in RELEASE mode
    3. Copy ExampleAIModule.dll to bwapi-data/AI inside the StarCraft install folder
  3. Run StarCraft through Chaoslauncher
    1. Run Chaoslauncher.exe as administrator
      • Chaoslauncher is found in Chaoslauncher directory of BWAPI install directory
    2. Check the BWAPI Injector x.x.x [RELEASE]
    3. Click Start
      • Make sure the version is set to Starcraft 1.16.1, not ICCup 1.16.1
  4. Run a game against Blizzard's AI
    1. Go to Single Player -> Expansion
    2. Select any user and click OK
    3. Click Play Custom, select a map, and start a game
  5. Run a game against yourself
    1. Run Chaoslauncher - MultiInstance.exe as administrator
    2. Start
      1. Go to Multiplayer -> Expansion -> Local PC
      2. Select any user and click OK
      3. Click Create Game, select a map, and click OK
    3. Start – Uncheck BWAPI Injector x.x.x [RELEASE] to let a human play, leave alone to make AI play itself
      1. Go to Multiplayer -> Expansion -> Local PC
      2. Select any user and click OK
      3. Join the existing game created by the other client

第5小步是人机对战的关键步骤。人机对战,需要自己开启一个SC程序,AI使用Chaoslauncher即可。

BWAI学习记录003_使用Chaoslauncher和AI(Stardust)人机对战

 

出现下面这一行绿色字就算启动成功了。

总结:这个AI主要战术很简单,疯狂爆龙骑,微操不错。而且开矿迅猛。人操作还是有些困难对付他。

相关文章:

  • 2022-01-18
  • 2021-09-27
  • 2022-01-17
  • 2021-10-15
  • 2021-09-13
  • 2021-05-01
  • 2021-11-21
  • 2021-10-29
猜你喜欢
  • 2021-12-29
  • 2021-05-24
  • 2021-06-09
  • 2021-05-24
  • 2021-10-10
  • 2022-01-10
  • 2021-08-15
相关资源
相似解决方案