Page 1 of 1

Building a Story Maker App - "Mr. McDonegal"

Posted: Tue Aug 13, 2024 4:00 am
by Hutchboy
Hi,

I had a project on the back burner I decided to work on a bit today. The goal is to create a story making application template, so I began with getting the core stuff going for fictitious tales about a London-based tailor/spy, Mr. McDonagle.

In the attached example I have one chapter designed with a number of editing controls and some debug code. I decided the format of my content needed to be flexible, so I have designed it around a JSON format. My hope is that it will make adding additional features in future versions easier to implement (like triggering speech or animations coded in the JSON file). At the moment the stack saves JSON files externally to the "documents" folder.

BTW, I use "JSON Editor v. 1.5" from the Apple App Store for viewing and editing JSON files.

Happy Coding,
Mike

Re: Building a Story Maker App - "Mr. McDonegal"

Posted: Tue Aug 13, 2024 7:46 pm
by stam
That looks really good!
Only comment would be there is something funky with the typewriter speed slider... changing it back and forth has weird results and it probably needs a narrower range of values...

The JSON angle is nice, I'll have to look into that more...

Re: Building a Story Maker App - "Mr. McDonegal"

Posted: Mon Sep 16, 2024 1:54 pm
by dunbarx
Mike.

I cannot use the stack. Upon clicking the main button, which I see has the single line "go next card", LC crashes hard.

I used the message box to "go next card", and LC crashed.

I am on a Mac Mini, LC 9.6.9 OS 13.4 Ventura.

Craig

Re: Building a Story Maker App - "Mr. McDonegal"

Posted: Sat Sep 21, 2024 1:58 am
by Hutchboy
Hi,
I'll take a look at what might be the problem running under version 9.6.9, I have that available. Might take me a minute.

Mike

Re: Building a Story Maker App - "Mr. McDonegal"

Posted: Sat Sep 21, 2024 2:15 am
by dunbarx
Mike.

Please do. I would be interested in how a version change would react so differently with such a simple and fundamental single line of code.

Craig

Re: Building a Story Maker App - "Mr. McDonegal"

Posted: Sun Sep 22, 2024 12:56 am
by Hutchboy
Craig,

On my intel iMac with Mojave and LC 9.6.9 the stack runs fine. When I try to run it on my M1 mac mini under Sonoma with 9.6.9 it hangs just as you are reporting. I've tried a few things but nothing has worked yet...a mystery. I may try rebuilding incrementally to see where the trouble arises because I haven't a clue at the moment.

Mike