Building a Story Maker App - "Mr. McDonegal"

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 108
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Building a Story Maker App - "Mr. McDonegal"

Post by Hutchboy » Tue Aug 13, 2024 4:00 am

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
Attachments
Mr. McDonegal's Crown Jewel Caper.livecode.zip
(145.44 KiB) Downloaded 502 times

stam
Posts: 3061
Joined: Sun Jun 04, 2006 9:39 pm

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

Post by stam » Tue Aug 13, 2024 7:46 pm

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...

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Mon Sep 16, 2024 1:54 pm

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

Hutchboy
Posts: 108
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Sat Sep 21, 2024 1:58 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Sat Sep 21, 2024 2:15 am

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

Hutchboy
Posts: 108
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Sun Sep 22, 2024 12:56 am

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

Post Reply