Skip to content

FlaringK/mspfaViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mspfaViewer

This script was made to let you host your mspfa or original comic on it's own site.

Setup

Each folder contains all the files necessary to view your adventure when hosted. Download the folders contents and host them on your own site.

adventure.json is the file that contains all your adventure data. If you want to host an existing MSPFA adventure simply past in it's adventure object overtop of the template. Else copy the contents of template.json file and fill it out with your own adventure data.

adventure.json should have at least these values:

{
  "n": "Adventure name",
  "o": "Link to adventure Icon",

  "p": [ ... ]
}
  • name is the name of your adventure
  • icon is the icon of your adventure, this will be it's favicon in the viewer
  • pages is an array of page objects for each page of your adventure

Page objects have these values:

{
  "d": 1671518387574,
  "c": "Page 1 title",
  "b": "Page 1 content",
  "n": [ 2 ]
}
  • date is the date the page was published in as a unix timestamp
  • command is the page's command or title, using html and/or mspfa bbcode
  • body is the content of the page, using html and/or mspfa bbcode
  • next is an array of page indexes pointing to the next page (Page indexes start at 1)