facebookresearch / ELF

An End-To-End, Lightweight and Flexible Platform for Game Research
Other
2.09k stars 284 forks source link

game_TD not compilable #147

Open LiuTed opened 3 years ago

LiuTed commented 3 years ago

I want to train an agent for tower defense games, but I met some trouble compiling the environment of game_TD. In rts/game_TD/ai.h, the symbol AIWithComm is not defined. According to game_MC, which is compilable, I included rts/engine/game_action.h in ai.h, made AIWithComm an alias name of elf::AIWithCommT, but it still does not work due to the following errors:

  1. AIWithComm should not have template argument. (ai.h:19)
  2. AIWithComm, or elf::AIWithCommT, does not have constructor of 3 parameters. (ai.h:39)
  3. AIBase contains lots of methods marked override, which, however, do not override.

The error messages are attached below. My gcc/g++ version is 9.3.0, OS is Ubuntu 20.04. error.txt