GithubHelp home page GithubHelp logo

aiotpt's Introduction

aiotpt

Build Status

This is an implementation of a server for the falling sand game The Powder Toy, written in Python using aiohttp for asynchronous HTTP and PostgreSQL for data storage.

Due to various bugs in the client code of TPT, this server is currently only compatible with recent revisions of it (starting at commit 9a855cc to be accurate).

This project is still in its infancy and can not be considered stable or secure by any means. If you make an instance of it open to the public, Ristovski will probably hack you.

Installing

  • Install Python 3.5+
  • Install PostgreSQL 9.5+
  • Build the save renderer from source using --renderer and move the Render executable into renderer/
  • Build The Powder Toy from a modified source (change SERVER and STATICSERVER in src/Config.h to the host and port of your server, e.g. localhost:8080)
  • pip install -r requirements.txt
  • set DATABASE_URL=postgres://user@host:port/database
  • psql -f schema.sql
  • python -m aiotpt

Testing

  • Install aiotpt as described above
  • pip install pytest
  • py.test

Todo

  • Unit tests for all views
  • Allow static storage of saves instead of storing them inside the database
  • Inline documentation
  • Static HTML frontend/website
  • High-level moderation/administration tools
  • Basic analytics and cheat protection

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.