Git Product home page Git Product logo

mmorpg-tlo's Introduction

The Lost Origins

A sample MMORPG game project

Contributors

  • Shivansh Saini (Backend + Game developer)
  • Krishna Teja (Frontend)

Project Description

This project aims to develop a MMORPG game using RPG Maker MV game engine, which is infamous for supporting only single-player game. For the web server, the infamous Django web framework is used. However, it uses ASGI, instead of WSGI, for providing an Asynchronous server interface which Django painfully lacks. To support real-time communication between game clients and server, websockets technology is used which is implemented in Django using the Channels library.

Game Description

Coming soon.

Tech Stack

  • Python
  • Javascript
  • Django
  • RMMV
  • Websockets
  • Redis
  • Channels

Instructions

  • Install mysql server and start it up.
  • Create a new database, called game, and change database settings according to your preferences.
  • To start up server, install all the python requirements (pip install -r requirements.txt) and run in shell:
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Documentation

TLO Report (PDF): Drive link

Credits

  • KadoKawa for its RMMV game engine (and personally, for all its previous installments).
  • RMN Music Pack for some of its beautiful music tracks.
  • Nelderson's MV Online project, which helped give really useful insights and its wonderful tutorial series.

mmorpg-tlo's People

Contributors

dependabot[bot] avatar shivanshs9 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mmorpg-tlo's Issues

Connect call failed ('127.0.0.1', 6379)

if I start the game, the game stops and throws a connection error:

[2019/07/15 15:09:07] HTTP POST /auth/login/ 200 [0.43, 127.0.0.1:39560]
[2019/07/15 15:09:07] WebSocket HANDSHAKING /game/ [127.0.0.1:39594]
[2019/07/15 15:09:07] WebSocket CONNECT /game/ [127.0.0.1:39594]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.02, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
2019-07-15 15:09:07,876 - ERROR - server - Exception inside application: [Errno 111] Connect call failed ('127.0.0.1', 6379)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/sessions.py", line 175, in call
return await self.inner(receive, self.send)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/consumer.py", line 54, in call
await await_many_dispatch([receive, self.channel_receive], self.dispatch)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/utils.py", line 57, in await_many_dispatch
await task
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 377, in receive
message_channel, message = await self.receive_single(real_channel)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 427, in receive_single
content = await self._brpop_with_clean(index, channel_key, timeout=self.brpop_timeout)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 282, in _brpop_with_clean
async with self.connection(index) as connection:
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 742, in aenter
self.conn = await self.pool.pop()
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 49, in pop
conns.append(await aioredis.create_redis(**self.host, loop=loop))
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/commands/init.py", line 177, in create_redis
loop=loop)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/connection.py", line 107, in create_connection
timeout, loop=loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 339, in wait_for
return (yield from fut)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/stream.py", line 19, in open_connection
lambda: protocol, host, port, **kwds)
File "/usr/lib/python3.6/asyncio/base_events.py", line 794, in create_connection
raise exceptions[0]
File "/usr/lib/python3.6/asyncio/base_events.py", line 781, in create_connection
yield from self.sock_connect(sock, address)
File "/usr/lib/python3.6/asyncio/selector_events.py", line 439, in sock_connect
return (yield from fut)
File "/usr/lib/python3.6/asyncio/selector_events.py", line 469, in _sock_connect_cb
raise OSError(err, 'Connect call failed %s' % (address,))
[Errno 111] Connect call failed ('127.0.0.1', 6379)
[2019/07/15 15:09:07] WebSocket DISCONNECT /game/ [127.0.0.1:39594]
[2019/07/15 15:09:12] WebSocket HANDSHAKING /game/ [127.0.0.1:39602]
[2019/07/15 15:09:12] WebSocket CONNECT /game/ [127.0.0.1:39602]

the game works for about 2 seconds and this error is over and over again

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.