Giter Club home page Giter Club logo

airpgenv's Introduction

Online RPG Environment for Reinforcement Learning 👾🤖👻

For more information:

About:

The main goal of the following project is to create asimple, lightweight and modifiable MMORPG (MassivelyMultiplayer Online Role-playing Game) Game with basic graphic design and functionality, and train Deep Reinforce-ment Learning Algorithms on it. Although the purpose of the project is not only to develop an environment but to challenge multi-agent reinforcement learning algorithms in it.

Our main contributions are the following:

  • Creating an environment that is massively multiplayer andcan be used from multiple training machines
  • Train and compare popular Deep Learning algorithms
  • Show that environment can be learned to some degree

This project is created during my Electrical engineering MSc. at Budapest University of Technology and Economics. The project has been supervised by Marton Szemenyei.

Implementation

Client

  • Provides an interface fo the players to control the heroes
  • Recreates the game state based on the messages from the server
  • OpenAI Gym, OpenCV
  • Observation Space: 64x64 pixel surrounding territory, 16x16 pixel mini map
    • Red dot: Hero
    • Blue dot: Monster
    • Black dot: NPC
    • Purple dot: High value target

Territory Minimap

  • 6-Dimensional action space: Move, Attack, Interract
  • Reward for exploration and attack

Server

  • Managing and supervising
  • 5 NPCs, 50 Monsters in the initial setting
  • 3 different map with different structure
  • blue territory represents water which is forbidden for heroes but not for monsters
Maps:

arctic lake valley

Reinforcement Learning Agents

  • Advantage Actor-Critic
  • Proximal Policy Optimization

Gameplay:

  • Main goal is to eliminate evey hostile characters
  • NPCs can give a huntlist with marked characters for extra XP
  • XP: for combat and for exploration

gameplay

Requirements:

  • OpenCV
  • PyTorch

Usage:

All command should be executed from the main directory:

To start the server:

python Server_py/game.py

To train the reinforcement learning algorithm:

python (PPO or A2C)/train.py

To play as a human:

python Environment/environment.py

airpgenv's People

Contributors

paszti96 avatar volgyesvari avatar

Stargazers

Pászti avatar

Forkers

matyiandras

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.