Easy setup of AIDungeon on Windows

Dec 13th, 2019
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. Requirements: 64-bit Windows, a CPU that supports AVX instructions and at the very least 8GB of RAM, 16GB is recommended.
  3. 1. Download Python 3.6.8 (IMPORTANT! Make sure that it's specifically 3.6.8 and 64-bit, otherwise many things will not work!)
  4. 2. Run the installer, click Customize then Next, make sure both "Install for all users" and "Add Python to environment variables" are checked. Click Install. Warning: do not install Python to Program Files!
  5. 3. Download AIDungeon. Go to then click on the green "Clone or download" button and select "Download ZIP".
  6. 4. Extract the .zip file wherever you like, preferably somewhere easy to access, like your desktop or C:\. Open up the AIDungeon folder that you extracted and keep it open.
  7. 5. Download the model. There are 3 ways to do it:
  8. - Google Drive link here:
  9. - Anonfiles link:
  10. - Torrent magnet: magnet:?xt=urn:btih:wnb3qozvx73xjwvrhybidtqtwpnpg7j6&dn=model_v5&xl=6246281091&fc=7
  11. Then download the scripts Extract their contents into the AIDungeon folder. If it asks to overwrite, click yes to all. Since a lot of people are misunderstanding where the model files are supposed to go, the path where you need to have all your model files is "AIDungeon\generator\gpt2\models\model_v5". Make sure all the files are in that exact folder and not the AIDungeon folder.
  12. 6. Run install-dependencies.bat and wait for it to finish.
  13. 7. Run play.bat to play the game! For easier access, create a shortcut on your desktop to it.
  15. Errors, tips and tricks:
  16. 1. "When I try to use any of the Python commands, it says Permission denied!"
  17. - You didn't add Python to the environment tables as per Step 2. This can be fixed by running the Python installer again, clicking "Modify", then "Next", checking that option and clicking "Install".
  18. 2. "While trying to install requirements, tensorflow fails to install or tensorflow seems to install, but I get ModuleNotFoundError: No module named 'tensorflow.python.platform'."
  19. - Make sure you only have one version of Pyhon installed, preferably 3.6.8 and then run the install-dependencies.bat script again.
  20. 3. "When I try to run AIDungeon, it says that encoder.json is missing!"
  21. - That means the model files are missing, make sure you followed Step 5 properly.
  22. 4. "When I try to run AIDungeon, I get the error ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed."
  23. - Your CPU doesn't support AVX instruction sets. The only solution is to upgrade your CPU.
  24. 5. "When launching AIDungeon, I get a bunch of errors that tensorflow couldn't find a bunch of DLLs but the game still starts."
  25. - This means your game is running in CPU mode, which is perfectly normal. But, if you're trying to run it in GPU mode, you need to check your CUDA installation. The tensorflow version used here only supports CUDA 10.0.
  26. 6. "While playing the game, I get either a Dst tensor is not initialized or OOM error."
  27. - The game ran out of memory, which means you played it in GPU mode. To force CPU mode, navigate to where your CUDA bin folder is and delete cudnn64_7.dll.
  29. If you need any more help, ping me @Audixas on the AIDungeon Discord:
  31. (Currently outdated) Optional: for a more enjoyable experience, install this mod by @anon4:
  32. You'll need to run "pip install func_timeout" in cmd first, then you install it by extracting it's contents into the AIDungeon folder.
Add Comment
Please, Sign In to add comment