Giter Site home page Giter Site logo

sjlehtin / aesheet Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.89 MB

Combat sheet for the Advanced Engine Role-playing game system

Python 40.08% Shell 0.11% HTML 2.13% JavaScript 56.33% CSS 0.31% RobotFramework 0.15% Dockerfile 0.09% TypeScript 0.79%

aesheet's Introduction

What is this?

Build Status

Features

Calculates effects from stats, edges, flaws, encumbrance, armor and wounding to skill and weapon checks.

See new features from the Changelog.

Implementation

The most intensive page or the character sheet, is pretty much completely written with the React JS framework, allowing for a fairly responsive page. The backend for the sheet are REST APIs written with Django Rest Framework.

Rules

The ruleset is pretty much fully homegrown fork of the Amazing Engine. Nowadays only thing left is the stat names and some concepts, with skills being brought into the system either from house rules or or the d20 system, adapted here. Licensing situation of the rules is not entirely clear, but the data should be ok to use for non-commercial purposes.

In the roadmap

Full list of all todo items in the TODO.

Installing

In production use

Deploying

On build host
tox
npm test
npm run build -- --mode=production
python setup.py bdist_wheel
python manage.py collectstatic --noinput --clear
gtar zcvf aesheet-0.11-full.tar.xz static/ dist/aesheet-0.11-py3-none-any.whl
On application server

Take a backup of your database, e.g.,

sudo -i -u postgres pg_dump -F c -b -v sheetdb > dump.dump

Check settings.py for need of changes due to upgrades or configuration changes.

Update outdated python packages pip list --outdated

sudo cp -a ~/aesheet-0.11.0/static .
sudo ve/bin/pip install -U ~sjl/aesheet-0.11.0/aesheet-0.11.0-py3-none-any.whl
sudo -u www-data bash -c "source ./env && django-admin migrate"
sudo systemctl restart aesheet.<env>

Using the Docker images

Create containers

docker-compose build
docker-compose up -d

Create the superuser

docker-compose -f docker-compose.yml exec web python manage.py createsuperuser

Add standard rules package

docker-compose -f docker-compose.yml exec web python manage.py loaddata basedata

Alternately, setup database from a previous dump

docker compose exec -T db pg_restore -c --no-owner -d $POSTGRES_DB --role $POSTGRES_USER -U $POSTGRES_USER -v <  dump.dump

Run migrations manually

docker compose exec -e DJANGO_SETTINGS_MODULE=settings -e PYTHONPATH=/opt/aesheet web  django-admin migrate

The sheet is now usable in http://localhost:8001/.

Starting over

docker-compose down -v

Running tests

 % python manage.py test
 % npm test
 % cd sheet/tests && pybot tests.robot  # not functional yet.

aesheet's People

Contributors

sjlehtin avatar

Watchers

 avatar James Cloos avatar

aesheet's Issues

Add natural weapons

Natural weapons should use Toughness and Hardened Skin edges to calculate durability and lethality.

The Durability of natural weapons (for example, fists or bear paws) is calculated as follows: Attack base lethality + Hardened Skin LR + Toughness L/2. When natural weapons are damaged, their owner takes non-lethal damage.

Instinctive fire

Level of instinctive fire should be displayed and effect indicated near weapons that can take advantage of the skill.

Use weight as a penalty

Accumulated weight for the character should penalize skill checks.

If possible, the effects on the stats should be itemized somehow to make it easier to troubleshoot and modify the characters loadout.

Firearm ranges

Instead of fixed ranges, the ranges should be calculated from weapon and ammunition base statistics.

Penalty for shooting to a specific range

Allow specifying current target range, for which the penalties would be automatically calculated, taking into account current lighting conditions, weapon ranges and weapon addons.

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.