Prose and Databases
Added 2019-02-19 06:34:00 +0000 UTCFinished up the prose/notebook/story editor (oops, did I say that?) this weekend, and re-did my entire data model. Back when I first started the project, I had the backend hardcoded to the types (Places, Beings, Items, Abilities), each with their own database tables and such. A few months ago I realized this would have to change, but that it would be annoying to do, so I've been putting it off.
Anyway, I finally ran into a problem today that forced me to switch everything cold turkey this morning to the unified model, which broke all the things, but by the evening I had everything working again. Now everything is a "Resource", and only the UI makes the distinctions between the types. This polymorphism makes finishing the permissions system a snap. It also makes potential future features, like timelines and relations, significantly easier as on the backend everything is the same type now. (For example, stuff like creating relations between things of differing types won't require as much boilerplate code.) Coincidentally, switching everything to a polymorphic supertype allowed me to erase a bunch of annoying boilerplate code which has snuck into the project over time. Getting rid of that felt great!
The app is starting to feel pretty complete now. It's missing designs, as I've mentioned, for several pages, but we are getting there!
Also, I just downloaded Flowscape (https://pixelforest.itch.io/flowscape) to play with. FlowScape is a 3d terrain editor with a focus on ease-of-use. It can export orthographic maps, and I get the feeling importing those maps from FlowScape into LegendKeeper is going to be really nice. I'll post an update on that after I've played with it a bit.
EDIT: FlowScape is cool but needs a lot of work! But it was cheap, and it's early on in its development, and I see a lot of potential there. I will revisit it in the future. :)