Skip to content

Playing the MMORPG using the Deep Reinforcement Learning

Notifications You must be signed in to change notification settings

kimbring2/RPG_RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPG_RL

Playing the MMORPG using the Deep Reinforcement Learning. The Nethack and Diablo1 game will be used for environment.

Reference

  1. NetHack: https://github.com/facebookresearch/nle
  2. NetHack Visualization: https://github.com/maciej-sypetkowski/autoascend
  3. Diablo1 for Linux: https://github.com/diasurgical/devilutionX
  4. Vizdoom: https://github.com/mwydmuch/ViZDoom
  5. Simple SDL2 game: https://github.com/PolyMarsDev/Twini-Golf

Detailed intruction for code

  1. How to binding a C++ STL game with Python: https://dohyeongkim.medium.com/playing-the-diablo1-using-deep-learning-series-1-e03cd7127c46

NetHack

Visualization tool is added to original NLE of Facebook code.

You can play a game yourself by below command.

$ python3.8 -m nle.scripts.play --env NetHackChallenge-v0

Simple C++ SDL2 game

You can control the SDL2 C++ game using Python.

Python binding test for simple C++ SDL2 game

I set every path as relatively except path for OpenCV. You need to change the OpenCV_DIR path of main CMakeLists.txt to your OpenCV path.

set(OpenCV_DIR /home/kimbring2/opencv/build)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )

Then, move to Twini-Golf folder and build project using below command.

$ cmake .
$ make

You should check there is 'vizgolf.cpython-38-x86_64-linux-gnu.so' under lib_python folder folder. Next, copy the twingolf file to the lib_python folder.

Then, move to lib_python folder.

Open Jupyter Notebook for 'env_test.ipynb' and test code of video.

About

Playing the MMORPG using the Deep Reinforcement Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published