Code Monkey home page Code Monkey logo

fiasco-mustache's Introduction

fiasco-mustache

A Fiasco Playset generator !

What is Fiasco-Mustache ?

"Fiasco-Mustache" is a project I made in order to easily produce playsets for Fiasco, the game by Bully Pulpit Game.

This project is a web-page, with no server-related code, so everyone can get a local copy and test it with any web-browser. The name comes from a distinct library used to generate the playset : Mustache. The current version doesn't make much use of the Mustache library, but the name stuck.

How to use Fiasco-Mustache ?

You can download the last version of the code source, or run the demo-page.

First step is to fill all the blank fields from 'Introduction' to 'Section #4'. It matches a classic Fiasco-playset layout.

In the "Description" and "Credits" part of the "Introduction" tab, you can create "Title" line by prefixing them with the character #.

You can also add an image for the Cover of your Playset.

There's a "Save" button that you can use to save your work in a local JSON file. You can then use the "Load" button to restore your work.

The final step is to produce your playset. Click on the "Generate PDF" button to get a nice PDF ready to be print and published !

You can also use the "old" version of the Mustache generator. You'll need a "mustache template", a text that will be used to generate your template to various form : XML file, BBcode, pure text, wiki format, ... Paste your template in the text frame of the 'Generate' tab. Then click the "Generate" button, and save your file on your computer.

Licenses

Current version : 0.3 <2018-11-07>

"Fiasco-Mustache" is released under the CC-By-SA license, and is a Beerware.

"Fiasco-Mustache" uses the following libraries :

fiasco-mustache's People

Contributors

gulix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fiasco-mustache's Issues

Storing in cache

Fiasco-Mustache should be able to store the data of a user in the browser cache.
No load/save needed if he uses the same browser / computer.
Optional only, with a "file browser" to select which file to edit (and auto-save)

Saving Insta-Setup

The Insta-Setup is not saved / loaded through the json data.
The selected options (dice choices, not text) should be stored in the JSON.

Better Code

Reviewing the JS code, the files, moving and renaming ...

Paragraphs in description fields

Maybe in link with #2
The current text is given to the json data for generation "as is". But somme generation methods should have "paragraphs" instead of text with breaklines.

Maybe getting the description in full text mode, with markdown Titles and text ?


    # Description

    This is the description.

    With a second paragraph.

    # Movie Nights

    List of movies

    # Advices

    And so on ...

Clearing categories / sections

When editing a new playset, and taking another playset for example, all the fields are completed. A good function would be a "Clear entries" at different levels (sections & categories).

V2 Playset Editor

Provides a new way to create a playset with only the cards.
Less pages on the website, and also a shorter description.

Generate deck for Fiasco V2

Fiasco V2 no longer use the current playset (4x6x6) presentation.
Instead, it uses a deck of items. Mostly 18 Relationships, 13 Needs, 9 Items, 9 Locations.

First step is to generate a PDF with cards, and then use the data of the playset to populate those cards.

Enhancing the UI (First Steps)

In order to get a better User-Experience, some enhancements are needed.
The PDF button generation need to be moved (with Load / Save ?)
The Save button should stick with the loaded name, even if the Playset changes name.

Print to PDF

In addition to generate a template via Mustache, the inclusion of a generic PDF export would be a great addition.

Randomizing Insta-Setup

When the Playset have been completed, it can be difficult to imagine an insta-setup.
A button could be added to allow the user to get a random Insta-setup filled.

Insta-setup masked

Insta-setup is not a mandatory part of a template.
Instead of having a "not-thought" insta-setup, there should be an option to mask the Insta-setup and not use it in a template

Better multi-languages

Following Issue #24 , multi-language has been added to InstaSetup.
General UI could be improved with it too.

Italic & Bold in text

Maybe use some kind of markdown syntax (* & **) to get bold and italic text in the pdf

Insta-Setup in other languages

Currently, the Insta-Setup add text in english (For X players ...)
In order to produce Playsets in other languages, the ability to select a language is required.

Page break in description

If the description include a great chunk of text (additional rules, for example), the text is on multiple pages, abritrarily divided.
A specific page break could be a good addition.

Automatic Boilerplate

Automatic Boilerplate addition, with mention to Fiasco / Bully Pulpit Games.
It could be added on the "Credits" page automatically, or following the Credits (a button to add "Standard Boilerplate"

Encoding of the JSON

If the data saved as JSON have accent characters (é à ...), the encoding fails, and when the file is loaded, these characters are not properly displayed.

Select items to be used on cards

Allowing the current item of a previous playset to be used in a v2 playset generation (cards).

It will be an "hybrid" playset, with both version

Adding new sections

Some playset (Road Trip, for instance) have more than the four classic "Sections". There should be a way to generate these extra sections.

Tilt Table

Some playset have a custom Tilt Table.
It could be an optional section.

PDF export - Page break when too much text

When printing a Category to PDF, if there is multiple entries that need two lines to be printed, then the subheader goes on another blank page.

This subheader could be printed with absolute positioning if possible to avoid that. Or a better control be put.

Adding paragraphs to the Introduction

In addition to the generic paragraphs of the Introduction (Credits, Description, Movie Night, ...), custom paragraphs, with custom titles, should be available.

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.