From 5b6e5178e8ac7fbfb7a7fc1277acf27b843e80de Mon Sep 17 00:00:00 2001 From: dozens Date: Sat, 3 Sep 2022 17:26:07 -0600 Subject: [PATCH] init --- Makefile | 14 ++ README.md | 9 + db/npc.rec | 49 +++++ db/threads.rec | 10 + doc/feed.md | 134 +++++++++++++ doc/game.md | 85 +++++++++ ed/blogitem.ed | 13 ++ ed/journalitem.ed | 14 ++ justfile | 43 +++++ maps/Aulia 2022-08-29-09-32.png | Bin 0 -> 1540250 bytes maps/kriteach.png | Bin 0 -> 8211775 bytes src/00001-introductions.md | 139 ++++++++++++++ src/00002-meadowgloom.md | 59 ++++++ src/00003-hand.md | 64 +++++++ src/00004.md | 29 +++ src/about.md | 106 +++++++++++ src/index.md | 14 ++ src/journal.draft | 23 +++ src/journal.md | 54 ++++++ templates/blogitem.rec.template | 9 + templates/header.html | 2 + templates/journalitem.rec.template | 9 + templates/nav.html | 4 + www/00001-introductions.html | 231 ++++++++++++++++++++++ www/00002-meadowgloom.html | 191 +++++++++++++++++++ www/00003-hand.html | 193 +++++++++++++++++++ www/00004.html | 183 ++++++++++++++++++ www/about.html | 247 ++++++++++++++++++++++++ www/episodes.xml | 295 +++++++++++++++++++++++++++++ www/feed.xml | 6 + www/index.html | 171 +++++++++++++++++ www/journal.html | 186 ++++++++++++++++++ www/journal.xml | 65 +++++++ 33 files changed, 2651 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100644 db/npc.rec create mode 100644 db/threads.rec create mode 100644 doc/feed.md create mode 100644 doc/game.md create mode 100644 ed/blogitem.ed create mode 100644 ed/journalitem.ed create mode 100644 justfile create mode 100644 maps/Aulia 2022-08-29-09-32.png create mode 100644 maps/kriteach.png create mode 100644 src/00001-introductions.md create mode 100644 src/00002-meadowgloom.md create mode 100644 src/00003-hand.md create mode 100644 src/00004.md create mode 100644 src/about.md create mode 100644 src/index.md create mode 100644 src/journal.draft create mode 100644 src/journal.md create mode 100644 templates/blogitem.rec.template create mode 100644 templates/header.html create mode 100644 templates/journalitem.rec.template create mode 100644 templates/nav.html create mode 100644 www/00001-introductions.html create mode 100644 www/00002-meadowgloom.html create mode 100644 www/00003-hand.html create mode 100644 www/00004.html create mode 100644 www/about.html create mode 100644 www/episodes.xml create mode 100644 www/feed.xml create mode 100644 www/index.html create mode 100644 www/journal.html create mode 100644 www/journal.xml diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91026a4 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +SRCS := $(shell find src -name '*.md') +HTML := $(SRCS:src/%.md=%.html) +vpath %.md src +vpath %.html www + +html: $(HTML) + +%.html: %.md + pandoc -t html \ + --standalone \ + --toc \ + --include-before-body=templates/nav.html \ + --include-in-header=templates/header.html \ + -o www/$@ $< diff --git a/README.md b/README.md new file mode 100644 index 0000000..4aebb06 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# brighter worlds + +i have an urge to play some Brighter Worlds + +https://awkwardturtle.itch.io/brighter-worlds + +with Iofi (cleric of small gods) and Maddox (sneaky bastard) + +they gonna have an adventure diff --git a/db/npc.rec b/db/npc.rec new file mode 100644 index 0000000..49f2b4f --- /dev/null +++ b/db/npc.rec @@ -0,0 +1,49 @@ +%rec: npc +%doc: all of the non-player characters +%key: id +%type: id int +%type: updated date +%auto: id updated + +id: 1 +name: Meadowgloom +desc: An older balding man with watery eyes, a fine goatee and mustache, jowls, and a high, soft voice. +status: active +contact: 2 +note: roughed up by the westerners +note: now ~~being roughed up by~~ living with the heroes? + +id: 2 +name: Blackguard +desc: merchant +status: missing +contact: 1 +note: he's kind of the macguffin. the Hand wants him to appear before them. +note: illegally smuggling stuff (drugs? weapons? people?) in from Givzien. Sahtor found out and wants the count to fund the trade to strain relations with Onq. + +id: 3 +name: Count Dindrati +desc: Half-Dragon Governor of Kriteach County. Got scales on his face like scarab shells. And one eye like molten metal. +note: Dindrati is going to let Blackguard take the fall if he needs to, but he also isn't ready to give him up just yet. He thinks the H and has him, so he's going to crack down on them to show his displeasure / to get them to give him up + + +id: 4 +name: Sahtor +desc: Dragon King of Sahtor'larath. +note: he is a fucking dragon + +id: 5 +name: the Hand +desc: the governing body of the Kriteach vigilante underground +note: Is looking to judge and punish Blackguard for hoarding wealth because Dindrati is turning a blind eye. + +id: 6 +name: Onq +desc: Goblin empire in the west +note: Longtime peace with Givziean + +id: 7 +name: Givziean +deck: Goblin empire in the west +note: Longtime peace with Onq +note: Recently entered into a secret trade agreement with Sahtorlarath (via the count, via Blackguard) to strain relations with Onq and provoke them.. diff --git a/db/threads.rec b/db/threads.rec new file mode 100644 index 0000000..f87a837 --- /dev/null +++ b/db/threads.rec @@ -0,0 +1,10 @@ +%rec: threads +%doc: plot threads +%key: id +%type: id int +%type: updated date +%auto: id updated + +id: 1 +name: Blackguard is Missing +note: The Westerners are after him too diff --git a/doc/feed.md b/doc/feed.md new file mode 100644 index 0000000..cb423e1 --- /dev/null +++ b/doc/feed.md @@ -0,0 +1,134 @@ +okay so i got up to some bullshit while writing this, so listen up. + +I'm still using the "blog" and "journal" formats from miso.town for writing the blog and the journal. + + + + + +But I grew unsatisfied using them to auto-generate the rss feeds. + +Primarily because it couldn't handle the "~/dozens" part of my base "https://tilde.town/~dozens/clericthief" URL. And also because it included a lot of auxilary HTML elements like the navbar. + +So I decided I needed to roll my own feed generators. + +I discovered a clever way to use ed. + +You can wrap a file in ed commands like so: + +``` +echo i | cat - file.txt commands.ed | ed -s +``` + +where `i` is the ed command for insert. + +The contents of your file, `file.txt` follow. + +Make the first ed command in `commands.ed` a `.` to stop insert mode. + +And then all your other ed commands can follow. + +`ed -s` starts ed in silent mode. + +If you end your list of commands with `1,$w /dev/stdout` then you can pipe the output to something else. + +Neat! + +So what I had was some very lightly structured text. + +I decided the easiest thing to do would be to isolate the list of blog entries, and then format them as recfiles, which was pretty easy. + +Here's my index.md at the time of this writing: + +``` +--- +title: "Cleric + Thief" +subtitle: Adventures of Iofi and Maddox +created: 2022-08-30 +updated: 2022-09-01 +--- + +[subscribe to episodes](episodes.xml) + + +- - [00003. The Hand](00003-hand.html) +- - [00002. Meadowgloom](00002-meadowgloom.html) +- - [00001. Cleric + Thief](00001-introductions.html) + +``` + +ed commands: + +- `g/BEGIN/ka` - find 'BEGIN' and make a bookmark `a` +- `g/END/kb` - find 'END' and make a bookmark `a` +- `1,'ad` - delete eveything from the 1st line up through bookmark a +- `'b,$d` - delete from 'b to the end of the file + +output: + +``` +- - [00003. The Hand](00003-hand.html) +- - [00002. Meadowgloom](00002-meadowgloom.html) +- - [00001. Cleric + Thief](00001-introductions.html) +``` + +Then I did some search and replace so that each line turned into a recfile record. + +ed commands for that: + +``` +%s/^- // +%s,,time: \1|, +%s, - \[\(.*\)\],title: \1|, +%s,(\(.*\))$,source: \1|link: \1|, +%s/html/md/ +%s/|/\ +/g +``` + +results: + +``` +time: 2022-09-03 +title: 00003. The Hand +link: 00003-hand.html +source: 00003-hand.md + +time: 2022-09-01 +title: 00002. Meadowgloom +link: 00002-meadowgloom.html +source: 00002-meadowgloom.md + +time: 2022-08-30 +title: 00001. Cleric + Thief +link: 00001-introductions.html +source: 00001-introductions.md +``` + +and from there I could write a recfmt template: + +``` +01 +02 {{title}} +03 http://tilde.town/~dozens/clericthief/{{link}} +04 syscmd(`gdate -d {{time}}') +05 {{time}} {{title}} +06 +07 +10 +11 +``` + +There are m4 macros on lines 04 and 08 to insert the correctly formatted time, and to include the markdown content, respectively. + +You can see the whole thing in the justfile, but the gist to get each rss item is: + +``` +echo i | cat - src/index.md ed/blogcommands.ed | ed -s | recfmt -f templates/blogitem.template | m4 +``` + +The process for the journal entries is basically the same, with a little extra search and replace funny business in ed since the whole thing is one flat document. + +The thing that really made all this work was the rec format. It made it super easy to format the data. diff --git a/doc/game.md b/doc/game.md new file mode 100644 index 0000000..cf1d7c7 --- /dev/null +++ b/doc/game.md @@ -0,0 +1,85 @@ +## ideas + +use mtg colors to give each of them an archetype + +https://humanparts.medium.com/the-mtg-color-wheel-c9700a7cf36d + +create a setting with spears + +https://sean-f-smith.medium.com/with-this-tool-youll-never-run-out-of-ideas-15d19ab72dfb + +and maybe a hook with grapes (see above) + +and then run it with opse + +https://gitlab.com/Durrendal/Sola/-/blob/trunk/src/frameworks/OPSE.lua + +oh hey look this is handy + +https://inflatablestudios.itch.io/one-page-solo-engine-online + +keep it as a journal or as a blog + +https://journal.miso.town/ + +https://blog.miso.town/ + +## setting + +The world of Aulia + +oracle: + +curl -X 'GET' \ + 'https://rws-cards-api.herokuapp.com/api/v1/cards/random?n=9' \ + -H 'accept: application/json' + +draw: + +1. 2S - Two of Swords - Rev - Imposture, falsehood, duplicity, disloyalty. +2. AC - Ace of Cups - Rev - House of the false heart, mutation, instability, revolution. +3. 03 - Empress - Rev - Light, truth, the unravelling of involved matters, public rejoicings; according to another reading, vacillation. +4. 12 - Hanged Man - Up - Wisdom, circumspection, discernment, trials, sacrifice, intuition, divination, prophecy. +5. 07 - Chariot - Up - Succour, providence also war, triumph, presumption, vengeance, trouble. +6. 3W - Three of Wands - Up - He symbolizes established strength, enterprise, effort, trade, commerce, discovery; those are his ships, bearing his merchandise, which are sailing over the sea. The card also signifies able co-operation in business, as if the successful merchant prince were looking from his side towards yours with a view to help you. +7. 8P - Eight of Pentacles - Rev - Voided ambition, vanity, cupidity, exaction, usury. It may also signify the possession of skill, in the sense of the ingenious mind turned to cunning and intrigue. +8. 15 - Devil - Rev - Evil fatality, weakness, pettiness, blindness. +9. 19 - Sun - The same in a lesser sense: Material happiness, fortunate marriage, contentment. + +interpretation: + +- Geography: 3W Kriteach. Port city on a river. Fertile plains. Mountains in distance. +- Religion: 2S Corrupt. Collects donations, denies the poor them +- Achievements: 07 Large fleet to protect merchant ships. Successful in naval war. +- Politics: AC Heavy taxes threaten an uprising of the merchant class +- Economy: 19 Strained trade relations +- Social Structure: 8P Skilled laborers turning to cunning and intrigue + +## Hook + +WTAF?! + +oracle: + +curl -X 'GET' \ + 'https://rws-cards-api.herokuapp.com/api/v1/cards/random?n=7' \ + -H 'accept: application/json' + +draw: + +1. KING OF CUPS - Fair man, man of business, law, or divinity; responsible, disposed to oblige the Querent; also equity, art and science, including those who profess science, law and art; creative intelligence. +2. FOUR OF SWORDS - Vigilance, retreat, solitude, hermit's repose, exile, tomb and coffin. It is these last that have suggested the design. +3. KNIGHT OF CUPS - Arrival, approach--sometimes that of a messenger; advances, proposition, demeanour, invitation, incitement. +4. THE LAST JUDGMENT - Change of position, renewal, outcome. Another account specifies total loss though lawsuit. +5. KNIGHT OF WANDS - Departure, absence, flight, emigration. A dark young man, friendly. Change of residence. +6. THE WORLD - Assured success, recompense, voyage, route, emigration, flight, change of place. +7. QUEEN OF PENTACLES - Opulence, generosity, magnificence, security, liberty. + + +interpretation: + +- WT - KC - A respected and powerful member of the merchant class +- A - 4S - has withdrawn and gone missing +- F - NC - after being summoned to testify before the council on accusation of monopoly. +- ? - 20 - Who would benefit from his judgement? +- ! - NW/21 - find him in a change of place / change of residence diff --git a/ed/blogitem.ed b/ed/blogitem.ed new file mode 100644 index 0000000..39d8d7f --- /dev/null +++ b/ed/blogitem.ed @@ -0,0 +1,13 @@ +. +g/BEGIN/ka +g/END/kb +1,'ad +'b,$d +%s/^- // +%s,,time: \1|, +%s, - \[\(.*\)\],title: \1|, +%s,(\(.*\))$,source: \1|link: \1|, +%s/html/md/ +%s/|/\ +/g +1,$w /dev/stdout diff --git a/ed/journalitem.ed b/ed/journalitem.ed new file mode 100644 index 0000000..5355932 --- /dev/null +++ b/ed/journalitem.ed @@ -0,0 +1,14 @@ +. +g/BEGIN/ka +g/END/kb +1,'ad +'b,$d +g/^$/d +g/^##/+s/^/note: / +v/^note/s/^/+ / +%s/+ ##/##/ +%s/^##